|
Rational Developer for Power Systems Software V7.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.etools.iseries.edit.ui.preferences.ValidatorCobolIntegerInput
public class ValidatorCobolIntegerInput
For editable numeric properties. Ensures only digits are entered.
| Field Summary | |
|---|---|
static String |
copyright
|
protected SystemMessage |
currentMessage
|
protected SystemMessage |
emptyMsg
|
protected SystemMessage |
invalidMsg
|
protected int |
number
|
| Constructor Summary | |
|---|---|
ValidatorCobolIntegerInput(SystemMessage emptyMsg,
SystemMessage invalidMsg)
Constructor to use when wanting to specify both error messages |
|
| Method Summary | |
|---|---|
int |
getMaximumNameLength()
Return the max length for this name, or -1 if no max |
int |
getNumber()
If validation is true, you can call this to get the input as a number |
SystemMessage |
getSystemMessage()
When isValid returns non-null, call this to get the SystemMessage object for the error versus the simple string message. |
String |
isValid(Object input)
|
String |
isValid(String input)
|
SystemMessage |
validate(String text)
For convenience, this is a shortcut to calling: |
| 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
protected int number
protected SystemMessage emptyMsg
protected SystemMessage invalidMsg
protected SystemMessage currentMessage
| Constructor Detail |
|---|
public ValidatorCobolIntegerInput(SystemMessage emptyMsg,
SystemMessage invalidMsg)
| Method Detail |
|---|
public String isValid(Object input)
ICellEditorValidatorpublic String isValid(String input)
IInputValidator,
getSystemMessage()public SystemMessage getSystemMessage()
public int getMaximumNameLength()
public SystemMessage validate(String text)
if (isValid(text) != null)
msg = getSystemMessage();
public int getNumber()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||