public class GlobalInputDispatcher extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
FOCUSED_STYLE |
static String |
GLOBAL_INPUT_DISPATCHER_BEAN |
static String |
PASTE_TARGET |
| Constructor and Description |
|---|
GlobalInputDispatcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate()
Deprecated.
|
void |
addGlobalInputListener(GlobalInputListener l) |
void |
clearFocus() |
void |
deactivate()
Deprecated.
|
protected void |
fireFocusChanged(Component prev,
Component newOne) |
protected void |
fireKeyPressed(KeyBinding kb,
KeyEvent original) |
Object |
getAttribute(String key) |
String |
getControlKeys()
Assembles the control key string.
|
protected List<KeyBinding> |
getCurrentKeyBindings() |
Component |
getFocused() |
static GlobalInputDispatcher |
getInstance() |
String |
getKeyBindingText(String code) |
String |
getMessageBoxURI() |
void |
initView(Component parent)
Deprecated.
|
protected void |
keyPressed(KeyEvent evt) |
protected KeyBinding |
matchBinding(int keyCode,
int modifiers) |
protected KeyBinding |
matchBinding(KeyEvent evt) |
protected List<KeyBinding> |
matchBindings(String code) |
void |
removeGlobalInputListener(GlobalInputListener l) |
void |
setAttribute(String key,
Object value) |
void |
setFocused(Component comp) |
void |
setGlobalInputListeners(List<GlobalInputListener> listeners)
Initially sets global input listeners.
|
void |
setKeyBindings(Map<String,List<KeyBinding>> bindings) |
void |
setMessageBoxURI(String messageBoxURI) |
protected void |
showFocus(Component comp,
boolean on) |
void |
triggerKey(String code) |
public static final String FOCUSED_STYLE
public static final String GLOBAL_INPUT_DISPATCHER_BEAN
public static final String PASTE_TARGET
public static GlobalInputDispatcher getInstance()
@Deprecated public void initView(Component parent)
public void triggerKey(String code)
public void setKeyBindings(Map<String,List<KeyBinding>> bindings)
public String getMessageBoxURI()
public void setMessageBoxURI(String messageBoxURI)
public void setGlobalInputListeners(List<GlobalInputListener> listeners)
public void addGlobalInputListener(GlobalInputListener l)
public void removeGlobalInputListener(GlobalInputListener l)
public String getControlKeys()
protected List<KeyBinding> getCurrentKeyBindings()
protected KeyBinding matchBinding(KeyEvent evt)
protected KeyBinding matchBinding(int keyCode, int modifiers)
protected List<KeyBinding> matchBindings(String code)
protected void fireFocusChanged(Component prev,
Component newOne)
protected void fireKeyPressed(KeyBinding kb, KeyEvent original)
protected void keyPressed(KeyEvent evt)
@Deprecated public void deactivate()
@Deprecated public void activate()
public Component getFocused()
public void setFocused(Component comp)
protected void showFocus(Component comp,
boolean on)
public void clearFocus()
Copyright © 2017 SAP SE. All Rights Reserved.