|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.tensegrity.gui.swt.control.attributetree.AttributeTableItem
This class represents a table entry which usually wraps an Attribute.
| Constructor Summary | |
AttributeTableItem(java.lang.String path,
Attribute attribute,
int orderID)
Constructor which creates a new AttributeTableItem instance with the given parent path, attribute and order id. |
|
| Method Summary | |
void |
addChildItem(AttributeTableItem item)
Adds further items to this AttributeTableItem |
boolean |
equals(java.lang.Object o)
|
Attribute |
getAttribute()
Returns the corresponding attribute |
AttributeTableItem[] |
getChildren()
Get all referecend AttributeTableItems. |
java.lang.String |
getFullPath()
Returns the full path to the attribute this item relates to. |
java.lang.String |
getName()
Returns the attribute name or an empty string if no attribute is defined. |
int |
getOrderID()
Returns the order id of this item. |
AttributeTableItem |
getParent()
Returns the parent AttributeTableItem. |
java.lang.String |
getParentName()
Returns the name of the parent attribute, within an AttributeSet, which contains this attribute. |
java.lang.String |
getPath()
Returns the path to the parent attribute this item relates to. |
boolean |
hasChildren()
Checks if this AttributeTableItem has child items |
int |
hashCode()
|
boolean |
isCategory()
Checks if this AttributeTableItem represents a category attribute |
boolean |
isInUndefinedState()
Returns true if the item is in an undefined state, i.e. at least two attributes within a multiselection have the same value |
boolean |
isReadOnly()
Signals if the corresponding attribute can be changed or not. |
void |
setInUndefinedState(boolean isInUndefinedState)
Sets the undefined state of the AttributeTableItem. |
void |
setParent(AttributeTableItem item)
Sets the parent AttributeTableItem |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AttributeTableItem(java.lang.String path,
Attribute attribute,
int orderID)
path - path to the parent attributeattribute - attribute to storeorderID - an id for sorting usage| Method Detail |
public final int getOrderID()
public final void addChildItem(AttributeTableItem item)
item - an item which is a child of this AttributeTableItempublic final Attribute getAttribute()
public final AttributeTableItem[] getChildren()
public final java.lang.String getName()
public final java.lang.String getPath()
public final java.lang.String getFullPath()
public final java.lang.String getParentName()
public final boolean hasChildren()
public final void setParent(AttributeTableItem item)
item - the parent item of this AttributeTableItempublic final AttributeTableItem getParent()
public final boolean isReadOnly()
public java.lang.String toString()
public final boolean isInUndefinedState()
public final void setInUndefinedState(boolean isInUndefinedState)
isInUndefinedState - the new undefined state. Specify true to
indicate that this AttributeTableItem is in an undefined state, false
otherwisepublic final boolean isCategory()
public boolean equals(java.lang.Object o)
public int hashCode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||