|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bowstreet.methods.BaseInputFieldFormatter
public class BaseInputFieldFormatter
Constructor Summary | |
---|---|
BaseInputFieldFormatter()
|
Method Summary | |
---|---|
java.lang.String |
format(java.lang.String value,
java.lang.String format)
Format a value for a html display item. |
java.lang.String |
getErrorMessage()
Get the message for the failed validation/translation. |
java.util.List |
getFormatExpressionList()
Get a list of available format expressions. |
java.util.List |
getTranslateExpressionList()
Get a list of available translate expressions. |
boolean |
getTranslateSuccessFlag()
Get the translate success flag. |
java.util.List |
getValidateExpressionList()
Get a list of available validate expressions. |
WebAppAccess |
getWebAppAccess()
Get the webAppAccess object. |
void |
setErrorMessage(java.lang.String message)
Set a message that will be stored in an error variable when the validation/translation fails. |
void |
setTranslateSuccessFlag(boolean succeeded)
Set the translate success flag. |
void |
setWebAppAccess(WebAppAccess webAppAccess)
Set WebAppAccess object. |
java.lang.String |
translate(java.lang.String value,
java.lang.String format)
Translate a value from a html display. |
boolean |
validate(java.lang.String value,
java.lang.String expression)
Validate a value from a html input. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BaseInputFieldFormatter()
Method Detail |
---|
public java.lang.String format(java.lang.String value, java.lang.String format)
format
in interface IInputFieldFormatter
value
- The value that will be formatted.format
- The format expression that can be used for formatting.
public final java.lang.String getErrorMessage()
getErrorMessage
in interface IInputFieldFormatter
public java.util.List getFormatExpressionList()
getFormatExpressionList
in interface IInputFieldFormatter
public java.util.List getTranslateExpressionList()
getTranslateExpressionList
in interface IInputFieldFormatter
public final boolean getTranslateSuccessFlag()
getTranslateSuccessFlag
in interface IInputFieldFormatter
public java.util.List getValidateExpressionList()
getValidateExpressionList
in interface IInputFieldFormatter
public final WebAppAccess getWebAppAccess()
getWebAppAccess
in interface IInputFieldFormatter
public final void setErrorMessage(java.lang.String message)
setErrorMessage
in interface IInputFieldFormatter
message
- The message for the failed validation/translation.public final void setTranslateSuccessFlag(boolean succeeded)
setTranslateSuccessFlag
in interface IInputFieldFormatter
succeeded
- The flag for the translation. It should be true when
the it succeeds, and false when it fails.public final void setWebAppAccess(WebAppAccess webAppAccess)
setWebAppAccess
in interface IInputFieldFormatter
webAppAccess
- The WebAppAccess object.public java.lang.String translate(java.lang.String value, java.lang.String format)
translate
in interface IInputFieldFormatter
value
- The value that will be translated.format
- The format expression that can be used for the translation.
FieldFormatterTranslationError
public boolean validate(java.lang.String value, java.lang.String expression)
validate
in interface IInputFieldFormatter
value
- The value that will be validated.expression
- The expression that can be used for valiation.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |