nz.ac.waikato.mcennis.rat.gui
Class PropertiesTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by javax.swing.table.DefaultTableModel
          extended by nz.ac.waikato.mcennis.rat.gui.PropertiesTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel

public class PropertiesTableModel
extends javax.swing.table.DefaultTableModel

Model to back the editing of components using the EditComponent frame

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
PropertiesTableModel()
          Initialize the model with the appropriate column headers.
 
Method Summary
 Properties getProperties()
          Return the Properties object that will save the given settings into the component
 boolean isCellEditable(int row, int column)
           
 void loadProperties(Properties parameters)
          Populate the model with the property values with the given array of parameters
 void setValueAt(java.lang.Object aValue, int row, int column)
           
 
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, removeRow, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, removeTableModelListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesTableModel

public PropertiesTableModel()
Initialize the model with the appropriate column headers.

Method Detail

loadProperties

public void loadProperties(Properties parameters)
Populate the model with the property values with the given array of parameters

Parameters:
parameters - array of parameters associated with the given component

getProperties

public Properties getProperties()
Return the Properties object that will save the given settings into the component

Returns:
Properties object to load these settings into the component.

setValueAt

public void setValueAt(java.lang.Object aValue,
                       int row,
                       int column)
Specified by:
setValueAt in interface javax.swing.table.TableModel
Overrides:
setValueAt in class javax.swing.table.DefaultTableModel

isCellEditable

public boolean isCellEditable(int row,
                              int column)
Specified by:
isCellEditable in interface javax.swing.table.TableModel
Overrides:
isCellEditable in class javax.swing.table.DefaultTableModel

Get Relational Analysis Toolkit at SourceForge.net. Fast, secure and Free Open Source software downloads