|
RSE Release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.rse.ui.validators.ValidatorIntegerInput
org.eclipse.rse.ui.validators.ValidatorIntegerRangeInput
public class ValidatorIntegerRangeInput
For editable integer numbers that must be within a certain range to be valid
Field Summary |
---|
Fields inherited from class org.eclipse.rse.ui.validators.ValidatorIntegerInput |
---|
allowBlank, currentMessage, emptyMsg, invalidMsg, number |
Constructor Summary | |
---|---|
ValidatorIntegerRangeInput(int minRange,
int maxRange)
Constructor when an empty field is not allowed (will result in an error message) |
|
ValidatorIntegerRangeInput(int minRange,
int maxRange,
boolean allowBlank)
Constructor when an empty field is allowed. |
Method Summary | |
---|---|
int |
getMaximumNameLength()
Return the max length for this name, or -1 if no max. |
String |
isValid(String input)
Intercept of parent to also add range checking |
void |
restoreRange()
Restore the range originally specified in the constructor |
void |
setErrorMessages(SystemMessage emptyMsg,
SystemMessage invalidMsg,
SystemMessage outOfRangeMsg)
Set the error messages, overriding the defaults |
void |
setRange(int minRange,
int maxRange)
Reset the range |
Methods inherited from class org.eclipse.rse.ui.validators.ValidatorIntegerInput |
---|
getNumber, getSystemMessage, isValid, setBlankAllowed, setErrorMessages, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidatorIntegerRangeInput(int minRange, int maxRange)
minRange
- - the lowest valid numbermaxRange
- - the highest valid numberpublic ValidatorIntegerRangeInput(int minRange, int maxRange, boolean allowBlank)
minRange
- - the lowest valid numbermaxRange
- - the highest valid numberallowBlank
- - true if blanks allowed, false if notMethod Detail |
---|
public void setRange(int minRange, int maxRange)
public void restoreRange()
public void setErrorMessages(SystemMessage emptyMsg, SystemMessage invalidMsg, SystemMessage outOfRangeMsg)
public int getMaximumNameLength()
getMaximumNameLength
in interface ISystemValidator
getMaximumNameLength
in class ValidatorIntegerInput
public String isValid(String input)
isValid
in interface IInputValidator
isValid
in class ValidatorIntegerInput
IInputValidator.isValid(java.lang.String)
,
ValidatorIntegerInput.getSystemMessage()
|
RSE Release 3.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |