|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.fopps.model.AbstractItem
|
+--org.fopps.model.TreeItem
|
+--org.fopps.model.ConfigurationItem
|
+--org.fopps.model.Option
Represents an option. An option may be - as the name suggests - set or not set. If an option changes to 'not set', all child options will be disabled.
If no explicit default value is given, the option is set to false.
| Field Summary |
| Fields inherited from class org.fopps.model.TreeItem |
mChildren, mParent |
| Fields inherited from class org.fopps.model.AbstractItem |
ADDED_EVENT, CHANGE_EVENT, name, REMOVED_EVENT |
| Constructor Summary | |
Option(java.lang.String pName,
ConfigurationItem pParent,
Feature pFeature)
Constructor for Option with given parent and false as default value |
|
Option(java.lang.String pName,
ConfigurationItem pParent,
java.lang.Object pDefaultValue,
Feature pFeature)
Constructor for Option. |
|
Option(java.lang.String pName,
Feature pFeature)
Constructor for Option with no parent and false as default value |
|
| Method Summary | |
java.lang.Object |
getValue()
Returns the current value |
boolean |
isSelected()
Returns the value. |
boolean |
isSet()
Returns true, if configuration item is set. |
java.lang.Object[] |
possibleValues()
Returns all possible values of this item |
void |
restoreDefault()
Restores default value. |
void |
setupInitialConfiguration()
Setup initial configuration settings. |
boolean |
setValue(int pIndex)
Set a value by given index |
boolean |
setValue(java.lang.Object pValue)
Set a value by an object value. |
boolean |
switchToNextValue()
Switches to next possible value |
boolean |
switchToPrevValue()
Switches to next possible value |
java.lang.String |
toString()
|
| Methods inherited from class org.fopps.model.ConfigurationItem |
addAttachmentsFromFeature, fireItemChanged, getAttachments, getBinding, getChildrenForConfiguration, getDefaultValue, getDescription, getFeature, getOrigin, getSymbolicVar, isLocked, setDefaultValue, setIsLocked |
| Methods inherited from class org.fopps.model.TreeItem |
addChildren, allChildrenCount, childrenAllowed, childrenCount, delete, first, getChildAt, getChildren, getDepth, getIndexOfChild, getParent, getPath, getRoot, isLeaf, last, notifyListeners, removeAllChildren, removeAllChildrenRecursive, removeChildren, setChildren, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Option(java.lang.String pName,
Feature pFeature)
public Option(java.lang.String pName,
ConfigurationItem pParent,
Feature pFeature)
public Option(java.lang.String pName,
ConfigurationItem pParent,
java.lang.Object pDefaultValue,
Feature pFeature)
| Method Detail |
public boolean switchToNextValue()
ConfigurationItem
switchToNextValue in class ConfigurationItemConfigurationItem.switchToNextValue()public boolean switchToPrevValue()
ConfigurationItem
switchToPrevValue in class ConfigurationItemConfigurationItem.switchToPrevValue()public boolean isSet()
isSet in class ConfigurationItempublic boolean setValue(int pIndex)
ConfigurationItem
setValue in class ConfigurationItempIndex - If 0, the value is set to 'false', otherwise to true
ConfigurationItem.setValue(int)public void restoreDefault()
restoreDefault in class ConfigurationItempublic boolean setValue(java.lang.Object pValue)
setValue in class ConfigurationItempValue - New value
public java.lang.String toString()
toString in class ConfigurationItemObject.toString()public boolean isSelected()
public java.lang.Object[] possibleValues()
ConfigurationItem
possibleValues in class ConfigurationItemConfigurationItem.possibleValues()public java.lang.Object getValue()
getValue in class ConfigurationItempublic void setupInitialConfiguration()
setupInitialConfiguration in class ConfigurationItem
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||