public class MenuPath extends ArrayList<MenuEntry>
UIDetails.| Modifier and Type | Field and Description |
|---|---|
static String |
PATH_SEPARATOR
The separator between elements of a menu path string.
|
modCount| Constructor and Description |
|---|
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.
|
MenuPath(String path,
String separator)
Creates a menu path with entries parsed from the given string, splitting on
the specified separator.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic static final String PATH_SEPARATOR
public MenuPath()
public MenuPath(Collection<? extends MenuEntry> menuEntries)
MenuPath as
the argument will make a copy.public MenuPath(String path)
PATH_SEPARATORCopyright © 2009–2016 SciJava. All rights reserved.