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() |
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. |
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 |
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. |
java.lang.String |
getWidgetVar()
Return the value of the
widgetVar property. |
int |
getZindex()
Return the value of the
zindex 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 |
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 |
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 |
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 |
setWidgetVar(java.lang.String widgetVar)
Set the value of the
widgetVar property. |
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 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 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 setWidgetVar(java.lang.String widgetVar)
Set the value of the widgetVar property.
Contents: Javascript variable name of the wrapped widget.
setWidgetVar in interface IMenupublic java.lang.String getWidgetVar()
Return the value of the widgetVar property.
Contents: Javascript variable name of the wrapped widget.
getWidgetVar in interface IMenupublic 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'.
protected boolean isPropertySet(java.lang.String finder)
public void setValueExpression(java.lang.String name,
javax.el.ValueExpression binding)
setValueExpression in class javax.faces.component.UIComponentCopyright 2014 ICEsoft Technologies Canada Corp., All Rights Reserved.