|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.behavior.Behavior
wicket.contrib.input.events.InputBehavior
public class InputBehavior
Add this to your button, link whatever to create a shortcut key.. WARNING:this behavior uses a special script for calling window.onload
| Constructor Summary | |
|---|---|
InputBehavior(KeyType[] keyCombo)
if using auto hook be sure to add this behavior last, otherwise it might not pickup the event.. |
|
InputBehavior(KeyType[] keyCombo,
EventType eventType)
|
|
| Method Summary | |
|---|---|
void |
afterRender(Component component)
|
void |
bind(Component component)
|
protected Boolean |
getDisable_in_input()
If this is set to true, keyboard capture will be disabled in input and textarea fields. |
protected String |
getEscapedComponentMarkupId()
Gets the escaped DOM id that the input will get attached to. |
protected Boolean |
getPropagate()
Should the command be passed onto the browser afterwards? |
protected String |
getTarget()
target - DOM Node The element that should be watched for the keyboard event. |
protected KeyHookOn |
getType()
The event type - can be 'keydown','keyup','keypress'. |
void |
onComponentTag(Component component,
ComponentTag tag)
|
void |
renderHead(Component c,
org.apache.wicket.markup.head.IHeaderResponse response)
|
| Methods inherited from class org.apache.wicket.behavior.Behavior |
|---|
beforeRender, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onConfigure, onEvent, onException, unbind |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InputBehavior(KeyType[] keyCombo,
EventType eventType)
public InputBehavior(KeyType[] keyCombo)
keyCombo - autoHook - | Method Detail |
|---|
public void bind(Component component)
bind in class Behaviorprotected final String getEscapedComponentMarkupId()
public void renderHead(Component c,
org.apache.wicket.markup.head.IHeaderResponse response)
renderHead in interface IComponentAwareHeaderContributorrenderHead in class Behavior
public void onComponentTag(Component component,
ComponentTag tag)
onComponentTag in class Behaviorpublic void afterRender(Component component)
afterRender in class Behaviorprotected Boolean getDisable_in_input()
protected KeyHookOn getType()
protected Boolean getPropagate()
protected String getTarget()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||