org.gvsig.wfs.gui.panels
Class WFSSelectFeaturePanel.LayerTable.LayerTableModel

java.lang.Object
  extended by javax.swing.table.AbstractTableModel
      extended by org.gvsig.wfs.gui.panels.WFSSelectFeaturePanel.LayerTable.LayerTableModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.table.TableModel
Enclosing class:
WFSSelectFeaturePanel.LayerTable

public class WFSSelectFeaturePanel.LayerTable.LayerTableModel
extends javax.swing.table.AbstractTableModel

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:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
 
Constructor Summary
WFSSelectFeaturePanel.LayerTable.LayerTableModel()
          Constructs an investment table model.
 
Method Summary
 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.
 
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WFSSelectFeaturePanel.LayerTable.LayerTableModel

public WFSSelectFeaturePanel.LayerTable.LayerTableModel()
Constructs an investment table model.

Method Detail

addRow

public void addRow(WFSSelectedFeature layer)
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


getColumnCount

public int getColumnCount()

getColumnName

public java.lang.String getColumnName(int columnIndex)
Specified by:
getColumnName in interface javax.swing.table.TableModel
Overrides:
getColumnName in class javax.swing.table.AbstractTableModel

getLayerAt

public WFSSelectedFeature getLayerAt(int rowNumber)
Gets the layer at the specified position.

Parameters:
rowNumber - row position
Returns:
WFS layer node

getRowCount

public int getRowCount()

getValueAt

public java.lang.Object getValueAt(int rowNumber,
                                   int columnNumber)

isShowedFeatureNameType

public boolean isShowedFeatureNameType()
Gets if shows the feature name type.

Returns:
true if shows the feature name type; false otherwise

isUpdatingSelection

public boolean isUpdatingSelection()
Determines if now is updating the selection of the previous selected item.

Returns:
true if now is updating the selection of the previous selected item; otherwise false

setShowedFeatureNameType

public void setShowedFeatureNameType(boolean showFeatureNameType)
Gets if shows the feature name type.

Parameters:
showFeatureNameType - true if shows the feature name type; false otherwise

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.


Copyright © 2014 gvSIG Association. All Rights Reserved.