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

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

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

Table.checkData介绍

暂无

代码示例

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

  1. @Override
  2. public void run() {
  3. if( index >= 0 && index < itemCount ) {
  4. TableItem item = _getItem( index );
  5. if( !item.isDisposed() ) {
  6. Table.this.checkData( item, index );
  7. }
  8. }
  9. }
  10. } );

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

  1. boolean checkData (TableItem item, boolean redraw) {
  2. if ((style & SWT.VIRTUAL) == 0) return true;
  3. return checkData (item, indexOf (item), redraw);
  4. }

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

  1. boolean checkData (TableItem item) {
  2. return checkData (item, indexOf (item));
  3. }

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

  1. private void checkData() {
  2. int visibleItemCount = getVisibleItemCount( true );
  3. int startIndex = Math.max( 0, topIndex - preloadedItems );
  4. int endIndex = Math.min( itemCount, topIndex + visibleItemCount + preloadedItems );
  5. for( int index = startIndex; index < endIndex; index++ ) {
  6. checkData( _getItem( index ), index );
  7. }
  8. }

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

  1. /**
  2. * Gets the image indent.
  3. *
  4. * @return the indent
  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 getImageIndent () {
  12. checkWidget ();
  13. if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED);
  14. return 0;
  15. }

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

  1. Rectangle getTextBoundsInPixels (int index) {
  2. if (!parent.checkData (this, true)) error (SWT.ERROR_WIDGET_DISPOSED);
  3. int itemIndex = parent.indexOf (this);
  4. if (itemIndex == -1) return new Rectangle (0, 0, 0, 0);
  5. RECT rect = getBounds (itemIndex, index, true, false, true);
  6. rect.left += 2;
  7. if (index != 0) rect.left += Table.INSET;
  8. rect.left = Math.min (rect.left, rect.right);
  9. rect.right = rect.right - Table.INSET;
  10. int width = Math.max (0, rect.right - rect.left);
  11. int height = Math.max (0, rect.bottom - rect.top);
  12. return new Rectangle (rect.left, rect.top, width, height);
  13. }

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

  1. @Override
  2. public String getText () {
  3. checkWidget ();
  4. if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED);
  5. return getText (0);
  6. }

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

  1. @Override
  2. public Image getImage () {
  3. checkWidget ();
  4. if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED);
  5. return getImage (0);
  6. }

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

  1. @Override
  2. public Image getImage () {
  3. checkWidget ();
  4. if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED);
  5. return getImage (0);
  6. }

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

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

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

  1. @Override
  2. public Image getImage () {
  3. checkWidget ();
  4. if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED);
  5. return getImage (0);
  6. }

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

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

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

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

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

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

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

  1. @Override
  2. public String getText () {
  3. checkWidget ();
  4. if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED);
  5. return getText (0);
  6. }

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

  1. @Override
  2. public String getText () {
  3. checkWidget ();
  4. if (!parent.checkData (this)) error (SWT.ERROR_WIDGET_DISPOSED);
  5. return getText (0);
  6. }

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

  1. Rectangle getBoundsInPixels () {
  2. if (!parent.checkData (this, true)) error (SWT.ERROR_WIDGET_DISPOSED);
  3. int itemIndex = parent.indexOf (this);
  4. if (itemIndex == -1) return new Rectangle (0, 0, 0, 0);
  5. RECT rect = getBounds (itemIndex, 0, true, false, false);
  6. int width = rect.right - rect.left, height = rect.bottom - rect.top;
  7. return new Rectangle (rect.left, rect.top, width, height);
  8. }

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

  1. Rectangle getBoundsInPixels (int index) {
  2. if (!parent.checkData (this, true)) error (SWT.ERROR_WIDGET_DISPOSED);
  3. int itemIndex = parent.indexOf (this);
  4. if (itemIndex == -1) return new Rectangle (0, 0, 0, 0);
  5. RECT rect = getBounds (itemIndex, index, true, true, true);
  6. int width = rect.right - rect.left, height = rect.bottom - rect.top;
  7. return new Rectangle (rect.left, rect.top, width, height);
  8. }

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

  1. Rectangle getImageBoundsInPixels (int index) {
  2. if (!parent.checkData (this, true)) error (SWT.ERROR_WIDGET_DISPOSED);
  3. int itemIndex = parent.indexOf (this);
  4. if (itemIndex == -1) return new Rectangle (0, 0, 0, 0);
  5. RECT rect = getBounds (itemIndex, index, false, true, false);
  6. int width = rect.right - rect.left, height = rect.bottom - rect.top;
  7. return new Rectangle (rect.left, rect.top, width, height);
  8. }

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

  1. @Override
  2. void notifyResize( Point oldSize ) {
  3. if( !oldSize.equals( getSize() ) && !TextSizeUtil.isTemporaryResize() ) {
  4. if( ( style & SWT.VIRTUAL ) != 0 ) {
  5. checkData();
  6. }
  7. clearItemsTextWidths();
  8. updateScrollBars();
  9. adjustTopIndex();
  10. }
  11. super.notifyResize( oldSize );
  12. }

相关文章

Table类方法