org.wicketstuff.minis.spinner
Class Spinner

java.lang.Object
  extended by org.apache.wicket.behavior.AbstractBehavior
      extended by org.wicketstuff.minis.spinner.Spinner
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.behavior.IBehavior, org.apache.wicket.IClusterable, org.apache.wicket.markup.html.IHeaderContributor

public class Spinner
extends org.apache.wicket.behavior.AbstractBehavior

This behavior is used to augment a TextField with spinning abilities.
For customization of the Spinner take a look at the configure(Properties) method.

Author:
Gerolf Seitz
See Also:
Serialized Form

Constructor Summary
Spinner()
           
 
Method Summary
 void beforeRender(org.apache.wicket.Component component)
           
 void bind(org.apache.wicket.Component component)
           
protected  void configure(java.util.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 onRendered(org.apache.wicket.Component component)
           
 void renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
           
 
Methods inherited from class org.apache.wicket.behavior.AbstractBehavior
afterRender, cleanup, detach, detachModel, exception, getStatelessHint, isEnabled, isTemporary, onComponentTag, onException, rendered
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Spinner

public Spinner()
Method Detail

bind

public void bind(org.apache.wicket.Component component)
Specified by:
bind in interface org.apache.wicket.behavior.IBehavior
Overrides:
bind in class org.apache.wicket.behavior.AbstractBehavior
See Also:
AbstractBehavior.bind(org.apache.wicket.Component)

renderHead

public void renderHead(org.apache.wicket.markup.html.IHeaderResponse response)
Specified by:
renderHead in interface org.apache.wicket.markup.html.IHeaderContributor
Overrides:
renderHead in class org.apache.wicket.behavior.AbstractBehavior
See Also:
IHeaderContributor.renderHead(org.apache.wicket.markup.html.IHeaderResponse)

beforeRender

public void beforeRender(org.apache.wicket.Component component)
Specified by:
beforeRender in interface org.apache.wicket.behavior.IBehavior
Overrides:
beforeRender in class org.apache.wicket.behavior.AbstractBehavior
See Also:
AbstractBehavior.beforeRender(org.apache.wicket.Component)

onRendered

public void onRendered(org.apache.wicket.Component component)
Overrides:
onRendered in class org.apache.wicket.behavior.AbstractBehavior
See Also:
AbstractBehavior.onRendered(org.apache.wicket.Component)

getSpinDownComponent

protected org.apache.wicket.Component getSpinDownComponent()
Returns:
the component the is used to spin down.

getSpinUpComponent

protected org.apache.wicket.Component getSpinUpComponent()
Returns:
the component that is used to spin up.

configure

protected void configure(java.util.Properties p)
This method can be overridden to customize the Spinner.
The following options are used by the Spinner:

Parameters:
p -


Copyright © 2010. All Rights Reserved.