Package org.gvsig.wfs.gui.panels
Class WFSSelectFeaturePanel.LayerTable.LayerTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
org.gvsig.wfs.gui.panels.WFSSelectFeaturePanel.LayerTable.LayerTableModel
- All Implemented Interfaces:
Serializable,TableModel
- Enclosing class:
WFSSelectFeaturePanel.LayerTable
Model of the
LayerTable that stores the features
available to load as a WFS layer.- Author:
- Jorge Piera LlodrĂ¡ (piera_jor@gva.es), Pablo Piqueras Bartolome (pablo.piqueras@iver.es)
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRow(WFSSelectedFeature layer) Adds a new layer to the table model, each table will be represented as a row.voidDeletes all the table rows.voiddeleteRow(int rowPosition) Delete all the table rowsintgetColumnName(int columnIndex) getLayerAt(int rowNumber) Gets the layer at the specified position.intgetValueAt(int rowNumber, int columnNumber) booleanGets if shows the feature name type.booleanDetermines if now is updating the selection of the previous selected item.voidsetShowedFeatureNameType(boolean showFeatureNameType) Gets if shows the feature name type.voidsort(int column) Sorts the rows of the table alphabetically.Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
Constructor Details
-
LayerTableModel
public LayerTableModel()Constructs an investment table model.
-
-
Method Details
-
getRowCount
public int getRowCount() -
getColumnCount
public int getColumnCount() -
getValueAt
-
getLayerAt
Gets the layer at the specified position.- Parameters:
rowNumber- row position- Returns:
- WFS layer node
-
addRow
Adds a new layer to the table model, each table will be represented as a row.- Parameters:
layer- a new WFS layer
-
deleteAllRows
public void deleteAllRows()Deletes all the table rows. -
deleteRow
public void deleteRow(int rowPosition) Delete all the table rows -
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
isShowedFeatureNameType
public boolean isShowedFeatureNameType()Gets if shows the feature name type.- Returns:
trueif shows the feature name type;falseotherwise
-
setShowedFeatureNameType
public void setShowedFeatureNameType(boolean showFeatureNameType) Gets if shows the feature name type.- Parameters:
showFeatureNameType-trueif shows the feature name type;falseotherwise
-
sort
public void sort(int column) Sorts the rows of the table alphabetically.- Parameters:
column- index of the column to sort. In this table there are only 2 columns.
-
isUpdatingSelection
public boolean isUpdatingSelection()Determines if now is updating the selection of the previous selected item.- Returns:
trueif now is updating the selection of the previous selected item; otherwisefalse
-