org.odlabs.wiquery.core.options
Class DoubleOption

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

public class DoubleOption
extends AbstractOption<Double>

$Id: $

Wraps a Double to be generated as a JavaScript string.

Example:

The Double 1 should be rendered as 1

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

Constructor Summary
DoubleOption(Double value)
          Builds a new instance of DoubleOption.
DoubleOption(org.apache.wicket.model.IModel<Double> value)
          Builds a new instance of DoubleOption.
 
Method Summary
 String toString()
           
 IModelOption<Double> 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

DoubleOption

public DoubleOption(Double value)
Builds a new instance of DoubleOption.

Parameters:
literal - the wrapped Double

DoubleOption

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

Parameters:
literal - the wrapped Double
Method Detail

toString

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

wrapOnAssignment

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


Copyright © 2012. All Rights Reserved.