|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.swing.table.AbstractTableModel
com.monkeycoder.monkeyfractal.gui.ParameterListTableModel
public class ParameterListTableModel
This is the table model used for the display of ParameterList key and
value pairs by ParameterListGui.
Originally part of the MonkeyFractal project.
| Field Summary |
|---|
| Fields inherited from class javax.swing.table.AbstractTableModel |
|---|
listenerList |
| Constructor Summary | |
|---|---|
ParameterListTableModel()
Creates a new ParameterListTableModel with no headers or data. |
|
ParameterListTableModel(java.lang.String[] inColNames)
Creates a new ParameterListTableModel with the supplied headers. |
|
ParameterListTableModel(java.lang.String[] inColNames,
java.lang.Object[][] inData)
Creates a new ParameterListTableModel with the supplied headers and raw data. |
|
ParameterListTableModel(java.lang.String[] inColNames,
ParameterList inData)
Creates a new ParameterListTableModel with the supplied headers and data. |
|
| Method Summary | |
|---|---|
void |
addRow(java.lang.String inParamName,
double inValue)
Adds a row to the table. |
java.lang.Class |
getColumnClass(int col)
Returns the object class of the requested column. |
int |
getColumnCount()
Returns the number of columns in this table. |
java.lang.String |
getColumnName(int col)
Returns the column header name for the requested column. |
ParameterList |
getDataSet()
Builds a ParameterList using the data objects currently in the table. |
int |
getRowCount()
Returns the number of data rows in this table. |
java.lang.Object |
getValueAt(int row,
int col)
Returns the data at the specified table coordinates. |
boolean |
isCellEditable(int row,
int col)
Returns whether or not the data at the specified table coordinates is editable. |
void |
removeRow(int row)
Removes a row from the table. |
void |
setDataSet(ParameterList inData)
Replaces the data used with new data. |
void |
setValueAt(java.lang.Object value,
int row,
int col)
Sets the raw data at the specified table coordinates. |
| Methods inherited from class javax.swing.table.AbstractTableModel |
|---|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParameterListTableModel()
public ParameterListTableModel(java.lang.String[] inColNames)
inColNames - A string array containing column headers labels.
public ParameterListTableModel(java.lang.String[] inColNames,
java.lang.Object[][] inData)
inColNames - A string array containing column headers labels.inData - Object data for each cell of the table.
public ParameterListTableModel(java.lang.String[] inColNames,
ParameterList inData)
inColNames - A string array containing column headers labels.inData - An ArrayList expected to contain GameGenieCode objects.| Method Detail |
|---|
public ParameterList getDataSet()
public void setDataSet(ParameterList inData)
inData - A ParameterList containing the key value pairs to use in the table.public int getColumnCount()
public int getRowCount()
public java.lang.String getColumnName(int col)
getColumnName in interface javax.swing.table.TableModelgetColumnName in class javax.swing.table.AbstractTableModelcol - The requested column.
public java.lang.Object getValueAt(int row,
int col)
row - The row coordinate.col - The column coordinate.
public java.lang.Class getColumnClass(int col)
getColumnClass in interface javax.swing.table.TableModelgetColumnClass in class javax.swing.table.AbstractTableModelcol - The requested column.
public boolean isCellEditable(int row,
int col)
isCellEditable in interface javax.swing.table.TableModelisCellEditable in class javax.swing.table.AbstractTableModelrow - The row coordinate.col - The column coordinate.
public void setValueAt(java.lang.Object value,
int row,
int col)
setValueAt in interface javax.swing.table.TableModelsetValueAt in class javax.swing.table.AbstractTableModelvalue - The raw data.row - The row coordinate.col - The column coordinate.
public void addRow(java.lang.String inParamName,
double inValue)
inParamName - The name of the parameter to add.inValue - The value to which the named parameter will be set.public void removeRow(int row)
row - The index of the row to remove.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||