public class InputBehavior
extends org.apache.wicket.behavior.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(org.apache.wicket.Component component) |
void |
bind(org.apache.wicket.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(org.apache.wicket.Component component,
org.apache.wicket.markup.ComponentTag tag) |
void |
renderHead(org.apache.wicket.Component c,
org.apache.wicket.markup.head.IHeaderResponse response) |
public InputBehavior(KeyType[] keyCombo)
keyCombo
- autoHook
- public void bind(org.apache.wicket.Component component)
bind
in class org.apache.wicket.behavior.Behavior
protected final String getEscapedComponentMarkupId()
public void renderHead(org.apache.wicket.Component c, org.apache.wicket.markup.head.IHeaderResponse response)
renderHead
in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributor
renderHead
in class org.apache.wicket.behavior.Behavior
public void onComponentTag(org.apache.wicket.Component component, org.apache.wicket.markup.ComponentTag tag)
onComponentTag
in class org.apache.wicket.behavior.Behavior
public void afterRender(org.apache.wicket.Component component)
afterRender
in class org.apache.wicket.behavior.Behavior
protected Boolean getDisable_in_input()
protected KeyHookOn getType()
protected Boolean getPropagate()
protected String getTarget()
Copyright © 2015. All rights reserved.