public class ConstrainedInteger
extends java.lang.Object
Note that this class exists solely as a container for integer values with strict boundaries that the property editor must enforce. Although a value manager exists for this type, the intended use is for generalized display support and not as a true property value.
Constructor and Description |
---|
ConstrainedInteger(int value,
int loBound,
int hiBound)
Enforces the boundaries within which the specified value must be contained.
|
Modifier and Type | Method and Description |
---|---|
int |
getHiBound()
Gets the high end of the bounded range.
|
int |
getLoBound()
Gets the low end of the bounded range.
|
int |
getValue()
Accesses the bounded value.
|
void |
setValue(int value)
Sets the bounded value.
|
java.lang.String |
toString()
Sets the textual representation of the bounded value.
|
public ConstrainedInteger(int value, int loBound, int hiBound)
loBound
or greater than
the hiBound
.public int getValue()
public void setValue(int value)
public int getLoBound()
public int getHiBound()
public java.lang.String toString()
toString
in class java.lang.Object