org.richfaces.component
@Generated(value={"RichFaces CDK","4.3.1.Final-redhat-1"}) public class UIContextMenu extends AbstractContextMenu implements javax.faces.component.behavior.ClientBehaviorHolder, org.richfaces.component.attribute.CoreProps, org.richfaces.component.attribute.EventsKeyProps, org.richfaces.component.attribute.EventsMouseProps, org.richfaces.component.attribute.I18nProps, org.richfaces.component.attribute.PositionProps
The <rich:contextMenu> component is used for creating a hierarchical context menu that are activated on events like onmouseover, onclick etc. The component can be applied to any element on the page.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
UIContextMenu.Properties |
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENT_FAMILY |
static String |
COMPONENT_TYPE |
| Constructor and Description |
|---|
UIContextMenu() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultEventName() |
String |
getDir() |
org.richfaces.component.Positioning |
getDirection() |
Collection<String> |
getEventNames() |
String |
getFamily() |
int |
getHideDelay()
Delay (in ms) between losing focus and menu closing
|
int |
getHorizontalOffset() |
org.richfaces.component.Positioning |
getJointPoint() |
String |
getLang() |
org.richfaces.component.Mode |
getMode()
Sets the submission mode for all menu items of the menu except those where this attribute redefined.
|
String |
getOnclick() |
String |
getOndblclick() |
String |
getOngrouphide()
The client-side script method to be called when a child menuGroup is hidden
|
String |
getOngroupshow()
The client-side script method to be called when a child menuGroup is expanded
|
String |
getOnhide() |
String |
getOnitemclick()
The client-side script method to be called when a menu item is clicked
|
String |
getOnkeydown() |
String |
getOnkeypress() |
String |
getOnkeyup() |
String |
getOnmousedown() |
String |
getOnmousemove() |
String |
getOnmouseout() |
String |
getOnmouseover() |
String |
getOnmouseup() |
String |
getOnshow() |
int |
getPopupWidth()
Sets minimum width for all lists that will appear.
|
int |
getShowDelay()
Delay (in ms) between observing the showEvent and menu opening
|
String |
getShowEvent()
Defines an event on the parent element to display the menu
|
String |
getStyle() |
String |
getStyleClass() |
String |
getTarget()
Client identifier of the component or id of the existing DOM element that is a source for a given event.
|
String |
getTargetSelector()
The jQuery selector used to filter which child DOM elements of the target/parent to which the contextMenu will
be attached.
|
String |
getTitle() |
int |
getVerticalOffset() |
boolean |
isAttached()
If the value of the 'attached' attribute is true, the component is attached to the component, specified in the
'target' attribute or to the parent component, if 'target' is not defined.
|
boolean |
isDisabled() |
void |
setAttached(boolean attached) |
void |
setDir(String dir) |
void |
setDirection(org.richfaces.component.Positioning direction) |
void |
setDisabled(boolean disabled) |
void |
setHideDelay(int hideDelay) |
void |
setHorizontalOffset(int horizontalOffset) |
void |
setJointPoint(org.richfaces.component.Positioning jointPoint) |
void |
setLang(String lang) |
void |
setMode(org.richfaces.component.Mode mode) |
void |
setOnclick(String onclick) |
void |
setOndblclick(String ondblclick) |
void |
setOngrouphide(String ongrouphide) |
void |
setOngroupshow(String ongroupshow) |
void |
setOnhide(String onhide) |
void |
setOnitemclick(String onitemclick) |
void |
setOnkeydown(String onkeydown) |
void |
setOnkeypress(String onkeypress) |
void |
setOnkeyup(String onkeyup) |
void |
setOnmousedown(String onmousedown) |
void |
setOnmousemove(String onmousemove) |
void |
setOnmouseout(String onmouseout) |
void |
setOnmouseover(String onmouseover) |
void |
setOnmouseup(String onmouseup) |
void |
setOnshow(String onshow) |
void |
setPopupWidth(int popupWidth) |
void |
setShowDelay(int showDelay) |
void |
setShowEvent(String showEvent) |
void |
setStyle(String style) |
void |
setStyleClass(String styleClass) |
void |
setTarget(String target) |
void |
setTargetSelector(String targetSelector) |
void |
setTitle(String title) |
void |
setVerticalOffset(int verticalOffset) |
getCssRootaddClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, invokeOnComponent, isRendered, isTransient, markInitialState, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, restoreState, saveAttachedState, saveState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding, subscribeToEvent, unsubscribeFromEventencodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTreepublic static final String COMPONENT_TYPE
public static final String COMPONENT_FAMILY
public String getFamily()
getFamily in class javax.faces.component.UIComponentpublic Collection<String> getEventNames()
getEventNames in interface javax.faces.component.behavior.ClientBehaviorHoldergetEventNames in class javax.faces.component.UIComponentBasepublic String getDefaultEventName()
getDefaultEventName in interface javax.faces.component.behavior.ClientBehaviorHoldergetDefaultEventName in class javax.faces.component.UIComponentBasepublic boolean isAttached()
AbstractContextMenuisAttached in class AbstractContextMenupublic void setAttached(boolean attached)
public String getDir()
getDir in interface org.richfaces.component.attribute.I18nPropspublic void setDir(String dir)
public org.richfaces.component.Positioning getDirection()
getDirection in interface org.richfaces.component.attribute.PositionPropspublic void setDirection(org.richfaces.component.Positioning direction)
public boolean isDisabled()
isDisabled in interface org.richfaces.component.attribute.DisabledPropspublic void setDisabled(boolean disabled)
public int getHideDelay()
AbstractMenuContainerDelay (in ms) between losing focus and menu closing
Default value is "300"
getHideDelay in class AbstractMenuContainerpublic void setHideDelay(int hideDelay)
public int getHorizontalOffset()
getHorizontalOffset in interface org.richfaces.component.attribute.PositionPropspublic void setHorizontalOffset(int horizontalOffset)
public org.richfaces.component.Positioning getJointPoint()
getJointPoint in interface org.richfaces.component.attribute.PositionPropsgetJointPoint in class AbstractContextMenupublic void setJointPoint(org.richfaces.component.Positioning jointPoint)
public String getLang()
getLang in interface org.richfaces.component.attribute.I18nPropspublic void setLang(String lang)
public org.richfaces.component.Mode getMode()
AbstractMenuContainerSets the submission mode for all menu items of the menu except those where this attribute redefined. Possible value are 'ajax','client' and 'server'
Default value is 'server'
getMode in class AbstractMenuContainerpublic void setMode(org.richfaces.component.Mode mode)
public String getOnclick()
getOnclick in interface org.richfaces.component.attribute.EventsMousePropspublic void setOnclick(String onclick)
public String getOndblclick()
getOndblclick in interface org.richfaces.component.attribute.EventsMousePropspublic void setOndblclick(String ondblclick)
public String getOngrouphide()
AbstractMenuContainergetOngrouphide in class AbstractMenuContainerpublic void setOngrouphide(String ongrouphide)
public String getOngroupshow()
AbstractMenuContainergetOngroupshow in class AbstractMenuContainerpublic void setOngroupshow(String ongroupshow)
public String getOnhide()
getOnhide in interface org.richfaces.component.attribute.EventsPopupsPropspublic void setOnhide(String onhide)
public String getOnitemclick()
AbstractMenuContainergetOnitemclick in class AbstractMenuContainerpublic void setOnitemclick(String onitemclick)
public String getOnkeydown()
getOnkeydown in interface org.richfaces.component.attribute.EventsKeyPropspublic void setOnkeydown(String onkeydown)
public String getOnkeypress()
getOnkeypress in interface org.richfaces.component.attribute.EventsKeyPropspublic void setOnkeypress(String onkeypress)
public String getOnkeyup()
getOnkeyup in interface org.richfaces.component.attribute.EventsKeyPropspublic void setOnkeyup(String onkeyup)
public String getOnmousedown()
getOnmousedown in interface org.richfaces.component.attribute.EventsMousePropspublic void setOnmousedown(String onmousedown)
public String getOnmousemove()
getOnmousemove in interface org.richfaces.component.attribute.EventsMousePropspublic void setOnmousemove(String onmousemove)
public String getOnmouseout()
getOnmouseout in interface org.richfaces.component.attribute.EventsMousePropspublic void setOnmouseout(String onmouseout)
public String getOnmouseover()
getOnmouseover in interface org.richfaces.component.attribute.EventsMousePropspublic void setOnmouseover(String onmouseover)
public String getOnmouseup()
getOnmouseup in interface org.richfaces.component.attribute.EventsMousePropspublic void setOnmouseup(String onmouseup)
public String getOnshow()
getOnshow in interface org.richfaces.component.attribute.EventsPopupsPropspublic void setOnshow(String onshow)
public int getPopupWidth()
AbstractMenuContainergetPopupWidth in class AbstractMenuContainerpublic void setPopupWidth(int popupWidth)
public int getShowDelay()
AbstractMenuContainerDelay (in ms) between observing the showEvent and menu opening
Default value is "50"
getShowDelay in class AbstractMenuContainerpublic void setShowDelay(int showDelay)
public String getShowEvent()
AbstractMenuContainerDefines an event on the parent element to display the menu
Default value is 'contextmenu'
getShowEvent in class AbstractMenuContainerpublic void setShowEvent(String showEvent)
public String getStyle()
getStyle in interface org.richfaces.component.attribute.CorePropspublic void setStyle(String style)
public String getStyleClass()
getStyleClass in interface org.richfaces.component.attribute.CorePropspublic void setStyleClass(String styleClass)
public String getTarget()
AbstractContextMenugetTarget in class AbstractContextMenupublic void setTarget(String target)
public String getTargetSelector()
AbstractContextMenugetTargetSelector in class AbstractContextMenupublic void setTargetSelector(String targetSelector)
public String getTitle()
getTitle in interface org.richfaces.component.attribute.CorePropspublic void setTitle(String title)
public int getVerticalOffset()
getVerticalOffset in interface org.richfaces.component.attribute.PositionPropspublic void setVerticalOffset(int verticalOffset)
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.