public class TableUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
TableUtil.ItemChecker |
Modifier and Type | Method and Description |
---|---|
static boolean |
doRemoveSelectedItems(javax.swing.JTable table,
ItemRemovable itemRemovable,
TableUtil.ItemChecker applyable) |
static void |
editCellAt(javax.swing.JTable table,
int row,
int column) |
static void |
ensureSelectionExists(javax.swing.JTable table) |
static int |
moveSelectedItemsDown(javax.swing.JTable table) |
static int |
moveSelectedItemsUp(javax.swing.JTable table) |
static java.util.List<java.lang.Object[]> |
removeSelectedItems(javax.swing.JTable table) |
static java.util.List<java.lang.Object[]> |
removeSelectedItems(javax.swing.JTable table,
TableUtil.ItemChecker applyable) |
static void |
scrollSelectionToVisible(javax.swing.JTable table) |
static void |
selectRows(javax.swing.JTable table,
int [] viewRows) |
static void |
setupCheckboxColumn(javax.swing.JTable table,
int columnIndex) |
static void |
setupCheckboxColumn(javax.swing.table.TableColumn column)
Deprecated.
doesn't take into account column margin.
Use
setupCheckboxColumn(JTable, int) instead.
Or use setupCheckboxColumn(TableColumn, int) with TableColumnModel.getColumnMargin() accounted for. |
static void |
setupCheckboxColumn(javax.swing.table.TableColumn column,
int additionalWidth) |
static void |
stopEditing(javax.swing.JTable table) |
static void |
updateScroller(javax.swing.JTable table) |
public static java.util.List<java.lang.Object[]> removeSelectedItems(javax.swing.JTable table)
public static void selectRows(javax.swing.JTable table, int [] viewRows)
public static void scrollSelectionToVisible(javax.swing.JTable table)
public static java.util.List<java.lang.Object[]> removeSelectedItems(javax.swing.JTable table, TableUtil.ItemChecker applyable)
public static boolean doRemoveSelectedItems(javax.swing.JTable table, ItemRemovable itemRemovable, TableUtil.ItemChecker applyable)
public static int moveSelectedItemsUp(javax.swing.JTable table)
public static int moveSelectedItemsDown(javax.swing.JTable table)
public static void editCellAt(javax.swing.JTable table, int row, int column)
public static void stopEditing(javax.swing.JTable table)
public static void ensureSelectionExists(javax.swing.JTable table)
public static void setupCheckboxColumn(javax.swing.JTable table, int columnIndex)
@Deprecated public static void setupCheckboxColumn(javax.swing.table.TableColumn column)
setupCheckboxColumn(JTable, int)
instead.
Or use setupCheckboxColumn(TableColumn, int)
with TableColumnModel.getColumnMargin()
accounted for.public static void setupCheckboxColumn(javax.swing.table.TableColumn column, int additionalWidth)
public static void updateScroller(javax.swing.JTable table)