|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjeters.components.PlainText
public class PlainText
a class implementing the minimum requirements for the EditableText
-interface - and nothing else.
It can easily be extended by more specialized classes.
Field Summary | |
---|---|
protected java.lang.String |
label
a label for the text (compare the description of getLabel) |
protected java.lang.String |
text
the text represented by the object |
Constructor Summary | |
---|---|
PlainText(java.lang.String text)
|
|
PlainText(java.lang.String text,
java.lang.String label)
|
Method Summary | |
---|---|
java.lang.String |
getLabel()
get the "label" of the text, i.e. some kind of name (title of wiki article, filename, ...) |
java.lang.String |
getText()
get the text represented by this object |
void |
setLabel(java.lang.String newLabel)
changes the label of the text |
void |
setText(java.lang.String newText)
changes the text to a new String |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String text
protected java.lang.String label
Constructor Detail |
---|
public PlainText(java.lang.String text)
public PlainText(java.lang.String text, java.lang.String label)
Method Detail |
---|
public java.lang.String getText()
EditableText
getText
in interface EditableText
public void setText(java.lang.String newText)
EditableText
setText
in interface EditableText
newText
- the String containing the new textpublic java.lang.String getLabel()
EditableText
getLabel
in interface EditableText
public void setLabel(java.lang.String newLabel)
EditableText
setLabel
in interface EditableText
newLabel
- the String containing the new label
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |