sears.search.gui
Class JTableManipulation

java.lang.Object
  extended by sears.search.gui.JTableManipulation

public class JTableManipulation
extends java.lang.Object

Gives method to manipulate table view [...]

Scroll to visible a table cell with a better style than the JComponent.scrollRectToVisible(Rectangle) method


Constructor Summary
JTableManipulation(javax.swing.JScrollPane scrollPane)
          Constructs a new JTableManipulation object
 
Method Summary
 void resetColumn()
          Reset lastColumn
 void scrollCellToVisible(int row, int column, boolean backward)
          Scroll to visible a table cell with a better style than the JComponent.scrollRectToVisible(Rectangle) method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JTableManipulation

public JTableManipulation(javax.swing.JScrollPane scrollPane)
Constructs a new JTableManipulation object

Parameters:
scrollPane -
Throws:
java.lang.NullPointerException
java.lang.IllegalArgumentException
Method Detail

resetColumn

public void resetColumn()
Reset lastColumn


scrollCellToVisible

public void scrollCellToVisible(int row,
                                int column,
                                boolean backward)
Scroll to visible a table cell with a better style than the JComponent.scrollRectToVisible(Rectangle) method.
column must be coherent and must be the same that the previous given in parameters of this method.
call resetColumn() before ...

Parameters:
row - the row to display in view
column - the column
backward - the direction
Throws:
java.lang.IllegalArgumentException - if column is not the same than the last used column