|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.xsp.convert.MaskConverter
public class MaskConverter
The xp:convertMask
tag converts data to a JSF formatted string and vice versa.
Field Summary | |
---|---|
static java.lang.String |
CONVERTER_ID
The converter id for this converter. |
static char |
MASK_ALPHABET
Mask Input Character: Any character. |
static char |
MASK_CHARDIGIT
Mask Character: Any character or number. |
static char |
MASK_DIGIT
Mask Input Character: Any valid number. |
static char |
MASK_ESCAPE
Mask Character: Escape |
static char |
MASK_HEXA
Mask Character: Any hex character (0-9, a-f or A-F). |
static char |
MASK_LOWERCASE
Mask Character: Any character. |
static char |
MASK_START
Mask Character: Anything. |
static char |
MASK_UPPERCASE
Mask Character: Any character. |
Constructor Summary | |
---|---|
MaskConverter()
|
Method Summary | |
---|---|
protected javax.faces.convert.ConverterException |
createFailedToConvertObjectEx()
Return error message |
java.lang.Object |
getAsObject(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String value)
Return value as an object |
java.lang.String |
getAsString(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object value)
Return value as a string |
java.lang.String |
getMask()
Return the mask specified by setMask(String) |
boolean |
isAsis()
Return true if As Is is set using setAsis(boolean) |
boolean |
isTransient()
|
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setAsis(boolean b)
Specify whether data other than masked inputted are removed or not. |
void |
setMask(java.lang.String string)
Specify an input mask pattern by using mask characters. |
void |
setTransient(boolean newTransientValue)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final char MASK_ESCAPE
public static final char MASK_DIGIT
public static final char MASK_ALPHABET
public static final char MASK_UPPERCASE
public static final char MASK_LOWERCASE
public static final char MASK_CHARDIGIT
public static final char MASK_START
public static final char MASK_HEXA
public static final java.lang.String CONVERTER_ID
Constructor Detail |
---|
public MaskConverter()
Method Detail |
---|
protected javax.faces.convert.ConverterException createFailedToConvertObjectEx()
public java.lang.Object getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String value)
getAsObject
in interface javax.faces.convert.Converter
public java.lang.String getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object value)
getAsString
in interface javax.faces.convert.Converter
public void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
restoreState
in interface javax.faces.component.StateHolder
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
public boolean isAsis()
setAsis(boolean)
public java.lang.String getMask()
setMask(String)
public void setAsis(boolean b)
public void setMask(java.lang.String string)
public boolean isTransient()
isTransient
in interface javax.faces.component.StateHolder
public void setTransient(boolean newTransientValue)
setTransient
in interface javax.faces.component.StateHolder
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |