public abstract class AbstractKeyEnabledController extends Object
| Constructor and Description |
|---|
AbstractKeyEnabledController() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
copyPressed()
Copy key binding was received.
|
protected void |
copyToClipboard(List toCopy) |
protected void |
deletePressed()
Delete key binding was received.
|
void |
focusChanged(FocusLostEvent evt) |
Clipboard |
getClipboard() |
protected abstract List |
getContentToCopy()
Provides the content list to be copied or moved to clipboard.
|
protected void |
keyPressed(GlobalKeyEvent evt) |
protected void |
movePressed()
Move key binding was received.
|
protected void |
moveToClipboard(List toCopy) |
protected abstract void |
otherKeyPressed(KeyBinding kb,
GlobalKeyEvent evt)
Called for any key binding but COPY, PASTE, MOVE or DELETE.
|
protected void |
pastePressed()
Paste key binding was received.
|
protected abstract void |
performDelete(List content)
Called upon delete key binding fired
|
protected abstract void |
performPaste(List content,
int action)
Called upon paste key binding fired
|
void |
setClipboard(Clipboard clipboard) |
protected void |
setFocusableComponent(Component comp)
Registers key and focus listener directly at focusable component.
|
public Clipboard getClipboard()
public void setClipboard(Clipboard clipboard)
protected void setFocusableComponent(Component comp)
comp - the focusable componentprotected void copyToClipboard(List toCopy)
protected void moveToClipboard(List toCopy)
protected void keyPressed(GlobalKeyEvent evt)
public void focusChanged(FocusLostEvent evt)
protected abstract void otherKeyPressed(KeyBinding kb, GlobalKeyEvent evt)
kb - the key binding we've got a event forevt - the key eventprotected abstract void performDelete(List content)
content - the content from getContentToCopy()protected void deletePressed()
performDelete(List).protected abstract List getContentToCopy()
protected void copyPressed()
protected void movePressed()
protected abstract void performPaste(List content, int action)
content - the content from getContentToCopy()action - the action code from the actual key eventprotected void pastePressed()
performPaste(List, int).Copyright © 2017 SAP SE. All Rights Reserved.