org.gvsig.wfs.gui.panels
Class WFSParamsPanel

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by javax.swing.JComponent
              extended by javax.swing.JPanel
                  extended by org.gvsig.gui.beans.panelGroup.AbstractPanelGroup
                      extended by org.gvsig.gui.beans.panelGroup.tabbedPanel.TabbedPanel
                          extended by org.gvsig.wfs.gui.panels.WFSParamsPanel
All Implemented Interfaces:
java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.event.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:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JPanel
javax.swing.JPanel.AccessibleJPanel
 
Nested classes/interfaces inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
Nested classes/interfaces inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class org.gvsig.gui.beans.panelGroup.AbstractPanelGroup
ACCEPT_ACTION, accepted, APPLY_ACTION, CANCEL_ACTION, parentPanelGroup, reference, registeredPanels
 
Fields inherited from class javax.swing.JComponent
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
WFSParamsPanel(java.lang.Object reference)
          This method initializes jTabbedPane
 
Method Summary
 void advanceCurrentTab()
          Selects the next tab
 org.gvsig.fmap.mapcontext.layers.FLayer createLayer()
           
 int currentPage()
          Returns the index of the current tab.
 void doClickOnNextButton()
           
 void enableDefaultTabs(boolean isEnabled)
          Enable or disable the default tabs
 void execute()
           
 WFSAreaPanel getAreaPanel()
          This method initializes areaPanel
 WFSStoreParameters getDataStoreParameters()
           
 WFSSelectFeaturePanel getFeaturesPanel()
          This method initializes featurePanel
 WFSSelectFieldsPanel getFieldsPanel()
          This method initializes fieldsPanel
 WFSInfoPanel getInfoPanel()
          This method initializes infoPanel
 org.gvsig.fmap.mapcontext.layers.FLayer getLayer()
           
 WFSOptionsPanel getOptionsPanel()
          This method initializes optionsPanel
protected  org.gvsig.tools.dynobject.DynObject getParameters(java.lang.String nameCacheProvider)
           
 WFSSelectedFeatureManager getSelectedFeatureManager()
           
 org.cresques.cts.IProjection getSelectedFeatureProjection()
           
 int getSelectedIndex()
           
 WFSServerExplorer getServerExplorer()
          Gets the information used to add or load a WFS layer.
 void goToNextTab()
          Sets the focus to the next tab of the current one.
 void goToPreviousTab()
          Sets the focus to the tab previous to the current one.
protected  void initialize()
           
 void initWizard()
           
 boolean isCorretlyConfigured()
          Verifies that the selected parameters are enough to request the coverage to the server.
protected  void loadPanel(org.gvsig.gui.beans.panelGroup.panels.IPanel panel)
           
 void loadPanels(org.gvsig.gui.beans.panelGroup.loaders.IPanelGroupLoader loader)
           
 int nextPageEnabled()
          Returns the next enabled tab's index, or -1 if there isn't any.
 int previousEnabledPage()
          Returns the index of the previous enabled tab.
 void refresh(WFSSelectedFeature selectedFeature, java.util.List vers_list)
          Refresh all the panels every time that a different layer is selected.
 void refreshCapabilitiesInfo()
          Refresh all the panels with the WFS capabilities information.
 void refreshInfo()
          Updates the information stored at the wizard's data and info panel.
 void refreshWFSSelectFeaturePanel()
          Refreshes the data of the inner WFSSelectFeaturePanel.
 void setApplicable(boolean isApplicable)
          Changes the enable status of the "apply" button
 void setDataStore(org.gvsig.fmap.dal.DataStore dataStore)
          Sets the forms from a
 void setEnabledApplyButton(boolean b)
           
 void setLayerName(java.lang.String name)
           
 void setSelectedCache(java.lang.String selectedCache)
           
 void setSelectedIndex(int index)
           
 void setServerExplorer(WFSServerExplorer serverExplorer)
          Sets the information used to add or load a WFS layer.
 
Methods inherited from class org.gvsig.gui.beans.panelGroup.tabbedPanel.TabbedPanel
addChangeListener, getActivePanel, getChangeListeners, getJTabbedPane, getPanelInGUICount, isEnabledAt, isPanelInGUI, removeChangeListener, setEnabledAt, setPanelInGUI, stateChanged, unLoadPanel
 
Methods inherited from class org.gvsig.gui.beans.panelGroup.AbstractPanelGroup
accept, addPanel, apply, belongsThisGroup, cancel, getPanelCount, getProperties, getReference, isAccepted, isEnabledAcceptButton, isEnabledApplyButton, isEnabledCancelButton, isEnabledCloseButton, isEnabledExitButton, isEnabledHideDetailsButton, isEnabledNoButton, isEnabledPauseButton, isEnabledRestartButton, isEnabledSaveButton, isEnabledSeeDetailsButton, isEnabledYesButton, removePanel, setEnabledAcceptButton, setEnabledCancelButton, setEnabledCloseButton, setEnabledExitButton, setEnabledHideDetailsButton, setEnabledNoButton, setEnabledPauseButton, setEnabledRestartButton, setEnabledSaveButton, setEnabledSeeDetailsButton, setEnabledYesButton, setParentPanelGroup, updateReference, values
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WFSParamsPanel

public WFSParamsPanel(java.lang.Object reference)
This method initializes jTabbedPane

Method Detail

advanceCurrentTab

public void advanceCurrentTab()
Selects the next tab


createLayer

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

currentPage

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

Returns:
index of the current tab

doClickOnNextButton

public void doClickOnNextButton()
See Also:
WFSWizard.doClickOnNextButton()

enableDefaultTabs

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


execute

public void execute()

getAreaPanel

public WFSAreaPanel getAreaPanel()
This method initializes areaPanel

Returns:
javax.swing.JPanel

getDataStoreParameters

public WFSStoreParameters 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

getFeaturesPanel

public WFSSelectFeaturePanel getFeaturesPanel()
This method initializes featurePanel

Returns:
javax.swing.JPanel

getFieldsPanel

public WFSSelectFieldsPanel getFieldsPanel()
This method initializes fieldsPanel

Returns:
javax.swing.JPanel

getInfoPanel

public WFSInfoPanel getInfoPanel()
This method initializes infoPanel

Returns:
the information panel

getLayer

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

getOptionsPanel

public WFSOptionsPanel getOptionsPanel()
This method initializes optionsPanel

Returns:
javax.swing.JPanel

getParameters

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

getSelectedFeatureManager

public WFSSelectedFeatureManager getSelectedFeatureManager()
Returns:
the selectedFeatureManager

getSelectedFeatureProjection

public org.cresques.cts.IProjection getSelectedFeatureProjection()
Returns:
the selected projection

getSelectedIndex

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

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

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.


initialize

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

initWizard

public void initWizard()

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

loadPanel

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

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

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.

previousEnabledPage

public int previousEnabledPage()
Returns the index of the previous enabled tab.

Returns:
The index, or -1 if there is no one.

refresh

public void refresh(WFSSelectedFeature selectedFeature,
                    java.util.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

refreshCapabilitiesInfo

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


refreshInfo

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


refreshWFSSelectFeaturePanel

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


setApplicable

public void setApplicable(boolean isApplicable)
Changes the enable status of the "apply" button

Parameters:
isApplicable - the enable status of the "apply" button

setDataStore

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


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

setLayerName

public void setLayerName(java.lang.String name)
See Also:
WFSSelectFeaturePanel.setLayerName(String)

setSelectedCache

public void setSelectedCache(java.lang.String selectedCache)

setSelectedIndex

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

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


Copyright © 2014 gvSIG Association. All Rights Reserved.