|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swfm.mica.core.MiAction
com.swfm.mica.core.MiActionCallback
This class is a MiAction that is devoted to supporting the assignment of callbacks to MiParts (see MiPart#appendCommandHandler). It can, of course, be used any time it is desired that an action should trigger a callback (i.e. a call to the processCommand method of a MiiCommandHandler object).
| Field Summary |
| Constructor Summary | |
MiActionCallback(MiiCommandHandler commandHandler,
java.lang.String command)
Constructs a new MiActionCallback, that when assigned to a MiPart, will call the given command handler with the given command whenever the MiPart dispatches a Mi_ACTIVATED_ACTION. |
|
MiActionCallback(MiiCommandHandler commandHandler,
java.lang.String command,
int actionType)
Constructs a new MiActionCallback, that when assigned to a MiPart, will call the given command handler with the given command whenever the MiPart dispatches the given action type. |
|
MiActionCallback(MiiCommandHandler commandHandler,
java.lang.String command,
int actionType,
boolean returnCode)
Constructs a new MiActionCallback, that when assigned to a MiPart, will call the given command handler with the given command whenever the MiPart dispatches the given action type. |
|
| Method Summary | |
java.lang.String |
getCommand()
Gets the command of the command handler to call. |
MiiCommandHandler |
getCommandHandler()
Gets the command handler to call. |
boolean |
getReturnCode()
Gets the code to return after the command handler has been called. |
boolean |
processAction(MiiAction action)
Processes the given action (probably _this_ MiAction). |
void |
setReturnCode(boolean flag)
Sets the code to return after the command handler has been called. |
java.lang.String |
toString()
Returns information about this class. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public MiActionCallback(MiiCommandHandler commandHandler,
java.lang.String command)
commandHandler - the command handler to callcommand - the paramter to pass to the command
handler
public MiActionCallback(MiiCommandHandler commandHandler,
java.lang.String command,
int actionType)
commandHandler - the command handler to callcommand - the paramter to pass to the command handleractionType - the actionType that triggers the call
public MiActionCallback(MiiCommandHandler commandHandler,
java.lang.String command,
int actionType,
boolean returnCode)
commandHandler - the command handler to callcommand - the paramter to pass to the command handleractionType - the actionType that triggers the callreturnCode - the return code| Method Detail |
public MiiCommandHandler getCommandHandler()
public java.lang.String getCommand()
public void setReturnCode(boolean flag)
flag - the return codepublic boolean getReturnCode()
public boolean processAction(MiiAction action)
processAction in interface MiiActionHandlerprocessAction in class MiActionaction - the action to process
setReturnCode(boolean)public java.lang.String toString()
toString in class MiActionMiAction.getActionString(int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||