org.rimudb.editor.swing
Class ATableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.rimudb.editor.swing.ATableModel
All Implemented Interfaces:
java.io.Serializable, 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
listenerList
 
Constructor Summary
ATableModel()
          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

ATableModel

public ATableModel()
ObjectTableModel constructor comment.

Method Detail

getColumnWidthPercent

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


getColumnFixedWidth

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



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