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 Stringprotected intprotected HashMap<String,ShapeImport> protected ShapeSourceprotected StreamAlignmentGlyphprotected RmaJTablestatic final intstatic final intFields inherited from class rma.swing.table.AbstractRmaTableModel
m_columnNames, m_displayUnitSystem, m_gmtOffset, m_unitSystemFields inherited from class javax.swing.table.AbstractTableModel
listenerListFields inherited from interface rma.swing.table.RmaTableModelInterface
UNDEF_COLUMN_PARAM_ID -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ShapeImportbuildShapeImport(String shapeName) abstract voidcheckExistance(ShapeImport shapeImport) voidclearHighlights(boolean clearTableSelection) voidvoidgetColumnClass(int columnIndex) intReturns the number of columns represented by this model.getColumnName(int columnIndex) intbooleanintReturns 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 voidhasErrors(boolean tf) abstract booleanbooleanisCellEditable(int rowIndex, int columnIndex) voidrowSelected(int[] rows) voidsetColEnabled(boolean tf, int idx) the the Column col enabled or disabledvoidsetImportAll(boolean tf) voidsetNameFieldIndex(int idx) voidsetReplaceExisting(boolean tf) voidsetShapeSource(ShapeSource source) voidvoidsetValueAt(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, setUnitSystemMethods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, getListeners, getTableModelListeners, removeTableModelListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface rma.swing.table.RmaTableModelInterface
setCellEnabledMethods 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:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractRmaTableModel
-
getShapeImport
-
setColEnabled
public void setColEnabled(boolean tf, int idx) Description copied from interface:RmaTableModelInterfacethe the Column col enabled or disabled- Specified by:
setColEnabledin interfaceRmaTableModelInterface- Overrides:
setColEnabledin 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:AbstractRmaTableModelReturns the value at a given row/column location. The default method returns null. Needs to be overrridden- Specified by:
getValueAtin interfaceTableModel- Overrides:
getValueAtin classAbstractRmaTableModel- Parameters:
rowIndex- the row to look for the value in.columnIndex- the column to look for the value in.
-
setValueAt
- Specified by:
setValueAtin interfaceTableModel- Overrides:
setValueAtin classAbstractRmaTableModel
-
getRowCount
public int getRowCount()Description copied from class:AbstractRmaTableModelReturns 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:
getRowCountin interfaceTableModel- Overrides:
getRowCountin classAbstractRmaTableModel- Returns:
- the row count.
-
fireTableStructureChanged
public void fireTableStructureChanged()- Overrides:
fireTableStructureChangedin classAbstractTableModel
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractRmaTableModel
-
setShapeSource
-
getColumnCount
public int getColumnCount()Description copied from class:AbstractRmaTableModelReturns 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:
getColumnCountin interfaceTableModel- Overrides:
getColumnCountin classAbstractRmaTableModel
-
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin 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
-