org.geworkbench.engine.preferences
Class IntegerField

java.lang.Object
  extended by org.geworkbench.engine.preferences.Field
      extended by org.geworkbench.engine.preferences.IntegerField
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class IntegerField
extends Field

Author:
John Watkinson
See Also:
Serialized Form

Constructor Summary
IntegerField(java.lang.String fieldName)
           
 
Method Summary
 IntegerField clone()
           
 void copyValueFrom(Field other)
           
 void fromString(java.lang.String s)
           
 int getValue()
           
 void setValue(int value)
           
 java.lang.String toString()
           
 
Methods inherited from class org.geworkbench.engine.preferences.Field
getName
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IntegerField

public IntegerField(java.lang.String fieldName)
Method Detail

getValue

public int getValue()

setValue

public void setValue(int value)

copyValueFrom

public void copyValueFrom(Field other)
Specified by:
copyValueFrom in class Field

fromString

public void fromString(java.lang.String s)
                throws ValidationException
Specified by:
fromString in class Field
Throws:
ValidationException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

clone

public IntegerField clone()
Overrides:
clone in class Field