public class WFSSelectFeaturePanel.LayerTable.LayerTableModel
extends javax.swing.table.AbstractTableModel
LayerTable
that stores the features
available to load as a WFS layer.Constructor and Description |
---|
LayerTableModel()
Constructs an investment table model.
|
Modifier and Type | Method and Description |
---|---|
void |
addRow(WFSSelectedFeature layer)
Adds a new layer to the table model, each table will be
represented as a row.
|
void |
deleteAllRows()
Deletes all the table rows.
|
void |
deleteRow(int rowPosition)
Delete all the table rows
|
int |
getColumnCount() |
java.lang.String |
getColumnName(int columnIndex) |
WFSSelectedFeature |
getLayerAt(int rowNumber)
Gets the layer at the specified position.
|
int |
getRowCount() |
java.lang.Object |
getValueAt(int rowNumber,
int columnNumber) |
boolean |
isShowedFeatureNameType()
Gets if shows the feature name type.
|
boolean |
isUpdatingSelection()
Determines if now is updating the selection of the previous
selected item.
|
void |
setShowedFeatureNameType(boolean showFeatureNameType)
Gets if shows the feature name type.
|
void |
sort(int column)
Sorts the rows of the table alphabetically.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
public int getRowCount()
public int getColumnCount()
public java.lang.Object getValueAt(int rowNumber, int columnNumber)
public WFSSelectedFeature getLayerAt(int rowNumber)
rowNumber
- row positionpublic void addRow(WFSSelectedFeature layer)
layer
- a new WFS layerpublic void deleteAllRows()
public void deleteRow(int rowPosition)
public java.lang.String getColumnName(int columnIndex)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
public boolean isShowedFeatureNameType()
true
if shows the feature name type;
false
otherwisepublic void setShowedFeatureNameType(boolean showFeatureNameType)
showFeatureNameType
- true
if shows the feature
name type; false
otherwisepublic void sort(int column)
column
- index of the column to sort. In this table there
are only 2 columns.public boolean isUpdatingSelection()
true
if now is updating the selection of the
previous selected item; otherwise false