public class WFSSelectFeaturePanel.LayerTable.LayerTableModel extends AbstractTableModel
LayerTable
that stores the features
available to load as a WFS layer.listenerList
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() |
String |
getColumnName(int columnIndex) |
WFSSelectedFeature |
getLayerAt(int rowNumber)
Gets the layer at the specified position.
|
int |
getRowCount() |
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 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 String getColumnName(int columnIndex)
getColumnName
in interface TableModel
getColumnName
in class 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