Package org.scijava
Interface UIDetails
-
- All Superinterfaces:
BasicDetails,Comparable<Prioritized>,Named,Prioritized
- All Known Subinterfaces:
ModuleInfo,MutableModuleInfo
- All Known Implementing Classes:
AbstractModuleInfo,AbstractUIDetails,CommandInfo,DefaultMutableModuleInfo,DynamicCommandInfo,PluginInfo,ScriptInfo
public interface UIDetails extends BasicDetails, Prioritized
An interface defining details useful for generating relevant user interface elements.- Author:
- Curtis Rueden
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPPLICATION_MENU_ROOTThe default, application-level menu root.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default intcompareTo(Prioritized that)StringgetIconPath()Gets the resource path to an icon representing the object.MenuPathgetMenuPath()Gets the path to the object's suggested position in the menu structure.StringgetMenuRoot()Gets the name of the menu structure to which the object belongs.StringgetSelectionGroup()Gets the name of the selection group to which the object belongs.default StringgetTitle()Gets an appropriate title for the object, for use in a user interface.booleanisEnabled()Gets whether the object should be enabled in the user interface.booleanisSelectable()Gets whether the object can be selected (e.g., checking and unchecking its menu item) in the user interface.booleanisSelected()Gets whether the object is selected (e.g., its menu item is checked) in the user interface.booleanisVisible()Gets whether the object should be visible in the user interface.voidsetEnabled(boolean enabled)Sets whether the object should be enabled in the user interface.voidsetIconPath(String iconPath)Sets the resource path to an icon representing the object.voidsetMenuPath(MenuPath menuPath)Sets the path to the object's suggested position in the menu structure.voidsetMenuRoot(String menuRoot)Sets the name of the menu structure to which the object belongs.voidsetSelectable(boolean selectable)Sets whether the object can be selected (e.g., checking and unchecking its menu item) in the user interface.voidsetSelected(boolean selected)Sets whether the object is selected (e.g., its menu item is checked) in the user interface.voidsetSelectionGroup(String selectionGroup)Sets the name of the selection group to which the object belongs.voidsetVisible(boolean visible)Sets whether the object should be visible in the user interface.-
Methods inherited from interface org.scijava.BasicDetails
get, getDescription, getLabel, is, set, setDescription, setLabel
-
Methods inherited from interface org.scijava.Prioritized
getPriority, setPriority
-
-
-
-
Field Detail
-
APPLICATION_MENU_ROOT
static final String APPLICATION_MENU_ROOT
The default, application-level menu root.- See Also:
getMenuRoot(), Constant Field Values
-
-
Method Detail
-
getTitle
default String getTitle()
Gets an appropriate title for the object, for use in a user interface. The result is prioritized as follows:- Item label
- Menu path's leaf entry name
- Item name
- Item's class name, without package prefix
-
getMenuPath
MenuPath getMenuPath()
Gets the path to the object's suggested position in the menu structure.
-
getMenuRoot
String getMenuRoot()
Gets the name of the menu structure to which the object belongs.
-
getIconPath
String getIconPath()
Gets the resource path to an icon representing the object.
-
isSelectable
boolean isSelectable()
Gets whether the object can be selected (e.g., checking and unchecking its menu item) in the user interface.
-
getSelectionGroup
String getSelectionGroup()
Gets the name of the selection group to which the object belongs. Only one object in a particular selection group can be selected at a time.
-
isSelected
boolean isSelected()
Gets whether the object is selected (e.g., its menu item is checked) in the user interface.
-
isEnabled
boolean isEnabled()
Gets whether the object should be enabled in the user interface.
-
isVisible
boolean isVisible()
Gets whether the object should be visible in the user interface.
-
setMenuPath
void setMenuPath(MenuPath menuPath)
Sets the path to the object's suggested position in the menu structure.
-
setMenuRoot
void setMenuRoot(String menuRoot)
Sets the name of the menu structure to which the object belongs.
-
setIconPath
void setIconPath(String iconPath)
Sets the resource path to an icon representing the object.
-
setEnabled
void setEnabled(boolean enabled)
Sets whether the object should be enabled in the user interface.
-
setVisible
void setVisible(boolean visible)
Sets whether the object should be visible in the user interface.
-
setSelectable
void setSelectable(boolean selectable)
Sets whether the object can be selected (e.g., checking and unchecking its menu item) in the user interface.
-
setSelectionGroup
void setSelectionGroup(String selectionGroup)
Sets the name of the selection group to which the object belongs. Only one object in a particular selection group can be selected at a time.
-
setSelected
void setSelected(boolean selected)
Sets whether the object is selected (e.g., its menu item is checked) in the user interface.
-
compareTo
default int compareTo(Prioritized that)
- Specified by:
compareToin interfaceComparable<Prioritized>- Specified by:
compareToin interfacePrioritized
-
-