Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

oracle.javatools.ui.table
Interface ReorderableTableModel


public interface ReorderableTableModel

TableModel that supports reordering of rows should implement this interface.


Method Summary
 void moveRow(int start, int end, int to)
          Moves one or more rows from the inclusive range start to end to the to position in the model.
 

Method Detail

moveRow

void moveRow(int start,
             int end,
             int to)
Moves one or more rows from the inclusive range start to end to the to position in the model. After the move, the row that was at index start will be at index to. This method should also send a tableChanged notification message to all the listeners.

  Examples of moves:
  

1. moveRow(1,3,5); a|B|C|D|e|f|g|h|i|j|k - before a|e|f|g|h|B|C|D|i|j|k - after

2. moveRow(6,7,1); a|b|c|d|e|f|G|H|i|j|k - before a|G|H|b|c|d|e|f|i|j|k - after

Parameters:
start - the starting row index to be moved
end - the ending row index to be moved
to - the destination of the rows to be moved
Throws:
java.lang.ArrayIndexOutOfBoundsException - if any of the elements would be moved out of the table's range

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

Copyright © 1997, 2009, Oracle. All rights reserved.