Class GlobalInputDispatcher
- java.lang.Object
-
- de.hybris.platform.productcockpit.context.GlobalInputDispatcher
-
public class GlobalInputDispatcher extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFOCUSED_STYLEstatic java.lang.StringGLOBAL_INPUT_DISPATCHER_BEANstatic java.lang.StringPASTE_TARGET
-
Constructor Summary
Constructors Constructor Description GlobalInputDispatcher()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidactivate()Deprecated.since 6.3voidaddGlobalInputListener(GlobalInputListener l)voidclearFocus()voiddeactivate()Deprecated.since 6.3protected voidfireFocusChanged(org.zkoss.zk.ui.Component prev, org.zkoss.zk.ui.Component newOne)protected voidfireKeyPressed(KeyBinding kb, org.zkoss.zk.ui.event.KeyEvent original)java.lang.ObjectgetAttribute(java.lang.String key)java.lang.StringgetControlKeys()Assembles the control key string.protected java.util.List<KeyBinding>getCurrentKeyBindings()org.zkoss.zk.ui.ComponentgetFocused()static GlobalInputDispatchergetInstance()java.lang.StringgetKeyBindingText(java.lang.String code)java.lang.StringgetMessageBoxURI()voidinitView(org.zkoss.zk.ui.Component parent)Deprecated.since 6.3protected voidkeyPressed(org.zkoss.zk.ui.event.KeyEvent evt)protected KeyBindingmatchBinding(int keyCode, int modifiers)protected KeyBindingmatchBinding(org.zkoss.zk.ui.event.KeyEvent evt)protected java.util.List<KeyBinding>matchBindings(java.lang.String code)voidremoveGlobalInputListener(GlobalInputListener l)voidsetAttribute(java.lang.String key, java.lang.Object value)voidsetFocused(org.zkoss.zk.ui.Component comp)voidsetGlobalInputListeners(java.util.List<GlobalInputListener> listeners)Initially sets global input listeners.voidsetKeyBindings(java.util.Map<java.lang.String,java.util.List<KeyBinding>> bindings)voidsetMessageBoxURI(java.lang.String messageBoxURI)protected voidshowFocus(org.zkoss.zk.ui.Component comp, boolean on)voidtriggerKey(java.lang.String code)
-
-
-
Field Detail
-
FOCUSED_STYLE
public static final java.lang.String FOCUSED_STYLE
- See Also:
- Constant Field Values
-
GLOBAL_INPUT_DISPATCHER_BEAN
public static final java.lang.String GLOBAL_INPUT_DISPATCHER_BEAN
- See Also:
- Constant Field Values
-
PASTE_TARGET
public static final java.lang.String PASTE_TARGET
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static GlobalInputDispatcher getInstance()
-
initView
@Deprecated public void initView(org.zkoss.zk.ui.Component parent)
Deprecated.since 6.3
-
triggerKey
public void triggerKey(java.lang.String code)
-
getKeyBindingText
public java.lang.String getKeyBindingText(java.lang.String code)
-
setKeyBindings
public void setKeyBindings(java.util.Map<java.lang.String,java.util.List<KeyBinding>> bindings)
-
getMessageBoxURI
public java.lang.String getMessageBoxURI()
-
setMessageBoxURI
public void setMessageBoxURI(java.lang.String messageBoxURI)
-
setGlobalInputListeners
public void setGlobalInputListeners(java.util.List<GlobalInputListener> listeners)
Initially sets global input listeners.
By now this is auto-wired via spring!
-
addGlobalInputListener
public void addGlobalInputListener(GlobalInputListener l)
-
removeGlobalInputListener
public void removeGlobalInputListener(GlobalInputListener l)
-
getControlKeys
public java.lang.String getControlKeys()
Assembles the control key string.
-
getCurrentKeyBindings
protected java.util.List<KeyBinding> getCurrentKeyBindings()
-
matchBinding
protected KeyBinding matchBinding(org.zkoss.zk.ui.event.KeyEvent evt)
-
matchBinding
protected KeyBinding matchBinding(int keyCode, int modifiers)
-
matchBindings
protected java.util.List<KeyBinding> matchBindings(java.lang.String code)
-
fireFocusChanged
protected void fireFocusChanged(org.zkoss.zk.ui.Component prev, org.zkoss.zk.ui.Component newOne)
-
fireKeyPressed
protected void fireKeyPressed(KeyBinding kb, org.zkoss.zk.ui.event.KeyEvent original)
-
keyPressed
protected void keyPressed(org.zkoss.zk.ui.event.KeyEvent evt)
-
deactivate
@Deprecated public void deactivate()
Deprecated.since 6.3
-
activate
@Deprecated public void activate()
Deprecated.since 6.3
-
getFocused
public org.zkoss.zk.ui.Component getFocused()
-
setFocused
public void setFocused(org.zkoss.zk.ui.Component comp)
-
showFocus
protected void showFocus(org.zkoss.zk.ui.Component comp, boolean on)
-
clearFocus
public void clearFocus()
-
setAttribute
public void setAttribute(java.lang.String key, java.lang.Object value)
-
getAttribute
public java.lang.Object getAttribute(java.lang.String key)
-
-