Package adams.gui.core
Interface MoveableTableModel
-
- All Superinterfaces:
TableModel
- All Known Implementing Classes:
AbstractMoveableTableModel
,DataTableModel
,FlowSetupTableModel
public interface MoveableTableModel extends TableModel
Interface for table models that support moving rows up and down.- Version:
- $Revision$
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canMoveDown(int[] indices)
checks whether the selected items can be moved down.boolean
canMoveUp(int[] indices)
checks whether the selected items can be moved up.int[]
moveBottom(int[] indices)
moves the selected items to the end.int[]
moveDown(int[] indices)
moves the selected items down by 1.int[]
moveTop(int[] indices)
moves the selected items to the top.int[]
moveUp(int[] indices)
moves the selected items up by 1.-
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
-
-
-
-
Method Detail
-
moveUp
int[] moveUp(int[] indices)
moves the selected items up by 1.- Parameters:
indices
- the indices of the rows to move- Returns:
- the updated indices of the selected rows
-
moveDown
int[] moveDown(int[] indices)
moves the selected items down by 1.- Parameters:
indices
- the indices of the rows to move- Returns:
- the updated indices of the selected rows
-
moveTop
int[] moveTop(int[] indices)
moves the selected items to the top.- Parameters:
indices
- the indices of the rows to move- Returns:
- the updated indices of the selected rows
-
moveBottom
int[] moveBottom(int[] indices)
moves the selected items to the end.- Parameters:
indices
- the indices of the rows to move- Returns:
- the updated indices of the selected rows
-
canMoveUp
boolean canMoveUp(int[] indices)
checks whether the selected items can be moved up.- Parameters:
indices
- the indices of the rows to move- Returns:
- true if the selected items can be moved
-
canMoveDown
boolean canMoveDown(int[] indices)
checks whether the selected items can be moved down.- Parameters:
indices
- the indices of the rows to move- Returns:
- true if the selected items can be moved
-
-