net.xoetrope.xui.helper
Class DoubleAdapter

java.lang.Object
  extended by net.xoetrope.xui.helper.DoubleAdapter

public class DoubleAdapter
extends java.lang.Object

A helper for an double model field

Copyright (c) Xoetrope Ltd., 2002-2004

$Revision: 2.2 $

License: see License.txt


Constructor Summary
DoubleAdapter(java.lang.Object modelNode)
          Wrap a model node containing a double field
 
Method Summary
 void decrement()
          Decrement the model value by one
 double get()
          Get the model value as a double value
 void increment()
          Increment the model value by one
 void set(double newValue)
          Set the model value as a double value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleAdapter

public DoubleAdapter(java.lang.Object modelNode)
Wrap a model node containing a double field

Parameters:
modelNode - The model node being adapted
Method Detail

get

public double get()
Get the model value as a double value

Returns:
the integer value

set

public void set(double newValue)
Set the model value as a double value

Parameters:
newValue - the new value

increment

public void increment()
Increment the model value by one


decrement

public void decrement()
Decrement the model value by one