|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.turbine.util.FormMessages
Used for adding and accessing messages that relate to a specific form and field. Allows to query for messages by form name and field name. Used together with FormMessage class.
Constructor Summary | |
FormMessages()
Constructor. |
Method Summary | |
FormMessage[] |
getFormMessages(java.lang.String formName)
Gets all form messages for a given form. |
FormMessage[] |
getFormMessages(java.lang.String formName,
java.lang.String fieldName)
Get form messages for a given form and field. |
void |
setMessage(java.lang.String formName,
java.lang.String fieldName,
long returnCode)
Sets a message for a field of a form. |
void |
setMessage(java.lang.String formName,
java.lang.String fieldName,
java.lang.String messageName)
Sets a message for a field of a form. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FormMessages()
Method Detail |
public void setMessage(java.lang.String formName, java.lang.String fieldName, long returnCode)
formName
- A String with the form name.fieldName
- A String with the field name.returnCode
- A long with the return code.public void setMessage(java.lang.String formName, java.lang.String fieldName, java.lang.String messageName)
formName
- A String with the form name.fieldName
- A String with the field name.messageName
- A String with the message.public FormMessage[] getFormMessages(java.lang.String formName)
formName
- A String with the form name.
public FormMessage[] getFormMessages(java.lang.String formName, java.lang.String fieldName)
formName
- A String with the form name.fieldName
- A String with the field name.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |