Package rma.swing.table
Interface RmaTableModelInterface
- All Superinterfaces:
TableModel
- All Known Subinterfaces:
SortingTableModelInterface
- All Known Implementing Classes:
AbstractDataListTableModel,AbstractRmaTableModel,AiShapeGlyphOptionJDlg.FieldColorTableModel,EditingInundationGroupTableModel,FieldColorTableModel,FieldMapModel,GeneralTableModel,IdentifierTableModel,InundationGroupTableModel,ObjectChooserTableModel,PairedValuesExtTableModel,PairedValuesTableModel,ParamDoubleTableModel,RenderingInundationGroupTableModel,RmaJTableSorter,RmaTableMap,RmaTableModel,RmaTableSorter,SeasonalRecordTableModel,SeasonalRecWithTimeTableModel,ShapeImportTableModel,ShapeStreamAlignmentTableModel,ShapeTableModel
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidadd a column to the table with the header colNamevoidadd a column to the table with header columnName and data ColumnDatavoidadd a row to the table with data in the Vector newRowvoidclearAll()remove all data from the tablevoiddeleteRow(int index) remove the row at index from the modelintgetColumnParameter(int col) return the table data in a vectorintReturns the GmtOffset that the data is in.getRow(int rowNum) get the row of data at rowNum and return in a Vectorintvoidinsert a row in the table at Row row with data rowDatavoidinsertRows(int row, int cnt, Vector rowData) insert cnt number of rows at row with the data rowDatavoidclears the RmaTableModel's editableRows listdefault voidsetCellEnabled(boolean enable, int row, int col) voidsetColEnabled(boolean enabled, int col) the the Column col enabled or disabledvoidsetColumnClass(int col, Class cls) st the column col's class to be clsvoidsetColumnNames(String[] colNames) voidsetColumnNames(Vector colNamesVector) voidsetColumnParameters(int[] params) voidsetDisplayUnitsSystem(int unitSystem) set the display units systemvoidsetRowEnabled(boolean enabled, int row) set the Row row enabled or disabledMethods inherited from interface javax.swing.table.TableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, isCellEditable, removeTableModelListener, setValueAt
-
Field Details
-
UNDEF_COLUMN_PARAM_ID
static final int UNDEF_COLUMN_PARAM_ID- See Also:
-
-
Method Details
-
setColEnabled
void setColEnabled(boolean enabled, int col) the the Column col enabled or disabled -
setRowEnabled
void setRowEnabled(boolean enabled, int row) set the Row row enabled or disabled -
resetRowEnabled
void resetRowEnabled()clears the RmaTableModel's editableRows list -
addColumn
add a column to the table with the header colName -
addColumn
add a column to the table with header columnName and data ColumnData -
getDataVector
Vector getDataVector()return the table data in a vector -
addRow
add a row to the table with data in the Vector newRow -
insertRow
insert a row in the table at Row row with data rowData -
insertRows
insert cnt number of rows at row with the data rowData- Parameters:
row- the row to insert the data atcnt- the number of rows to insertrowData- the row data to insert, this will be duplicated at all cnt rows
-
setColumnClass
st the column col's class to be cls -
clearAll
void clearAll()remove all data from the table -
deleteRow
void deleteRow(int index) remove the row at index from the model -
getRow
get the row of data at rowNum and return in a Vector -
setColumnNames
-
setColumnNames
-
getColumnParameter
int getColumnParameter(int col) -
setColumnParameters
void setColumnParameters(int[] params) -
getUnitSystem
int getUnitSystem() -
getGmtOffset
int getGmtOffset()Returns the GmtOffset that the data is in. If a value is set it is guaranteed to be in the range of -11 to +14. Otherwise RmaConst.UNDEF_INT is returned. -
setDisplayUnitsSystem
void setDisplayUnitsSystem(int unitSystem) set the display units system -
setCellEnabled
default void setCellEnabled(boolean enable, int row, int col)
-