|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.option.OptionItem y.option.ObjectOptionItem
public class ObjectOptionItem
General purpose option item that can be used as a base class for custom option item classes.
Field Summary |
---|
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 | |
---|---|
ObjectOptionItem(java.lang.String name,
java.lang.Object value)
Creates a new instance of ObjectOptionItem. |
Method Summary | |
---|---|
java.lang.Object |
getBackupValue()
Returns the backup value of this item. |
java.lang.String |
getType()
Returns "Object". |
java.lang.Object |
getValue()
Returns the value of this item. |
void |
resetValue()
Resets the value of this item to the backup value. |
void |
setValue(java.lang.Object value)
Sets the value of this item. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ObjectOptionItem(java.lang.String name, java.lang.Object value)
name
- the name of the itemvalue
- the initial value of the itemMethod Detail |
---|
public java.lang.String getType()
getType
in class OptionItem
public java.lang.Object getValue()
getValue
in class OptionItem
public void setValue(java.lang.Object value)
setValue
in class OptionItem
OptionItem.publishValue(Object)
public void resetValue()
resetValue
in class OptionItem
OptionItem.publishValue(Object)
public java.lang.Object getBackupValue()
getBackupValue
in interface BackupValueOwner
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |