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

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

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

Tree.checkWidget介绍

暂无

代码示例

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

int getGridLineWidthInPixels () {
  checkWidget();
  return 0;
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

/**
 * Deselects all selected items in the receiver.
 *
 * @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 deselectAll() {
 checkWidget();
 selection = EMPTY_SELECTION;
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

/**
 * Returns the number of selected items contained in the receiver.
 *
 * @return the number of selected 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 getSelectionCount() {
 checkWidget();
 return selection.length;
}

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

int getGridLineWidthInPixels () {
  checkWidget();
  return 0;
}

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

int getGridLineWidthInPixels () {
  checkWidget();
  return 0;
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

/**
 * Returns the header background color.
 *
 * @return the receiver's header background color.
 *
 * @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.6
 */
public Color getHeaderBackground() {
 checkWidget();
 return headerBackground;
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

/**
 * Returns the header foreground color.
 *
 * @return the receiver's header foreground color.
 *
 * @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.6
 */
public Color getHeaderForeground() {
 checkWidget();
 return headerForeground;
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

/**
 * Returns the receiver's parent item, which must be a <code>TreeItem</code>
 * or null when the receiver is a root.
 *
 * @return the receiver's parent item
 * @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 TreeItem getParentItem() {
 checkWidget();
 return null;
}

代码示例来源:origin: org.eclipse.rap/org.eclipse.rap.rwt

/**
 * Returns the column which shows the sort indicator for the receiver. The
 * value may be null if no column shows the sort indicator.
 *
 * @return the sort indicator
 * @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>
 * @see #setSortColumn(TreeColumn)
 */
public TreeColumn getSortColumn() {
 checkWidget();
 return sortColumn;
}

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

/**
 * Returns the width in pixels of a grid line.
 *
 * @return the width of a grid line in pixels
 * 
 * @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.1
 */
public int getGridLineWidth () {
  checkWidget ();
  return 0;
}

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

/*public*/ void sort () {
  checkWidget ();
  if ((style & SWT.VIRTUAL) != 0) return;
  sort (OS.TVI_ROOT, false);
}

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

/**
 * Returns the number of selected items contained in the receiver.
 *
 * @return the number of selected 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 getSelectionCount () {
  checkWidget ();
  return (int)/*64*/((NSOutlineView) view).numberOfSelectedRows ();
}

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

@Override
public void setFont (Font font) {
  checkWidget ();
  super.setFont (font);
  if ((style & SWT.CHECK) != 0) setCheckboxImageList ();
}

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

/**
 * Returns the height of the area which would be used to
 * display <em>one</em> of the items in the tree.
 *
 * @return the height of one item
 *
 * @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 getItemHeight () {
  checkWidget ();
  return DPIUtil.autoScaleDown(getItemHeightInPixels());
}

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

/**
 * Returns the number of selected items contained in the receiver.
 *
 * @return the number of selected 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 getSelectionCount () {
  checkWidget();
  long /*int*/ selection = OS.gtk_tree_view_get_selection (handle);
  return OS.gtk_tree_selection_count_selected_rows (selection);
}

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

/**
 * Returns the height of the area which would be used to
 * display <em>one</em> of the items in the tree.
 *
 * @return the height of one item
 *
 * @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 getItemHeight () {
  checkWidget ();
  return DPIUtil.autoScaleDown (getItemHeightInPixels ());
}

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

/**
 * Returns the width in pixels of a grid line.
 *
 * @return the width of a grid line in pixels
 *
 * @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.1
 */
public int getGridLineWidth () {
  checkWidget ();
  return DPIUtil.autoScaleDown(getGridLineWidthInPixels ());
}

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

/*public*/ void setItemHeight (int itemHeight) {
  checkWidget ();
  if (itemHeight < -1) error (SWT.ERROR_INVALID_ARGUMENT);
  if (itemHeight == -1) {
    setItemHeight (null, null, true);
  } else {
    ((NSOutlineView)view).setRowHeight (itemHeight);
  }
}

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

public void setRedraw (boolean redraw) {
  checkWidget ();
  super.setRedraw (redraw);
  if (redraw && drawCount == 0) {
    checkItems ();
    setScrollWidth ();
  }
}

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

public Rectangle getClientArea () {
  checkWidget ();
  Rectangle rect = super.getClientArea ();
  NSTableHeaderView headerView = ((NSTableView) view).headerView ();
  if (headerView != null) {
    // The origin of the tree is the top-left of the rows of the tree,
    // not the header.  Adjust the y value accordingly.
    int height =  (int) headerView.bounds ().height;
    rect.y -= height;
    rect.height += height;
  }
  return rect;
}

相关文章

Tree类方法