|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.xwork2.ActionSupport
org.nuiton.web.struts2.BaseAction
org.chorem.pollen.ui.actions.PollenActionSupport
org.chorem.pollen.ui.actions.poll.AbstractDisplayChoice
public abstract class AbstractDisplayChoice
To generate the display for a text choice.
| Field Summary | |
|---|---|
protected Choice |
choice
Choice to display in ui (come from dynamic data if exists, or fresh created one). |
protected int |
choiceNumber
Number of choice to display. |
protected String |
tokenId
Where to find dynamic data (says choices in this case). |
| Fields inherited from class org.chorem.pollen.ui.actions.PollenActionSupport |
|---|
SAFE_LANGUAGES, serviceContext, serviceFactory, transaction |
| Fields inherited from class com.opensymphony.xwork2.ActionSupport |
|---|
LOG |
| Fields inherited from interface com.opensymphony.xwork2.Action |
|---|
ERROR, INPUT, LOGIN, NONE, SUCCESS |
| Constructor Summary | |
|---|---|
AbstractDisplayChoice()
|
|
| Method Summary | |
|---|---|
protected abstract Choice |
createEmptyChoice()
|
String |
execute()
|
Choice |
getChoice()
|
int |
getChoiceNumber()
|
void |
setChoiceNumber(int choiceNumber)
|
void |
setTokenId(String tokenId)
|
| Methods inherited from class org.nuiton.web.struts2.BaseAction |
|---|
_ |
| Methods inherited from class com.opensymphony.xwork2.ActionSupport |
|---|
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, doDefault, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String tokenId
protected int choiceNumber
protected Choice choice
| Constructor Detail |
|---|
public AbstractDisplayChoice()
| Method Detail |
|---|
public void setTokenId(String tokenId)
public void setChoiceNumber(int choiceNumber)
public Choice getChoice()
public int getChoiceNumber()
protected abstract Choice createEmptyChoice()
public String execute()
throws Exception
execute in interface com.opensymphony.xwork2.Actionexecute in class com.opensymphony.xwork2.ActionSupportException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||