|
|||||||||||
| 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.Alternative
Represents an alternative "choose one out of many" configuration entry.
| Field Summary | |
static java.lang.String |
INVALID
|
| 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 | |
Alternative(java.lang.String name,
ConfigurationItem pParent,
Feature pFeature)
Constructor for Alternative. |
|
Alternative(java.lang.String name,
ConfigurationItem pParent,
java.lang.Object pDefaultValue,
Feature pFeature)
Constructor for Alternative. |
|
Alternative(java.lang.String pName,
Feature pFeature)
|
|
| Method Summary | |
boolean |
decValue()
Decreases current value (Convenience method) |
java.util.Collection |
getChildren()
Getter Association Children. |
java.util.Collection |
getChildrenForConfiguration()
Returns the needed children for configuration purposes |
java.util.Collection |
getConstraints()
Returns a list containing all (outgoing) constraints. |
java.util.Collection |
getIncomingConstraints()
|
java.util.Collection |
getOutgoingConstraints()
|
java.lang.Object |
getValue()
Returns the current value |
int |
getValueIndex()
Returns the index of the current value |
boolean |
incValue()
Increases current value (Convenience method) |
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()
Builds the alternative values and the possible childs |
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, getDefaultValue, getDescription, getFeature, getOrigin, getSymbolicVar, isLocked, setDefaultValue, setIsLocked |
| Methods inherited from class org.fopps.model.TreeItem |
addChildren, allChildrenCount, childrenAllowed, childrenCount, delete, first, getChildAt, 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 |
| Field Detail |
public static final java.lang.String INVALID
| Constructor Detail |
public Alternative(java.lang.String pName,
Feature pFeature)
public Alternative(java.lang.String name,
ConfigurationItem pParent,
Feature pFeature)
name -
public Alternative(java.lang.String name,
ConfigurationItem pParent,
java.lang.Object pDefaultValue,
Feature pFeature)
name - | Method Detail |
public boolean switchToNextValue()
ConfigurationItem
switchToNextValue in class ConfigurationItemConfigurationItem.switchToNextValue()public boolean switchToPrevValue()
ConfigurationItem
switchToPrevValue in class ConfigurationItemConfigurationItem.switchToPrevValue()public boolean setValue(java.lang.Object pValue)
setValue in class ConfigurationItempValue - New value
public boolean setValue(int pIndex)
ConfigurationItem
setValue in class ConfigurationItempIndex - Index to select
ConfigurationItem.setValue(int)public void restoreDefault()
restoreDefault in class ConfigurationItempublic boolean decValue()
public boolean incValue()
public int getValueIndex()
public boolean isSet()
isSet in class ConfigurationItempublic java.lang.String toString()
toString in class ConfigurationItemObject.toString()public java.lang.Object[] possibleValues()
ConfigurationItem
possibleValues in class ConfigurationItemConfigurationItem.possibleValues()public java.lang.Object getValue()
getValue in class ConfigurationItempublic java.util.Collection getChildrenForConfiguration()
getChildrenForConfiguration in class ConfigurationItempublic java.util.Collection getChildren()
getChildren in class TreeItempublic java.util.Collection getIncomingConstraints()
getIncomingConstraints in class AbstractItempublic java.util.Collection getOutgoingConstraints()
getOutgoingConstraints in class AbstractItempublic java.util.Collection getConstraints()
AbstractItem
getConstraints in class AbstractItempublic void setupInitialConfiguration()
setupInitialConfiguration in class ConfigurationItem
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||