net.xoetrope.xui.helper
Class IntegerAdapter

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

public class IntegerAdapter
extends java.lang.Object

    

A helper for an int model field

Copyright (c) Xoetrope Ltd., 2002-2004

$Revision: 2.2 $

License: see License.txt


Constructor Summary
IntegerAdapter(java.lang.Object modelNode)
          Create a new adapter
 
Method Summary
 void decrement()
          Decrement the model value by one
 int get()
          Get the model value as an int value
 void increment()
          Increment the model value by one
 void set(int newValue)
          Set the model value as an integer value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerAdapter

public IntegerAdapter(java.lang.Object modelNode)
Create a new adapter

Parameters:
modelNode - The model node being adapted
Method Detail

get

public int get()
Get the model value as an int value

Returns:
the integer value

set

public void set(int newValue)
Set the model value as an integer 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