com.supermap.desktop.core.utilties

类 TableUtilities

  • java.lang.Object
    • com.supermap.desktop.core.utilties.TableUtilities


  • public class TableUtilities
    extends java.lang.Object
    table公共类
    • 方法概要

      所有方法 静态方法 具体方法 
      限定符和类型 方法和说明
      static void invertSelection(javax.swing.JTable table)
      table反选
      static void scrollToLastRow(javax.swing.JTable table)
      滚动到最后一行可见
      static void scrollToVisible(javax.swing.JTable table, int rowIndex, int vColIndex)
      滚动到指定行列到可见范围内
      static void selectionAll(javax.swing.JTable table)
      table全选
      static void setTableSelectedRows(javax.swing.JTable table, int... selectedRows)
      设置table选中指定行
      static void stopEditing(javax.swing.JTable table)
      停止编辑
    • 方法详细资料

      • selectionAll

        public static void selectionAll(javax.swing.JTable table)
        table全选
        参数:
        table -
      • invertSelection

        public static void invertSelection(javax.swing.JTable table)
        table反选
        参数:
        table -
      • stopEditing

        public static void stopEditing(javax.swing.JTable table)
        停止编辑
        参数:
        table -
      • setTableSelectedRows

        public static void setTableSelectedRows(javax.swing.JTable table,
                                                int... selectedRows)
        设置table选中指定行
      • scrollToVisible

        public static void scrollToVisible(javax.swing.JTable table,
                                           int rowIndex,
                                           int vColIndex)
        滚动到指定行列到可见范围内
      • scrollToLastRow

        public static void scrollToLastRow(javax.swing.JTable table)
        滚动到最后一行可见