CLRA 0.1.2

com.clra.web
Class RowingSessionForm

java.lang.Object
  |
  +--org.apache.struts.action.ActionForm
        |
        +--com.clra.web.RowingSessionForm
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ParticipationForm

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

Form bean for the rowing session page. This form has the following fields, with default values in square brackets:

Version:
$Revision: 1.2 $ $Date: 2002/02/18 18:07:02 $
Author:
Rick Hall
See Also:
Serialized Form

Field Summary
static String CANCEL
          Name of the action that cancels action by the form
static String CREATE
          Name of the action that creates a rowing session
static String DELETE
          Name of the action that deletes a rowing session
static String EDIT
          Name of the action that edits a rowing session
static String PUBLISH
          Name of the action that publishes a rowing session
static String SESSIONCANCEL
          Name of the action that cancels a rowing session
static String VIEW
          Name of the action that displays a rowing session
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
RowingSessionForm()
           
 
Method Summary
 String getAction()
          Return the maintenance action
 int getAmPm()
          Return am/pm.
 Calendar getCalendar()
          Returns the date and time in a Calendar object
 String getDate()
          Returns the formatted date of the rowing session
 String getDateTime()
          Returns the formatted date and time of the rowing session
 Date getDateTimeAsDateObject()
          Returns the date and time in a Date object
 int getDay()
          Return the day.
 int getHour()
          Return the hour.
 String getLevel()
          Return the level of the rowing session
 int getMinute()
          Return the minute
 int getMonth()
          Return the month.
 Integer getRowingId()
          Return the persistent id of the rowing session
 String getState()
          Return the state of the rowing session
 String getTime()
          Returns the formatted time of the rowing session
 String getType()
          Return the type of the rowing session
 int getYear()
          Return the year.
 void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Reset all properties to their default values.
 void setAction(String action)
          Set the maintenance action.
 void setAmPm(int ampm)
          Sets am/pm Range: Calendar.AM or Calendar.PM
 void setCalendar(Calendar calendar)
          Sets the date and time from a Calendar object
 void setDateTimeFromDate(Date date)
          Sets the date and time from a Date object
 void setDay(int day)
          Sets the day.
 void setHour(int hour)
          Sets the hour.
 void setLevel(String level)
          Set the level of the rowing session
 void setMinute(int minute)
          Sets the minute
 void setMonth(int month)
          Sets the month.
 void setState(String state)
          Set the state of the rowing session
 void setType(String type)
          Set the type of the rowing session
 void setYear(int year)
          Sets the year.
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
          Validate the properties that have been set from 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, reset, setMultipartRequestHandler, setServlet, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CREATE

public static final String CREATE
Name of the action that creates a rowing session

PUBLISH

public static final String PUBLISH
Name of the action that publishes a rowing session

EDIT

public static final String EDIT
Name of the action that edits a rowing session

VIEW

public static final String VIEW
Name of the action that displays a rowing session

SESSIONCANCEL

public static final String SESSIONCANCEL
Name of the action that cancels a rowing session

DELETE

public static final String DELETE
Name of the action that deletes a rowing session

CANCEL

public static final String CANCEL
Name of the action that cancels action by the form
Constructor Detail

RowingSessionForm

public RowingSessionForm()
Method Detail

getAction

public String getAction()
Return the maintenance action

setAction

public void setAction(String action)
Set the maintenance action.

getRowingId

public Integer getRowingId()
Return the persistent id of the rowing session

getState

public String getState()
Return the state of the rowing session

setState

public void setState(String state)
Set the state of the rowing session

getDate

public String getDate()
Returns the formatted date of the rowing session

getTime

public String getTime()
Returns the formatted time of the rowing session

getDateTime

public String getDateTime()
Returns the formatted date and time of the rowing session

getDateTimeAsDateObject

public Date getDateTimeAsDateObject()
Returns the date and time in a Date object

setDateTimeFromDate

public void setDateTimeFromDate(Date date)
Sets the date and time from a Date object

getCalendar

public Calendar getCalendar()
Returns the date and time in a Calendar object

setCalendar

public void setCalendar(Calendar calendar)
Sets the date and time from a Calendar object

getYear

public int getYear()
Return the year. Range: 2001 - ...

setYear

public void setYear(int year)
Sets the year. Range: 2001 - ...

getMonth

public int getMonth()
Return the month. Range: 0 - 11

setMonth

public void setMonth(int month)
Sets the month. Range: 0 - 11

getDay

public int getDay()
Return the day. Range: 1 - 31

setDay

public void setDay(int day)
Sets the day. Range: 1 - 31

getHour

public int getHour()
Return the hour. Range: 1 - 12

setHour

public void setHour(int hour)
Sets the hour. Range: 1 - 12

getMinute

public int getMinute()
Return the minute

setMinute

public void setMinute(int minute)
Sets the minute

getAmPm

public int getAmPm()
Return am/pm. Range: Calendar.AM or Calendar.PM

setAmPm

public void setAmPm(int ampm)
Sets am/pm Range: Calendar.AM or Calendar.PM

getLevel

public String getLevel()
Return the level of the rowing session

setLevel

public void setLevel(String level)
Set the level of the rowing session

getType

public String getType()
Return the type of the rowing session

setType

public void setType(String type)
Set the type of the rowing session

reset

public void reset(org.apache.struts.action.ActionMapping mapping,
                  javax.servlet.http.HttpServletRequest request)
Reset all properties to their default values.
Overrides:
reset in class org.apache.struts.action.ActionForm
Parameters:
mapping - The mapping used to select this instance
request - The servlet request we are processing

validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
                                                      javax.servlet.http.HttpServletRequest request)
Validate the properties that have been set from 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.

Restrictions:


CLRA 0.1.2