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

public class WFSSelectFeaturePanel.LayerTable.LayerTableModel extends 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:
  • Constructor Details

    • LayerTableModel

      public LayerTableModel()
      Constructs an investment table model.
  • Method Details

    • getRowCount

      public int getRowCount()
    • getColumnCount

      public int getColumnCount()
    • getValueAt

      public Object getValueAt(int rowNumber, int columnNumber)
    • getLayerAt

      public WFSSelectedFeature getLayerAt(int rowNumber)
      Gets the layer at the specified position.
      Parameters:
      rowNumber - row position
      Returns:
      WFS layer node
    • 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
    • getColumnName

      public String getColumnName(int columnIndex)
      Specified by:
      getColumnName in interface TableModel
      Overrides:
      getColumnName in class AbstractTableModel
    • isShowedFeatureNameType

      public boolean isShowedFeatureNameType()
      Gets if shows the feature name type.
      Returns:
      true if shows the feature name type; false otherwise
    • 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.
    • 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