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

Quick Search    Search Deep

com.RuntimeCollective.publication.form
Class SubscriptionForm  view SubscriptionForm download SubscriptionForm.java

java.lang.Object
  extended byorg.apache.struts.action.ActionForm
      extended bycom.RuntimeCollective.publication.form.SubscriptionForm
All Implemented Interfaces:
com.RuntimeCollective.webapps.form.BeanForm, java.io.Serializable

public class SubscriptionForm
extends org.apache.struts.action.ActionForm
implements com.RuntimeCollective.webapps.form.BeanForm

Form for collecting and validating information on subscriptions.

Version:
$Id: SubscriptionForm.java,v 1.4 2003/09/30 15:12:52 joe Exp $

Field Summary
protected  java.lang.String action
          Action of this form - not used.
static java.lang.String DATE_FORMAT
          Date format used.
private static java.text.SimpleDateFormat df
          Formats dates according to the given format.
protected  java.util.Date endDate
          Subscription end date.
protected  java.lang.String endDateString
          Subscription end date as a String.
protected  java.lang.String publication
          Name of the publication for this subscription.
protected  java.util.Date startDate
          Subscription start date.
protected  java.lang.String startDateString
          Subscription start date as a String.
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
SubscriptionForm()
          Constructs a SubscriptionForm and initialises it to default values.
 
Method Summary
 java.util.Date getEndDate()
          Gets the subscription end date.
 java.lang.String getEndDateString()
          Gets the subscription end date as a String.
 java.lang.String getFormAction()
          Gets the action of this form.
 java.lang.String getPublication()
          Gets the name of this publication.
 java.util.Date getStartDate()
          Gets the subscription start date.
 java.lang.String getStartDateString()
          Gets the subscription start date as a String.
 com.RuntimeCollective.webapps.bean.EntityBean populateBean(com.RuntimeCollective.webapps.bean.EntityBean bean)
          Populates the given subscription bean from this form.
 void populateForm(com.RuntimeCollective.webapps.bean.EntityBean bean)
          Populates the form from the given suscription bean.
 void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Resets the properties of this form.
 void setEndDate(java.util.Date d)
          Sets the subscription end date.
 void setEndDateString(java.lang.String ed)
          Sets the subscription end date as a String.
 void setFormAction(java.lang.String ac)
          Sets the action of this form.
 void setPublication(java.lang.String pub)
          Sets the name of this publication.
 void setStartDate(java.util.Date d)
          Sets the subscription start date.
 void setStartDateString(java.lang.String sd)
          Sets the subscription start date as a String.
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Validates the field of this form.
 
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

DATE_FORMAT

public static final java.lang.String DATE_FORMAT
Date format used.

See Also:
Constant Field Values

df

private static java.text.SimpleDateFormat df
Formats dates according to the given format.


action

protected java.lang.String action
Action of this form - not used.


startDateString

protected java.lang.String startDateString
Subscription start date as a String.


startDate

protected java.util.Date startDate
Subscription start date.


endDateString

protected java.lang.String endDateString
Subscription end date as a String.


endDate

protected java.util.Date endDate
Subscription end date.


publication

protected java.lang.String publication
Name of the publication for this subscription.

Constructor Detail

SubscriptionForm

public SubscriptionForm()
Constructs a SubscriptionForm and initialises it to default values.

Method Detail

setFormAction

public void setFormAction(java.lang.String ac)
Sets the action of this form.

Specified by:
setFormAction in interface com.RuntimeCollective.webapps.form.BeanForm

getFormAction

public java.lang.String getFormAction()
Gets the action of this form.

Specified by:
getFormAction in interface com.RuntimeCollective.webapps.form.BeanForm

setStartDateString

public void setStartDateString(java.lang.String sd)
Sets the subscription start date as a String.


getStartDateString

public java.lang.String getStartDateString()
Gets the subscription start date as a String.


setStartDate

public void setStartDate(java.util.Date d)
Sets the subscription start date.


getStartDate

public java.util.Date getStartDate()
Gets the subscription start date.


setEndDateString

public void setEndDateString(java.lang.String ed)
Sets the subscription end date as a String.


getEndDateString

public java.lang.String getEndDateString()
Gets the subscription end date as a String.


setEndDate

public void setEndDate(java.util.Date d)
Sets the subscription end date.


getEndDate

public java.util.Date getEndDate()
Gets the subscription end date.


setPublication

public void setPublication(java.lang.String pub)
Sets the name of this publication.


getPublication

public java.lang.String getPublication()
Gets the name of this publication.


validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
                                                      javax.servlet.http.HttpServletRequest request)
Validates the field of this form.


reset

public void reset(org.apache.struts.action.ActionMapping mapping,
                  javax.servlet.http.HttpServletRequest request)
Resets the properties of this form.

Specified by:
reset in interface com.RuntimeCollective.webapps.form.BeanForm

populateBean

public com.RuntimeCollective.webapps.bean.EntityBean populateBean(com.RuntimeCollective.webapps.bean.EntityBean bean)
Populates the given subscription bean from this form.

Specified by:
populateBean in interface com.RuntimeCollective.webapps.form.BeanForm

populateForm

public void populateForm(com.RuntimeCollective.webapps.bean.EntityBean bean)
Populates the form from the given suscription bean.

Specified by:
populateForm in interface com.RuntimeCollective.webapps.form.BeanForm