本文整理了Java中org.eclipse.swt.widgets.Canvas.forceFocus()
方法的一些代码示例,展示了Canvas.forceFocus()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Canvas.forceFocus()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Canvas
类名称:Canvas
方法名:forceFocus
暂无
代码示例来源:origin: pentaho/pentaho-kettle
public boolean forceFocus() {
return canvas.forceFocus();
}
代码示例来源:origin: pentaho/pentaho-kettle
canvas.forceFocus();
redraw();
代码示例来源:origin: ch.unibas.cs.gravis/scalismo-native-stub
@Override
public boolean forceFocus() {
final boolean res = NewtCanvasSWT.super.forceFocus();
requestFocusNEWTChild();
return res;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.ui.forms
private boolean advanceControl(Control c, ControlSegment segment,
boolean next) {
Composite parent = c.getParent();
if (parent == this) {
// segment-level control
IFocusSelectable nextSegment = model.getNextFocusSegment(next);
if (nextSegment != null) {
controlFocusTransfer = true;
super.forceFocus();
controlFocusTransfer = false;
model.select(segment);
return advance(next);
}
// nowhere to go
return setFocusToNextSibling(this, next);
}
if (setFocusToNextSibling(c, next))
return true;
// still here - must go one level up
segment = (ControlSegment) parent.getData(CONTROL_KEY);
return advanceControl(parent, segment, next);
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.ui.forms
private boolean advanceControl(Control c, ControlSegment segment,
boolean next) {
Composite parent = c.getParent();
if (parent == this) {
// segment-level control
IFocusSelectable nextSegment = model.getNextFocusSegment(next);
if (nextSegment != null) {
controlFocusTransfer = true;
super.forceFocus();
controlFocusTransfer = false;
model.select(segment);
return advance(next);
}
// nowhere to go
return setFocusToNextSibling(this, next);
}
if (setFocusToNextSibling(c, next))
return true;
// still here - must go one level up
segment = (ControlSegment) parent.getData(CONTROL_KEY);
return advanceControl(parent, segment, next);
}
内容来源于网络,如有侵权,请联系作者删除!