public class DefaultSearchPanel extends DefaultSearchPanelView2 implements FeatureStoreSearchPanel, SupportIsEnable, SupportIsVisible
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultSearchPanel.CalculatedColumnsAction |
static class |
DefaultSearchPanel.GroupByAction |
static class |
DefaultSearchPanel.OrderByAction |
static class |
DefaultSearchPanel.PropertiesAction |
static class |
DefaultSearchPanel.SearchActionContext |
static class |
DefaultSearchPanel.SelectColumnsAction |
static class |
DefaultSearchPanel.UseLabelsBothAction |
static class |
DefaultSearchPanel.UseLabelsNoAction |
static class |
DefaultSearchPanel.UseLabelsYesAction |
javax.swing.JPanel.AccessibleJPaneljavax.swing.JComponent.AccessibleJComponentjava.awt.Container.AccessibleAWTContainerjava.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategyFeatureStoreSearchPanel.SearchResultsPanelFactory| Modifier and Type | Field and Description |
|---|---|
static int |
PANEL_ADVANCED |
static int |
PANEL_SIMPLIFIED |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTACTION_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_OK| Constructor and Description |
|---|
DefaultSearchPanel(FeatureStore store) |
| Modifier and Type | Method and Description |
|---|---|
void |
addActionListener(java.awt.event.ActionListener listener) |
void |
addResultPanel(java.lang.String name,
java.lang.String title,
Component component) |
javax.swing.JComponent |
asJComponent()
Returns this component as a swing
JComponent. |
void |
clear() |
void |
dispose()
Disposes the current object, to allow it to close and dispose any used
resources.
|
SearchParameters |
fetch(SearchParameters outParams) |
void |
fireActionEvent(java.awt.event.ActionEvent event) |
javax.swing.JComponent |
getActionButton(java.lang.String name) |
java.awt.event.ActionListener[] |
getActionListeners() |
SearchConditionPanel |
getConditionPanel(java.lang.String name) |
java.util.List<SearchConditionPanel> |
getConditionPanels() |
FeatureType |
getFeatureType() |
Expression |
getFilterForSelectedFeature() |
Expression |
getFilterForSelectedFeatures() |
java.lang.String |
getLastErrorMessage() |
FeatureQuery |
getLastQuery() |
Feature |
getLastSelectedFeature() |
java.util.Map<java.lang.String,java.lang.Object> |
getProperties() |
java.lang.Object |
getProperty(java.lang.String name) |
SimpleFeaturesTableModel |
getResultsTableModel() |
DALActionFactory.DALActionContext |
getSearchActionContext() |
int |
getSelectedFeatureCount() |
FeatureSelection |
getSelectedFeatures() |
FeatureStore |
getStore() |
java.lang.String |
getWarnings() |
boolean |
hasActionListeners() |
boolean |
isAutomaticallySearch() |
boolean |
isEnabled(java.lang.Object component) |
boolean |
isFilterOnlyMode() |
boolean |
isGroupByEnabled() |
boolean |
isPostProcessEnabled() |
boolean |
isShowActions() |
boolean |
isValid(java.lang.StringBuilder message) |
boolean |
isVisible(java.lang.Object component) |
javax.swing.ImageIcon |
loadImage(java.lang.String imageName)
Helper method to load an image file from the CLASSPATH
|
void |
put(SearchParameters inParams) |
void |
removeActionListener(java.awt.event.ActionListener listener) |
void |
removeAllActionListener() |
void |
removeResultPanel(java.lang.String name) |
int |
search()
Performs the search with the existing values in the user
interface asynchronously.
|
int |
search(SearchParameters searchParams)
Performs the search with the indicated parameters synchronously.
|
static void |
selfRegister() |
void |
setAutomaticallySearch(boolean automaticallySearch) |
void |
setEnabled(boolean enabled) |
boolean |
setFilter(Expression filter) |
void |
setFilterOnlyMode(boolean filterOnlyMode) |
void |
setGroupByEnabled(boolean enabled) |
void |
setPostProcessEnabled(boolean enabled) |
void |
setProperty(java.lang.String name,
java.lang.Object value) |
void |
setResultColumnNames(java.util.List<java.lang.String> names) |
void |
setShowActions(boolean showActions) |
applyComponentOrientation, createPanel, createPanel1, createPanel2, createPanel3, createPanel4, createPanel5, createPanel6, createPanel7, createPanel8, initializePanelgetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, 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, updateadd, 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, validateTreeaction, 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, transferFocusUpCyclepublic static final int PANEL_SIMPLIFIED
public static final int PANEL_ADVANCED
public DefaultSearchPanel(FeatureStore store)
public void dispose()
DisposableNOTE:After calling this method, the object may not be usable anymore.
dispose in interface Disposablepublic javax.swing.JComponent asJComponent()
ComponentJComponent.asJComponent in interface ComponentJComponentpublic void addActionListener(java.awt.event.ActionListener listener)
addActionListener in interface ActionListenerSupportpublic java.awt.event.ActionListener[] getActionListeners()
getActionListeners in interface ActionListenerSupportpublic void removeActionListener(java.awt.event.ActionListener listener)
removeActionListener in interface ActionListenerSupportpublic void removeAllActionListener()
removeAllActionListener in interface ActionListenerSupportpublic void fireActionEvent(java.awt.event.ActionEvent event)
fireActionEvent in interface ActionListenerSupportpublic boolean hasActionListeners()
hasActionListeners in interface ActionListenerSupportpublic FeatureType getFeatureType()
getFeatureType in interface FeatureStoreSearchPanelpublic void setEnabled(boolean enabled)
setEnabled in interface FeatureStoreSearchPanelsetEnabled in class javax.swing.JComponentpublic void clear()
clear in interface FeatureStoreSearchPanelpublic FeatureQuery getLastQuery()
getLastQuery in interface FeatureStoreSearchPanelpublic boolean isValid(java.lang.StringBuilder message)
public java.lang.String getWarnings()
public int search()
FeatureStoreSearchPanelsearch in interface FeatureStoreSearchPanelpublic int search(SearchParameters searchParams)
FeatureStoreSearchPanelsearch in interface FeatureStoreSearchPanelpublic SimpleFeaturesTableModel getResultsTableModel()
getResultsTableModel in interface FeatureStoreSearchPanelpublic void setResultColumnNames(java.util.List<java.lang.String> names)
public boolean setFilter(Expression filter)
setFilter in interface FeatureStoreSearchPanelpublic java.util.List<SearchConditionPanel> getConditionPanels()
getConditionPanels in interface FeatureStoreSearchPanelpublic SearchConditionPanel getConditionPanel(java.lang.String name)
getConditionPanel in interface FeatureStoreSearchPanelpublic FeatureSelection getSelectedFeatures()
public Expression getFilterForSelectedFeatures()
getFilterForSelectedFeatures in interface FeatureStoreSearchPanelpublic Expression getFilterForSelectedFeature()
getFilterForSelectedFeature in interface FeatureStoreSearchPanelpublic FeatureStore getStore()
getStore in interface FeatureStoreSearchPanelpublic javax.swing.ImageIcon loadImage(java.lang.String imageName)
DefaultSearchPanelView2loadImage in class DefaultSearchPanelView2imageName - the package and name of the file to load relative to the CLASSPATHpublic int getSelectedFeatureCount()
getSelectedFeatureCount in interface FeatureStoreSearchPanelpublic javax.swing.JComponent getActionButton(java.lang.String name)
getActionButton in interface FeatureStoreSearchPanelpublic void setShowActions(boolean showActions)
setShowActions in interface FeatureStoreSearchPanelpublic boolean isShowActions()
isShowActions in interface FeatureStoreSearchPanelpublic void put(SearchParameters inParams)
put in interface FeatureStoreSearchPanelpublic SearchParameters fetch(SearchParameters outParams)
fetch in interface FeatureStoreSearchPanelpublic static void selfRegister()
public boolean isVisible(java.lang.Object component)
isVisible in interface SupportIsVisiblepublic boolean isEnabled(java.lang.Object component)
isEnabled in interface SupportIsEnablepublic void setFilterOnlyMode(boolean filterOnlyMode)
setFilterOnlyMode in interface FeatureStoreSearchPanelpublic boolean isFilterOnlyMode()
isFilterOnlyMode in interface FeatureStoreSearchPanelpublic Feature getLastSelectedFeature()
getLastSelectedFeature in interface FeatureStoreSearchPanelpublic java.lang.Object getProperty(java.lang.String name)
getProperty in interface PropertiesSupportpublic void setProperty(java.lang.String name,
java.lang.Object value)
setProperty in interface PropertiesSupportpublic java.util.Map<java.lang.String,java.lang.Object> getProperties()
getProperties in interface PropertiesSupportpublic void setAutomaticallySearch(boolean automaticallySearch)
setAutomaticallySearch in interface FeatureStoreSearchPanelpublic boolean isAutomaticallySearch()
isAutomaticallySearch in interface FeatureStoreSearchPanelpublic java.lang.String getLastErrorMessage()
getLastErrorMessage in interface FeatureStoreSearchPanelpublic void setPostProcessEnabled(boolean enabled)
setPostProcessEnabled in interface FeatureStoreSearchPanelpublic void setGroupByEnabled(boolean enabled)
setGroupByEnabled in interface FeatureStoreSearchPanelpublic boolean isPostProcessEnabled()
isPostProcessEnabled in interface FeatureStoreSearchPanelpublic boolean isGroupByEnabled()
isGroupByEnabled in interface FeatureStoreSearchPanelpublic void addResultPanel(java.lang.String name,
java.lang.String title,
Component component)
addResultPanel in interface FeatureStoreSearchPanelpublic void removeResultPanel(java.lang.String name)
removeResultPanel in interface FeatureStoreSearchPanelpublic DALActionFactory.DALActionContext getSearchActionContext()
getSearchActionContext in interface FeatureStoreSearchPanel