Search this API

y.option
Class BoolOptionItem

java.lang.Object
  extended by y.option.OptionItem
      extended by y.option.ObjectOptionItem
          extended by y.option.BoolOptionItem
All Implemented Interfaces:
AttributeOwner, BackupValueOwner, PropertyChangeReporter, VetoableChangeReporter

public class BoolOptionItem
extends ObjectOptionItem

An option item for boolean values.

 
Your browser does not support SVG content.

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 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 y.option.OptionItem
addEditor, addEditorListener, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, adoptEditorValue, checkEditorValue, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, getAttribute, getClassType, getEditor, getEditor, getEditors, getName, getTipText, isEnabled, isValueUndefined, publishEnabled, publishValue, publishValueUndefined, removeAttribute, removeEditor, removeEditorListener, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener, setAttribute, setClassType, setEnabled, setTipText, setValueUndefined, wantsVisibleName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BoolOptionItem

public BoolOptionItem(java.lang.String name,
                      java.lang.Boolean value)
Creates a new instance of BoolOptionItem.

Parameters:
name - the name of this item
value - the initial boolean value

BoolOptionItem

public BoolOptionItem(java.lang.String name,
                      boolean value)
Creates a new instance of BoolOptionItem.

Parameters:
name - the name of this item
value - the initial boolean value
Method Detail

getType

public java.lang.String getType()
Returns "Bool".

Overrides:
getType in class ObjectOptionItem

setValue

public void setValue(java.lang.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.

Overrides:
setValue in class ObjectOptionItem
See Also:
OptionItem.publishValue(Object)

getStringValue

public java.lang.String getStringValue()
Description copied from class: OptionItem
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.

Overrides:
getStringValue in class OptionItem

setStringValue

public void setStringValue(java.lang.String value)
Description copied from class: OptionItem
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.

Overrides:
setStringValue in class OptionItem

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.