net.quartzware
Class IntegerVal
java.lang.Object
|
+--net.quartzware.Value
|
+--net.quartzware.IntegerVal
- All Implemented Interfaces:
- java.lang.Cloneable
- public class IntegerVal
- extends Value
IntegerVal
Integer Value is a data type which contains one Integer to be stored
in a Resource Bundle.
Constructor Summary |
IntegerVal()
Constructs an empty IntegerVal. |
IntegerVal(int val)
Constructs an IntegerVal with the given int. |
IntegerVal(java.lang.Integer val)
Constructs an IntegerVal with the given Integer. |
Method Summary |
java.lang.Object |
clone()
|
boolean |
editValue()
This function will allow the user to edit the value in this entry. |
void |
setValue(java.lang.String newValue)
This function sets the value of a string |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
IntegerVal
public IntegerVal(java.lang.Integer val)
- Constructs an IntegerVal with the given Integer.
- Parameters:
val
- the name of a Integer value
PRE: val is not null
POST: the class is created
IntegerVal
public IntegerVal(int val)
- Constructs an IntegerVal with the given int.
- Parameters:
val
- the name of a int value.
PRE: none
POST: the class is created
IntegerVal
public IntegerVal()
- Constructs an empty IntegerVal.
PRE: none
POST: the class is created
editValue
public boolean editValue()
- Description copied from class:
Value
- This function will allow the user to edit the value in this entry. It
returns true if in-label editing is required, but false if a dialog will
handle the editing.
- Overrides:
editValue
in class Value
- Following copied from class:
net.quartzware.Value
- Returns:
- Whether to do in label editing of this value
PRE: The entry that this Value is a part of must be in an open Edior
Window
POST: This value may be modified.
setValue
public void setValue(java.lang.String newValue)
- Description copied from class:
Value
- This function sets the value of a string
- Overrides:
setValue
in class Value
- Following copied from class:
net.quartzware.Value
- Parameters:
newValue
- The new value for the string.
PRE: newValue is not null.
POST: none
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
clone
public java.lang.Object clone()