net.simplace.pipe.formcomponents.choice.FWTableChoiceSubComponent.FWTableModel

javax.swing.table.TableModel for FWTableChoiceSubComponent. Even the constructors technically accept FWFormOption the table model requires instances of FWFormTableOption. Exception will be generated otherwise!


protected class FWTableChoiceSubComponent.FWTableModel extends
javax.swing.table.AbstractTableModel {
// Public Constructors
public FWTableModel(Vector aOptions, int aSelectionValueColIdx);

// Protected Instance Variables
protected Vector iOptions;
protected Vector iRowOptions;
protected FWFormTableOption iHeadOption;
protected int iSelectionValueColIdx;

// Public Instance Methods
public int getRowCount();

Returns the number of table rows.
public int getColumnCount();

Returns the number of table columns.
public String getColumnName(int col); // Defines
javax.swing.table.AbstractTableModel


Returns the name for a column. Wildcards for map parameters are replaces at this point using net.simplace.pipe.formcomponents.FWAbstractFormSubComponent.iObservable.
public Class getColumnClass(int col); // Defines
javax.swing.table.AbstractTableModel


Returns the class for a column.
public Object getValueAt(int row, int col);

Returns a table cell value. Wildcards for map parameters are replaces at this point using net.simplace.pipe.formcomponents.FWAbstractFormSubComponent.iObservable.
public FWFormTableOption getRowOption(int row);

Returns the net.simplace.pipe.formcomponents.choice.FWFormTableOption which represents the specified row, e.g. to retrieve the ID of the option to set selection.
returns
public FWFormTableOption getHeaderOption();

Returns the net.simplace.pipe.formcomponents.choice.FWFormTableOption which represents the table header.
returns
public Object getSelectionValueAt(int row);

Returns the cell value which represents the selection / choice value for the specified table row.
returns
public void updateTable(Vector aFormOptionVector);

Updates the table data from form options.

// Protected Instance Methods
protected void init(Vector aOptions);

Called by constructor and net.simplace.pipe.formcomponents.choice.FWTableChoiceSubComponent.FWTableModel.updateTable(Vector) to initialize table model from net.simplace.pipe.formcomponents.choice.FWFormOptionFWFormOptions. Note: Even the method technically accepts net.simplace.pipe.formcomponents.choice.FWFormOption, the table model requires instances of net.simplace.pipe.formcomponents.choice.FWFormTableOption. Exception will be generated otherwise!


}



Hierarchy: java.lang.Object - javax.swing.table.AbstractTableModel (javax.swing.table.TableModel, java.io.Serializable) - FWTableChoiceSubComponent.FWTableModel



Type of: FWTableChoiceSubComponent.iTableModel