public abstract class AbstractMenuItem extends AbstractActionComponent
The <r:menuItem> component represents a single item in a menu control. The <r:menuItem> component can be also be used as a seperate component without a parent menu component, such as on a toolbar.
Modifier and Type | Class and Description |
---|---|
static class |
AbstractMenuItem.Facets |
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_TYPE |
static String |
CSS_ROOT_DEFAULT |
Constructor and Description |
---|
AbstractMenuItem() |
Modifier and Type | Method and Description |
---|---|
Object |
getCssRoot() |
abstract String |
getIcon()
The icon to be displayed with the menu item
|
abstract String |
getIconDisabled()
The icon to be displayed with the menu item when it is disabled
|
abstract Object |
getLabel()
The text label for the menu item.
|
abstract Mode |
getMode()
Determines how the menu item requests are submitted.
|
abstract Object |
getValue() |
abstract boolean |
isDisabled()
Disables the menu component, so it will not be clickable
|
isBypassUpdates, queueEvent, setBypassUpdates
addActionListener, broadcast, getAction, getActionExpression, getActionListener, getActionListeners, getFamily, isImmediate, removeActionListener, setAction, setActionExpression, setActionListener, setImmediate, setValue
addClientBehavior, addFacesListener, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
public static final String COMPONENT_TYPE
public static final String CSS_ROOT_DEFAULT
public abstract Mode getMode()
Determines how the menu item requests are submitted. Valid values:
public abstract Object getLabel()
The text label for the menu item. Alternatively, use the label facet to define content for the label
Default is server
public abstract String getIcon()
public abstract String getIconDisabled()
public abstract boolean isDisabled()
public abstract Object getValue()
getValue
in class javax.faces.component.UICommand
public Object getCssRoot()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.