Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

ru.gammalabs.ice.forum.web
Class MessageFormBean  view MessageFormBean download MessageFormBean.java

java.lang.Object
  extended byorg.apache.struts.action.ActionForm
      extended byru.gammalabs.ice.forum.web.MessageFormBean
All Implemented Interfaces:
java.io.Serializable

public class MessageFormBean
extends org.apache.struts.action.ActionForm


Field Summary
private  boolean closed
           
private  java.lang.Long id
           
private static org.apache.log4j.Category LOG
           
private  java.lang.Long parentId
           
private  java.lang.String text
           
private  java.lang.String title
           
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
MessageFormBean()
           
 
Method Summary
 void fill(ru.gammalabs.ice.forum.Message message)
           
 java.lang.Long getId()
           
 java.lang.Long getParentId()
           
 java.lang.String getText()
           
 java.lang.String getTitle()
           
 boolean isClosed()
           
 void reset(org.apache.struts.action.ActionMapping actionMapping, javax.servlet.http.HttpServletRequest request)
          Reset bean properties to their default state, as needed.
 void setClosed(boolean closed)
           
 void setId(java.lang.Long id)
           
 void setParentId(java.lang.Long parentId)
           
 void setText(java.lang.String text)
           
 void setTitle(java.lang.String title)
           
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping actionMapping, javax.servlet.http.HttpServletRequest request)
          Validate the properties that have been set for this HTTP request, and return an ActionErrors object that encapsulates any validation errors that have been found.
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static org.apache.log4j.Category LOG

id

private java.lang.Long id

parentId

private java.lang.Long parentId

title

private java.lang.String title

text

private java.lang.String text

closed

private boolean closed
Constructor Detail

MessageFormBean

public MessageFormBean()
Method Detail

getId

public java.lang.Long getId()

setId

public void setId(java.lang.Long id)

getParentId

public java.lang.Long getParentId()

setParentId

public void setParentId(java.lang.Long parentId)

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String title)

getText

public java.lang.String getText()

setText

public void setText(java.lang.String text)

isClosed

public boolean isClosed()

setClosed

public void setClosed(boolean closed)

fill

public void fill(ru.gammalabs.ice.forum.Message message)

reset

public void reset(org.apache.struts.action.ActionMapping actionMapping,
                  javax.servlet.http.HttpServletRequest request)
Description copied from class: org.apache.struts.action.ActionForm

Reset bean properties to their default state, as needed. This method is called before the properties are repopulated by the controller.

The default implementation does nothing. In practice, the only properties that need to be reset are those which represent checkboxes on a session-scoped form. Otherwise, properties can be given initial values where the field is declared.

If the form is stored in session-scope so that values can be collected over multiple requests (a "wizard"), you must be very careful of which properties, if any, are reset. As mentioned, session-scope checkboxes must be reset to false for any page where this property is set. This is because the client does not submit a checkbox value when it is clear (false). If a session-scoped checkbox is not proactively reset, it can never be set to false.

This method is not the appropriate place to initialize form value for an "update" type page (this should be done in a setup Action). You mainly need to worry about setting checkbox values to false; most of the time you can leave this method unimplemented.


validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping actionMapping,
                                                      javax.servlet.http.HttpServletRequest request)
Description copied from class: org.apache.struts.action.ActionForm

Validate the properties that have been set for this HTTP request, and return an ActionErrors object that encapsulates any validation errors that have been found. If no errors are found, return null or an ActionErrors object with no recorded error messages.

The default implementation performs no validation and returns null. Subclasses must override this method to provide any validation they wish to perform.