public class WFSParamsPanel extends TabbedPanel implements ILayerPanel
Container of the WFS panels, that works as a TabbedPanel.
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
ACCEPT_ACTION, accepted, APPLY_ACTION, CANCEL_ACTION, parentPanelGroup, reference, registeredPanels
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
WFSParamsPanel(Object reference)
This method initializes jTabbedPane
|
Modifier and Type | Method and Description |
---|---|
void |
advanceCurrentTab()
Selects the next tab
|
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
|
WFSOpenStoreParameters |
getDataStoreParameters() |
WFSSelectFeaturePanel |
getFeaturesPanel()
This method initializes featurePanel
|
WFSSelectFieldsPanel |
getFieldsPanel()
This method initializes fieldsPanel
|
WFSInfoPanel |
getInfoPanel()
This method initializes infoPanel
|
FLayer |
getLayer()
Creates a FLyrWFS.
|
WFSOptionsPanel |
getOptionsPanel()
This method initializes optionsPanel
|
protected DynObject |
getParameters(String nameCacheProvider) |
WFSSelectedFeatureManager |
getSelectedFeatureManager() |
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()
This method is used by each concrete implementation of
AbstractPanelGroup to
execute its particular initialization tasks. |
void |
initWizard() |
boolean |
isCorretlyConfigured()
Verifies that the selected parameters are enough to request
the coverage to the server.
|
protected void |
loadPanel(IPanel panel)
Loads a particular panel.
|
void |
loadPanels(IPanelGroupLoader loader)
Tries to load as most as possible panels using an
IPanelGroupLoader . |
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,
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(DataStore dataStore)
Sets the forms from a
|
void |
setEnabledApplyButton(boolean b)
Enables (or disables) the apply button.
|
void |
setLayerName(String name) |
void |
setSelectedCache(String selectedCache) |
void |
setSelectedIndex(int index) |
void |
setServerExplorer(WFSServerExplorer serverExplorer)
Sets the information used to add or load a WFS layer.
|
addChangeListener, getActivePanel, getChangeListeners, getJTabbedPane, getPanelInGUICount, isEnabledAt, isPanelInGUI, removeChangeListener, setEnabledAt, setPanelInGUI, stateChanged, unLoadPanel
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
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
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, update
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, validateTree
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, 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, transferFocusBackward, transferFocusUpCycle
public WFSParamsPanel(Object reference)
protected void initialize()
AbstractPanelGroup
This method is used by each concrete implementation of AbstractPanelGroup
to
execute its particular initialization tasks.
initialize
in class TabbedPanel
public void goToNextTab()
public void goToPreviousTab()
public int getSelectedIndex()
getSelectedIndex
in class TabbedPanel
JTabbedPane.getSelectedIndex()
public void setSelectedIndex(int index)
setSelectedIndex
in class TabbedPanel
JTabbedPane.setSelectedIndex(int)
public WFSInfoPanel getInfoPanel()
public WFSSelectFeaturePanel getFeaturesPanel()
public WFSSelectFieldsPanel getFieldsPanel()
public WFSOptionsPanel getOptionsPanel()
public WFSAreaPanel getAreaPanel()
public boolean isCorretlyConfigured()
true
if its correctly configured;
otherwise returns false
public void enableDefaultTabs(boolean isEnabled)
protected void loadPanel(IPanel panel)
AbstractPanelGroup
Loads a particular panel. It's supposed that this panel is valid.
loadPanel
in class TabbedPanel
panel
- the panel to addAbstractPanelGroup.addPanel(IPanel)
,
AbstractPanelGroup.loadPanels(IPanelGroupLoader)
public void refreshCapabilitiesInfo()
public WFSServerExplorer getServerExplorer()
public void setServerExplorer(WFSServerExplorer serverExplorer)
wizardData
- information used to add or load a WFS layerpublic int nextPageEnabled()
public int currentPage()
public int previousEnabledPage()
public void initWizard()
public void execute()
public FLayer getLayer()
ILayerPanel
getLayer
in interface ILayerPanel
public FLayer createLayer() throws CreateLayerException
CreateLayerException
protected DynObject getParameters(String nameCacheProvider) throws DataException
DataException
public WFSOpenStoreParameters getDataStoreParameters() throws InitializeException, ProviderNotRegisteredException
public void setDataStore(DataStore dataStore)
public void doClickOnNextButton()
WFSWizard.doClickOnNextButton()
public void advanceCurrentTab()
public void refreshWFSSelectFeaturePanel()
WFSSelectFeaturePanel
.public IProjection getSelectedFeatureProjection()
public void refresh(WFSSelectedFeature selectedFeature, List vers_list)
selectedFeature
- the selected layerpublic void setApplicable(boolean isApplicable)
isApplicable
- the enable status of the "apply" buttonpublic void setEnabledApplyButton(boolean b)
IButtonsPanel
Enables (or disables) the apply button.
setEnabledApplyButton
in interface IButtonsPanel
setEnabledApplyButton
in class AbstractPanelGroup
b
- true
to enable the apply button, otherwise false
IButtonsPanel.isEnabledApplyButton()
public void loadPanels(IPanelGroupLoader loader) throws ListCouldntAddPanelException, EmptyPanelGroupException, EmptyPanelGroupGUIException
IPanelGroup
Tries to load as most as possible panels using an IPanelGroupLoader
.
loadPanels
in interface IPanelGroup
loadPanels
in class AbstractPanelGroup
loader
- used to load the panels into this groupListCouldntAddPanelException
- list with all exceptions produced loading and adding the panelsEmptyPanelGroupException
- launched if there was no exception during the loading and adding processes
but there is no panel registered finally in this componentEmptyPanelGroupGUIException
- launched if there was no exception during the loading and adding processes
there is at least one panel registered, but finally none of them is in the graphical interface of this componentIPanelGroup.addPanel(IPanel)
public void setLayerName(String name)
public void refreshInfo()
public WFSSelectedFeatureManager getSelectedFeatureManager()
public void setSelectedCache(String selectedCache)