public class ShortcutProtector
extends com.vaadin.server.AbstractExtension
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
Constructor and Description |
---|
ShortcutProtector(com.vaadin.server.AbstractClientConnector target,
List<Integer> keys) |
Modifier and Type | Method and Description |
---|---|
static void |
extend(com.vaadin.server.AbstractClientConnector component,
List<Integer> keys)
Applies "shortcut protection" to the given component for the given list of key codes.
|
protected ShortcutProtectorState |
getState() |
extend, getParent, getSupportedParentType, remove, setParent
addAttachListener, addDetachListener, addExtension, addListener, addListener, addListener, addMethodInvocationToQueue, attach, beforeClientResponse, createState, detach, encodeState, equals, fireEvent, getAllChildrenIterable, getConnectorId, getErrorHandler, getExtensions, getListeners, getResource, getRpcManager, getRpcProxy, getSession, getState, getStateType, getUI, handleConnectorRequest, hashCode, hasListeners, isAttached, isConnectorEnabled, isThis, markAsDirty, markAsDirtyRecursive, registerRpc, registerRpc, removeAttachListener, removeDetachListener, removeExtension, removeListener, removeListener, removeListener, removeListener, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler, setResource, updateDiffstate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
addAttachListener, addDetachListener, attach, beforeClientResponse, detach, encodeState, getErrorHandler, getExtensions, getRpcManager, getStateType, getUI, handleConnectorRequest, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeExtension, requestRepaint, requestRepaintAll, retrievePendingRpcCalls, setErrorHandler
public static void extend(com.vaadin.server.AbstractClientConnector component, List<Integer> keys)
component
- the component to apply keyboard shortcut protection tokeys
- a list of KeyCodes
for which events shouldn't be propagated.protected ShortcutProtectorState getState()
getState
in class com.vaadin.server.AbstractClientConnector
Copyright © 2020 Magnolia International Ltd.. All rights reserved.