public class ContextMenu extends Menu
Menu
Modifier and Type | Field and Description |
---|---|
static String |
CONTEXTMENU_CSS_CLASS
CSS class used to identify a
Menu . |
ENABLE, FLAG_AFTER_RENDERING, FLAG_INITIALIZED, FLAG_PREPARED_FOR_RENDER, FLAG_REMOVING_FROM_HIERARCHY, FLAG_RENDERING, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING
Constructor and Description |
---|
ContextMenu(String id)
Constructor
|
ContextMenu(String id,
List<IMenuItem> items)
Constructor
|
ContextMenu(String id,
List<IMenuItem> items,
com.googlecode.wicket.jquery.core.Options options)
Constructor
|
ContextMenu(String id,
com.googlecode.wicket.jquery.core.Options options)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected String |
getPositionOption(org.apache.wicket.Component component)
Gets the jQuery UI position option (as JSON-string) that should be applied on the
ContextMenu when 'contextmenu' event is triggered |
protected com.googlecode.wicket.jquery.core.JQueryAbstractBehavior |
newContextMenuDocumentBehavior()
Gets a new
JQueryAbstractBehavior that handles the closing of the context-menu |
protected void |
onComponentTag(org.apache.wicket.markup.ComponentTag tag) |
protected void |
onContextMenu(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.Component component)
Triggered when 'contextmenu' event is triggered by a component that holds a
ContextMenuBehavior |
protected void |
onInitialize() |
addMenuItem, getItemList, hasSubMenus, newWidgetBehavior, onClick
onBeforeRender, onConfigure
getRegionMarkup, newMarkupSourcingStrategy
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession
add, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findComponentToDequeue, get, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onAfterRenderChildren, onComponentTagBody, onDetach, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, swap, toString, toString, visitChildren, visitChildren, visitChildren, visitChildren
add, addStateChange, afterRender, beforeRender, canCallListenerInterface, canCallListenerInterfaceAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalPrepareForRender, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, onAfterRender, onBeforeRender, onConfigure, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, prepareForRender, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setRequestFlag, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, visitParents, warn, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public static final String CONTEXTMENU_CSS_CLASS
Menu
. It could be useful to perform some jQuery operation on all menu in the page (hiding for instance)public ContextMenu(String id)
id
- the markup idpublic ContextMenu(String id, List<IMenuItem> items)
id
- the markup iditems
- the menu-itemspublic ContextMenu(String id, com.googlecode.wicket.jquery.core.Options options)
id
- the markup idoptions
- the Options
protected String getPositionOption(org.apache.wicket.Component component)
ContextMenu
when 'contextmenu' event is triggeredcomponent
- the Component
that fired the 'contextmenu' eventprotected void onInitialize()
onInitialize
in class Menu
protected void onComponentTag(org.apache.wicket.markup.ComponentTag tag)
onComponentTag
in class org.apache.wicket.Component
protected void onContextMenu(org.apache.wicket.ajax.AjaxRequestTarget target, org.apache.wicket.Component component)
ContextMenuBehavior
target
- the AjaxRequestTarget
component
- the component that holds a ContextMenuBehavior
protected com.googlecode.wicket.jquery.core.JQueryAbstractBehavior newContextMenuDocumentBehavior()
JQueryAbstractBehavior
that handles the closing of the context-menuJQueryAbstractBehavior
Copyright © 2016 7thWeb. All rights reserved.