|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<MenuEntry>
org.scijava.MenuPath
public class MenuPath
A path in a hierarchical menu structure, for use with UIDetails
.
Field Summary | |
---|---|
static String |
PATH_SEPARATOR
The separator between elements of a menu path string. |
Fields inherited from class java.util.AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
MenuPath()
Creates an empty menu path. |
|
MenuPath(Collection<? extends MenuEntry> menuEntries)
Creates a menu path with the given entries. |
|
MenuPath(String path)
Creates a menu path with entries parsed from the given string. |
Method Summary | |
---|---|
MenuEntry |
getLeaf()
Gets the final element of the menu path. |
String |
getMenuString()
Gets the menu path as a string. |
String |
getMenuString(boolean includeLeaf)
Gets the menu path as a string, with or without the final element. |
Methods inherited from class java.util.ArrayList |
---|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
---|
equals, hashCode, iterator, listIterator, listIterator, subList |
Methods inherited from class java.util.AbstractCollection |
---|
containsAll, removeAll, retainAll, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
Field Detail |
---|
public static final String PATH_SEPARATOR
Constructor Detail |
---|
public MenuPath()
public MenuPath(Collection<? extends MenuEntry> menuEntries)
MenuPath
as
the argument will make a copy.
public MenuPath(String path)
PATH_SEPARATOR
Method Detail |
---|
public MenuEntry getLeaf()
public String getMenuString()
public String getMenuString(boolean includeLeaf)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |