|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.magicproject.action.context.ActionContextWrapper
public final class ActionContextWrapper
Field Summary | |
---|---|
MAction |
action
Action owning this context |
ActionContext |
actionContext
Specific data saved during the init/... steps. |
JChoosenAction |
actionUI
The JCostAction object associated to this context. |
int |
contextID
Action index within the chain of cost |
int |
done
Times already done. |
int |
recordIndex
Is -1 if this action has not been completed. |
int |
repeat
Times to repeat this action |
Constructor Summary | |
---|---|
ActionContextWrapper(int contextID,
MAction action,
ActionContext actionContext,
int repeat)
Create a new instance of this class. |
Method Summary | |
---|---|
boolean |
isCompleted()
Is this action is completed? |
boolean |
isRefreshText()
Is the text is being to be refreshed. |
void |
refreshText(Ability ability,
ContextEventListener context)
Refresh the text of associated action UI component. |
java.lang.String |
toHtmlString(Ability ability,
ContextEventListener context)
Return the HTML code representing this action. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public MAction action
public JChoosenAction actionUI
public ActionContext actionContext
public int contextID
public int repeat
public int done
public int recordIndex
-1
if this action has not been completed. Otherwise this
corresponds to the record id. Start from 0
.
Constructor Detail |
---|
public ActionContextWrapper(int contextID, MAction action, ActionContext actionContext, int repeat)
contextID
- the action ID.action
- the action.actionContext
- the context of this actionrepeat
- times this action has to be refreshed.Method Detail |
---|
public boolean isCompleted()
public java.lang.String toHtmlString(Ability ability, ContextEventListener context)
ability
- is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.context
- is the context attached to this action.
public void refreshText(Ability ability, ContextEventListener context)
ability
- is the ability owning this test. The card component of this
ability should correspond to the card owning this test too.context
- is the context attached to this action.public boolean isRefreshText()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |