Package hec.map.aishape
Class ShapeImportTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
rma.swing.table.AbstractRmaTableModel
hec.map.aishape.ShapeImportTableModel
- All Implemented Interfaces:
Serializable
,TableModel
,RmaTableModelInterface
- Direct Known Subclasses:
ShapeStreamAlignmentTableModel
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected int
protected HashMap<String,
ShapeImport> protected ShapeSource
protected StreamAlignmentGlyph
protected RmaJTable
static final int
static final int
Fields inherited from class rma.swing.table.AbstractRmaTableModel
m_columnNames, m_displayUnitSystem, m_gmtOffset, m_unitSystem
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
Fields inherited from interface rma.swing.table.RmaTableModelInterface
UNDEF_COLUMN_PARAM_ID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ShapeImport
buildShapeImport
(String shapeName) abstract void
checkExistance
(ShapeImport shapeImport) void
clearHighlights
(boolean clearTableSelection) void
void
getColumnClass
(int columnIndex) int
Returns the number of columns represented by this model.getColumnName
(int columnIndex) int
boolean
int
Returns the number of row in the table model.getShapeImport
(int row) getShapeImport
(String shapeName) getToolTip
(int col, int row) getValueAt
(int rowIndex, int columnIndex) Returns the value at a given row/column location.protected void
hasErrors
(boolean tf) abstract boolean
boolean
isCellEditable
(int rowIndex, int columnIndex) void
rowSelected
(int[] rows) void
setColEnabled
(boolean tf, int idx) the the Column col enabled or disabledvoid
setImportAll
(boolean tf) void
setNameFieldIndex
(int idx) void
setReplaceExisting
(boolean tf) void
setShapeSource
(ShapeSource source) void
void
setValueAt
(Object aValue, int rowIndex, int columnIndex) Methods inherited from class rma.swing.table.AbstractRmaTableModel
addColumn, addColumn, addRow, clearAll, deleteRow, getColumnParameter, getDataVector, getDisplayUnitSystem, getGmtOffset, getRow, getUnitSystem, insertRow, insertRows, resetRowEnabled, setColumnClass, setColumnNames, setColumnNames, setColumnParameters, setDisplayUnitsSystem, setRowEnabled, setUnitSystem
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, getListeners, getTableModelListeners, removeTableModelListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface rma.swing.table.RmaTableModelInterface
setCellEnabled
Methods inherited from interface javax.swing.table.TableModel
addTableModelListener, removeTableModelListener
-
Field Details
-
NAME_COLUMN
public static final int NAME_COLUMN- See Also:
-
IMPORT_COLUMN
public static final int IMPORT_COLUMN- See Also:
-
_table
-
_nameField
-
_nameFieldIndex
protected int _nameFieldIndex -
_shapeSource
-
_shapeImportHash
-
_shapeImportNames
-
_streamAlignmentGlyph
-
-
Constructor Details
-
ShapeImportTableModel
-
-
Method Details
-
isCellEditable
public boolean isCellEditable(int rowIndex, int columnIndex) - Specified by:
isCellEditable
in interfaceTableModel
- Overrides:
isCellEditable
in classAbstractRmaTableModel
-
getShapeImport
-
setColEnabled
public void setColEnabled(boolean tf, int idx) Description copied from interface:RmaTableModelInterface
the the Column col enabled or disabled- Specified by:
setColEnabled
in interfaceRmaTableModelInterface
- Overrides:
setColEnabled
in classAbstractRmaTableModel
-
getToolTip
-
getShapeImportNames
-
getShapeImport
-
setNameFieldIndex
public void setNameFieldIndex(int idx) -
getNameFieldIndex
public int getNameFieldIndex() -
getReplaceExisting
public boolean getReplaceExisting() -
setReplaceExisting
public void setReplaceExisting(boolean tf) -
getValueAt
Description copied from class:AbstractRmaTableModel
Returns the value at a given row/column location. The default method returns null. Needs to be overrridden- Specified by:
getValueAt
in interfaceTableModel
- Overrides:
getValueAt
in classAbstractRmaTableModel
- Parameters:
rowIndex
- the row to look for the value in.columnIndex
- the column to look for the value in.
-
setValueAt
- Specified by:
setValueAt
in interfaceTableModel
- Overrides:
setValueAt
in classAbstractRmaTableModel
-
getRowCount
public int getRowCount()Description copied from class:AbstractRmaTableModel
Returns the number of row in the table model. The default method always returns 0, so this method must be overridden to return a row count other than 0.- Specified by:
getRowCount
in interfaceTableModel
- Overrides:
getRowCount
in classAbstractRmaTableModel
- Returns:
- the row count.
-
fireTableStructureChanged
public void fireTableStructureChanged()- Overrides:
fireTableStructureChanged
in classAbstractTableModel
-
getColumnName
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractRmaTableModel
-
setShapeSource
-
getColumnCount
public int getColumnCount()Description copied from class:AbstractRmaTableModel
Returns the number of columns represented by this model. The number of columns is determined by the number of column labels assigned to this table model. If the array of column labels is null, 0 columns are held.- Specified by:
getColumnCount
in interfaceTableModel
- Overrides:
getColumnCount
in classAbstractRmaTableModel
-
getColumnClass
- Specified by:
getColumnClass
in interfaceTableModel
- Overrides:
getColumnClass
in classAbstractRmaTableModel
-
importShapes
public abstract boolean importShapes() -
clearHighlights
public void clearHighlights(boolean clearTableSelection) -
setImportAll
public void setImportAll(boolean tf) -
rowSelected
public void rowSelected(int[] rows) -
buildShapeImport
-
fillModel
public void fillModel() -
hasErrors
protected void hasErrors(boolean tf) - Parameters:
tf
-
-
setStreamAlignmentGlyph
-
checkExistance
-