Package io.jmix.ui.widget.grid
Class JmixGridContextMenu<T>
java.lang.Object
com.vaadin.server.AbstractClientConnector
com.vaadin.server.AbstractExtension
io.jmix.ui.widget.addon.contextmenu.ContextMenu
io.jmix.ui.widget.addon.contextmenu.GridContextMenu<T>
io.jmix.ui.widget.grid.JmixGridContextMenu<T>
- All Implemented Interfaces:
com.vaadin.event.MethodEventSource,com.vaadin.server.ClientConnector,com.vaadin.server.Extension,com.vaadin.shared.Connector,Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class io.jmix.ui.widget.addon.contextmenu.GridContextMenu
GridContextMenu.GridContextMenuOpenListener<T>Nested classes/interfaces inherited from class io.jmix.ui.widget.addon.contextmenu.ContextMenu
ContextMenu.ContextMenuOpenListenerNested classes/interfaces inherited from class com.vaadin.server.AbstractClientConnector
com.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandlerNested classes/interfaces inherited from interface com.vaadin.server.ClientConnector
com.vaadin.server.ClientConnector.AttachEvent, com.vaadin.server.ClientConnector.AttachListener, com.vaadin.server.ClientConnector.ConnectorErrorEvent, com.vaadin.server.ClientConnector.DetachEvent, com.vaadin.server.ClientConnector.DetachListener -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.vaadin.event.ContextClickEvent.ContextClickListenerprotected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprotected voidonContextClick(com.vaadin.event.ContextClickEvent event) voidsetAsContextMenuOf(com.vaadin.event.ContextClickEvent.ContextClickNotifier component) Sets this as a context menu of the component.voidsetEnabled(boolean enabled) Methods inherited from class io.jmix.ui.widget.addon.contextmenu.GridContextMenu
addGridBodyContextMenuListener, addGridFooterContextMenuListener, addGridHeaderContextMenuListenerMethods inherited from class io.jmix.ui.widget.addon.contextmenu.ContextMenu
addContextMenuOpenListener, addItem, addItem, addItem, addItemBefore, addSeparator, addSeparatorBefore, beforeClientResponse, getContextClickListener, getItems, getSize, getState, getState, isHtmlContentAllowed, open, removeItem, removeItems, setHtmlContentAllowedMethods inherited from class com.vaadin.server.AbstractExtension
extend, getParent, getSupportedParentType, remove, setParentMethods inherited from class com.vaadin.server.AbstractClientConnector
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addListener, addListener, addListener, addMethodInvocationToQueue, attach, createState, detach, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getIncorrectConcurrentAccessHandler, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isConnectorEnabled, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setConnectorResource, setErrorHandler, setIncorrectConcurrentAccessHandler, setResource, updateDiffstateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.server.ClientConnector
addAttachListener, addDetachListener, attach, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandlerMethods inherited from interface com.vaadin.shared.Connector
getConnectorId
-
Field Details
-
contextClickListener
protected com.vaadin.event.ContextClickEvent.ContextClickListener contextClickListener -
enabled
protected boolean enabled
-
-
Constructor Details
-
JmixGridContextMenu
-
-
Method Details
-
setAsContextMenuOf
public void setAsContextMenuOf(com.vaadin.event.ContextClickEvent.ContextClickNotifier component) Description copied from class:ContextMenuSets this as a context menu of the component. You can set one menu to as many components as you wish.- Overrides:
setAsContextMenuOfin classContextMenu- Parameters:
component- the component to set the context menu to
-
onContextClick
protected void onContextClick(com.vaadin.event.ContextClickEvent event) -
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled)
-