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.
|
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, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
public 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_SEPARATOR
Copyright © 2009–2015 SciJava. All rights reserved.