|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object chrriis.dj.nativeswing.swtimpl.Message chrriis.dj.nativeswing.swtimpl.CommandMessage
public abstract class CommandMessage
A type of message that executes a command with optional arguments and returns a result.
Constructor Summary | |
---|---|
CommandMessage()
Construct a command message. |
Method Summary | |
---|---|
void |
asyncExec(boolean isTargetNativeSide,
Object... args)
Execute that message asynchronously with the given arguments. |
abstract Object |
run(Object[] args)
Run the message. |
protected Object |
runCommand()
|
Object |
syncExec(boolean isTargetNativeSide,
Object... args)
Execute that message synchronously with the given arguments and return the result. |
String |
toString()
|
Methods inherited from class chrriis.dj.nativeswing.swtimpl.Message |
---|
asyncSend, isValid, syncSend |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CommandMessage()
Method Detail |
---|
public void asyncExec(boolean isTargetNativeSide, Object... args)
isTargetNativeSide
- true if the target is the native side, false otherwise.args
- the arguments, which must be serializable.public Object syncExec(boolean isTargetNativeSide, Object... args)
isTargetNativeSide
- true if the target is the native side, false otherwise.args
- the arguments, which must be serializable.
protected Object runCommand() throws Exception
Exception
public abstract Object run(Object[] args) throws Exception
args
- the arguments that were specified for that command, or an empty array if none were specified.
Exception
- any exception that may happen, and which would be passed back if it is a synchronous execution.public String toString()
toString
in class Message
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |