public class Spinner
extends org.apache.wicket.behavior.Behavior
TextField with spinning abilities.Spinner take a look at the configure(Properties)
method.| Constructor and Description |
|---|
Spinner() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterRender(org.apache.wicket.Component component) |
void |
beforeRender(org.apache.wicket.Component component) |
void |
bind(org.apache.wicket.Component component) |
protected void |
configure(Properties p)
This method can be overridden to customize the Spinner.
The following options are used by the Spinner: interval The amount to increment (default=1) round The number of decimal points to which to round (default=0) min The lowest allowed value, false for no min (default=false) max The highest allowed value, false for no max (default=false) prefix String to prepend when updating (default='') suffix String to append when updating (default='') data An array giving a list of items through which to iterate onIncrement Function to call after incrementing onDecrement Function to call after decrementing afterUpdate Function to call after update of the value onStop Function to call on click or mouseup (default=false) |
protected org.apache.wicket.Component |
getSpinDownComponent() |
protected org.apache.wicket.Component |
getSpinUpComponent() |
void |
renderHead(org.apache.wicket.Component c,
org.apache.wicket.markup.head.IHeaderResponse response) |
public void beforeRender(org.apache.wicket.Component component)
beforeRender in class org.apache.wicket.behavior.Behaviorpublic void bind(org.apache.wicket.Component component)
bind in class org.apache.wicket.behavior.Behaviorprotected void configure(Properties p)
p - protected org.apache.wicket.Component getSpinDownComponent()
protected org.apache.wicket.Component getSpinUpComponent()
public void afterRender(org.apache.wicket.Component component)
afterRender in class org.apache.wicket.behavior.Behaviorpublic void renderHead(org.apache.wicket.Component c,
org.apache.wicket.markup.head.IHeaderResponse response)
renderHead in interface org.apache.wicket.markup.html.IComponentAwareHeaderContributorrenderHead in class org.apache.wicket.behavior.BehaviorCopyright © 2015. All rights reserved.