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