|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.buglabs.menu.AbstractMenuNode
public abstract class AbstractMenuNode
Implements common functionality for a menu node.
| Constructor Summary | |
|---|---|
AbstractMenuNode(java.lang.String name)
Deprecated. |
|
AbstractMenuNode(java.lang.String name,
IMenuNode parent)
Deprecated. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object arg0)
Deprecated. |
boolean |
equals(java.lang.Object arg0)
Deprecated. |
void |
execute()
Deprecated. If menu node is a leaf, the user has selected this node for execution. |
java.lang.String |
getBusyName()
Deprecated. |
java.util.List |
getChildren()
Deprecated. |
java.util.Comparator |
getComparator()
Deprecated. |
java.lang.String |
getErrorName()
Deprecated. |
IMenuNode |
getFirstParentOfType(java.lang.String type)
Deprecated. Iterate through ancestors until one of specified type is found. |
java.lang.String |
getName()
Deprecated. Name property used in the UI. |
IMenuNode |
getNextSibling()
Deprecated. |
IMenuNode |
getParent()
Deprecated. |
java.lang.String |
getPath()
Deprecated. |
IMenuNode |
getPreviousSibling()
Deprecated. |
boolean |
hasChildren()
Deprecated. |
boolean |
isBusy()
Deprecated. If a node is busy, the menu system will display a spinner in the place of the node. |
boolean |
isError()
Deprecated. |
void |
setName(java.lang.String name)
Deprecated. Sets the name property used in the UI. |
IMenuNode |
setParent(IMenuNode parent)
Deprecated. |
boolean |
sortChildren()
Deprecated. |
java.lang.String |
toString()
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractMenuNode(java.lang.String name)
public AbstractMenuNode(java.lang.String name,
IMenuNode parent)
| Method Detail |
|---|
public java.util.List getChildren()
getChildren in interface IMenuNodepublic boolean sortChildren()
sortChildren in interface IMenuNodetrue if the children should be sorted, and
false if they should not be.public java.util.Comparator getComparator()
getComparator in interface IMenuNodesortChildren() returns
true. If null is returned, and
sortChildren() returns true, the natural ordering,
taken from the compareTo() method, will be used.public IMenuNode getParent()
getParent in interface IMenuNodepublic IMenuNode setParent(IMenuNode parent)
setParent in interface IMenuNodepublic boolean hasChildren()
hasChildren in interface IMenuNodetrue if number of children greater than 0.public boolean isBusy()
IMenuNode
isBusy in interface IMenuNodetrue if the node is busy and false if
the node is not busy.public java.lang.String getBusyName()
getBusyName in interface IMenuNodenull, use the node name.public IMenuNode getFirstParentOfType(java.lang.String type)
IMenuNode
getFirstParentOfType in interface IMenuNode
public void execute()
throws java.lang.Exception
IMenuNode
execute in interface IMenuNodejava.lang.Exceptionpublic IMenuNode getNextSibling()
getNextSibling in interface IMenuNodepublic IMenuNode getPreviousSibling()
getPreviousSibling in interface IMenuNodepublic java.lang.String getName()
IMenuNode
getName in interface IMenuNodepublic void setName(java.lang.String name)
IMenuNode
setName in interface IMenuNodepublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object arg0)
equals in class java.lang.Objectpublic int compareTo(java.lang.Object arg0)
compareTo in interface java.lang.Comparablepublic java.lang.String getPath()
getPath in interface IMenuNodepublic boolean isError()
isError in interface IMenuNodetrue if this node should currently display an error,
false otherwise.public java.lang.String getErrorName()
getErrorName in interface IMenuNodeisError() returns
true.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||