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 TypeMethodDescriptionvoid
add a column to the table with the header colNamevoid
add a column to the table with header columnName and data ColumnDatavoid
add a row to the table with data in the Vector newRowvoid
clearAll()
remove all data from the tablevoid
deleteRow
(int index) remove the row at index from the modelint
getColumnParameter
(int col) return the table data in a vectorint
Returns the GmtOffset that the data is in.getRow
(int rowNum) get the row of data at rowNum and return in a Vectorint
void
insert a row in the table at Row row with data rowDatavoid
insertRows
(int row, int cnt, Vector rowData) insert cnt number of rows at row with the data rowDatavoid
clears the RmaTableModel's editableRows listdefault void
setCellEnabled
(boolean enable, int row, int col) void
setColEnabled
(boolean enabled, int col) the the Column col enabled or disabledvoid
setColumnClass
(int col, Class cls) st the column col's class to be clsvoid
setColumnNames
(String[] colNames) void
setColumnNames
(Vector colNamesVector) void
setColumnParameters
(int[] params) void
setDisplayUnitsSystem
(int unitSystem) set the display units systemvoid
setRowEnabled
(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)
-