org.eclipse.swt.widgets.Canvas.forceFocus()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(174)

本文整理了Java中org.eclipse.swt.widgets.Canvas.forceFocus()方法的一些代码示例,展示了Canvas.forceFocus()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Canvas.forceFocus()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Canvas
类名称:Canvas
方法名:forceFocus

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);
}

相关文章

Canvas类方法