public class RichMenu extends PartialRichMenu
| Modifier and Type | Class and Description |
|---|---|
static class |
RichMenu.MenuType |
static class |
RichMenu.RootContainer
There are three menu root container values:
NONE - we are not currently in a menu root container
MENU_BAR - we are are currently rooted in a menuBar
MENU_POPUP - we are currently rooted in a menu popup
|
| Modifier and Type | Field and Description |
|---|---|
static String |
AFR_MENU_DEPTH
Expando written for menu item depth level.
|
ACCESS_KEY_KEY, CLIENT_ATTRIBUTES_KEY, CLIENT_COMPONENT_KEY, CLIENT_LISTENERS_KEY, COMPONENT_FAMILY, COMPONENT_TYPE, CONTENT_DELIVERY_IMMEDIATE, CONTENT_DELIVERY_KEY, CONTENT_DELIVERY_LAZY, CUSTOMIZATION_ID_KEY, DETACHABLE_KEY, DISABLED_KEY, ICON_DELIVERY_AUTO, ICON_DELIVERY_FETCH_AND_INLINE, ICON_DELIVERY_INLINE, ICON_DELIVERY_KEY, ICON_DELIVERY_REFERENCE, ICON_KEY, INLINE_STYLE_KEY, PARTIAL_TRIGGERS_KEY, SHORT_DESC_KEY, STYLE_CLASS_KEY, TEXT_KEY, TYPE, UNSECURE_KEY, VISIBLE_KEY| Modifier | Constructor and Description |
|---|---|
|
RichMenu()
Construct an instance of the RichMenu.
|
protected |
RichMenu(String rendererType)
Construct an instance of the RichMenu.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
decreaseMenuDepth(javax.faces.context.FacesContext context)
Decrease the depth of the menu.
|
static int |
getMenuDepth(javax.faces.context.FacesContext context)
Gets the current depth of the menu.
|
static RichMenu.MenuType |
getMenuType(javax.faces.context.FacesContext context)
Returns the type of menu being rendered
|
static void |
increaseMenuDepth(javax.faces.context.FacesContext context)
Increase the depth of the menu.
|
static boolean |
inRootContainer(javax.faces.context.FacesContext context)
Returns true if there is we are currently in a menu root container (menuBar or menu popup)
|
static boolean |
isInMenu(javax.faces.context.FacesContext context)
Returns true if we are currently in a menu
|
static boolean |
isPopupMenu(javax.faces.context.FacesContext context)
Returns true if this is a popup menu
|
static boolean |
isRootContainerMenuBar(javax.faces.context.FacesContext context)
Returns true if menu root container is a menuBar
|
static boolean |
isRootContainerMenuPopup(javax.faces.context.FacesContext context)
Returns true if menu root container is a menu popup (context menu)
|
static void |
setMenuDepth(javax.faces.context.FacesContext context,
int newDepth)
Sets the current depth of the menu.
|
static void |
setRootContainer(javax.faces.context.FacesContext context,
RichMenu.RootContainer rootContainer)
Set the current menu root container.
|
protected void |
setupChildrenVisitingContext(javax.faces.context.FacesContext context) |
protected void |
setupVisitingContext(javax.faces.context.FacesContext context) |
protected void |
tearDownChildrenVisitingContext(javax.faces.context.FacesContext context) |
protected void |
tearDownVisitingContext(javax.faces.context.FacesContext context) |
addClientBehavior, getAccessKey, getBeanType, getClientAttributes, getClientBehaviors, getClientListeners, getContentDelivery, getCustomizationId, getDefaultEventName, getEventNames, getFamily, getIcon, getIconDelivery, getInlineStyle, getPartialTriggers, getShortDesc, getStyleClass, getText, getUnsecure, isClientComponent, isDetachable, isDisabled, isVisible, setAccessKey, setClientAttributes, setClientComponent, setClientListeners, setContentDelivery, setCustomizationId, setDetachable, setDisabled, setIcon, setIconDelivery, setInlineStyle, setPartialTriggers, setShortDesc, setStyleClass, setText, setUnsecure, setVisibleadaptMethodBinding, addAttributeChange, addAttributeChangeListener, addComponentChange, addComponentChange, addComponentChangeFilter, addFacesListener, broadcast, broadcastToMethodBinding, broadcastToMethodExpression, clearCachedClientIds, clearInitialState, createFacesBean, decode, decodeChildren, decodeChildrenImpl, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributeChangeListener, getAttributeChangeListeners, getAttributes, getBooleanProperty, getChildCount, getChildren, getClientId, getComponentChangeFilters, getContainerClientId, getFacesBean, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacetNames, getFacets, getFacetsAndChildren, getId, getIntProperty, getLifecycleRenderer, getListenersForEventClass, getParent, getPassThroughAttributes, getProperty, getPropertyKey, getRenderedFacetsAndChildren, getRenderer, getRendererType, getRendersChildren, getValueBinding, getValueExpression, initialStateMarked, invokeOnChildrenComponents, invokeOnComponent, invokeOnNamingContainerComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeAttributeChangeListener, removeComponentChangeFilter, removeFacesListener, restoreState, satisfiesPartialTrigger, saveState, setAttributeChangeListener, setAttributeChangeListener, setBooleanProperty, setId, setIntProperty, setParent, setProperty, setRendered, setRendererType, setTransient, setupFlattenedChildrenContext, setupFlattenedContext, setValueBinding, setValueExpression, subscribeToEvent, tearDownFlattenedChildrenContext, tearDownFlattenedContext, toString, unsubscribeFromEvent, updateChildren, updateChildrenImpl, validateChildren, validateChildrenImpladdPartialTarget, broadcastInContext, clearCachedClientIds, defaultGetRenderedFacetsAndChildren, encodeFlattenedChild, encodeFlattenedChildren, getLogicalParent, getLogicalParent, getStateHelper, getStateHelper, isVisitable, partialEncodeVisit, processFlattenedChildren, processFlattenedChildren, processFlattenedChildren, processFlattenedChildren, setPartialTarget, setupChildrenEncodingContext, setupEncodingContext, setUpEncodingContext, tearDownChildrenEncodingContext, tearDownEncodingContext, visitAllChildren, visitChildren, visitChildren, visitTree, visitTreeencodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getTransientStateHelper, getTransientStateHelper, isCompositeComponent, isInView, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInViewpublic static final String AFR_MENU_DEPTH
public RichMenu()
protected RichMenu(String rendererType)
rendererType - the renderer type.protected void setupVisitingContext(javax.faces.context.FacesContext context)
setupVisitingContext in class org.apache.myfaces.trinidad.component.UIXComponentprotected void tearDownVisitingContext(javax.faces.context.FacesContext context)
tearDownVisitingContext in class org.apache.myfaces.trinidad.component.UIXComponentprotected void setupChildrenVisitingContext(javax.faces.context.FacesContext context)
setupChildrenVisitingContext in class org.apache.myfaces.trinidad.component.UIXComponentprotected void tearDownChildrenVisitingContext(javax.faces.context.FacesContext context)
tearDownChildrenVisitingContext in class org.apache.myfaces.trinidad.component.UIXComponentpublic static boolean isPopupMenu(javax.faces.context.FacesContext context)
context - the FacesContextpublic static boolean isInMenu(javax.faces.context.FacesContext context)
context - The FacesContextpublic static RichMenu.MenuType getMenuType(javax.faces.context.FacesContext context)
context - the FacesContextpublic static void increaseMenuDepth(javax.faces.context.FacesContext context)
context - The FacesContextpublic static void decreaseMenuDepth(javax.faces.context.FacesContext context)
context - The FacesContextpublic static int getMenuDepth(javax.faces.context.FacesContext context)
context - The FacesContextpublic static void setMenuDepth(javax.faces.context.FacesContext context,
int newDepth)
context - the FacesContextnewDepth - the depth to set the menupublic static boolean isRootContainerMenuBar(javax.faces.context.FacesContext context)
context - The FacesContextpublic static boolean isRootContainerMenuPopup(javax.faces.context.FacesContext context)
context - The FacesContextpublic static void setRootContainer(javax.faces.context.FacesContext context,
RichMenu.RootContainer rootContainer)
context - The FacesContextrootContainer - new root containerpublic static boolean inRootContainer(javax.faces.context.FacesContext context)
context - The FacesContext