|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.custom.convertStringUtils.StringUtilsConverter
public class StringUtilsConverter
Converts the format of a string
Converter which modifies a string by changing the input text into upper case, lower case, capitalized. The input string can be optionally trimmed and truncated at some max length. Ellipses (...) can be added to a truncated string.
Provides runtime modification of a string. Uses Apache Lang StringUtils and WordUtils to peform operations.
Field Summary | |
---|---|
protected boolean |
_transient
|
protected java.lang.Boolean |
appendEllipsesDuringInput
|
protected java.lang.Boolean |
appendEllipsesDuringOutput
|
static java.lang.String |
CONVERTER_ID
|
protected java.lang.String |
format
|
protected java.lang.Integer |
maxLength
|
protected java.lang.Boolean |
trim
|
Constructor Summary | |
---|---|
StringUtilsConverter()
|
Method Summary | |
---|---|
java.lang.Object |
getAsObject(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String value)
|
java.lang.String |
getAsString(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object value)
|
java.lang.String |
getFormat()
Specifies the output case of the string. |
java.lang.Integer |
getMaxLength()
Integer value for the maximum length of the rendered string. |
java.lang.Boolean |
getTrim()
Boolean value determining is the string should be trimmed before any other formatting takes place. |
java.lang.Boolean |
isAppendEllipsesDuringInput()
Boolean value determining if data should be truncated with ellipses during input conversion. |
java.lang.Boolean |
isAppendEllipsesDuringOutput()
Boolean value determining if data should be truncated with ellipses during output conversion. |
boolean |
isTransient()
|
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setAppendEllipsesDuringInput(java.lang.Boolean appendEllipsesDuringInput)
|
void |
setAppendEllipsesDuringOutput(java.lang.Boolean appendEllipsesDuringOutput)
|
void |
setFormat(java.lang.String format)
|
void |
setMaxLength(java.lang.Integer maxLength)
|
void |
setTransient(boolean _transient)
|
void |
setTrim(java.lang.Boolean trim)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONVERTER_ID
protected boolean _transient
protected java.lang.String format
protected java.lang.Boolean trim
protected java.lang.Integer maxLength
protected java.lang.Boolean appendEllipsesDuringOutput
protected java.lang.Boolean appendEllipsesDuringInput
Constructor Detail |
---|
public StringUtilsConverter()
Method Detail |
---|
public java.lang.Object getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String value) throws javax.faces.convert.ConverterException
getAsObject
in interface javax.faces.convert.Converter
javax.faces.convert.ConverterException
public java.lang.String getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object value) throws javax.faces.convert.ConverterException
getAsString
in interface javax.faces.convert.Converter
javax.faces.convert.ConverterException
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 isTransient()
isTransient
in interface javax.faces.component.StateHolder
public void setTransient(boolean _transient)
setTransient
in interface javax.faces.component.StateHolder
public java.lang.String getFormat()
public void setFormat(java.lang.String format)
public java.lang.Integer getMaxLength()
public void setMaxLength(java.lang.Integer maxLength)
public java.lang.Boolean isAppendEllipsesDuringOutput()
public void setAppendEllipsesDuringOutput(java.lang.Boolean appendEllipsesDuringOutput)
public java.lang.Boolean isAppendEllipsesDuringInput()
public void setAppendEllipsesDuringInput(java.lang.Boolean appendEllipsesDuringInput)
public java.lang.Boolean getTrim()
public void setTrim(java.lang.Boolean trim)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |