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

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

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

Table.hideFirstColumn介绍

暂无

代码示例

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

  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. boolean fixColumn = showFirstColumn ();
  19. deselectAll ();
  20. selectFocusIndex (index);
  21. showSelection ();
  22. if (fixColumn) hideFirstColumn ();
  23. }

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

  1. /**
  2. * Deselects all selected items in the receiver.
  3. *
  4. * @exception SWTException <ul>
  5. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  6. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  7. * </ul>
  8. */
  9. public void deselectAll () {
  10. checkWidget();
  11. boolean fixColumn = showFirstColumn ();
  12. int /*long*/ selection = OS.gtk_tree_view_get_selection (handle);
  13. OS.g_signal_handlers_block_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  14. OS.gtk_tree_selection_unselect_all (selection);
  15. OS.g_signal_handlers_unblock_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  16. if (fixColumn) hideFirstColumn ();
  17. }

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

  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. boolean fixColumn = showFirstColumn ();
  19. deselectAll ();
  20. selectFocusIndex (index);
  21. showSelection ();
  22. if (fixColumn) hideFirstColumn ();
  23. }

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

  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. boolean fixColumn = showFirstColumn ();
  19. deselectAll ();
  20. selectFocusIndex (index);
  21. showSelection ();
  22. if (fixColumn) hideFirstColumn ();
  23. }

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

  1. /**
  2. * Deselects all selected items in the receiver.
  3. *
  4. * @exception SWTException <ul>
  5. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  6. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  7. * </ul>
  8. */
  9. public void deselectAll () {
  10. checkWidget();
  11. boolean fixColumn = showFirstColumn ();
  12. long /*int*/ selection = OS.gtk_tree_view_get_selection (handle);
  13. OS.g_signal_handlers_block_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  14. OS.gtk_tree_selection_unselect_all (selection);
  15. OS.g_signal_handlers_unblock_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  16. if (fixColumn) hideFirstColumn ();
  17. }

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

  1. /**
  2. * Deselects all selected items in the receiver.
  3. *
  4. * @exception SWTException <ul>
  5. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  6. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  7. * </ul>
  8. */
  9. public void deselectAll () {
  10. checkWidget();
  11. boolean fixColumn = showFirstColumn ();
  12. int /*long*/ selection = OS.gtk_tree_view_get_selection (handle);
  13. OS.g_signal_handlers_block_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  14. OS.gtk_tree_selection_unselect_all (selection);
  15. OS.g_signal_handlers_unblock_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  16. if (fixColumn) hideFirstColumn ();
  17. }

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

  1. /**
  2. * Selects all of the items in the receiver.
  3. * <p>
  4. * If the receiver is single-select, do nothing.
  5. * </p>
  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. public void selectAll () {
  13. checkWidget();
  14. if ((style & SWT.SINGLE) != 0) return;
  15. boolean fixColumn = showFirstColumn ();
  16. int /*long*/ selection = OS.gtk_tree_view_get_selection (handle);
  17. OS.g_signal_handlers_block_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  18. OS.gtk_tree_selection_select_all (selection);
  19. OS.g_signal_handlers_unblock_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  20. if (fixColumn) hideFirstColumn ();
  21. }

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

  1. /**
  2. * Selects all of the items in the receiver.
  3. * <p>
  4. * If the receiver is single-select, do nothing.
  5. * </p>
  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. public void selectAll () {
  13. checkWidget();
  14. if ((style & SWT.SINGLE) != 0) return;
  15. boolean fixColumn = showFirstColumn ();
  16. int /*long*/ selection = OS.gtk_tree_view_get_selection (handle);
  17. OS.g_signal_handlers_block_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  18. OS.gtk_tree_selection_select_all (selection);
  19. OS.g_signal_handlers_unblock_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  20. if (fixColumn) hideFirstColumn ();
  21. }

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

  1. /**
  2. * Selects all of the items in the receiver.
  3. * <p>
  4. * If the receiver is single-select, do nothing.
  5. * </p>
  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. public void selectAll () {
  13. checkWidget();
  14. if ((style & SWT.SINGLE) != 0) return;
  15. boolean fixColumn = showFirstColumn ();
  16. long /*int*/ selection = OS.gtk_tree_view_get_selection (handle);
  17. OS.g_signal_handlers_block_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  18. OS.gtk_tree_selection_select_all (selection);
  19. OS.g_signal_handlers_unblock_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  20. if (fixColumn) hideFirstColumn ();
  21. }

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

  1. /**
  2. * Selects the item at the given zero-relative index in the receiver.
  3. * If the item at the index was already selected, it remains
  4. * selected. Indices that are out of range are ignored.
  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. public void select (int index) {
  14. checkWidget();
  15. if (!(0 <= index && index < itemCount)) return;
  16. boolean fixColumn = showFirstColumn ();
  17. int /*long*/ selection = OS.gtk_tree_view_get_selection (handle);
  18. OS.g_signal_handlers_block_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  19. TableItem item = _getItem (index);
  20. OS.gtk_tree_selection_select_iter (selection, item.handle);
  21. OS.g_signal_handlers_unblock_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  22. if (fixColumn) hideFirstColumn ();
  23. }

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

  1. /**
  2. * Selects the item at the given zero-relative index in the receiver.
  3. * If the item at the index was already selected, it remains
  4. * selected. Indices that are out of range are ignored.
  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. public void select (int index) {
  14. checkWidget();
  15. if (!(0 <= index && index < itemCount)) return;
  16. boolean fixColumn = showFirstColumn ();
  17. int /*long*/ selection = OS.gtk_tree_view_get_selection (handle);
  18. OS.g_signal_handlers_block_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  19. TableItem item = _getItem (index);
  20. OS.gtk_tree_selection_select_iter (selection, item.handle);
  21. OS.g_signal_handlers_unblock_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  22. if (fixColumn) hideFirstColumn ();
  23. }

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

  1. /**
  2. * Deselects the item at the given zero-relative index in the receiver.
  3. * If the item at the index was already deselected, it remains
  4. * deselected. Indices that are out of range are ignored.
  5. *
  6. * @param index the index of the item to deselect
  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 void deselect (int index) {
  14. checkWidget();
  15. if (index < 0 || index >= itemCount) return;
  16. boolean fixColumn = showFirstColumn ();
  17. long /*int*/ selection = OS.gtk_tree_view_get_selection (handle);
  18. OS.g_signal_handlers_block_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  19. OS.gtk_tree_selection_unselect_iter (selection, _getItem (index).handle);
  20. OS.g_signal_handlers_unblock_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  21. if (fixColumn) hideFirstColumn ();
  22. }

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

  1. /**
  2. * Selects the item at the given zero-relative index in the receiver.
  3. * If the item at the index was already selected, it remains
  4. * selected. Indices that are out of range are ignored.
  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. public void select (int index) {
  14. checkWidget();
  15. if (!(0 <= index && index < itemCount)) return;
  16. boolean fixColumn = showFirstColumn ();
  17. long /*int*/ selection = OS.gtk_tree_view_get_selection (handle);
  18. OS.g_signal_handlers_block_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  19. TableItem item = _getItem (index);
  20. OS.gtk_tree_selection_select_iter (selection, item.handle);
  21. OS.g_signal_handlers_unblock_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  22. if (fixColumn) hideFirstColumn ();
  23. }

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

  1. /**
  2. * Deselects the item at the given zero-relative index in the receiver.
  3. * If the item at the index was already deselected, it remains
  4. * deselected. Indices that are out of range are ignored.
  5. *
  6. * @param index the index of the item to deselect
  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 void deselect (int index) {
  14. checkWidget();
  15. if (index < 0 || index >= itemCount) return;
  16. boolean fixColumn = showFirstColumn ();
  17. int /*long*/ selection = OS.gtk_tree_view_get_selection (handle);
  18. OS.g_signal_handlers_block_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  19. OS.gtk_tree_selection_unselect_iter (selection, _getItem (index).handle);
  20. OS.g_signal_handlers_unblock_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  21. if (fixColumn) hideFirstColumn ();
  22. }

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

  1. /**
  2. * Deselects the item at the given zero-relative index in the receiver.
  3. * If the item at the index was already deselected, it remains
  4. * deselected. Indices that are out of range are ignored.
  5. *
  6. * @param index the index of the item to deselect
  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 void deselect (int index) {
  14. checkWidget();
  15. if (index < 0 || index >= itemCount) return;
  16. boolean fixColumn = showFirstColumn ();
  17. int /*long*/ selection = OS.gtk_tree_view_get_selection (handle);
  18. OS.g_signal_handlers_block_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  19. OS.gtk_tree_selection_unselect_iter (selection, _getItem (index).handle);
  20. OS.g_signal_handlers_unblock_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  21. if (fixColumn) hideFirstColumn ();
  22. }

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

  1. /**
  2. * Deselects the items at the given zero-relative indices in the receiver.
  3. * If the item at the given zero-relative index in the receiver
  4. * is selected, it is deselected. If the item at the index
  5. * was not selected, it remains deselected. The range of the
  6. * indices is inclusive. Indices that are out of range are ignored.
  7. *
  8. * @param start the start index of the items to deselect
  9. * @param end the end index of the items to deselect
  10. *
  11. * @exception SWTException <ul>
  12. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  13. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  14. * </ul>
  15. */
  16. public void deselect (int start, int end) {
  17. checkWidget();
  18. boolean fixColumn = showFirstColumn ();
  19. long /*int*/ selection = OS.gtk_tree_view_get_selection (handle);
  20. OS.g_signal_handlers_block_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  21. for (int index=start; index<=end; index++) {
  22. if (index < 0 || index >= itemCount) continue;
  23. OS.gtk_tree_selection_unselect_iter (selection, _getItem (index).handle);
  24. }
  25. OS.g_signal_handlers_unblock_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  26. if (fixColumn) hideFirstColumn ();
  27. }

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

  1. /**
  2. * Deselects the items at the given zero-relative indices in the receiver.
  3. * If the item at the given zero-relative index in the receiver
  4. * is selected, it is deselected. If the item at the index
  5. * was not selected, it remains deselected. The range of the
  6. * indices is inclusive. Indices that are out of range are ignored.
  7. *
  8. * @param start the start index of the items to deselect
  9. * @param end the end index of the items to deselect
  10. *
  11. * @exception SWTException <ul>
  12. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  13. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  14. * </ul>
  15. */
  16. public void deselect (int start, int end) {
  17. checkWidget();
  18. boolean fixColumn = showFirstColumn ();
  19. int /*long*/ selection = OS.gtk_tree_view_get_selection (handle);
  20. OS.g_signal_handlers_block_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  21. for (int index=start; index<=end; index++) {
  22. if (index < 0 || index >= itemCount) continue;
  23. OS.gtk_tree_selection_unselect_iter (selection, _getItem (index).handle);
  24. }
  25. OS.g_signal_handlers_unblock_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  26. if (fixColumn) hideFirstColumn ();
  27. }

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

  1. /**
  2. * Deselects the items at the given zero-relative indices in the receiver.
  3. * If the item at the given zero-relative index in the receiver
  4. * is selected, it is deselected. If the item at the index
  5. * was not selected, it remains deselected. The range of the
  6. * indices is inclusive. Indices that are out of range are ignored.
  7. *
  8. * @param start the start index of the items to deselect
  9. * @param end the end index of the items to deselect
  10. *
  11. * @exception SWTException <ul>
  12. * <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
  13. * <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
  14. * </ul>
  15. */
  16. public void deselect (int start, int end) {
  17. checkWidget();
  18. boolean fixColumn = showFirstColumn ();
  19. int /*long*/ selection = OS.gtk_tree_view_get_selection (handle);
  20. OS.g_signal_handlers_block_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  21. for (int index=start; index<=end; index++) {
  22. if (index < 0 || index >= itemCount) continue;
  23. OS.gtk_tree_selection_unselect_iter (selection, _getItem (index).handle);
  24. }
  25. OS.g_signal_handlers_unblock_matched (selection, OS.G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, CHANGED);
  26. if (fixColumn) hideFirstColumn ();
  27. }

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

  1. if (fixColumn) hideFirstColumn ();

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

  1. if (fixColumn) hideFirstColumn ();

相关文章

Table类方法