public abstract class MenuBarBase extends AbstractMenu implements IMenuBar
For more information, see the MenuBar Wiki Documentation.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MenuBarBase.PropertyKeys |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMPONENT_TYPE |
static java.lang.String |
RENDERER_TYPE |
| Constructor and Description |
|---|
MenuBarBase() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDirection()
Return the value of the
direction property. |
java.lang.String |
getEffect()
Return the value of the
effect property. |
int |
getEffectDuration()
Return the value of the
effectDuration property. |
java.lang.String |
getFamily() |
java.lang.Integer |
getForceUpdateCounter()
Return the value of the
forceUpdateCounter property. |
int |
getHideDelay()
Return the value of the
hideDelay property. |
MenuModel |
getModel()
Return the value of the
model property. |
int |
getShowDelay()
Return the value of the
showDelay property. |
java.lang.String |
getStyle()
Return the value of the
style property. |
java.lang.String |
getStyleClass()
Return the value of the
styleClass property. |
java.lang.String |
getSubmenuLabels()
Return the value of the
submenuLabels property. |
boolean |
isAutoSubmenuDisplay()
Return the value of the
autoSubmenuDisplay property. |
java.lang.Boolean |
isForceMenuUpdate()
Return the value of the
forceMenuUpdate property. |
protected boolean |
isPropertySet(java.lang.String finder) |
void |
setAutoSubmenuDisplay(boolean autoSubmenuDisplay)
Set the value of the
autoSubmenuDisplay property. |
void |
setDirection(java.lang.String direction)
Set the value of the
direction property. |
void |
setEffect(java.lang.String effect)
Set the value of the
effect property. |
void |
setEffectDuration(int effectDuration)
Set the value of the
effectDuration property. |
void |
setForceMenuUpdate(java.lang.Boolean forceMenuUpdate)
Set the value of the
forceMenuUpdate property. |
void |
setForceUpdateCounter(java.lang.Integer forceUpdateCounter)
Set the value of the
forceUpdateCounter property. |
void |
setHideDelay(int hideDelay)
Set the value of the
hideDelay property. |
void |
setModel(MenuModel model)
Set the value of the
model property. |
void |
setShowDelay(int showDelay)
Set the value of the
showDelay property. |
void |
setStyle(java.lang.String style)
Set the value of the
style property. |
void |
setStyleClass(java.lang.String styleClass)
Set the value of the
styleClass property. |
void |
setSubmenuLabels(java.lang.String submenuLabels)
Set the value of the
submenuLabels property. |
void |
setValueExpression(java.lang.String name,
javax.el.ValueExpression binding) |
buildMenuFromModel, isBuiltFromModel, isDynamic, markAsBuiltFromModel, processDecodes, setTransientRecursive, shouldBuildFromModeladdClientBehavior, addFacesListener, broadcast, 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, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEventencodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, visitTreepublic static final java.lang.String COMPONENT_TYPE
public static final java.lang.String RENDERER_TYPE
public java.lang.String getFamily()
getFamily in class javax.faces.component.UIComponentpublic void setAutoSubmenuDisplay(boolean autoSubmenuDisplay)
Set the value of the autoSubmenuDisplay property.
Contents: When set to true, submenus are displayed on mouseover of a menuitem.
setAutoSubmenuDisplay in interface IMenuBarpublic boolean isAutoSubmenuDisplay()
Return the value of the autoSubmenuDisplay property.
Contents: When set to true, submenus are displayed on mouseover of a menuitem.
isAutoSubmenuDisplay in interface IMenuBarpublic void setDirection(java.lang.String direction)
Set the value of the direction property.
Contents: Forces the direction in which the submenus will be displayed, regardless of the position of the menu in the viewport. Possible values are combinations of "up", "down", and "middle" with "left", "right", and "center", separated by a space. The value "auto" can also be used in place of any of those values (e.g. "up", "up right", "left", "left auto", "center"). Note that the "center" value only applies to first-level submenus, while the "middle" value only applies to deeper-level submenus (i.e. all but first-level submenus).
setDirection in interface IMenuBarpublic java.lang.String getDirection()
Return the value of the direction property.
Contents: Forces the direction in which the submenus will be displayed, regardless of the position of the menu in the viewport. Possible values are combinations of "up", "down", and "middle" with "left", "right", and "center", separated by a space. The value "auto" can also be used in place of any of those values (e.g. "up", "up right", "left", "left auto", "center"). Note that the "center" value only applies to first-level submenus, while the "middle" value only applies to deeper-level submenus (i.e. all but first-level submenus). Default = 'auto'.
getDirection in interface IMenuBarpublic void setEffect(java.lang.String effect)
Set the value of the effect property.
Contents: Sets the effect for the menu display, default value is FADE. Possible values are "FADE", "SLIDE", "NONE". Use "NONE" to disable animation at all.
public java.lang.String getEffect()
Return the value of the effect property.
Contents: Sets the effect for the menu display, default value is FADE. Possible values are "FADE", "SLIDE", "NONE". Use "NONE" to disable animation at all. Default = 'fade'.
public void setEffectDuration(int effectDuration)
Set the value of the effectDuration property.
Contents: Sets the effect duration in milliseconds.
setEffectDuration in interface IMenuBarpublic int getEffectDuration()
Return the value of the effectDuration property.
Contents: Sets the effect duration in milliseconds. Default = '400'.
getEffectDuration in interface IMenuBarpublic void setForceMenuUpdate(java.lang.Boolean forceMenuUpdate)
Set the value of the forceMenuUpdate property.
Contents: Set to true when the entire menu needs to be updated in the client, such as when an individual menu item changes label or styling, and the entire menu needs to be reinitialized in the client in order to get all the styling and behaviour re-applied to the new HTML nodes. The value of this attribute will be automatically set to false by the component after consuming it (if applicable).
setForceMenuUpdate in interface IMenuBarpublic java.lang.Boolean isForceMenuUpdate()
Return the value of the forceMenuUpdate property.
Contents: Set to true when the entire menu needs to be updated in the client, such as when an individual menu item changes label or styling, and the entire menu needs to be reinitialized in the client in order to get all the styling and behaviour re-applied to the new HTML nodes. The value of this attribute will be automatically set to false by the component after consuming it (if applicable). Default = 'false'.
isForceMenuUpdate in interface IMenuBarpublic void setHideDelay(int hideDelay)
Set the value of the hideDelay property.
Contents: determines how many millisenconds to delay before hiding the submenu in a fly-out menu
setHideDelay in interface IMenuBarpublic int getHideDelay()
Return the value of the hideDelay property.
Contents: determines how many millisenconds to delay before hiding the submenu in a fly-out menu Default = '400'.
getHideDelay in interface IMenuBarpublic void setModel(MenuModel model)
Set the value of the model property.
Contents: MenuModel instance to create menus programmatically. For the menuitem and submenu components, use explicit ids, and avoid long processing in the getter method for this property, as it will be called multiple times, in every lifecycle. If using MyFaces, see wiki page for some known issues.
public MenuModel getModel()
Return the value of the model property.
Contents: MenuModel instance to create menus programmatically. For the menuitem and submenu components, use explicit ids, and avoid long processing in the getter method for this property, as it will be called multiple times, in every lifecycle. If using MyFaces, see wiki page for some known issues.
getModel in interface IMenuBargetModel in class AbstractMenupublic void setShowDelay(int showDelay)
Set the value of the showDelay property.
Contents: determines how many milliseconds to delay before showing the submenu in a fly-out menu
setShowDelay in interface IMenuBarpublic int getShowDelay()
Return the value of the showDelay property.
Contents: determines how many milliseconds to delay before showing the submenu in a fly-out menu Default = '400'.
getShowDelay in interface IMenuBarpublic void setStyle(java.lang.String style)
Set the value of the style property.
Contents: Style of the main container element.
public java.lang.String getStyle()
Return the value of the style property.
Contents: Style of the main container element.
public void setStyleClass(java.lang.String styleClass)
Set the value of the styleClass property.
Contents: Style class of the main container element.
setStyleClass in interface IMenuBarpublic java.lang.String getStyleClass()
Return the value of the styleClass property.
Contents: Style class of the main container element.
getStyleClass in interface IMenuBarpublic void setForceUpdateCounter(java.lang.Integer forceUpdateCounter)
Set the value of the forceUpdateCounter property.
setForceUpdateCounter in interface IMenuBarpublic java.lang.Integer getForceUpdateCounter()
Return the value of the forceUpdateCounter property.
getForceUpdateCounter in interface IMenuBarpublic void setSubmenuLabels(java.lang.String submenuLabels)
Set the value of the submenuLabels property.
setSubmenuLabels in interface IMenuBarpublic java.lang.String getSubmenuLabels()
Return the value of the submenuLabels property.
getSubmenuLabels in interface IMenuBarprotected boolean isPropertySet(java.lang.String finder)
public void setValueExpression(java.lang.String name,
javax.el.ValueExpression binding)
setValueExpression in class javax.faces.component.UIComponentCopyright 2017 ICEsoft Technologies Canada Corp., All Rights Reserved.