|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectartofillusion.ui.TreeElement
artofillusion.ui.GenericTreeElement
public class GenericTreeElement
| Constructor Summary | |
|---|---|
GenericTreeElement(java.lang.String label,
java.lang.Object obj,
TreeElement parent,
TreeList tree,
java.util.Vector children)
|
|
| Method Summary | |
|---|---|
void |
addChild(TreeElement el,
int position)
Add another element as a child of this one. |
boolean |
canAcceptAsParent(TreeElement el)
Determine whether this element can be added as a child of another one If el is null, return whether this element can be added at the root level of the tree. |
java.lang.String |
getLabel()
Get the label to display for this element. |
java.lang.Object |
getObject()
Get the object corresponding to this element. |
boolean |
isGray()
Get whether this element should be drawn in gray (i.e. to indicate it is deactivated). |
void |
removeChild(java.lang.Object object)
Remove any elements corresponding to the given object from this element's list of children. |
| Methods inherited from class artofillusion.ui.TreeElement |
|---|
getChild, getIcon, getNumChildren, getParent, isExpanded, isSelectable, isSelected, selectWithParent, setExpanded, setSelectable, setSelected |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenericTreeElement(java.lang.String label,
java.lang.Object obj,
TreeElement parent,
TreeList tree,
java.util.Vector children)
| Method Detail |
|---|
public java.lang.String getLabel()
TreeElement
getLabel in class TreeElementpublic boolean canAcceptAsParent(TreeElement el)
TreeElement
canAcceptAsParent in class TreeElement
public void addChild(TreeElement el,
int position)
TreeElement
addChild in class TreeElementpublic void removeChild(java.lang.Object object)
TreeElement
removeChild in class TreeElementpublic java.lang.Object getObject()
TreeElement
getObject in class TreeElementpublic boolean isGray()
TreeElement
isGray in class TreeElement
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||