org.primefaces.component.menu
Class AbstractMenu

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by 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
Direct Known Subclasses:
BreadCrumb, ContextMenu, Dock, MegaMenu, Menu, Menubar, MenuButton, PanelMenu, SlideMenu, Stack, TabMenu, TieredMenu

public abstract class AbstractMenu
extends javax.faces.component.UIComponentBase


Nested Class Summary
protected static class AbstractMenu.PropertyKeys
           
 
Field Summary
static String LIST_CLASS
           
static String MENUITEM_CLASS
           
static String MENUITEM_ICON_CLASS
           
static String MENUITEM_LINK_CLASS
           
static String MENUITEM_TEXT_CLASS
           
static String OPTIONS_CLASS
           
static String SEPARATOR_CLASS
           
static String SUBMENU_DOWN_ICON_CLASS
           
static String SUBMENU_RIGHT_ICON_CLASS
           
static String TIERED_CHILD_SUBMENU_CLASS
           
static String TIERED_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
 
Constructor Summary
AbstractMenu()
           
 
Method Summary
 void broadcast(javax.faces.event.FacesEvent event)
           
 List getElements()
           
 int getElementsCount()
           
abstract  MenuModel getModel()
           
 String getTabindex()
           
 boolean isDynamic()
           
 void setTabindex(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, getFamily, 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
 

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

SEPARATOR_CLASS

public static final String SEPARATOR_CLASS
See Also:
Constant Field Values

OPTIONS_CLASS

public static final String OPTIONS_CLASS
See Also:
Constant Field Values
Constructor Detail

AbstractMenu

public AbstractMenu()
Method Detail

getTabindex

public String getTabindex()

setTabindex

public void setTabindex(String tabindex)

getElements

public List getElements()

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:
broadcast in class javax.faces.component.UIComponentBase
Throws:
javax.faces.event.AbortProcessingException


Copyright © 2013. All rights reserved.