|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.turbine.util.FormMessages
public class 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(String formName)
Gets all form messages for a given form. |
FormMessage[] |
getFormMessages(String formName,
String fieldName)
Get form messages for a given form and field. |
void |
setMessage(String formName,
String fieldName,
long returnCode)
Sets a message for a field of a form. |
void |
setMessage(String formName,
String fieldName,
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(String formName, 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(String formName, String fieldName, 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(String formName)
formName
- A String with the form name.
public FormMessage[] getFormMessages(String formName, 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 |