|
ProgramixGenericLib v5.0.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.programix.gui.text.IntegerField.RangePair
public static class IntegerField.RangePair
A pair of IntegerField's that are linked together to
specify a range.
The maximum value that can be entered into the low-end of the
range is constrained by the current value in the high-end of
the range.
Similarly, the minimum value that can be entered into the
high-end of the range is constrained by the current value in
the low-end of the range.
| Constructor Summary | |
|---|---|
IntegerField.RangePair(IntegerRange validRange)
|
|
| Method Summary | |
|---|---|
IntegerField |
getHighEndField()
|
IntegerField |
getLowEndField()
|
IntegerRange |
getValidRange()
Returns the currently valid range of values that can be entered into both fields—this is the entire range. |
IntegerRange |
getValues()
Returns the current values of both the 'lo' and 'hi' fields as a range. |
void |
setValues(Integer loValue,
Integer hiValue)
Allows both the values to be set together as this might be necessary to allow them to both successfully be set. |
void |
setValues(IntegerRange valueRange)
Allows both the values to be set together as this might be necessary to allow them to both successfully be set. |
void |
setValues(int loValue,
int hiValue)
Allows both the values to be set together as this might be necessary to allow them to both successfully be set. |
void |
setValues(String loValue,
String hiValue)
Allows both the values to be set together as this might be necessary to allow them to both successfully be set. |
void |
setValues(Value loValue,
Value hiValue)
Allows both the values to be set together as this might be necessary to allow them to both successfully be set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IntegerField.RangePair(IntegerRange validRange)
| Method Detail |
|---|
public IntegerField getLowEndField()
public IntegerField getHighEndField()
public IntegerRange getValues()
public void setValues(IntegerRange valueRange)
valueRange - the new lo and new hi values expressed in a range.
public void setValues(Integer loValue,
Integer hiValue)
throws IllegalArgumentException
loValue - the new value for the 'lo' field.
null is permitted.hiValue - the new value for the 'hi' field.
null is permitted.
IllegalArgumentException - if the loValue value
is greater than the hiValue value.
public void setValues(int loValue,
int hiValue)
throws IllegalArgumentException
loValue - the new value for the 'lo' field.hiValue - the new value for the 'hi' field.
IllegalArgumentException - if the loValue value
is greater than the hiValue value.
public void setValues(String loValue,
String hiValue)
throws IllegalArgumentException
loValue - the new value for the 'lo' field.
null and empty
strings are permitted.hiValue - the new value for the 'hi' field.
null and empty
strings are permitted.
IllegalArgumentException - if the loValue value
is greater than the hiValue value.
public void setValues(Value loValue,
Value hiValue)
throws IllegalArgumentException
loValue - the new value for the 'lo' field.
null and empty
values are permitted.hiValue - the new value for the 'hi' field.
null and empty
values are permitted.
IllegalArgumentException - if the loValue value
is greater than the hiValue value.public IntegerRange getValidRange()
|
ProgramixGenericLib v5.0.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||