|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface CutandPasteDNDTableModel
Model for use with CutandPasteDNDTable. It is recommeded
that when using this interface you subclass a rich implementation
of TableModel such as DefaultTableModel and
merely implement the three methods defined here.
| Method Summary | |
|---|---|
void |
cutRow(int[] rows_to_cut)
Removes rows at the specified indices from the table. |
void |
moveRow(int[] drag_row_index,
int drop_row_index)
Moves the rows at the specified drag indexes to the specified drop index. |
void |
pasteRow(int paste_location)
Indicates the location where previously cut row should be pasted. |
| Methods inherited from interface javax.swing.table.TableModel |
|---|
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt |
| Method Detail |
|---|
void moveRow(int[] drag_row_index,
int drop_row_index)
drag_row_index - an int[] of indexes
from the table that were dragged to
a new location and droppeddrop_row_index - the index of the table where the
drop operation took placevoid cutRow(int[] rows_to_cut)
rows_to_cut - an int[] of table indexesvoid pasteRow(int paste_location)
cutRow(int[]) operation so that they can
be properly pasted in here.
paste_location - the index where previously cut rows
should now be pasted
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||