* Overridden to return false and prevent any focus change
* if the embedded Swing component is not focusable.
*/
public boolean forceFocus() {
checkWidget();
return handleFocusOperation(new RunnableWithResult() {
public void run() {
boolean success;
if (isDisposed()) {
success = false;
} else {
success = superForceFocus();
success = postProcessForceFocus(success);
}
setResult(new Boolean(success));
}
});
}
/**
* Overridden to return false and prevent any focus change
* if the embedded Swing component is not focusable.
*/
public boolean setFocus() {
checkWidget();
return handleFocusOperation(new RunnableWithResult() {
public void run() {
boolean success = isDisposed() ? false : superSetFocus();
setResult(new Boolean(success));
}
});