Package org.scijava
Class AbstractUIDetails
- java.lang.Object
-
- org.scijava.AbstractBasicDetails
-
- org.scijava.AbstractUIDetails
-
- All Implemented Interfaces:
Comparable<Prioritized>,BasicDetails,Named,Prioritized,UIDetails
- Direct Known Subclasses:
AbstractModuleInfo,PluginInfo
public abstract class AbstractUIDetails extends AbstractBasicDetails implements UIDetails
Abstract superclass ofUIDetailsimplementations.- Author:
- Curtis Rueden
-
-
Field Summary
-
Fields inherited from interface org.scijava.UIDetails
APPLICATION_MENU_ROOT
-
-
Constructor Summary
Constructors Constructor Description AbstractUIDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.doublegetPriority()Gets the sort priority of the object.StringgetSelectionGroup()Gets the name of the selection group to which the object belongs.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.voidsetPriority(double priority)Sets the sort priority of the object.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.StringtoString()-
Methods inherited from class org.scijava.AbstractBasicDetails
get, getDescription, getLabel, getName, is, set, setDescription, setLabel, setName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.scijava.BasicDetails
get, getDescription, getLabel, is, set, setDescription, setLabel
-
-
-
-
Method Detail
-
toString
public String toString()
- Overrides:
toStringin classAbstractBasicDetails
-
getMenuPath
public MenuPath getMenuPath()
Description copied from interface:UIDetailsGets the path to the object's suggested position in the menu structure.- Specified by:
getMenuPathin interfaceUIDetails
-
getMenuRoot
public String getMenuRoot()
Description copied from interface:UIDetailsGets the name of the menu structure to which the object belongs.- Specified by:
getMenuRootin interfaceUIDetails
-
getIconPath
public String getIconPath()
Description copied from interface:UIDetailsGets the resource path to an icon representing the object.- Specified by:
getIconPathin interfaceUIDetails
-
isEnabled
public boolean isEnabled()
Description copied from interface:UIDetailsGets whether the object should be enabled in the user interface.
-
isVisible
public boolean isVisible()
Description copied from interface:UIDetailsGets whether the object should be visible in the user interface.
-
isSelectable
public boolean isSelectable()
Description copied from interface:UIDetailsGets whether the object can be selected (e.g., checking and unchecking its menu item) in the user interface.- Specified by:
isSelectablein interfaceUIDetails
-
getSelectionGroup
public String getSelectionGroup()
Description copied from interface:UIDetailsGets 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.- Specified by:
getSelectionGroupin interfaceUIDetails
-
isSelected
public boolean isSelected()
Description copied from interface:UIDetailsGets whether the object is selected (e.g., its menu item is checked) in the user interface.- Specified by:
isSelectedin interfaceUIDetails
-
setMenuPath
public void setMenuPath(MenuPath menuPath)
Description copied from interface:UIDetailsSets the path to the object's suggested position in the menu structure.- Specified by:
setMenuPathin interfaceUIDetails
-
setMenuRoot
public void setMenuRoot(String menuRoot)
Description copied from interface:UIDetailsSets the name of the menu structure to which the object belongs.- Specified by:
setMenuRootin interfaceUIDetails
-
setIconPath
public void setIconPath(String iconPath)
Description copied from interface:UIDetailsSets the resource path to an icon representing the object.- Specified by:
setIconPathin interfaceUIDetails
-
setEnabled
public void setEnabled(boolean enabled)
Description copied from interface:UIDetailsSets whether the object should be enabled in the user interface.- Specified by:
setEnabledin interfaceUIDetails
-
setVisible
public void setVisible(boolean visible)
Description copied from interface:UIDetailsSets whether the object should be visible in the user interface.- Specified by:
setVisiblein interfaceUIDetails
-
setSelectable
public void setSelectable(boolean selectable)
Description copied from interface:UIDetailsSets whether the object can be selected (e.g., checking and unchecking its menu item) in the user interface.- Specified by:
setSelectablein interfaceUIDetails
-
setSelectionGroup
public void setSelectionGroup(String selectionGroup)
Description copied from interface:UIDetailsSets 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.- Specified by:
setSelectionGroupin interfaceUIDetails
-
setSelected
public void setSelected(boolean selected)
Description copied from interface:UIDetailsSets whether the object is selected (e.g., its menu item is checked) in the user interface.- Specified by:
setSelectedin interfaceUIDetails
-
getPriority
public double getPriority()
Description copied from interface:PrioritizedGets the sort priority of the object.- Specified by:
getPriorityin interfacePrioritized- See Also:
Priority
-
setPriority
public void setPriority(double priority)
Description copied from interface:PrioritizedSets the sort priority of the object.- Specified by:
setPriorityin interfacePrioritized- See Also:
Priority
-
-