public abstract class MenuButtonBase extends AbstractMenu implements IMenuButton
For more information, see the MenuButton Wiki Documentation.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
MenuButtonBase.PropertyKeys |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMPONENT_TYPE |
static java.lang.String |
RENDERER_TYPE |
| Constructor and Description |
|---|
MenuButtonBase() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAccesskey()
Return the value of the
accesskey 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. |
MenuModel |
getModel()
Return the value of the
model 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 |
getValue()
Return the value of the
value property. |
int |
getZindex()
Return the value of the
zindex property. |
boolean |
isDisabled()
Return the value of the
disabled property. |
java.lang.Boolean |
isForceMenuUpdate()
Return the value of the
forceMenuUpdate property. |
protected boolean |
isPropertySet(java.lang.String finder) |
void |
setAccesskey(java.lang.String accesskey)
Set the value of the
accesskey property. |
void |
setDisabled(boolean disabled)
Set the value of the
disabled 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 |
setModel(MenuModel model)
Set the value of the
model 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 |
setValue(java.lang.String value)
Set the value of the
value 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 setAccesskey(java.lang.String accesskey)
Set the value of the accesskey property.
Contents: Access key that, when pressed, transfers focus to this component.
setAccesskey in interface IMenuButtonpublic java.lang.String getAccesskey()
Return the value of the accesskey property.
Contents: Access key that, when pressed, transfers focus to this component.
getAccesskey in interface IMenuButtonpublic void setDisabled(boolean disabled)
Set the value of the disabled property.
Contents: Disables or enables the button.
setDisabled in interface IMenuButtonpublic boolean isDisabled()
Return the value of the disabled property.
Contents: Disables or enables the button.
isDisabled in interface IMenuButtonpublic 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.
setEffect in interface IMenuButtonpublic 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'.
getEffect in interface IMenuButtonpublic void setEffectDuration(int effectDuration)
Set the value of the effectDuration property.
Contents: Sets the effect duration in milliseconds.
setEffectDuration in interface IMenuButtonpublic int getEffectDuration()
Return the value of the effectDuration property.
Contents: Sets the effect duration in milliseconds. Default = '400'.
getEffectDuration in interface IMenuButtonpublic 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 IMenuButtonpublic 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 IMenuButtonpublic 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.
setModel in interface IMenuButtonpublic 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 IMenuButtongetModel in class AbstractMenupublic void setStyle(java.lang.String style)
Set the value of the style property.
Contents: Style of the main container element.
setStyle in interface IMenuButtonpublic java.lang.String getStyle()
Return the value of the style property.
Contents: Style of the main container element.
getStyle in interface IMenuButtonpublic void setStyleClass(java.lang.String styleClass)
Set the value of the styleClass property.
Contents: Style class of the main container element.
setStyleClass in interface IMenuButtonpublic java.lang.String getStyleClass()
Return the value of the styleClass property.
Contents: Style class of the main container element.
getStyleClass in interface IMenuButtonpublic void setValue(java.lang.String value)
Set the value of the value property.
Contents: Label of the button.
setValue in interface IMenuButtonpublic java.lang.String getValue()
Return the value of the value property.
Contents: Label of the button.
getValue in interface IMenuButtonpublic void setZindex(int zindex)
Set the value of the zindex property.
Contents: zindex property to control overlapping with other elements.
setZindex in interface IMenuButtonpublic int getZindex()
Return the value of the zindex property.
Contents: zindex property to control overlapping with other elements. Default = '1'.
getZindex in interface IMenuButtonpublic void setForceUpdateCounter(java.lang.Integer forceUpdateCounter)
Set the value of the forceUpdateCounter property.
setForceUpdateCounter in interface IMenuButtonpublic java.lang.Integer getForceUpdateCounter()
Return the value of the forceUpdateCounter property.
getForceUpdateCounter in interface IMenuButtonprotected 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.