|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.core.ui.validators.ValidatorLongInput
com.ibm.etools.systems.core.ui.validators.ValidatorLongRangeInput
For editable long numbers that must be within a certain range to be valid
Field Summary | |
---|---|
static String |
copyright
|
Fields inherited from class com.ibm.etools.systems.core.ui.validators.ValidatorLongInput |
---|
allowBlank, currentMessage, emptyMsg, invalidMsg, number |
Fields inherited from interface com.ibm.etools.systems.core.ui.validators.ISystemValidator |
---|
Copyright |
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 com.ibm.etools.systems.core.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 |
Field Detail |
public static final String copyright
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 class ValidatorLongInput
IInputValidator
,
ValidatorLongInput.getSystemMessage()
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |