Interface MenuItemSelectable
-
- All Superinterfaces:
MenuItem
,Serializable
,WComponent
,WebComponent
public interface MenuItemSelectable extends MenuItem
Indicates a menu item can be selected.- Since:
- 1.0.2
- Author:
- Jonathan Austin
-
-
Field Summary
-
Fields inherited from interface com.github.bordertech.wcomponents.WComponent
DEFAULT_APPLICATION_ID, DEFAULT_INTERNAL_ID, DEFAULT_NO_ID, ID_CONTEXT_SEPERATOR, ID_FRAMEWORK_ASSIGNED_SEPERATOR, ID_VALIDATION_PATTERN
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Boolean
getSelectability()
Symmetric accessor which should not generally be used.boolean
isSelectAllowed()
boolean
isSelected()
void
setSelectability(Boolean selectability)
-
Methods inherited from interface com.github.bordertech.wcomponents.WComponent
addHtmlClass, addHtmlClass, forward, getAccessibleText, getAttribute, getBaseUrl, getEnvironment, getHeaders, getHtmlClass, getHtmlClasses, getId, getIdName, getInternalId, getLabel, getName, getParent, getTabIndex, getTag, getToolTip, handleRequest, hasTabIndex, invokeLater, isDefaultState, isHidden, isInitialised, isLocked, isTracking, isTrackingEnabled, isValidate, isVisible, paint, preparePaint, removeAttribute, removeHtmlClass, removeHtmlClass, reset, serviceRequest, setAccessibleText, setAttribute, setEnvironment, setFocussed, setHtmlClass, setHtmlClass, setIdName, setInitialised, setLocked, setTag, setToolTip, setTrackingEnabled, setValidate, setVisible, showErrorIndicators, showWarningIndicators, tidyUpUIContextForTree, validate
-
-
-
-
Method Detail
-
getSelectability
Boolean getSelectability()
Symmetric accessor which should not generally be used. If you need to know if an instance of MenuItemSelectable is selectable then it is better to useisSelectAllowed()
.- Returns:
- true if this item is selectable, false if not, or null if default to its container.
-
setSelectability
void setSelectability(Boolean selectability)
- Parameters:
selectability
- true if this item is selectable, false if not, or null to default to the container.
-
isSelected
boolean isSelected()
- Returns:
- true if selected, otherwise false
-
isSelectAllowed
boolean isSelectAllowed()
- Returns:
true
if the menu item may be selected.
-
-