public class JmixGridContextMenu<T> extends GridContextMenu<T>
GridContextMenu.GridContextMenuOpenListener<T>
ContextMenu.ContextMenuOpenListener
com.vaadin.server.AbstractClientConnector.IncorrectConcurrentAccessHandler
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
Modifier and Type | Field and Description |
---|---|
protected com.vaadin.event.ContextClickEvent.ContextClickListener |
contextClickListener |
protected boolean |
enabled |
Constructor and Description |
---|
JmixGridContextMenu(com.vaadin.ui.Grid<T> parentComponent) |
Modifier and Type | Method and Description |
---|---|
boolean |
isEnabled() |
protected void |
onContextClick(com.vaadin.event.ContextClickEvent event) |
void |
setAsContextMenuOf(com.vaadin.event.ContextClickEvent.ContextClickNotifier component)
Sets this as a context menu of the component.
|
void |
setEnabled(boolean enabled) |
addGridBodyContextMenuListener, addGridFooterContextMenuListener, addGridHeaderContextMenuListener
addContextMenuOpenListener, addItem, addItem, addItem, addItemBefore, addSeparator, addSeparatorBefore, beforeClientResponse, getContextClickListener, getItems, getSize, getState, getState, isHtmlContentAllowed, open, removeItem, removeItems, setHtmlContentAllowed
extend, getParent, getSupportedParentType, remove, setParent
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, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addAttachListener, addDetachListener, attach, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
protected com.vaadin.event.ContextClickEvent.ContextClickListener contextClickListener
protected boolean enabled
public JmixGridContextMenu(com.vaadin.ui.Grid<T> parentComponent)
public void setAsContextMenuOf(com.vaadin.event.ContextClickEvent.ContextClickNotifier component)
ContextMenu
setAsContextMenuOf
in class ContextMenu
component
- the component to set the context menu toprotected void onContextClick(com.vaadin.event.ContextClickEvent event)
public boolean isEnabled()
public void setEnabled(boolean enabled)