|
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.BoolOptionItem
public class BoolOptionItem
An option item for boolean values.
| 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 | |
|---|---|
BoolOptionItem(String name,
boolean value)
Creates a new instance of BoolOptionItem. |
|
BoolOptionItem(String name,
Boolean value)
Creates a new instance of BoolOptionItem. |
|
| Method Summary | |
|---|---|
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. |
String |
getType()
Returns "Bool". |
void |
setStringValue(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(Object value)
Sets the value of this option item Note: If the specified value is not of type
Boolean, the item value will be set to
Boolean.FALSE. |
| 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 |
| Constructor Detail |
|---|
public BoolOptionItem(String name,
Boolean value)
name - the name of this itemvalue - the initial boolean value
public BoolOptionItem(String name,
boolean value)
name - the name of this itemvalue - the initial boolean value| Method Detail |
|---|
public String getType()
getType in class ObjectOptionItempublic void setValue(Object value)
value is not of type
Boolean, the item value will be set to
Boolean.FALSE.
setValue in class ObjectOptionItemOptionItem.publishValue(Object)public String getStringValue()
OptionItem
getStringValue in class OptionItempublic void setStringValue(String value)
OptionItem
setStringValue in class OptionItem
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||