public abstract class ContextMenuBase extends AbstractMenu implements IContextMenu
For more information, see the ContextMenu Wiki Documentation.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ContextMenuBase.PropertyKeys |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMPONENT_TYPE |
static java.lang.String |
RENDERER_TYPE |
| Constructor and Description |
|---|
ContextMenuBase() |
| 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() |
javax.el.ValueExpression |
getFetch()
Return the value of the
fetch property. |
java.lang.String |
getFor()
Return the value of the
for property. |
java.lang.Integer |
getForceUpdateCounter()
Return the value of the
forceUpdateCounter property. |
java.lang.String |
getForDelegate()
Return the value of the
forDelegate property. |
MenuModel |
getModel()
Return the value of the
model property. |
java.lang.Object |
getStore()
Return the value of the
store 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. |
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) |
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 |
setFetch(javax.el.ValueExpression fetch)
Set the value of the
fetch property. |
void |
setFor(java.lang.String forValue)
Set the value of the
for 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 |
setForDelegate(java.lang.String forDelegate)
Set the value of the
forDelegate property. |
void |
setModel(MenuModel model)
Set the value of the
model property. |
void |
setStore(java.lang.Object store)
Set the value of the
store 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) |
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 setDirection(java.lang.String direction)
Set the value of the direction property.
Contents: Forces the direction in which the context menu will be displayed, regardless of the position of the mouse pointer in the viewport. Possible values are combinations of "up" and "down" with "left" and "right", separated by a space, and "auto" can also be used in place of any of those values (e.g. "up", "up right", "left", "left auto").
setDirection in interface IContextMenupublic java.lang.String getDirection()
Return the value of the direction property.
Contents: Forces the direction in which the context menu will be displayed, regardless of the position of the mouse pointer in the viewport. Possible values are combinations of "up" and "down" with "left" and "right", separated by a space, and "auto" can also be used in place of any of those values (e.g. "up", "up right", "left", "left auto"). Default = 'auto'.
getDirection in interface IContextMenupublic void setEffect(java.lang.String effect)
Set the value of the effect property.
Contents: Sets the effect for the menu display. Possible values are 'blind', 'clip', 'drop', 'explode, 'fade', 'fold', 'puff', 'slide', 'scale', 'bounce', 'highlight', 'pulsate', and 'shake' (This feature is not supported in IE7 and IE8, see wiki page for more information).
setEffect in interface IContextMenupublic java.lang.String getEffect()
Return the value of the effect property.
Contents: Sets the effect for the menu display. Possible values are 'blind', 'clip', 'drop', 'explode, 'fade', 'fold', 'puff', 'slide', 'scale', 'bounce', 'highlight', 'pulsate', and 'shake' (This feature is not supported in IE7 and IE8, see wiki page for more information). Default = 'fade'.
getEffect in interface IContextMenupublic void setEffectDuration(int effectDuration)
Set the value of the effectDuration property.
Contents: Sets the effect duration in milliseconds.
setEffectDuration in interface IContextMenupublic int getEffectDuration()
Return the value of the effectDuration property.
Contents: Sets the effect duration in milliseconds. Default = '400'.
getEffectDuration in interface IContextMenupublic void setFetch(javax.el.ValueExpression fetch)
Set the value of the fetch property.
setFetch in interface IContextMenupublic javax.el.ValueExpression getFetch()
Return the value of the fetch property.
getFetch in interface IContextMenupublic void setFor(java.lang.String forValue)
Set the value of the for property.
Contents: Server side id of the component to attach to.
setFor in interface IContextMenupublic java.lang.String getFor()
Return the value of the for property.
Contents: Server side id of the component to attach to.
getFor in interface IContextMenupublic void setForDelegate(java.lang.String forDelegate)
Set the value of the forDelegate property.
Contents: Server side id of the ace:delegate component to attach to.
setForDelegate in interface IContextMenupublic java.lang.String getForDelegate()
Return the value of the forDelegate property.
Contents: Server side id of the ace:delegate component to attach to.
getForDelegate in interface IContextMenupublic 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 IContextMenupublic 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 IContextMenupublic 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 IContextMenupublic 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 IContextMenugetModel in class AbstractMenupublic void setStore(java.lang.Object store)
Set the value of the store property.
setStore in interface IContextMenupublic java.lang.Object getStore()
Return the value of the store property.
getStore in interface IContextMenupublic void setStyle(java.lang.String style)
Set the value of the style property.
Contents: Style of the main container element.
setStyle in interface IContextMenupublic java.lang.String getStyle()
Return the value of the style property.
Contents: Style of the main container element.
getStyle in interface IContextMenupublic void setStyleClass(java.lang.String styleClass)
Set the value of the styleClass property.
Contents: Style class of the main container element.
setStyleClass in interface IContextMenupublic java.lang.String getStyleClass()
Return the value of the styleClass property.
Contents: Style class of the main container element.
getStyleClass in interface IContextMenupublic void setZindex(int zindex)
Set the value of the zindex property.
Contents: zindex property to control overlapping with other elements.
setZindex in interface IContextMenupublic int getZindex()
Return the value of the zindex property.
Contents: zindex property to control overlapping with other elements. Default = '1'.
getZindex in interface IContextMenupublic void setForceUpdateCounter(java.lang.Integer forceUpdateCounter)
Set the value of the forceUpdateCounter property.
setForceUpdateCounter in interface IContextMenupublic java.lang.Integer getForceUpdateCounter()
Return the value of the forceUpdateCounter property.
getForceUpdateCounter in interface IContextMenupublic void setSubmenuLabels(java.lang.String submenuLabels)
Set the value of the submenuLabels property.
setSubmenuLabels in interface IContextMenupublic java.lang.String getSubmenuLabels()
Return the value of the submenuLabels property.
getSubmenuLabels in interface IContextMenuprotected 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.