Package org.gvsig.wfs.gui.panels
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanelNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
Fields inherited from class org.gvsig.gui.beans.panelGroup.AbstractPanelGroup
ACCEPT_ACTION, accepted, APPLY_ACTION, CANCEL_ACTION, parentPanelGroup, reference, registeredPanelsFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSelects the next taborg.gvsig.fmap.mapcontext.layers.FLayerintReturns the index of the current tab.voidvoidenableDefaultTabs(boolean isEnabled) Enable or disable the default tabsvoidexecute()This method initializes areaPanelThis method initializes featurePanelThis method initializes fieldsPanelThis method initializes infoPanelorg.gvsig.fmap.mapcontext.layers.FLayergetLayer()This method initializes optionsPanelprotected org.gvsig.tools.dynobject.DynObjectgetParameters(String nameCacheProvider) org.gvsig.crs.projection.lib.ProjectionintGets the information used to add or load a WFS layer.org.gvsig.app.gui.WizardPanelvoidSets the focus to the next tab of the current one.voidSets the focus to the tab previous to the current one.protected voidvoidbooleanVerifies that the selected parameters are enough to request the coverage to the server.protected voidloadPanel(org.gvsig.gui.beans.panelGroup.panels.IPanel panel) voidloadPanels(org.gvsig.gui.beans.panelGroup.loaders.IPanelGroupLoader loader) intReturns the next enabled tab's index, or -1 if there isn't any.intReturns the index of the previous enabled tab.voidrefresh(WFSSelectedFeature selectedFeature, List vers_list) Refresh all the panels every time that a different layer is selected.voidRefresh all the panels with the WFS capabilities information.voidUpdates the information stored at the wizard's data and info panel.voidRefreshes the data of the innerWFSSelectFeaturePanel.voidsetApplicable(boolean isApplicable) Changes the enable status of the "apply" buttonvoidsetDataStore(org.gvsig.fmap.dal.DataStore dataStore) Sets the forms from avoidsetEnabledApplyButton(boolean b) voidsetLayerName(String name) voidsetSelectedCache(String selectedCache) voidsetSelectedIndex(int index) voidsetServerExplorer(WFSServerExplorer serverExplorer) Sets the information used to add or load a WFS layer.voidsetWizardPanel(org.gvsig.app.gui.WizardPanel wfsWizard) Methods inherited from class org.gvsig.gui.beans.panelGroup.tabbedPanel.TabbedPanel
addChangeListener, getActivePanel, getChangeListeners, getJTabbedPane, getPanelInGUICount, isEnabledAt, isPanelInGUI, removeChangeListener, setEnabledAt, setPanelInGUI, stateChanged, unLoadPanelMethods 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, valuesMethods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods 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, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, 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, updateMethods 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, transferFocusDownCycle, validate, validateTreeMethods 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, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Constructor Details
-
WFSParamsPanel
This method initializes jTabbedPane
-
-
Method Details
-
initialize
protected void initialize()- Overrides:
initializein classorg.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:
getSelectedIndexin classorg.gvsig.gui.beans.panelGroup.tabbedPanel.TabbedPanel- See Also:
-
setSelectedIndex
public void setSelectedIndex(int index) - Overrides:
setSelectedIndexin classorg.gvsig.gui.beans.panelGroup.tabbedPanel.TabbedPanel- See Also:
-
getInfoPanel
This method initializes infoPanel- Returns:
- the information panel
-
getFeaturesPanel
This method initializes featurePanel- Returns:
- javax.swing.JPanel
-
getFieldsPanel
This method initializes fieldsPanel- Returns:
- javax.swing.JPanel
-
getOptionsPanel
This method initializes optionsPanel- Returns:
- javax.swing.JPanel
-
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
trueif its correctly configured; otherwise returnsfalse
-
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:
loadPanelin classorg.gvsig.gui.beans.panelGroup.tabbedPanel.TabbedPanel
-
refreshCapabilitiesInfo
public void refreshCapabilitiesInfo()Refresh all the panels with the WFS capabilities information. -
getServerExplorer
Gets the information used to add or load a WFS layer.- Returns:
- information used to add or load a WFS layer
-
setServerExplorer
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:
getLayerin interfaceorg.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.InitializeExceptionorg.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 innerWFSSelectFeaturePanel. -
getSelectedFeatureProjection
public org.gvsig.crs.projection.lib.Projection getSelectedFeatureProjection()- Returns:
- the selected projection
-
refresh
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:
setEnabledApplyButtonin interfaceorg.gvsig.gui.beans.buttonspanel.IButtonsPanel- Overrides:
setEnabledApplyButtonin classorg.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:
loadPanelsin interfaceorg.gvsig.gui.beans.panelGroup.IPanelGroup- Overrides:
loadPanelsin classorg.gvsig.gui.beans.panelGroup.AbstractPanelGroup- Throws:
org.gvsig.gui.beans.panelGroup.exceptions.ListCouldntAddPanelExceptionorg.gvsig.gui.beans.panelGroup.exceptions.EmptyPanelGroupExceptionorg.gvsig.gui.beans.panelGroup.exceptions.EmptyPanelGroupGUIException
-
setLayerName
- See Also:
-
refreshInfo
public void refreshInfo()Updates the information stored at the wizard's data and info panel. -
getSelectedFeatureManager
- Returns:
- the selectedFeatureManager
-
setSelectedCache
-