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

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

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

Canvas.setVisible介绍

暂无

代码示例

代码示例来源:origin: pentaho/pentaho-kettle

void refreshObject() {
 int index = list.getSelectionIndex();
 if ( index == -1 ) {
  return;
 }
 if ( check.getSelection() ) {
  ByteArrayOutputStream stream = new ByteArrayOutputStream();
  PrintStream s = new PrintStream( stream );
  errors[index].printStackTrace( s );
  text.setText( stream.toString() );
  text.setVisible( true );
  canvas.setVisible( false );
 } else {
  canvas.setVisible( true );
  text.setVisible( false );
  canvas.redraw();
 }
}

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

public void setVisible(boolean visible) {
  checkWidget();
  if (visible) _resize();
  super.setVisible(visible);
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
public void setVisible(boolean visible) {
  checkWidget();
  if (visible) _resize();
  super.setVisible(visible);
}

代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64

public void setVisible(boolean visible) {
  checkWidget();
  if (visible) {
    _resize();
  }
  super.setVisible(visible);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

@Override
public void setVisible(boolean visible) {
  checkWidget();
  if (visible) {
    _resize();
  }
  super.setVisible(visible);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

@Override
public void setVisible(boolean visible) {
  checkWidget();
  if (visible) {
    _resize();
  }
  super.setVisible(visible);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

@Override
public void setVisible(boolean visible) {
  checkWidget();
  if (visible) _resize();
  super.setVisible(visible);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc

@Override
public void setVisible(boolean visible) {
  checkWidget();
  if (visible) _resize();
  super.setVisible(visible);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc

@Override
public void setVisible(boolean visible) {
  checkWidget();
  if (visible) {
    _resize();
  }
  super.setVisible(visible);
}

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86

@Override
public void setVisible(boolean visible) {
  checkWidget();
  if (visible) {
    _resize();
  }
  super.setVisible(visible);
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x

@Override
public void setVisible(boolean visible) {
  checkWidget();
  if (visible) _resize();
  super.setVisible(visible);
}

代码示例来源:origin: BiglySoftware/BiglyBT

@Override
  public void runSupport() {
    if (cHeaderArea != null && !cHeaderArea.isDisposed()) {
      cHeaderArea.setVisible(visible);
      FormData fd = Utils.getFilledFormData();
      fd.height = visible ? headerHeight : 1;
      fd.bottom = null;
      cHeaderArea.setLayoutData(fd);
      cHeaderArea.getParent().layout(true);
    }
  }
});

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.examples

/**
 * Marks the receiver's header as visible if the argument is <code>true</code>,
 * and marks it invisible otherwise.
 * <p>
 * If one of the receiver's ancestors is not visible or some
 * other condition makes the receiver not visible, marking
 * it visible may not actually cause it to be displayed.
 * </p>
 *
 * @param show the new visibility state
 *
 * @exception SWTException <ul>
 *    <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
 *    <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
 * </ul>
 */
public void setHeaderVisible (boolean value) {
  checkWidget ();
  if (header.getVisible () == value) return;		/* no change */
  headerHideToolTip ();
  header.setVisible (value);
  updateVerticalBar ();
  redraw ();
}
void setImageHeight (int value) {

代码示例来源:origin: BiglySoftware/BiglyBT

drawable.setVisible(false);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.examples

header.setVisible (false);
header.setBounds (0, 0, 0, fontHeight + 2 * getHeaderPadding ());
header.addListener (SWT.Paint, listener);

相关文章

Canvas类方法