|
RSE Release 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.rse.ui.validators.ValidatorLongInput
org.eclipse.rse.ui.validators.ValidatorLongRangeInput
public class ValidatorLongRangeInput
For editable long numbers that must be within a certain range to be valid
Field Summary |
---|
Fields inherited from class org.eclipse.rse.ui.validators.ValidatorLongInput |
---|
allowBlank, currentMessage, emptyMsg, invalidMsg, number |
Constructor Summary | |
---|---|
ValidatorLongRangeInput(long minRange,
long maxRange)
Constructor when an empty field is not allowed (will result in an error message) |
|
ValidatorLongRangeInput(long minRange,
long 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(long minRange,
long maxRange)
Reset the range |
Methods inherited from class org.eclipse.rse.ui.validators.ValidatorLongInput |
---|
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 ValidatorLongRangeInput(long minRange, long maxRange)
minRange
- - the lowest valid numbermaxRange
- - the highest valid numberpublic ValidatorLongRangeInput(long minRange, long maxRange, boolean allowBlank)
minRange
- - the lowest valid numbermaxRange
- - the highest valid numberallowBlank
- - true if blanks allowed, false if notMethod Detail |
---|
public void setRange(long minRange, long maxRange)
public void restoreRange()
public void setErrorMessages(SystemMessage emptyMsg, SystemMessage invalidMsg, SystemMessage outOfRangeMsg)
public int getMaximumNameLength()
getMaximumNameLength
in interface ISystemValidator
getMaximumNameLength
in class ValidatorLongInput
public String isValid(String input)
isValid
in interface IInputValidator
isValid
in class ValidatorLongInput
IInputValidator.isValid(java.lang.String)
,
ValidatorLongInput.getSystemMessage()
|
RSE Release 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |