|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.wicket.behavior.Behavior
org.wicketstuff.minis.behavior.spinner.Spinner
public class Spinner
This behavior is used to augment a TextField with spinning abilities.
For customization of the Spinner take a look at the configure(Properties)
method.
| Constructor Summary | |
|---|---|
Spinner()
|
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.apache.wicket.behavior.Behavior |
|---|
canCallListenerInterface, detach, getStatelessHint, isEnabled, isTemporary, onComponentTag, onConfigure, onEvent, onException, onRemove, unbind |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Spinner()
| Method Detail |
|---|
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.Behavior
public 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.Behavior
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||