org.odlabs.wiquery.core.options
Class IntegerOption

java.lang.Object
  extended by org.odlabs.wiquery.core.options.AbstractOption<Integer>
      extended by org.odlabs.wiquery.core.options.IntegerOption
All Implemented Interfaces:
Serializable, org.apache.wicket.IClusterable, org.apache.wicket.model.IDetachable, IListItemOption, IModelOption<Integer>, ITypedOption<Integer>

public class IntegerOption
extends AbstractOption<Integer>

$Id: $

Wraps a Integer to be generated as a JavaScript string.

Example:

The Integer 1 should be rendered as 1

Since:
0.5
Author:
Lionel Armanet, Ernesto Reinaldo Barreiro
See Also:
Serialized Form

Constructor Summary
IntegerOption(org.apache.wicket.model.IModel<Integer> value)
          Builds a new instance of IntegerOption.
IntegerOption(Integer value)
          Builds a new instance of IntegerOption.
 
Method Summary
 String toString()
           
 IModelOption<Integer> wrapOnAssignment(org.apache.wicket.Component component)
           
 
Methods inherited from class org.odlabs.wiquery.core.options.AbstractOption
detach, getJavascriptOption, getModel, getValue, setModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntegerOption

public IntegerOption(Integer value)
Builds a new instance of IntegerOption.

Parameters:
literal - the wrapped Integer

IntegerOption

public IntegerOption(org.apache.wicket.model.IModel<Integer> value)
Builds a new instance of IntegerOption.

Parameters:
literal - the wrapped Integer
Method Detail

toString

public String toString()
Specified by:
toString in class AbstractOption<Integer>

wrapOnAssignment

public IModelOption<Integer> wrapOnAssignment(org.apache.wicket.Component component)


Copyright © 2012. All Rights Reserved.