Class WFSParamsPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.gvsig.gui.beans.panelGroup.AbstractPanelGroup
org.gvsig.gui.beans.panelGroup.tabbedPanel.TabbedPanel
org.gvsig.wfs.gui.panels.WFSParamsPanel
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, ChangeListener, org.gvsig.app.gui.ILayerPanel, org.gvsig.gui.beans.buttonspanel.IButtonsPanel, org.gvsig.gui.beans.panelGroup.IPanelGroup

public class WFSParamsPanel extends org.gvsig.gui.beans.panelGroup.tabbedPanel.TabbedPanel implements org.gvsig.app.gui.ILayerPanel

Container of the WFS panels, that works as a TabbedPanel.

Author:
Pablo Piqueras Bartolomé (pablo.piqueras@iver.es), Jorge Piera Llodrá (piera_jor@gva.es)
See Also:
  • Constructor Details

    • WFSParamsPanel

      public WFSParamsPanel(Object reference)
      This method initializes jTabbedPane
  • Method Details

    • initialize

      protected void initialize()
      Overrides:
      initialize in class org.gvsig.gui.beans.panelGroup.tabbedPanel.TabbedPanel
    • getWizardPanel

      public org.gvsig.app.gui.WizardPanel getWizardPanel()
    • setWizardPanel

      public void setWizardPanel(org.gvsig.app.gui.WizardPanel wfsWizard)
    • goToNextTab

      public void goToNextTab()
      Sets the focus to the next tab of the current one.
    • goToPreviousTab

      public void goToPreviousTab()
      Sets the focus to the tab previous to the current one.
    • getSelectedIndex

      public int getSelectedIndex()
      Overrides:
      getSelectedIndex in class org.gvsig.gui.beans.panelGroup.tabbedPanel.TabbedPanel
      See Also:
    • setSelectedIndex

      public void setSelectedIndex(int index)
      Overrides:
      setSelectedIndex in class org.gvsig.gui.beans.panelGroup.tabbedPanel.TabbedPanel
      See Also:
    • getInfoPanel

      public WFSInfoPanel getInfoPanel()
      This method initializes infoPanel
      Returns:
      the information panel
    • getFeaturesPanel

      public WFSSelectFeaturePanel getFeaturesPanel()
      This method initializes featurePanel
      Returns:
      javax.swing.JPanel
    • getFieldsPanel

      public WFSSelectFieldsPanel getFieldsPanel()
      This method initializes fieldsPanel
      Returns:
      javax.swing.JPanel
    • getOptionsPanel

      public WFSOptionsPanel getOptionsPanel()
      This method initializes optionsPanel
      Returns:
      javax.swing.JPanel
    • getAreaPanel

      public WFSAreaPanel getAreaPanel()
      This method initializes areaPanel
      Returns:
      javax.swing.JPanel
    • isCorretlyConfigured

      public boolean isCorretlyConfigured()
      Verifies that the selected parameters are enough to request the coverage to the server.
      Returns:
      boolean true if its correctly configured; otherwise returns false
    • enableDefaultTabs

      public void enableDefaultTabs(boolean isEnabled)
      Enable or disable the default tabs
    • loadPanel

      protected void loadPanel(org.gvsig.gui.beans.panelGroup.panels.IPanel panel)
      Overrides:
      loadPanel in class org.gvsig.gui.beans.panelGroup.tabbedPanel.TabbedPanel
    • refreshCapabilitiesInfo

      public void refreshCapabilitiesInfo()
      Refresh all the panels with the WFS capabilities information.
    • getServerExplorer

      public WFSServerExplorer getServerExplorer()
      Gets the information used to add or load a WFS layer.
      Returns:
      information used to add or load a WFS layer
    • setServerExplorer

      public void setServerExplorer(WFSServerExplorer serverExplorer)
      Sets the information used to add or load a WFS layer.
      Parameters:
      wizardData - information used to add or load a WFS layer
    • nextPageEnabled

      public int nextPageEnabled()
      Returns the next enabled tab's index, or -1 if there isn't any.
      Returns:
      The index or -1 if there is no one.
    • currentPage

      public int currentPage()
      Returns the index of the current tab.
      Returns:
      index of the current tab
    • previousEnabledPage

      public int previousEnabledPage()
      Returns the index of the previous enabled tab.
      Returns:
      The index, or -1 if there is no one.
    • initWizard

      public void initWizard()
    • execute

      public void execute()
    • getLayer

      public org.gvsig.fmap.mapcontext.layers.FLayer getLayer()
      Specified by:
      getLayer in interface org.gvsig.app.gui.ILayerPanel
    • createLayer

      public org.gvsig.fmap.mapcontext.layers.FLayer createLayer() throws org.gvsig.fmap.mapcontext.exceptions.CreateLayerException
      Throws:
      org.gvsig.fmap.mapcontext.exceptions.CreateLayerException
    • getParameters

      protected org.gvsig.tools.dynobject.DynObject getParameters(String nameCacheProvider) throws org.gvsig.fmap.dal.exception.DataException
      Throws:
      org.gvsig.fmap.dal.exception.DataException
    • getDataStoreParameters

      public WFSOpenStoreParameters getDataStoreParameters() throws org.gvsig.fmap.dal.exception.InitializeException, org.gvsig.fmap.dal.exception.ProviderNotRegisteredException
      Throws:
      org.gvsig.fmap.dal.exception.InitializeException
      org.gvsig.fmap.dal.exception.ProviderNotRegisteredException
    • setDataStore

      public void setDataStore(org.gvsig.fmap.dal.DataStore dataStore)
      Sets the forms from a
    • doClickOnNextButton

      public void doClickOnNextButton()
      See Also:
    • advanceCurrentTab

      public void advanceCurrentTab()
      Selects the next tab
    • refreshWFSSelectFeaturePanel

      public void refreshWFSSelectFeaturePanel()
      Refreshes the data of the inner WFSSelectFeaturePanel.
    • getSelectedFeatureProjection

      public org.gvsig.crs.projection.lib.Projection getSelectedFeatureProjection()
      Returns:
      the selected projection
    • refresh

      public void refresh(WFSSelectedFeature selectedFeature, List vers_list)
      Refresh all the panels every time that a different layer is selected. The info panel is refreshed every time the user makes a click on it.
      Parameters:
      selectedFeature - the selected layer
    • setApplicable

      public void setApplicable(boolean isApplicable)
      Changes the enable status of the "apply" button
      Parameters:
      isApplicable - the enable status of the "apply" button
    • setEnabledApplyButton

      public void setEnabledApplyButton(boolean b)
      Specified by:
      setEnabledApplyButton in interface org.gvsig.gui.beans.buttonspanel.IButtonsPanel
      Overrides:
      setEnabledApplyButton in class org.gvsig.gui.beans.panelGroup.AbstractPanelGroup
    • loadPanels

      public void loadPanels(org.gvsig.gui.beans.panelGroup.loaders.IPanelGroupLoader loader) throws org.gvsig.gui.beans.panelGroup.exceptions.ListCouldntAddPanelException, org.gvsig.gui.beans.panelGroup.exceptions.EmptyPanelGroupException, org.gvsig.gui.beans.panelGroup.exceptions.EmptyPanelGroupGUIException
      Specified by:
      loadPanels in interface org.gvsig.gui.beans.panelGroup.IPanelGroup
      Overrides:
      loadPanels in class org.gvsig.gui.beans.panelGroup.AbstractPanelGroup
      Throws:
      org.gvsig.gui.beans.panelGroup.exceptions.ListCouldntAddPanelException
      org.gvsig.gui.beans.panelGroup.exceptions.EmptyPanelGroupException
      org.gvsig.gui.beans.panelGroup.exceptions.EmptyPanelGroupGUIException
    • setLayerName

      public void setLayerName(String name)
      See Also:
    • refreshInfo

      public void refreshInfo()
      Updates the information stored at the wizard's data and info panel.
    • getSelectedFeatureManager

      public WFSSelectedFeatureManager getSelectedFeatureManager()
      Returns:
      the selectedFeatureManager
    • setSelectedCache

      public void setSelectedCache(String selectedCache)