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

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

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

Table.setFocusIndex介绍

暂无

代码示例

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

  1. select( start, end );
  2. if( end >= 0 && start <= end && ( ( style & SWT.SINGLE ) == 0 || start == end ) ) {
  3. setFocusIndex( Math.max( 0, start ) );

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

  1. end = Math.min (end, count - 1);
  2. select (start, end);
  3. setFocusIndex (start);
  4. showSelection ();

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

  1. /**
  2. * Selects the item at the given zero-relative index in the receiver.
  3. * The current selection is first cleared, then the new item is selected.
  4. *
  5. * @param index the index of the item to select
  6. *
  7. * @exception SWTException <ul>
  8. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  9. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  10. * </ul>
  11. *
  12. * @see Table#deselectAll()
  13. * @see Table#select(int)
  14. */
  15. public void setSelection( int index ) {
  16. checkWidget();
  17. deselectAll();
  18. select( index );
  19. setFocusIndex( index );
  20. showSelection();
  21. }

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

  1. /**
  2. * Selects the item at the given zero-relative index in the receiver.
  3. * The current selection is first cleared, then the new item is selected,
  4. * and if necessary the receiver is scrolled to make the new selection visible.
  5. *
  6. * @param index the index of the item to select
  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. * @see Table#deselectAll()
  14. * @see Table#select(int)
  15. */
  16. public void setSelection (int index) {
  17. checkWidget ();
  18. deselectAll ();
  19. select (index);
  20. if (index != -1) setFocusIndex (index);
  21. showSelection ();
  22. }

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

  1. int length = indices.length;
  2. if( length != 0 && ( ( style & SWT.SINGLE ) == 0 || length <= 1 ) ) {
  3. setFocusIndex( indices[ 0 ] );

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

  1. select (indices);
  2. int focusIndex = indices [0];
  3. if (focusIndex != -1) setFocusIndex (focusIndex);
  4. showSelection ();

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

  1. if (focusIndex != -1) setFocusIndex (focusIndex);
  2. showSelection ();

相关文章

Table类方法