|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.ulc.util.UlcObject | +--com.ibm.ulc.ui.UIProxy | +--com.ibm.ulc.ui.dataTypes.UIDataType | +--com.ibm.ulc.ui.dataTypes.UIRangeValidator
Field Summary | |
protected boolean |
fIntValue
The boolean when true converts the returned value to an integer. |
protected double |
fMax
The maximum value allowed for this Validator. |
protected double |
fMin
The minimum value allowed for this Validator. |
protected static java.lang.String |
validChars
Allowed input characters |
Fields inherited from class com.ibm.ulc.ui.UIProxy |
fConnection,
fId |
Constructor Summary | |
UIRangeValidator()
|
Method Summary | |
java.lang.Object |
convertToObject(int phase,
java.lang.String newString,
java.lang.Object previousValue)
Check if the input string conforms to the range specified. |
java.lang.String |
convertToString(java.lang.Object object,
boolean forEditing)
Return the String represenation of the object or the empty string if object is null. |
java.lang.String |
filterInput(java.lang.String newString)
The default implementation returns original string without modification. |
boolean |
hasValidCharacters(java.lang.String s)
Ensure that the given string has no invalid characters. |
java.lang.Double |
parse(java.lang.String s)
|
void |
restoreState(ORBConnection conn,
Anything args)
This method is the first method called after this widget is instantiated. |
Methods inherited from class com.ibm.ulc.ui.dataTypes.UIDataType |
filterInput,
getCols,
getDefaultValue |
Methods inherited from class com.ibm.ulc.ui.UIProxy |
add,
add,
addInstance,
addMany,
convert,
convert,
finalize,
find,
free,
getManaged,
handleRequest,
isOptionalEventEnabled,
printInstances,
remove,
remove,
removeInstance,
removeMany,
sendEventULC,
sendEventULC,
sendEventULC,
sendOptionalEventULC,
sendOptionalEventULC,
sendOptionalEventULC,
sendULC,
sendULC,
setOptionalEventsEnabled,
trouble |
Methods inherited from class com.ibm.ulc.util.UlcObject |
trouble2,
trouble2Err,
troubleErr |
Methods inherited from class java.lang.Object |
clone,
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected double fMin
protected double fMax
protected boolean fIntValue
protected static java.lang.String validChars
Constructor Detail |
public UIRangeValidator()
Method Detail |
public java.lang.Object convertToObject(int phase, java.lang.String newString, java.lang.Object previousValue) throws DataTypeConversionException
phase
- int The current validation phase.
The phase can be one of the following:
FORM_NOTIFICATION_IMMEADIATE : Typically no validation is performed in this case the input string is returned as is. FORM_NOTIFICATION_ON_FOCUS_CHANGE FORM_NOTIFICATION_ON_REQUEST
newString
- The String to convert.IDataType.convertToObject(int, String, Object)
public java.lang.String convertToString(java.lang.Object object, boolean forEditing)
IDataType.convertToString(Object, boolean)
public java.lang.String filterInput(java.lang.String newString)
IDataType.filterInput(String)
public boolean hasValidCharacters(java.lang.String s)
IDataType.filterInput(String)
public java.lang.Double parse(java.lang.String s)
public void restoreState(ORBConnection conn, Anything args)
conn
- the UlcConnection
in which this operation is performedargs
- the Anything
containing the optional initialization parameters
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |