public abstract class MenuBase extends AbstractMenu implements IMenu
For more information, see the Menu Wiki Documentation.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MenuBase.PropertyKeys |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMPONENT_TYPE |
static java.lang.String |
RENDERER_TYPE |
| Constructor and Description |
|---|
MenuBase() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAt()
Return the value of the
at property. |
java.lang.String |
getBackLabel()
Return the value of the
backLabel 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. |
int |
getMaxHeight()
Return the value of the
maxHeight property. |
MenuModel |
getModel()
Return the value of the
model property. |
java.lang.String |
getMy()
Return the value of the
my property. |
java.lang.String |
getPosition()
Return the value of the
position 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. |
java.lang.String |
getTrigger()
Return the value of the
trigger property. |
java.lang.String |
getTriggerEvent()
Return the value of the
triggerEvent property. |
java.lang.String |
getType()
Return the value of the
type property. |
int |
getZindex()
Return the value of the
zindex property. |
java.lang.Boolean |
isForceMenuUpdate()
Return the value of the
forceMenuUpdate property. |
protected boolean |
isPropertySet(java.lang.String finder) |
boolean |
isTiered()
Return the value of the
tiered property. |
void |
setAt(java.lang.String at)
Set the value of the
at property. |
void |
setBackLabel(java.lang.String backLabel)
Set the value of the
backLabel 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 |
setMaxHeight(int maxHeight)
Set the value of the
maxHeight property. |
void |
setModel(MenuModel model)
Set the value of the
model property. |
void |
setMy(java.lang.String my)
Set the value of the
my property. |
void |
setPosition(java.lang.String position)
Set the value of the
position 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 |
setTiered(boolean tiered)
Set the value of the
tiered property. |
void |
setTrigger(java.lang.String trigger)
Set the value of the
trigger property. |
void |
setTriggerEvent(java.lang.String triggerEvent)
Set the value of the
triggerEvent property. |
void |
setType(java.lang.String type)
Set the value of the
type property. |
void |
setValueExpression(java.lang.String name,
javax.el.ValueExpression binding) |
void |
setZindex(int zindex)
Set the value of the
zindex property. |
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 setAt(java.lang.String at)
Set the value of the at property.
Contents: When position is dynamic, this attribute specifies the corner of trigger element to align with the menu. The format is "<left|right> <top|bottom>" (examples: "left top", "right bottom").
public java.lang.String getAt()
Return the value of the at property.
Contents: When position is dynamic, this attribute specifies the corner of trigger element to align with the menu. The format is "<left|right> <top|bottom>" (examples: "left top", "right bottom"). Default = 'left bottom'.
public void setBackLabel(java.lang.String backLabel)
Set the value of the backLabel property.
Contents: Label for the 'back' link (only applies to sliding menus).
setBackLabel in interface IMenupublic java.lang.String getBackLabel()
Return the value of the backLabel property.
Contents: Label for the 'back' link (only applies to sliding menus). Default = 'Back'.
getBackLabel in interface IMenupublic 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 IMenupublic int getEffectDuration()
Return the value of the effectDuration property.
Contents: Sets the effect duration in milliseconds. Default = '400'.
getEffectDuration in interface IMenupublic 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 IMenupublic 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 IMenupublic 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 IMenupublic 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 IMenupublic void setMaxHeight(int maxHeight)
Set the value of the maxHeight property.
Contents: Maximum height (in pixels) for the menu (only applies to sliding menus).
setMaxHeight in interface IMenupublic int getMaxHeight()
Return the value of the maxHeight property.
Contents: Maximum height (in pixels) for the menu (only applies to sliding menus). Default = '200'.
getMaxHeight in interface IMenupublic void setModel(MenuModel model)
Set the value of the model property.
Contents: org.icefaces.ace.model.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: org.icefaces.ace.model.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 IMenugetModel in class AbstractMenupublic void setMy(java.lang.String my)
Set the value of the my property.
Contents: When position is dynamic, this attribute specifies the corner of the menu to align with the trigger element. The format is "<left|right> <top|bottom>" (examples: "left top", "right bottom").
public java.lang.String getMy()
Return the value of the my property.
Contents: When position is dynamic, this attribute specifies the corner of the menu to align with the trigger element. The format is "<left|right> <top|bottom>" (examples: "left top", "right bottom"). Default = 'left top'.
public void setPosition(java.lang.String position)
Set the value of the position property.
Contents: Sets the way the menu is placed on the page. When "static", the menu is displayed in the normal flow. When set to "dynamic", the menu is only displayed near the trigger component when the triggerEvent occurs. For the latter case, it is required to specify a trigger component.
setPosition in interface IMenupublic java.lang.String getPosition()
Return the value of the position property.
Contents: Sets the way the menu is placed on the page. When "static", the menu is displayed in the normal flow. When set to "dynamic", the menu is only displayed near the trigger component when the triggerEvent occurs. For the latter case, it is required to specify a trigger component. Default = 'static'.
getPosition in interface IMenupublic 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 IMenupublic 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 IMenupublic 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 IMenupublic java.lang.String getStyleClass()
Return the value of the styleClass property.
Contents: Style class of the main container element.
getStyleClass in interface IMenupublic void setTiered(boolean tiered)
Set the value of the tiered property.
Contents: Sets the tiered mode, when set to true menu will be rendered in different tiers.
public boolean isTiered()
Return the value of the tiered property.
Contents: Sets the tiered mode, when set to true menu will be rendered in different tiers.
public void setTrigger(java.lang.String trigger)
Set the value of the trigger property.
Contents: Server-side id of the component that will trigger the dynamic menu when the triggerEvent occurs. Used when position is dynamic. It is also possible to specify a client-side id of a plain HTML element on the page.
setTrigger in interface IMenupublic java.lang.String getTrigger()
Return the value of the trigger property.
Contents: Server-side id of the component that will trigger the dynamic menu when the triggerEvent occurs. Used when position is dynamic. It is also possible to specify a client-side id of a plain HTML element on the page.
getTrigger in interface IMenupublic void setTriggerEvent(java.lang.String triggerEvent)
Set the value of the triggerEvent property.
Contents: Event that will trigger the menu to show, when position is dynamic. The possible values are "click", "mouseenter", "dblclick", and "rtclick".
setTriggerEvent in interface IMenupublic java.lang.String getTriggerEvent()
Return the value of the triggerEvent property.
Contents: Event that will trigger the menu to show, when position is dynamic. The possible values are "click", "mouseenter", "dblclick", and "rtclick". Default = 'click'.
getTriggerEvent in interface IMenupublic void setType(java.lang.String type)
Set the value of the type property.
Contents: Type of menu, valid values are "plain", "tiered" and "sliding".
public java.lang.String getType()
Return the value of the type property.
Contents: Type of menu, valid values are "plain", "tiered" and "sliding". Default = 'plain'.
public void setZindex(int zindex)
Set the value of the zindex property.
Contents: zindex property to control overlapping with other elements.
public int getZindex()
Return the value of the zindex property.
Contents: zindex property to control overlapping with other elements. Default = '1'.
public void setForceUpdateCounter(java.lang.Integer forceUpdateCounter)
Set the value of the forceUpdateCounter property.
setForceUpdateCounter in interface IMenupublic java.lang.Integer getForceUpdateCounter()
Return the value of the forceUpdateCounter property.
getForceUpdateCounter in interface IMenupublic void setSubmenuLabels(java.lang.String submenuLabels)
Set the value of the submenuLabels property.
setSubmenuLabels in interface IMenupublic java.lang.String getSubmenuLabels()
Return the value of the submenuLabels property.
getSubmenuLabels in interface IMenuprotected 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.