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

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

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

TableColumn.checkWidget介绍

暂无

代码示例

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

  1. /**
  2. * Returns the receiver's parent, which must be a <code>Table</code>.
  3. *
  4. * @return the receiver's parent
  5. *
  6. * @exception SWTException <ul>
  7. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  8. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  9. * </ul>
  10. */
  11. public Table getParent () {
  12. checkWidget ();
  13. return parent;
  14. }

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

  1. /**
  2. * Returns the receiver's parent, which must be a <code>Table</code>.
  3. *
  4. * @return the receiver's parent
  5. *
  6. * @exception SWTException <ul>
  7. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  8. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  9. * </ul>
  10. */
  11. public Table getParent () {
  12. checkWidget();
  13. return parent;
  14. }

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

  1. /**
  2. * Returns the receiver's parent, which must be a <code>Table</code>.
  3. *
  4. * @return the receiver's parent
  5. *
  6. * @exception SWTException <ul>
  7. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  8. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  9. * </ul>
  10. */
  11. public Table getParent () {
  12. checkWidget ();
  13. return parent;
  14. }

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

  1. /**
  2. * Gets the width of the receiver.
  3. *
  4. * @return the width
  5. *
  6. * @exception SWTException <ul>
  7. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  8. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  9. * </ul>
  10. */
  11. public int getWidth() {
  12. checkWidget();
  13. return width;
  14. }

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

  1. /**
  2. * Returns the receiver's parent, which must be a <code>Table</code>.
  3. *
  4. * @return the receiver's parent
  5. *
  6. * @exception SWTException <ul>
  7. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  8. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  9. * </ul>
  10. */
  11. public Table getParent() {
  12. checkWidget();
  13. return parent;
  14. }

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

  1. /**
  2. * Gets the resizable attribute. A column that is
  3. * not resizable cannot be dragged by the user but
  4. * may be resized by the programmer.
  5. *
  6. * @return the resizable attribute
  7. *
  8. * @exception SWTException <ul>
  9. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  10. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  11. * </ul>
  12. */
  13. public boolean getResizable () {
  14. checkWidget ();
  15. return nsColumn.resizingMask() != OS.NSTableColumnNoResizing;
  16. }

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

  1. /**
  2. * Sets the width of the receiver.
  3. *
  4. * @param width the new width
  5. *
  6. * @exception SWTException <ul>
  7. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  8. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  9. * </ul>
  10. */
  11. public void setWidth (int width) {
  12. checkWidget ();
  13. setWidthInPixels(DPIUtil.autoScaleUp(width));
  14. }

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

  1. /**
  2. * Sets the width of the receiver.
  3. *
  4. * @param width the new width
  5. *
  6. * @exception SWTException <ul>
  7. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  8. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  9. * </ul>
  10. */
  11. public void setWidth (int width) {
  12. checkWidget ();
  13. setWidthInPixels (DPIUtil.autoScaleUp (width));
  14. }

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

  1. /**
  2. * Gets the width of the receiver.
  3. *
  4. * @return the width
  5. *
  6. * @exception SWTException <ul>
  7. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  8. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  9. * </ul>
  10. */
  11. public int getWidth () {
  12. checkWidget ();
  13. return DPIUtil.autoScaleDown(getWidthInPixels());
  14. }

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

  1. /**
  2. * Gets the width of the receiver.
  3. *
  4. * @return the width
  5. *
  6. * @exception SWTException <ul>
  7. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  8. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  9. * </ul>
  10. */
  11. public int getWidth () {
  12. checkWidget ();
  13. return DPIUtil.autoScaleDown(getWidthInPixels());
  14. }

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

  1. /**
  2. * Gets the width of the receiver.
  3. *
  4. * @return the width
  5. *
  6. * @exception SWTException <ul>
  7. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  8. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  9. * </ul>
  10. */
  11. public int getWidth () {
  12. checkWidget ();
  13. return DPIUtil.autoScaleDown(getWidthInPixels());
  14. }

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

  1. /**
  2. * Sets the width of the receiver.
  3. *
  4. * @param width the new width
  5. *
  6. * @exception SWTException <ul>
  7. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  8. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  9. * </ul>
  10. */
  11. public void setWidth (int width) {
  12. checkWidget ();
  13. setWidthInPixels (DPIUtil.autoScaleUp (width));
  14. }

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

  1. int getWidthInPixels () {
  2. checkWidget();
  3. if (!OS.gtk_tree_view_column_get_visible (handle)) {
  4. return 0;
  5. }
  6. if (useFixedWidth) return OS.gtk_tree_view_column_get_fixed_width (handle);
  7. return OS.gtk_tree_view_column_get_width (handle);
  8. }

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

  1. int getWidthInPixels () {
  2. checkWidget();
  3. if (!OS.gtk_tree_view_column_get_visible (handle)) {
  4. return 0;
  5. }
  6. if (useFixedWidth) return OS.gtk_tree_view_column_get_fixed_width (handle);
  7. return OS.gtk_tree_view_column_get_width (handle);
  8. }

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

  1. int getWidthInPixels () {
  2. checkWidget();
  3. if (!OS.gtk_tree_view_column_get_visible (handle)) {
  4. return 0;
  5. }
  6. if (useFixedWidth) return OS.gtk_tree_view_column_get_fixed_width (handle);
  7. return OS.gtk_tree_view_column_get_width (handle);
  8. }

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

  1. @Override
  2. public void setImage (Image image) {
  3. checkWidget();
  4. if (image != null && image.isDisposed ()) {
  5. error (SWT.ERROR_INVALID_ARGUMENT);
  6. }
  7. super.setImage (image);
  8. if (parent.sortColumn != this || parent.sortDirection != SWT.NONE) {
  9. setImage (image, false, false);
  10. }
  11. }

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

  1. @Override
  2. public void setText (String string) {
  3. checkWidget();
  4. if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
  5. super.setText (string);
  6. char [] chars = fixMnemonic (string);
  7. byte [] buffer = Converter.wcsToMbcs (null, chars, true);
  8. OS.gtk_label_set_text_with_mnemonic (labelHandle, buffer);
  9. if (string.length () != 0) {
  10. OS.gtk_widget_show (labelHandle);
  11. } else {
  12. OS.gtk_widget_hide (labelHandle);
  13. }
  14. }

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

  1. @Override
  2. public void setText (String string) {
  3. checkWidget();
  4. if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
  5. super.setText (string);
  6. char [] chars = fixMnemonic (string);
  7. byte [] buffer = Converter.wcsToMbcs (null, chars, true);
  8. OS.gtk_label_set_text_with_mnemonic (labelHandle, buffer);
  9. if (string.length () != 0) {
  10. OS.gtk_widget_show (labelHandle);
  11. } else {
  12. OS.gtk_widget_hide (labelHandle);
  13. }
  14. }

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

  1. @Override
  2. public void setText (String string) {
  3. checkWidget();
  4. if (string == null) error (SWT.ERROR_NULL_ARGUMENT);
  5. super.setText (string);
  6. char [] chars = fixMnemonic (string);
  7. byte [] buffer = Converter.wcsToMbcs (null, chars, true);
  8. OS.gtk_label_set_text_with_mnemonic (labelHandle, buffer);
  9. if (string.length () != 0) {
  10. OS.gtk_widget_show (labelHandle);
  11. } else {
  12. OS.gtk_widget_hide (labelHandle);
  13. }
  14. }

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

  1. public void setImage (Image image) {
  2. checkWidget();
  3. if (image != null && image.isDisposed ()) {
  4. error (SWT.ERROR_INVALID_ARGUMENT);
  5. }
  6. super.setImage (image);
  7. NSTableHeaderView headerView = ((NSTableView) parent.view).headerView ();
  8. if (headerView == null) return;
  9. int index = parent.indexOf (nsColumn);
  10. NSRect rect = headerView.headerRectOfColumn (index);
  11. headerView.setNeedsDisplayInRect (rect);
  12. }

相关文章