planetj.gui
Class CMTableModel

java.lang.Object
  |
  +--javax.swing.table.AbstractTableModel
        |
        +--planetj.gui.CMTableModel
All Implemented Interfaces:
Serializable, TableModel
Direct Known Subclasses:
CMSmartTableModel

public abstract class CMTableModel
extends AbstractTableModel

Provides some additional common features.

See Also:
Serialized Form

Constructor Summary
CMTableModel()
          CMTableModel constructor comment.
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          The addPropertyChangeListener method was generated to support the propertyChange field.
 void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
          The addPropertyChangeListener method was generated to support the propertyChange field.
 void firePropertyChange(String propertyName, Object oldValue, Object newValue)
          The firePropertyChange method was generated to support the propertyChange field.
 List getAllObjects()
          Gets the allObjects property (List) value.
 Object getBusinessObject(int rowId)
          Return the business object at a particular row.
 int getColumnCount()
          getColumnCount method comment.
 String getColumnName(int column)
           
 String[] getColumnNames()
          Gets the columnNames property (java.lang.String[]) value.
 int getRowCount()
          getRowCount method comment.
 String getTranslation(String messageToTranslate)
           
abstract  Object getValueAt(int row, int column)
          getValueAt method comment.
 void removePropertyChangeListener(PropertyChangeListener listener)
          The removePropertyChangeListener method was generated to support the propertyChange field.
 void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
          The removePropertyChangeListener method was generated to support the propertyChange field.
 void setAllObjects(List allObjects)
          Sets the allObjects property (java.util.Vector) value.
 void setColumnCount(int columnCount)
          Sets the columnCount property (int) value.
 void setColumnName(int index, String columnName)
          Sets the columnName index property (java.lang.String[]) value.
 void setColumnNames(String[] columnNames)
          Sets the columnNames property (String[]) value.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMTableModel

public CMTableModel()
CMTableModel constructor comment.

Method Detail

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
The addPropertyChangeListener method was generated to support the propertyChange field.


addPropertyChangeListener

public void addPropertyChangeListener(String propertyName,
                                      PropertyChangeListener listener)
The addPropertyChangeListener method was generated to support the propertyChange field.


firePropertyChange

public void firePropertyChange(String propertyName,
                               Object oldValue,
                               Object newValue)
The firePropertyChange method was generated to support the propertyChange field.


getAllObjects

public List getAllObjects()
Gets the allObjects property (List) value.

Returns:
The allObjects property value.
See Also:
setAllObjects(java.util.List)

getBusinessObject

public Object getBusinessObject(int rowId)
Return the business object at a particular row. %%PH_Action (need to consider situation where rowId is > than getAllObjects().size???????


getColumnCount

public int getColumnCount()
getColumnCount method comment.


getColumnName

public String getColumnName(int column)
Specified by:
getColumnName in interface TableModel
Overrides:
getColumnName in class AbstractTableModel

getColumnNames

public String[] getColumnNames()
Gets the columnNames property (java.lang.String[]) value.

Returns:
The columnNames property value.
See Also:
setColumnNames(java.lang.String[])

getRowCount

public int getRowCount()
getRowCount method comment.


getTranslation

public String getTranslation(String messageToTranslate)

getValueAt

public abstract Object getValueAt(int row,
                                  int column)
getValueAt method comment.


removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
The removePropertyChangeListener method was generated to support the propertyChange field.


removePropertyChangeListener

public void removePropertyChangeListener(String propertyName,
                                         PropertyChangeListener listener)
The removePropertyChangeListener method was generated to support the propertyChange field.


setAllObjects

public void setAllObjects(List allObjects)
Sets the allObjects property (java.util.Vector) value.

Parameters:
allObjects - The new value for the property.
See Also:
getAllObjects()

setColumnCount

public void setColumnCount(int columnCount)
Sets the columnCount property (int) value.

Parameters:
columnCount - The new value for the property.
See Also:
getColumnCount()

setColumnName

public void setColumnName(int index,
                          String columnName)
Sets the columnName index property (java.lang.String[]) value.

Parameters:
index - The new value for the property.
columnName - The new value for the property.
See Also:
getColumnName(int)

setColumnNames

public void setColumnNames(String[] columnNames)
Sets the columnNames property (String[]) value.

Parameters:
columnNames - String[] The new value for the property.
See Also:
getColumnNames()