@Generated(value={"RichFaces CDK","4.5.0-SNAPSHOT"}) public class UIContextMenu extends AbstractContextMenu implements javax.faces.component.behavior.ClientBehaviorHolder, CoreProps, EventsKeyProps, EventsMouseProps, I18nProps, 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()
Direction indication for text that does not inherit directionality.
|
Positioning |
getDirection()
Set the direction of the popup.
|
Collection<String> |
getEventNames() |
String |
getFamily() |
int |
getHideDelay()
Delay (in ms) between losing focus and menu closing
|
int |
getHorizontalOffset()
Sets the horizontal offset between popup element and the conjunction point
|
Positioning |
getJointPoint()
Set the corner attachment point with which the popup should be connected.
|
String |
getLang()
Code describing the language used in the generated markup for this component.
|
Mode |
getMode()
Sets the submission mode for all menu items of the menu except those where this attribute redefined.
|
String |
getOnclick()
Javascript code executed when a pointer button is clicked over this element.
|
String |
getOndblclick()
Javascript code executed when a pointer button is double clicked over this element.
|
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()
The client-side code executed after the popup disappears.
|
String |
getOnitemclick()
The client-side script method to be called when a menu item is clicked
|
String |
getOnkeydown()
Javascript code executed when a key is pressed down over this element.
|
String |
getOnkeypress()
Javascript code executed when a key is pressed and released over this element.
|
String |
getOnkeyup()
Javascript code executed when a key is released over this element.
|
String |
getOnmousedown()
Javascript code executed when a pointer button is pressed down over this element.
|
String |
getOnmousemove()
Javascript code executed when a pointer button is moved within this element.
|
String |
getOnmouseout()
Javascript code executed when a pointer button is moved away from this element.
|
String |
getOnmouseover()
Javascript code executed when a pointer button is moved onto this element.
|
String |
getOnmouseup()
Javascript code executed when a pointer button is released over this element.
|
String |
getOnshow()
The client-side code executed after the popup is shown.
|
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()
CSS style(s) to be applied when this component is rendered.
|
String |
getStyleClass()
Space-separated list of CSS style class(es) to be applied when this element is rendered.
|
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()
Advisory title information about markup elements generated for this component.
|
int |
getVerticalOffset()
Sets the vertical offset between popup element and the conjunction point
|
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()
Flag indicating that this element must never receive focus or be included in a subsequent submit.
|
void |
setAttached(boolean attached) |
void |
setDir(String dir) |
void |
setDirection(Positioning direction) |
void |
setDisabled(boolean disabled) |
void |
setHideDelay(int hideDelay) |
void |
setHorizontalOffset(int horizontalOffset) |
void |
setJointPoint(Positioning jointPoint) |
void |
setLang(String lang) |
void |
setMode(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) |
getCssRoot
addClientBehavior, addFacesListener, broadcast, clearInitialState, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientBehaviors, getClientId, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getListenersForEventClass, getParent, getPassThroughAttributes, 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, unsubscribeFromEvent
encodeAll, getClientId, getCompositeComponentParent, getContainerClientId, getCurrentComponent, getCurrentCompositeComponent, getNamingContainer, getPassThroughAttributes, getResourceBundleMap, getStateHelper, getStateHelper, getTransientStateHelper, getTransientStateHelper, getValueExpression, initialStateMarked, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, restoreTransientState, saveTransientState, setInView, setValueExpression, visitTree
public static final String COMPONENT_TYPE
public static final String COMPONENT_FAMILY
public String getFamily()
getFamily
in class javax.faces.component.UIComponent
public Collection<String> getEventNames()
getEventNames
in interface javax.faces.component.behavior.ClientBehaviorHolder
getEventNames
in class javax.faces.component.UIComponentBase
public String getDefaultEventName()
getDefaultEventName
in interface javax.faces.component.behavior.ClientBehaviorHolder
getDefaultEventName
in class javax.faces.component.UIComponentBase
public boolean isAttached()
AbstractContextMenu
isAttached
in class AbstractContextMenu
public void setAttached(boolean attached)
public String getDir()
I18nProps
public void setDir(String dir)
public Positioning getDirection()
PositionProps
Set the direction of the popup. Possible values are:
auto, topLeft, topRight, bottomLeft, bottomRight, autoLeft,
autoRight, topAuto, bottomAuto
Default value is auto
getDirection
in interface PositionProps
public void setDirection(Positioning direction)
public boolean isDisabled()
DisabledProps
isDisabled
in interface DisabledProps
public void setDisabled(boolean disabled)
public int getHideDelay()
AbstractMenuContainer
Delay (in ms) between losing focus and menu closing
Default value is "300"
getHideDelay
in class AbstractMenuContainer
public void setHideDelay(int hideDelay)
public int getHorizontalOffset()
PositionProps
Sets the horizontal offset between popup element and the conjunction point
Default value is 0
getHorizontalOffset
in interface PositionProps
public void setHorizontalOffset(int horizontalOffset)
public Positioning getJointPoint()
PositionProps
Set the corner attachment point with which the popup should be connected. Possible values are:
auto, topLeft, topRight, bottomLeft, bottomRight, autoLeft,
autoRight, topAuto, bottomAuto
Default value is auto
getJointPoint
in interface PositionProps
getJointPoint
in class AbstractContextMenu
public void setJointPoint(Positioning jointPoint)
public String getLang()
I18nProps
public void setLang(String lang)
public Mode getMode()
AbstractMenuContainer
Sets 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 AbstractMenuContainer
public void setMode(Mode mode)
public String getOnclick()
EventsMouseProps
getOnclick
in interface EventsMouseProps
public void setOnclick(String onclick)
public String getOndblclick()
EventsMouseProps
getOndblclick
in interface EventsMouseProps
public void setOndblclick(String ondblclick)
public String getOngrouphide()
AbstractMenuContainer
getOngrouphide
in class AbstractMenuContainer
public void setOngrouphide(String ongrouphide)
public String getOngroupshow()
AbstractMenuContainer
getOngroupshow
in class AbstractMenuContainer
public void setOngroupshow(String ongroupshow)
public String getOnhide()
EventsPopupsProps
getOnhide
in interface EventsPopupsProps
public void setOnhide(String onhide)
public String getOnitemclick()
AbstractMenuContainer
getOnitemclick
in class AbstractMenuContainer
public void setOnitemclick(String onitemclick)
public String getOnkeydown()
EventsKeyProps
getOnkeydown
in interface EventsKeyProps
public void setOnkeydown(String onkeydown)
public String getOnkeypress()
EventsKeyProps
getOnkeypress
in interface EventsKeyProps
public void setOnkeypress(String onkeypress)
public String getOnkeyup()
EventsKeyProps
getOnkeyup
in interface EventsKeyProps
public void setOnkeyup(String onkeyup)
public String getOnmousedown()
EventsMouseProps
getOnmousedown
in interface EventsMouseProps
public void setOnmousedown(String onmousedown)
public String getOnmousemove()
EventsMouseProps
getOnmousemove
in interface EventsMouseProps
public void setOnmousemove(String onmousemove)
public String getOnmouseout()
EventsMouseProps
getOnmouseout
in interface EventsMouseProps
public void setOnmouseout(String onmouseout)
public String getOnmouseover()
EventsMouseProps
getOnmouseover
in interface EventsMouseProps
public void setOnmouseover(String onmouseover)
public String getOnmouseup()
EventsMouseProps
getOnmouseup
in interface EventsMouseProps
public void setOnmouseup(String onmouseup)
public String getOnshow()
EventsPopupsProps
getOnshow
in interface EventsPopupsProps
public void setOnshow(String onshow)
public int getPopupWidth()
AbstractMenuContainer
getPopupWidth
in class AbstractMenuContainer
public void setPopupWidth(int popupWidth)
public int getShowDelay()
AbstractMenuContainer
Delay (in ms) between observing the showEvent and menu opening
Default value is "50"
getShowDelay
in class AbstractMenuContainer
public void setShowDelay(int showDelay)
public String getShowEvent()
AbstractMenuContainer
Defines an event on the parent element to display the menu
Default value is 'contextmenu'
getShowEvent
in class AbstractMenuContainer
public void setShowEvent(String showEvent)
public String getStyle()
CoreProps
public void setStyle(String style)
public String getStyleClass()
CoreProps
getStyleClass
in interface CoreProps
public void setStyleClass(String styleClass)
public String getTarget()
AbstractContextMenu
getTarget
in class AbstractContextMenu
public void setTarget(String target)
public String getTargetSelector()
AbstractContextMenu
getTargetSelector
in class AbstractContextMenu
public void setTargetSelector(String targetSelector)
public String getTitle()
CoreProps
public void setTitle(String title)
public int getVerticalOffset()
PositionProps
Sets the vertical offset between popup element and the conjunction point
Default value is 0
getVerticalOffset
in interface PositionProps
public void setVerticalOffset(int verticalOffset)
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.