public class KeyboardOperationInvokeContextMenuForSelectedCell extends BaseKeyboardOperation
KeyboardOperation.TriStateBoolean
gridLayer
Constructor and Description |
---|
KeyboardOperationInvokeContextMenuForSelectedCell(GridLayer gridLayer) |
Modifier and Type | Method and Description |
---|---|
int |
getKeyCode()
Gets the @{link com.google.gwt.event.dom.client.KeyCodes} that this operation matches.
|
KeyboardOperation.TriStateBoolean |
isControlKeyDown()
Gets the control-key state that this operation matches.
|
boolean |
isExecutable(GridWidget gridWidget)
Decides about @link{GridWidget} state for execution of the operation.
|
boolean |
perform(GridWidget gridWidget,
boolean isShiftKeyDown,
boolean isControlKeyDown)
Performs the operation on the given @{link GridWidget}
|
protected boolean |
performBodyOperation(GridWidget gridWidget) |
protected boolean |
performHeaderOperation(GridWidget gridWidget) |
isShiftKeyDown, scrollSelectedCellIntoView
public KeyboardOperationInvokeContextMenuForSelectedCell(GridLayer gridLayer)
public KeyboardOperation.TriStateBoolean isControlKeyDown()
KeyboardOperation
isControlKeyDown
in interface KeyboardOperation
isControlKeyDown
in class BaseKeyboardOperation
public int getKeyCode()
KeyboardOperation
public boolean isExecutable(GridWidget gridWidget)
KeyboardOperation
isExecutable
in interface KeyboardOperation
isExecutable
in class BaseKeyboardOperation
gridWidget
- The GridWidget on which to perform the operation.public boolean perform(GridWidget gridWidget, boolean isShiftKeyDown, boolean isControlKeyDown)
KeyboardOperation
gridWidget
- The GridWidget on which to perform the operation.isShiftKeyDown
- True if the shift-key is down.isControlKeyDown
- True if the control-key is down.protected boolean performHeaderOperation(GridWidget gridWidget)
protected boolean performBodyOperation(GridWidget gridWidget)
Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.