org.rimudb.editor.swing
Class ADefaultTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.rimudb.editor.swing.ATableModel
          extended by org.rimudb.editor.swing.ADefaultTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class ADefaultTableModel
extends ATableModel

This is a default implementation of ATableModel

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
ADefaultTableModel()
          Create a default table model
 
Method Summary
 int getColumnCount()
          Return the number of columns
 int getColumnWidthPercent(int col)
          Return the column width percent.
 int getRowCount()
          Return the number of rows
 java.lang.Object getValueAt(int row, int column)
          Return the value for a row and column.
 
Methods inherited from class org.rimudb.editor.swing.ATableModel
getColumnFixedWidth
 
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
 

Constructor Detail

ADefaultTableModel

public ADefaultTableModel()
Create a default table model

Method Detail

getColumnWidthPercent

public int getColumnWidthPercent(int col)
Return the column width percent. By default the columns are spaced evenly apart.

Specified by:
getColumnWidthPercent in class ATableModel

getValueAt

public java.lang.Object getValueAt(int row,
                                   int column)
Return the value for a row and column.


getColumnCount

public int getColumnCount()
Return the number of columns


getRowCount

public int getRowCount()
Return the number of rows



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