|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--y.option.OptionItem
|
+--y.option.StringOptionItem
An option item for Strings.
Provides an editor based on JTextComponent.
| Field Summary |
| Fields inherited from class y.option.OptionItem |
COLOR_UNDEFINED, name, UNDEFINED |
| Constructor Summary | |
StringOptionItem(String name,
String value)
Creates a new instance of StringOptionItem. |
|
StringOptionItem(String name,
String value,
int rows)
Creates a bew instance of StringOptionItem. |
|
| Method Summary | |
boolean |
adoptEditorValue()
Adopts the value from the editor component to the item. |
JComponent |
getEditor()
Returns the editor component for the this option item. |
String |
getType()
Returns "String" |
Object |
getValue()
Returns the value of this option item |
void |
resetValue()
Resets the value of this item to its initial value. |
void |
setValue(Object v)
Sets the value of this option item |
| Methods inherited from class y.option.OptionItem |
checkEditorValue, getClassType, getEditor, getName, getStringValue, getTipText, isValueUndefined, setClassType, setStringValue, setTipText, setValueUndefined, wantsVisibleName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StringOptionItem(String name,
String value,
int rows)
name - the name of the itemvalue - the initial value of the itemrows - the number of text rows of the option editor.
public StringOptionItem(String name,
String value)
name - the name of the itemvalue - the initial value of the item| Method Detail |
public String getType()
getType in class OptionItempublic Object getValue()
OptionItem
getValue in class OptionItempublic void setValue(Object v)
OptionItem
setValue in class OptionItempublic boolean adoptEditorValue()
OptionItem
adoptEditorValue in class OptionItempublic void resetValue()
OptionItem
resetValue in class OptionItempublic JComponent getEditor()
OptionItem
getEditor in class OptionItem
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||