Class DefaultSearchPanel
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.gvsig.fmap.dal.swing.impl.searchpanel.DefaultSearchPanelView2
org.gvsig.fmap.dal.swing.impl.searchpanel.DefaultSearchPanel
- All Implemented Interfaces:
ImageObserver,MenuContainer,Serializable,Accessible,org.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel,org.gvsig.tools.dispose.Disposable,org.gvsig.tools.swing.api.ActionListenerSupport,org.gvsig.tools.swing.api.Component,org.gvsig.tools.swing.api.SupportIsEnable,org.gvsig.tools.swing.api.SupportIsVisible,org.gvsig.tools.util.PropertiesSupport
public class DefaultSearchPanel
extends DefaultSearchPanelView2
implements org.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel, org.gvsig.tools.swing.api.SupportIsEnable, org.gvsig.tools.swing.api.SupportIsVisible
- Author:
- jjdelcerro
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classNested 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.FlipBufferStrategyNested classes/interfaces inherited from interface org.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
org.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel.SearchResultsPanelFactory -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intFields 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 org.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
ACTION_CONTEXT_NAME, CONFIGURABLE_PANEL_ID, DEFAULT_HEIGHT, DEFAULT_WIDTH, NOT_HANDLE_NULL, NULL_AS_FALSE, NULL_AS_TRUE, STATUS_ERROR1, STATUS_ERROR2, STATUS_NOT_VALID, STATUS_OKFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddActionListener(ActionListener listener) voidaddResultPanel(String name, String title, org.gvsig.tools.swing.api.Component component) voidclear()voiddispose()org.gvsig.fmap.dal.swing.searchpanel.SearchParametersfetch(org.gvsig.fmap.dal.swing.searchpanel.SearchParameters outParams) voidfireActionEvent(ActionEvent event) getActionButton(String name) org.gvsig.fmap.dal.swing.searchpanel.SearchConditionPanelgetConditionPanel(String name) List<org.gvsig.fmap.dal.swing.searchpanel.SearchConditionPanel> org.gvsig.fmap.dal.feature.FeatureTypeorg.gvsig.expressionevaluator.Expressionorg.gvsig.expressionevaluator.Expressionorg.gvsig.fmap.dal.feature.FeatureQueryorg.gvsig.fmap.dal.feature.FeaturegetProperty(String name) org.gvsig.fmap.dal.swing.featuretable.SimpleFeaturesTableModelorg.gvsig.fmap.dal.swing.DALActionFactory.DALActionContextintorg.gvsig.fmap.dal.feature.FeatureSelectionorg.gvsig.fmap.dal.feature.FeatureStoregetStore()booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisValid(StringBuilder message) booleanHelper method to load an image file from the CLASSPATHvoidput(org.gvsig.fmap.dal.swing.searchpanel.SearchParameters inParams) voidremoveActionListener(ActionListener listener) voidvoidremoveResultPanel(String name) intsearch()intsearch(org.gvsig.fmap.dal.swing.searchpanel.SearchParameters searchParams) static voidvoidsetAutomaticallySearch(boolean automaticallySearch) voidsetEnabled(boolean enabled) booleansetFilter(org.gvsig.expressionevaluator.Expression filter) voidsetFilterOnlyMode(boolean filterOnlyMode) voidsetGroupByEnabled(boolean enabled) voidsetPostProcessEnabled(boolean enabled) voidsetProperty(String name, Object value) voidsetResultColumnNames(List<String> names) voidsetShowActions(boolean showActions) Methods inherited from class org.gvsig.fmap.dal.swing.impl.searchpanel.DefaultSearchPanelView2
applyComponentOrientation, createPanel, createPanel1, createPanel2, createPanel3, createPanel4, createPanel5, createPanel6, createPanel7, createPanel8, initializePanelMethods 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, 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, 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
-
Field Details
-
PANEL_SIMPLIFIED
public static final int PANEL_SIMPLIFIED- See Also:
-
PANEL_ADVANCED
public static final int PANEL_ADVANCED- See Also:
-
-
Constructor Details
-
DefaultSearchPanel
public DefaultSearchPanel(org.gvsig.fmap.dal.feature.FeatureStore store)
-
-
Method Details
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.gvsig.tools.dispose.Disposable
-
asJComponent
- Specified by:
asJComponentin interfaceorg.gvsig.tools.swing.api.Component
-
addActionListener
- Specified by:
addActionListenerin interfaceorg.gvsig.tools.swing.api.ActionListenerSupport
-
getActionListeners
- Specified by:
getActionListenersin interfaceorg.gvsig.tools.swing.api.ActionListenerSupport
-
removeActionListener
- Specified by:
removeActionListenerin interfaceorg.gvsig.tools.swing.api.ActionListenerSupport
-
removeAllActionListener
public void removeAllActionListener()- Specified by:
removeAllActionListenerin interfaceorg.gvsig.tools.swing.api.ActionListenerSupport
-
fireActionEvent
- Specified by:
fireActionEventin interfaceorg.gvsig.tools.swing.api.ActionListenerSupport
-
hasActionListeners
public boolean hasActionListeners()- Specified by:
hasActionListenersin interfaceorg.gvsig.tools.swing.api.ActionListenerSupport
-
getFeatureType
public org.gvsig.fmap.dal.feature.FeatureType getFeatureType()- Specified by:
getFeatureTypein interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
setEnabled
public void setEnabled(boolean enabled) - Specified by:
setEnabledin interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel- Overrides:
setEnabledin classJComponent
-
clear
public void clear()- Specified by:
clearin interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
getLastQuery
public org.gvsig.fmap.dal.feature.FeatureQuery getLastQuery()- Specified by:
getLastQueryin interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
isValid
-
getWarnings
-
search
public int search()- Specified by:
searchin interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
search
public int search(org.gvsig.fmap.dal.swing.searchpanel.SearchParameters searchParams) - Specified by:
searchin interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
getResultsTableModel
public org.gvsig.fmap.dal.swing.featuretable.SimpleFeaturesTableModel getResultsTableModel()- Specified by:
getResultsTableModelin interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
setResultColumnNames
-
setFilter
public boolean setFilter(org.gvsig.expressionevaluator.Expression filter) - Specified by:
setFilterin interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
getConditionPanels
- Specified by:
getConditionPanelsin interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
getConditionPanel
- Specified by:
getConditionPanelin interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
getSelectedFeatures
public org.gvsig.fmap.dal.feature.FeatureSelection getSelectedFeatures() -
getFilterForSelectedFeatures
public org.gvsig.expressionevaluator.Expression getFilterForSelectedFeatures()- Specified by:
getFilterForSelectedFeaturesin interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
getFilterForSelectedFeature
public org.gvsig.expressionevaluator.Expression getFilterForSelectedFeature()- Specified by:
getFilterForSelectedFeaturein interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
getStore
public org.gvsig.fmap.dal.feature.FeatureStore getStore()- Specified by:
getStorein interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
loadImage
Description copied from class:DefaultSearchPanelView2Helper method to load an image file from the CLASSPATH- Overrides:
loadImagein classDefaultSearchPanelView2- Parameters:
imageName- the package and name of the file to load relative to the CLASSPATH- Returns:
- an ImageIcon instance with the specified image file
-
getSelectedFeatureCount
public int getSelectedFeatureCount()- Specified by:
getSelectedFeatureCountin interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
getActionButton
- Specified by:
getActionButtonin interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
setShowActions
public void setShowActions(boolean showActions) - Specified by:
setShowActionsin interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
isShowActions
public boolean isShowActions()- Specified by:
isShowActionsin interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
put
public void put(org.gvsig.fmap.dal.swing.searchpanel.SearchParameters inParams) - Specified by:
putin interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
fetch
public org.gvsig.fmap.dal.swing.searchpanel.SearchParameters fetch(org.gvsig.fmap.dal.swing.searchpanel.SearchParameters outParams) - Specified by:
fetchin interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
selfRegister
public static void selfRegister() -
isVisible
- Specified by:
isVisiblein interfaceorg.gvsig.tools.swing.api.SupportIsVisible
-
isEnabled
- Specified by:
isEnabledin interfaceorg.gvsig.tools.swing.api.SupportIsEnable
-
setFilterOnlyMode
public void setFilterOnlyMode(boolean filterOnlyMode) - Specified by:
setFilterOnlyModein interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
isFilterOnlyMode
public boolean isFilterOnlyMode()- Specified by:
isFilterOnlyModein interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
getLastSelectedFeature
public org.gvsig.fmap.dal.feature.Feature getLastSelectedFeature()- Specified by:
getLastSelectedFeaturein interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
getProperty
- Specified by:
getPropertyin interfaceorg.gvsig.tools.util.PropertiesSupport
-
setProperty
- Specified by:
setPropertyin interfaceorg.gvsig.tools.util.PropertiesSupport
-
getProperties
- Specified by:
getPropertiesin interfaceorg.gvsig.tools.util.PropertiesSupport
-
setAutomaticallySearch
public void setAutomaticallySearch(boolean automaticallySearch) - Specified by:
setAutomaticallySearchin interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
isAutomaticallySearch
public boolean isAutomaticallySearch()- Specified by:
isAutomaticallySearchin interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
getLastErrorMessage
- Specified by:
getLastErrorMessagein interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
setPostProcessEnabled
public void setPostProcessEnabled(boolean enabled) - Specified by:
setPostProcessEnabledin interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
setGroupByEnabled
public void setGroupByEnabled(boolean enabled) - Specified by:
setGroupByEnabledin interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
isPostProcessEnabled
public boolean isPostProcessEnabled()- Specified by:
isPostProcessEnabledin interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
isGroupByEnabled
public boolean isGroupByEnabled()- Specified by:
isGroupByEnabledin interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
addResultPanel
public void addResultPanel(String name, String title, org.gvsig.tools.swing.api.Component component) - Specified by:
addResultPanelin interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
removeResultPanel
- Specified by:
removeResultPanelin interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-
getSearchActionContext
public org.gvsig.fmap.dal.swing.DALActionFactory.DALActionContext getSearchActionContext()- Specified by:
getSearchActionContextin interfaceorg.gvsig.fmap.dal.swing.searchpanel.FeatureStoreSearchPanel
-