|
|||||||||||
| 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
Base class for all configuration items. A configuration item is an instance of a feature (similar to an object-class relation) in a hierarchical structure.
A configuration item will be disabled, if a parent feature is not selected.
| 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 | |
ConfigurationItem(java.lang.String name,
ConfigurationItem pParent,
Feature pFeature)
Constructor for ConfigurationItem. |
|
ConfigurationItem(java.lang.String name,
ConfigurationItem pParent,
java.lang.Object pDefaultValue,
Feature pFeature)
Constructor for ConfigurationItem. |
|
ConfigurationItem(java.lang.String pName,
Feature pFeature)
Creates an ConfigurationItem without parent |
|
ConfigurationItem(java.lang.String pName,
TreeItem pParent,
boolean pChildrenAllowed,
java.lang.Object pDefaultValue,
Feature pFeature)
|
|
| Method Summary | |
void |
addAttachmentsFromFeature(Feature f)
Add all attachments from other feature |
void |
fireItemChanged()
Passes change events to parent, if necessary. |
java.util.List |
getAttachments()
Returns the attachments of the feature |
BindingTime |
getBinding()
Returns the binding time of the associated feature |
java.util.Collection |
getChildrenForConfiguration()
Returns the needed children for configuration purposes |
java.lang.Object |
getDefaultValue()
Returns the default value of the configuration item. |
java.lang.String |
getDescription()
Returns the description of the item. |
Feature |
getFeature()
Returns the feature this item bases on |
java.lang.String |
getOrigin()
Returns the origin (name of the donating asset or product) |
java.lang.String |
getSymbolicVar()
Returns the symbolic variable for this configuration item. |
abstract java.lang.Object |
getValue()
Returns the current value |
boolean |
isLocked()
Returns true, if item is changeable |
boolean |
isSet()
Returns true, if configuration item is set. |
abstract java.lang.Object[] |
possibleValues()
Returns all possible values of this item |
abstract void |
restoreDefault()
Restores default value |
void |
setDefaultValue(java.lang.Object pDefaultValue)
Sets the default value of the item. |
void |
setIsLocked(boolean pIsLocked)
Sets the isLocked |
void |
setupInitialConfiguration()
Setup initial configuration settings. |
abstract boolean |
setValue(int pIndex)
Set a value by given index |
abstract boolean |
setValue(java.lang.Object pValue)
Set a value by an object value. |
abstract boolean |
switchToNextValue()
Switches to next possible value |
abstract boolean |
switchToPrevValue()
Switches to next possible value |
java.lang.String |
toString()
|
| 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 ConfigurationItem(java.lang.String pName,
Feature pFeature)
public ConfigurationItem(java.lang.String name,
ConfigurationItem pParent,
Feature pFeature)
name - Name of configuration itempParent - Parent node
public ConfigurationItem(java.lang.String pName,
TreeItem pParent,
boolean pChildrenAllowed,
java.lang.Object pDefaultValue,
Feature pFeature)
public ConfigurationItem(java.lang.String name,
ConfigurationItem pParent,
java.lang.Object pDefaultValue,
Feature pFeature)
name - Name of configuration itempParent - Parent node| Method Detail |
public Feature getFeature()
public void addAttachmentsFromFeature(Feature f)
public BindingTime getBinding()
public java.lang.String getDescription()
getDescription in class AbstractItempublic java.util.List getAttachments()
public java.lang.String getOrigin()
public java.lang.String getSymbolicVar()
public boolean isLocked()
public boolean isSet()
public void setIsLocked(boolean pIsLocked)
public java.util.Collection getChildrenForConfiguration()
public java.lang.Object getDefaultValue()
public void setDefaultValue(java.lang.Object pDefaultValue)
pDefaultValue - New default value. Must be accepted by setValuerestoreDefault(),
setValue(Object)public abstract void restoreDefault()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public abstract boolean switchToNextValue()
public abstract boolean switchToPrevValue()
public abstract boolean setValue(int pIndex)
pIndex - Index to select
public abstract boolean setValue(java.lang.Object pValue)
pValue - New value
public abstract java.lang.Object[] possibleValues()
public abstract java.lang.Object getValue()
public void setupInitialConfiguration()
public void fireItemChanged()
fireItemChanged in class AbstractItemAbstractItem.setBlockEvents(boolean)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||