public class TableRowHeightController extends Object
Modifier and Type | Field and Description |
---|---|
private static Logger |
LOG |
private JTable |
table |
private TableModelListener |
tableModelListener |
private PropertyChangeListener |
tablePropertyListener |
Constructor and Description |
---|
TableRowHeightController()
Instantiates an unbound TableRowHeightController.
|
TableRowHeightController(JTable table)
Instantiates a TableRowHeightController and installs itself to the given table.
|
Modifier and Type | Method and Description |
---|---|
protected TableModelListener |
createTableModelListener() |
protected PropertyChangeListener |
createTablePropertyListener() |
protected PropertyChangeListener |
getPropertyChangeListener() |
protected TableModelListener |
getTableModelListener() |
void |
install(JTable table)
Installs this controller on the given table.
|
private void |
installListeners() |
void |
release()
Release this controller from its table.
|
private void |
uninstallListeners() |
protected void |
updateModel(TableModel oldValue) |
protected void |
updatePreferredRowHeights()
Sets the row heights of all rows.
|
protected void |
updatePreferredRowHeights(int firstRow,
int lastRow)
Sets the row heights of the rows in the range of first- to lastRow, inclusive.
|
private TableModelListener tableModelListener
private PropertyChangeListener tablePropertyListener
public TableRowHeightController()
public TableRowHeightController(JTable table)
table
- the table to control.public void install(JTable table)
table
- the table to install upon.public void release()
protected void updatePreferredRowHeights(int firstRow, int lastRow)
firstRow
- the first row in model coordinateslastRow
- the last row in model coordinatesprotected void updatePreferredRowHeights()
protected void updateModel(TableModel oldValue)
oldValue
- protected PropertyChangeListener createTablePropertyListener()
protected TableModelListener createTableModelListener()
private void uninstallListeners()
private void installListeners()
protected TableModelListener getTableModelListener()
protected PropertyChangeListener getPropertyChangeListener()
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses