|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchrriis.dj.nativeswing.swtimpl.Message
chrriis.dj.nativeswing.swtimpl.CommandMessage
chrriis.dj.nativeswing.swtimpl.ControlCommandMessage
public abstract class ControlCommandMessage
A message that makes the link between a native component on the local side and its native peer control.
| Constructor Summary | |
|---|---|
ControlCommandMessage()
Construct a control command message. |
|
| Method Summary | |
|---|---|
void |
asyncExec(boolean isTargetNativeSide,
Object... args)
Execute that message asynchronously with the given arguments. |
void |
asyncExec(Control control,
Object... args)
Execute that message asynchronously with the given arguments. |
void |
asyncExec(NativeComponent nativeComponent,
Object... args)
Execute that message asynchronously with the given arguments. |
Control |
getControl()
Get the control, which is only valid when in the native context. |
NativeComponent |
getNativeComponent()
Get the native component, which is only valid when in the local context. |
protected boolean |
isValid()
Indicate whether the message is valid. |
void |
setControl(Control control)
Set the control that is used to identify the control on the local side. |
void |
setNativeComponent(NativeComponent nativeComponent)
Set the native component that is used to identify the control on the native side. |
Object |
syncExec(boolean isTargetNativeSide,
Object... args)
Execute that message synchronously with the given arguments and return the result. |
Object |
syncExec(Control control,
Object... args)
Execute that message synchronously with the given arguments and return the result. |
Object |
syncExec(NativeComponent nativeComponent,
Object... args)
Execute that message synchronously with the given arguments and return the result. |
| Methods inherited from class chrriis.dj.nativeswing.swtimpl.CommandMessage |
|---|
run, toString |
| Methods inherited from class chrriis.dj.nativeswing.swtimpl.Message |
|---|
asyncSend, syncSend |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ControlCommandMessage()
| Method Detail |
|---|
public void setControl(Control control)
control - the control.public void setNativeComponent(NativeComponent nativeComponent)
nativeComponent - the native component.public Control getControl()
public NativeComponent getNativeComponent()
public void asyncExec(NativeComponent nativeComponent,
Object... args)
nativeComponent - the native component.args - the arguments, which must be serializable.
public void asyncExec(Control control,
Object... args)
control - the native component.args - the arguments, which must be serializable.
public Object syncExec(NativeComponent nativeComponent,
Object... args)
nativeComponent - the native component.args - the arguments, which must be serializable.
public Object syncExec(Control control,
Object... args)
control - the control.args - the arguments, which must be serializable.
public Object syncExec(boolean isTargetNativeSide,
Object... args)
CommandMessage
syncExec in class CommandMessageisTargetNativeSide - true if the target is the native side, false otherwise.args - the arguments, which must be serializable.
public void asyncExec(boolean isTargetNativeSide,
Object... args)
CommandMessage
asyncExec in class CommandMessageisTargetNativeSide - true if the target is the native side, false otherwise.args - the arguments, which must be serializable.protected boolean isValid()
Message
isValid in class Message
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||