Package org.primefaces.component.menu
Class AbstractMenu
- java.lang.Object
-
- javax.faces.component.UIComponent
-
- javax.faces.component.UIComponentBase
-
- javax.faces.component.UIPanel
-
- org.primefaces.component.menu.AbstractMenu
-
- All Implemented Interfaces:
EventListener,javax.faces.component.PartialStateHolder,javax.faces.component.StateHolder,javax.faces.component.TransientStateHolder,javax.faces.event.ComponentSystemEventListener,javax.faces.event.FacesListener,javax.faces.event.SystemEventListenerHolder,MenuItemAware
- Direct Known Subclasses:
BreadCrumbBase,ContextMenuBase,DockBase,MegaMenuBase,MenubarBase,MenuBase,MenuButtonBase,PanelMenuBase,SlideMenuBase,StackBase,StepsBase,TabMenuBase,TieredMenuBase
public abstract class AbstractMenu extends javax.faces.component.UIPanel implements MenuItemAware
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractMenu.PropertyKeys
-
Field Summary
Fields Modifier and Type Field Description static StringLIST_CLASSstatic StringMENUITEM_CLASSstatic StringMENUITEM_ICON_CLASSstatic StringMENUITEM_LINK_CLASSstatic StringMENUITEM_TEXT_CLASSstatic StringOPTIONS_CLASSstatic StringSUBMENU_DOWN_ICON_CLASSstatic StringSUBMENU_LINK_CLASSstatic StringSUBMENU_RIGHT_ICON_CLASSstatic StringTIERED_CHILD_SUBMENU_CLASSstatic StringTIERED_SUBMENU_CLASS-
Fields inherited from class javax.faces.component.UIComponent
ATTRS_WITH_DECLARED_DEFAULT_VALUES, BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, HONOR_CURRENT_COMPONENT_ATTRIBUTES_PARAM_NAME, VIEW_LOCATION_KEY
-
Fields inherited from interface org.primefaces.component.api.MenuItemAware
PARAMS_ACTION_EVENT, PARAMS_EMPTY, PARAMS_MENU_ACTION_EVENT
-
-
Constructor Summary
Constructors Constructor Description AbstractMenu()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidbroadcast(javax.faces.event.FacesEvent event)ListgetElements()intgetElementsCount()abstract MenuModelgetModel()StringgetTabindex()booleanisDynamic()voidsetTabindex(String tabindex)-
Methods inherited from class javax.faces.component.UIComponentBase
addClientBehavior, addFacesListener, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getDefaultEventName, getEventNames, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEvent
-
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.primefaces.component.api.MenuItemAware
broadcastMenuActionEvent
-
-
-
-
Field Detail
-
LIST_CLASS
public static final String LIST_CLASS
- See Also:
- Constant Field Values
-
MENUITEM_CLASS
public static final String MENUITEM_CLASS
- See Also:
- Constant Field Values
-
MENUITEM_LINK_CLASS
public static final String MENUITEM_LINK_CLASS
- See Also:
- Constant Field Values
-
MENUITEM_TEXT_CLASS
public static final String MENUITEM_TEXT_CLASS
- See Also:
- Constant Field Values
-
MENUITEM_ICON_CLASS
public static final String MENUITEM_ICON_CLASS
- See Also:
- Constant Field Values
-
TIERED_SUBMENU_CLASS
public static final String TIERED_SUBMENU_CLASS
- See Also:
- Constant Field Values
-
TIERED_CHILD_SUBMENU_CLASS
public static final String TIERED_CHILD_SUBMENU_CLASS
- See Also:
- Constant Field Values
-
SUBMENU_RIGHT_ICON_CLASS
public static final String SUBMENU_RIGHT_ICON_CLASS
- See Also:
- Constant Field Values
-
SUBMENU_DOWN_ICON_CLASS
public static final String SUBMENU_DOWN_ICON_CLASS
- See Also:
- Constant Field Values
-
SUBMENU_LINK_CLASS
public static final String SUBMENU_LINK_CLASS
- See Also:
- Constant Field Values
-
OPTIONS_CLASS
public static final String OPTIONS_CLASS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getTabindex
public String getTabindex()
-
setTabindex
public void setTabindex(String tabindex)
-
getElements
public List getElements()
- Specified by:
getElementsin interfaceMenuItemAware
-
getElementsCount
public int getElementsCount()
-
getModel
public abstract MenuModel getModel()
-
isDynamic
public boolean isDynamic()
-
broadcast
public void broadcast(javax.faces.event.FacesEvent event) throws javax.faces.event.AbortProcessingException- Overrides:
broadcastin classjavax.faces.component.UIComponentBase- Throws:
javax.faces.event.AbortProcessingException
-
-