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

x33g5p2x  于2022-01-29 转载在 其他  
字(6.6k)|赞(0)|评价(0)|浏览(134)

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

Tree.checkData介绍

暂无

代码示例

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

Rectangle getTextBoundsInPixels (int index) {
  if (!parent.checkData (this, true)) error (SWT.ERROR_WIDGET_DISPOSED);
  RECT rect = getBounds (index, true, false, true);
  if (index == 0) rect.left += Tree.INSET - 1;
  rect.left = Math.min (rect.left, rect.right);
  rect.right = rect.right - Tree.INSET;
  int width = Math.max (0, rect.right - rect.left);
  int height = Math.max (0, rect.bottom - rect.top);
  return new Rectangle (rect.left, rect.top, width, height);
}

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

/**
 * Returns the number of items contained in the receiver
 * that are direct item children of the receiver.
 *
 * @return the number of items
 *
 * @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 int getItemCount () {
  checkWidget ();
  if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED);
  return itemCount;
}

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

@Override
public String getText () {
  checkWidget();
  if (!parent.checkData (this, true)) error (SWT.ERROR_WIDGET_DISPOSED);
  return super.getText ();
}

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

@Override
public Image getImage () {
  checkWidget ();
  if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED);
  return getImage (0);
}

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

@Override
public String getText () {
  checkWidget ();
  if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED);
  return getText (0);
}

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

@Override
public String getText () {
  checkWidget ();
  if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED);
  return getText (0);
}

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

boolean checkData (TreeItem item, boolean redraw) {
  if ((style & SWT.VIRTUAL) == 0) return true;
  if (!item.cached) {
    TreeItem parentItem = item.getParentItem ();
    return checkData (item, parentItem == null ? indexOf (item) : parentItem.indexOf (item), redraw);
  }
  return true;
}

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

@Override
public Image getImage () {
  checkWidget ();
  if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED);
  return getImage (0);
}

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

@Override
public Image getImage () {
  checkWidget();
  if (!parent.checkData (this, true)) error (SWT.ERROR_WIDGET_DISPOSED);
  return super.getImage ();
}

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

Rectangle getImageBoundsInPixels (int index) {
  if (!parent.checkData (this, true)) error (SWT.ERROR_WIDGET_DISPOSED);
  RECT rect = getBounds (index, false, true, false);
  int width = rect.right - rect.left, height = rect.bottom - rect.top;
  return new Rectangle (rect.left, rect.top, width, height);
}

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

Rectangle getBoundsInPixels () {
  if (!parent.checkData (this, true)) error (SWT.ERROR_WIDGET_DISPOSED);
  RECT rect = getBounds (0, true, false, false);
  int width = rect.right - rect.left, height = rect.bottom - rect.top;
  return new Rectangle (rect.left, rect.top, width, height);
}

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

@Override
public Image getImage () {
  checkWidget ();
  if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED);
  return getImage (0);
}

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

@Override
public String getText () {
  checkWidget ();
  if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED);
  return getText (0);
}

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

Rectangle getBoundsInPixels (int index) {
  if (!parent.checkData (this, true)) error (SWT.ERROR_WIDGET_DISPOSED);
  RECT rect = getBounds (index, true, true, true);
  int width = rect.right - rect.left, height = rect.bottom - rect.top;
  return new Rectangle (rect.left, rect.top, width, height);
}

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

public Image getImage () {
  checkWidget ();
  if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED);
  return super.getImage ();
}

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

public String getText () {
  checkWidget ();
  if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED);
  return super.getText ();
}

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

/**
 * Returns the number of items contained in the receiver
 * that are direct item children of the receiver.
 *
 * @return the number of items
 *
 * @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 int getItemCount () {
  checkWidget();
  if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED);
  return OS.gtk_tree_model_iter_n_children (parent.modelHandle, handle);
}

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

/**
 * Returns the font that the receiver will use to paint textual information for this item.
 *
 * @return the receiver's font
 *
 * @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>
 *
 * @since 3.0
 */
public Font getFont () {
  checkWidget ();
  if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED);
  return font != null ? font : parent.getFont ();
}

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

/**
 * Returns the number of items contained in the receiver
 * that are direct item children of the receiver.
 *
 * @return the number of items
 *
 * @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 int getItemCount () {
  checkWidget();
  if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED);
  return OS.gtk_tree_model_iter_n_children (parent.modelHandle, handle);
}

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

/**
 * Returns the number of items contained in the receiver
 * that are direct item children of the receiver.
 *
 * @return the number of items
 *
 * @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 int getItemCount () {
  checkWidget();
  if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED);
  return OS.gtk_tree_model_iter_n_children (parent.modelHandle, handle);
}

相关文章

Tree类方法