|
|||||||||
| 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.UIStringFormatter
| Field Summary | |
protected int |
fMaxLength
The maximum length of the string allowed. |
protected int |
fMode
Mode can be one of the following: |
| Fields inherited from class com.ibm.ulc.ui.UIProxy |
fConnection,
fId,
fList,
fOptionalEvents,
fProxyParent |
| Constructor Summary | |
UIStringFormatter()
|
|
| Method Summary | |
java.lang.Object |
convertToObject(int phase,
java.lang.String newString,
java.lang.Object previousValue)
Convert the input string based on the configured length and converion 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,
java.lang.String oldText)
Hook to filter any text input into the field. |
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,
filterInput,
getCols,
getDefaultValue |
| Methods inherited from class com.ibm.ulc.ui.UIProxy |
add,
add,
addInstance,
addMany,
cachedResources,
convert,
convert,
enableOptionalEvents,
finalize,
find,
free,
getApplication,
getChildren,
getConnection,
getId,
getManaged,
getManaged,
getProxyParent,
getUI,
handleRequest,
internalAddToChildren,
internalRemoveFromChildren,
isChildOf,
isChildWidget,
isOptionalEventEnabled,
isParentOf,
newUpdate,
printInstances,
remove,
remove,
removeInstance,
removeMany,
sendEventULC,
sendEventULC,
sendEventULC,
sendOptionalEventULC,
sendOptionalEventULC,
sendOptionalEventULC,
sendULC,
sendULC,
setConnectionAndId,
setOptionalEvents,
setOptionalEventsEnabled,
setProxyParent,
trouble,
updateCachedResource |
| 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 int fMode
IDENTITY = 0; ALL_UPPER_CASE = 1; ALL_LOWER_CASE = 2;
protected int fMaxLength
| Constructor Detail |
public UIStringFormatter()
| Method Detail |
public java.lang.Object convertToObject(int phase,
java.lang.String newString,
java.lang.Object previousValue)
phase - int The current validation phase.
The phase can be one of the following:
FORM_NOTIFICATION_IMMEDIATE : 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,
java.lang.String oldText)
newString - The string to filter.oldText - The current Contents.IDataType.filterInput(String, String)
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 | ||||||||