|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.turbine.util.FormMessage
public class FormMessage
A message class for holding information about a message that relates to a specific form and field. Used together with FormMessages class.
Constructor Summary | |
---|---|
FormMessage()
Constructor. |
|
FormMessage(String formName)
Constructor. |
|
FormMessage(String formName,
String fieldName)
Constructor. |
|
FormMessage(String formName,
String fieldName,
String message)
Constructor. |
Method Summary | |
---|---|
String[] |
getFieldNames()
Return the field names. |
String |
getFormName()
Return the form name. |
String |
getMessage()
Return the message. |
void |
setFieldName(String fieldName)
Adds one field name. |
void |
setFormName(String formName)
Set the form name. |
void |
setMessage(String message)
Set the message. |
String |
toString()
Write out the contents of the message in a friendly manner. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FormMessage()
public FormMessage(String formName)
formName
- A String with the form name.public FormMessage(String formName, String fieldName)
formName
- A String with the form name.fieldName
- A String with the field name.public FormMessage(String formName, String fieldName, String message)
formName
- A String with the form name.fieldName
- A String with the field name.message
- A String with the message.Method Detail |
---|
public String getMessage()
public String getFormName()
public String[] getFieldNames()
public void setMessage(String message)
message
- A String with the message.public void setFormName(String formName)
formName
- A String with the form name.public void setFieldName(String fieldName)
fieldName
- A String with the field name.public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |