|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.option.OptionItem
y.option.ObjectOptionItem
y.option.StringBasedOptionItem
public class StringBasedOptionItem
Base class for option items that store String values.
![]() |
![]() |
| Field Summary | |
|---|---|
static java.lang.String |
ATTRIBUTE_CONVERTER
Attribute key used to store a ObjectStringConverter to be
used by editors. |
static java.lang.String |
PROPERTY_CONVERTER
Name of property converter. |
| Fields inherited from class y.option.OptionItem |
|---|
ATTRIBUTE_CONTEXT, ATTRIBUTE_GROUPS, ATTRIBUTE_LONG_DESCRIPTION, COLOR_UNDEFINED, name, PROPERTY_CLASS_TYPE, PROPERTY_ENABLED, PROPERTY_TIP_TEXT, PROPERTY_VALUE, PROPERTY_VALUE_UNDEFINED, UNDEFINED |
| Constructor Summary | |
|---|---|
StringBasedOptionItem(java.lang.String name,
java.lang.Object value)
Creates a new instance of StringBasedOptionItem. |
|
| Method Summary | |
|---|---|
ObjectStringConverter |
getConverter()
Returns the converter used by this item. |
java.lang.String |
getStringValue()
Returns the stringified value of this option item if the classType property is set, it uses the y.util.ObjectStringConversion class to perform its task, otherwise it will return null. |
java.lang.String |
getType()
Returns "String". |
void |
setConverter(ObjectStringConverter converter)
Specifies the converter used by this item. |
void |
setStringValue(java.lang.String value)
Sets the stringified value of this option item if the classType property is set, it uses the y.util.ObjectStringConversion class to perform its task, otherwise it will return null. |
void |
setValue(java.lang.Object value)
Sets the value of this item. |
| Methods inherited from class y.option.ObjectOptionItem |
|---|
getBackupValue, getValue, resetValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROPERTY_CONVERTER
converter.
public static final java.lang.String ATTRIBUTE_CONVERTER
ObjectStringConverter to be
used by editors.
| Constructor Detail |
|---|
public StringBasedOptionItem(java.lang.String name,
java.lang.Object value)
name - the name of the itemvalue - the initial and backup value of the value| Method Detail |
|---|
public java.lang.String getType()
getType in class ObjectOptionItempublic void setValue(java.lang.Object value)
ObjectOptionItem
setValue in class ObjectOptionItemOptionItem.publishValue(Object)public java.lang.String getStringValue()
OptionItem
getStringValue in class OptionItempublic void setStringValue(java.lang.String value)
OptionItem
setStringValue in class OptionItempublic ObjectStringConverter getConverter()
public void setConverter(ObjectStringConverter converter)
converter - the ObjectStringConverter used by this item
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||