|
CLRA 0.1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.struts.action.ActionForm | +--com.clra.web.RowingSessionForm
Form bean for the rowing session page. This form has the following fields, with default values in square brackets:
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 |
public static final String CREATE
public static final String PUBLISH
public static final String EDIT
public static final String VIEW
public static final String SESSIONCANCEL
public static final String DELETE
public static final String CANCEL
Constructor Detail |
public RowingSessionForm()
Method Detail |
public String getAction()
public void setAction(String action)
public Integer getRowingId()
public String getState()
public void setState(String state)
public String getDate()
public String getTime()
public String getDateTime()
public Date getDateTimeAsDateObject()
public void setDateTimeFromDate(Date date)
public Calendar getCalendar()
public void setCalendar(Calendar calendar)
public int getYear()
public void setYear(int year)
public int getMonth()
public void setMonth(int month)
public int getDay()
public void setDay(int day)
public int getHour()
public void setHour(int hour)
public int getMinute()
public void setMinute(int minute)
public int getAmPm()
public void setAmPm(int ampm)
public String getLevel()
public void setLevel(String level)
public String getType()
public void setType(String type)
public void reset(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
reset
in class org.apache.struts.action.ActionForm
mapping
- The mapping used to select this instancerequest
- The servlet request we are processingpublic org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
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:
validate
in class org.apache.struts.action.ActionForm
mapping
- The mapping used to select this instancerequest
- The servlet request we are processing
|
CLRA 0.1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |