org.omus.data
Class IntField
java.lang.Object
|
+--org.omus.data.DataField
|
+--org.omus.data.IntField
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- public class IntField
- extends DataField
A class for properties or table columns configured as an int,
corresponding to the number datatype in ActionScript. This type
of DataField will only be created if a property or column in a table
is explicitly configured as an int. All other ActionScript numbers
that are converted automatically will be converted to DoubleFields.
- See Also:
- Serialized Form
|
Constructor Summary |
IntField(java.lang.String n,
int v)
Creates a new IntField with the specified name and value. |
|
Method Summary |
void |
accept(FieldVisitor fv)
Accepts a visitor. |
int |
getInt()
Returns the value of this IntField as an int. |
void |
setInt(int newValue)
Sets the value of this IntField to the specified int. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IntField
public IntField(java.lang.String n,
int v)
- Creates a new IntField with the specified name and value.
getInt
public int getInt()
- Returns the value of this IntField as an int.
setInt
public void setInt(int newValue)
- Sets the value of this IntField to the specified int.
accept
public void accept(FieldVisitor fv)
- Description copied from class:
DataField
- Accepts a visitor. The visitor pattern is useful if you want to extend
the functionality of all DataFields without modifying their API.
- Overrides:
accept in class DataField
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object