Class ATableModel

  extended by javax.swing.table.AbstractTableModel
      extended by org.rimudb.editor.swing.ATableModel
All Implemented Interfaces:, javax.swing.table.TableModel
Direct Known Subclasses:
ADefaultTableModel, AMutableTableModel, DataSourceTableModel, PropertyTableModel, URLDefaultTableModel

public abstract class ATableModel
extends javax.swing.table.AbstractTableModel

This class extends AbstractTableModel to provide the abilty to set individual column widths as a percent of the entire width.

ATableModel is designed to work with an ATable. ATable provides the resizeColumns() method which can be used to resize the columns to conform to the width requirements configured in the ATableModel.

See Also:
Serialized Form

Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
Constructor Summary
          ObjectTableModel constructor comment.
Method Summary
 int getColumnFixedWidth(int col)
          Return the fixed width of a given column.
abstract  int getColumnWidthPercent(int col)
          Return the width of a given column as a percent of the entire width.
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.swing.table.TableModel
getColumnCount, getRowCount, getValueAt

Constructor Detail


public ATableModel()
ObjectTableModel constructor comment.

Method Detail


public abstract int getColumnWidthPercent(int col)
Return the width of a given column as a percent of the entire width.


public int getColumnFixedWidth(int col)
Return the fixed width of a given column.

Copyright © 2008-2011 Simon Ritchie. All Rights Reserved.