|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IMenuNode
The Bug menu is a tree structure. This class represents the model interface for the menu. A menu node can be either a container (non executing) or a leaf (executing).
| Method Summary | |
|---|---|
void |
execute()
If menu node is a leaf, the user has selected this node for execution. |
java.lang.String |
getBusyName()
|
java.util.List |
getChildren()
|
java.util.Comparator |
getComparator()
|
java.lang.String |
getErrorName()
|
IMenuNode |
getFirstParentOfType(java.lang.String type)
Iterate through ancestors until one of specified type is found. |
java.lang.String |
getName()
Name property used in the UI. |
IMenuNode |
getNextSibling()
|
IMenuNode |
getParent()
|
java.lang.String |
getPath()
|
IMenuNode |
getPreviousSibling()
|
boolean |
hasChildren()
|
boolean |
isBusy()
If a node is busy, the menu system will display a spinner in the place of the node. |
boolean |
isError()
|
void |
setName(java.lang.String name)
Sets the name property used in the UI. |
IMenuNode |
setParent(IMenuNode parent)
|
boolean |
sortChildren()
|
| Method Detail |
|---|
IMenuNode getParent()
IMenuNode setParent(IMenuNode parent)
java.util.List getChildren()
boolean sortChildren()
true if the children should be sorted, and
false
if they should not be.java.util.Comparator getComparator()
sortChildren()
returns true. If null is returned,
and sortChildren() returns true, the natural
ordering, taken from the compareTo() method, will
be used.boolean hasChildren()
true if number of children greater than 0.boolean isBusy()
true if the node is busy and false
if the node is not busy.java.lang.String getBusyName()
null, use the node name.IMenuNode getFirstParentOfType(java.lang.String type)
type -
void execute()
throws java.lang.Exception
display -
java.lang.ExceptionIMenuNode getNextSibling()
IMenuNode getPreviousSibling()
java.lang.String getName()
void setName(java.lang.String name)
name - java.lang.String getPath()
boolean isError()
true if this node should currently display an
error, false otherwise.java.lang.String getErrorName()
isError() returns
true.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||