public class InputBehavior extends Behavior
| Constructor and Description |
|---|
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) |
| Modifier and Type | Method and Description |
|---|---|
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) |
beforeRender, canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onConfigure, onEvent, onException, unbindpublic InputBehavior(KeyType[] keyCombo)
keyCombo - autoHook - protected final String getEscapedComponentMarkupId()
public void renderHead(Component c, org.apache.wicket.markup.head.IHeaderResponse response)
renderHead in interface IComponentAwareHeaderContributorrenderHead in class Behaviorpublic 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()
Copyright © 2012. All Rights Reserved.