Klasse FWTableChoiceSubComponent.FWTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
net.simplace.pipe.formcomponents.choice.FWTableChoiceSubComponent.FWTableModel
- Alle implementierten Schnittstellen:
Serializable,TableModel
- Umschließende Klasse:
FWTableChoiceSubComponent
TableModel for FWTableChoiceSubComponent.
Even the constructors technically accept FWFormOption the table model
requires instances of FWFormTableOption. Exception will be generated
otherwise!- Autor:
- Martin Schmitz
- Siehe auch:
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected FWFormTableOptionprotected Vector<FWFormTableOption> protected Vector<FWFormTableOption> protected intVon Klasse geerbte Felder javax.swing.table.AbstractTableModel
listenerList -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungFWTableModel(Vector<FWFormOption> aOptions, int aSelectionValueColIdx) Creates table model fromFWFormOptions. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungClass<?> getColumnClass(int col) Returns the class for a column.intReturns the number of table columns.getColumnName(int col) Returns the name for a column.Returns theFWFormTableOptionwhich represents the table header.intReturns the number of table rows.getRowOption(int row) Returns theFWFormTableOptionwhich represents the specified row, e.g. to retrieve the ID of the option to set selection.getSelectionValueAt(int row) Returns the cell value which represents the selection / choice value for the specified table row.getValueAt(int row, int col) Returns a table cell value.protected voidinit(Vector<FWFormOption> aOptions) Called by constructor andupdateTable(Vector)to initialize table model fromFWFormOptions.voidupdateTable(Vector<FWFormOption> aFormOptionVector) Updates the table data from form options.Von Klasse geerbte Methoden javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
Felddetails
-
iOptions
-
iRowOptions
-
iHeadOption
-
iSelectionValueColIdx
protected int iSelectionValueColIdx
-
-
Konstruktordetails
-
FWTableModel
Creates table model fromFWFormOptions. Note: Even the constructor technically acceptsFWFormOption, the table model requires instances ofFWFormTableOption. Exception will be generated otherwise!- Parameter:
aOptions- set of optionsaSelectionValueColIdx- specifies the table column, the selection value of the choice is taken from
-
-
Methodendetails
-
init
Called by constructor andupdateTable(Vector)to initialize table model fromFWFormOptions. Note: Even the method technically acceptsFWFormOption, the table model requires instances ofFWFormTableOption. Exception will be generated otherwise!- Parameter:
aOptions- set of options
-
getRowCount
public int getRowCount()Returns the number of table rows. -
getColumnCount
public int getColumnCount()Returns the number of table columns. -
getColumnName
Returns the name for a column. Wildcards for map parameters are replaces at this point usingFWAbstractFormSubComponent.iObservable.- Angegeben von:
getColumnNamein SchnittstelleTableModel- Setzt außer Kraft:
getColumnNamein KlasseAbstractTableModel
-
getColumnClass
Returns the class for a column.- Angegeben von:
getColumnClassin SchnittstelleTableModel- Setzt außer Kraft:
getColumnClassin KlasseAbstractTableModel
-
getValueAt
Returns a table cell value. Wildcards for map parameters are replaces at this point usingFWAbstractFormSubComponent.iObservable. -
getRowOption
Returns theFWFormTableOptionwhich represents the specified row, e.g. to retrieve the ID of the option to set selection.- Parameter:
row-- Gibt zurück:
-
getHeaderOption
Returns theFWFormTableOptionwhich represents the table header.- Gibt zurück:
-
getSelectionValueAt
Returns the cell value which represents the selection / choice value for the specified table row.- Parameter:
row-- Gibt zurück:
-
updateTable
Updates the table data from form options.- Parameter:
aFormOptionVector-
-