|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts.action.Action
live.struts.actions.CheckedAction
live.struts.actions.SwitchedAction
live.struts.actions.CloneGuestAction
| Nested Class Summary |
| Nested classes inherited from class live.struts.actions.CheckedAction |
CheckedAction.ActionInfo |
| Field Summary |
| Fields inherited from class org.apache.struts.action.Action |
defaultLocale, servlet |
| Constructor Summary | |
CloneGuestAction()
|
|
| Method Summary | |
private int |
countDigits(int number)
Given a number, this function will count the number of digits that are present in the number; number=100 would return 3, number=2 would return 1. |
org.apache.struts.action.ActionForward |
displayPage(CheckedAction.ActionInfo info)
This function is called when a request was submitted by an HTTP GET request. |
private String |
formatFixedNumberString(int number,
int totalDesiredDigitCount)
Puts the number string in the proper format for the clone name (ensures that all clone names will have the same number of characters). |
private LinkedList |
generateMultipleGuestNamesList(String startText,
int startNumber,
int endNumber)
This is the function we use to generate the names for a family of clones. |
org.apache.struts.action.ActionForward |
performAction(CheckedAction.ActionInfo info)
This function is called when a request was submitted by an HTTP POST request. |
| Methods inherited from class live.struts.actions.SwitchedAction |
act |
| Methods inherited from class live.struts.actions.CheckedAction |
execute |
| Methods inherited from class org.apache.struts.action.Action |
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CloneGuestAction()
| Method Detail |
public org.apache.struts.action.ActionForward displayPage(CheckedAction.ActionInfo info)
SwitchedAction
displayPage in class SwitchedActioninfo - The request info passed to SwitchedAction.act(CheckedAction.ActionInfo)
SwitchedAction.displayPage(live.struts.actions.CheckedAction.ActionInfo)public org.apache.struts.action.ActionForward performAction(CheckedAction.ActionInfo info)
SwitchedActionSwitchedAction.displayPage(CheckedAction.ActionInfo) so that you know that the user is
coming from that page.
performAction in class SwitchedActioninfo - The request info passed to SwitchedAction.act(CheckedAction.ActionInfo)
SwitchedAction.performAction(live.struts.actions.CheckedAction.ActionInfo)
private LinkedList generateMultipleGuestNamesList(String startText,
int startNumber,
int endNumber)
throws Exception
startText - The base guest namestartNumber - The number at which the clone family will startendNumber - The number at which the clone family will end
Exception - Exception if there is an error with the parameters
private String formatFixedNumberString(int number,
int totalDesiredDigitCount)
throws Exception
number - The number to format.totalDesiredDigitCount - How many digits to make the number string.
Exception - if the number is not able to be formatted properly.
private int countDigits(int number)
throws Exception
number - The number for which we wish to know the number of digits.
Exception - If the number is negative.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||