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.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
java.awt.Container.AccessibleAWTContainer
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
FeatureStoreSearchPanel.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_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
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_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, initializePanel
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, 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, 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 static final int PANEL_SIMPLIFIED
public static final int PANEL_ADVANCED
public DefaultSearchPanel(FeatureStore store)
public void dispose()
Disposable
NOTE:After calling this method, the object may not be usable anymore.
dispose
in interface Disposable
public javax.swing.JComponent asJComponent()
Component
JComponent
.asJComponent
in interface Component
JComponent
public void addActionListener(java.awt.event.ActionListener listener)
addActionListener
in interface ActionListenerSupport
public java.awt.event.ActionListener[] getActionListeners()
getActionListeners
in interface ActionListenerSupport
public void removeActionListener(java.awt.event.ActionListener listener)
removeActionListener
in interface ActionListenerSupport
public void removeAllActionListener()
removeAllActionListener
in interface ActionListenerSupport
public void fireActionEvent(java.awt.event.ActionEvent event)
fireActionEvent
in interface ActionListenerSupport
public boolean hasActionListeners()
hasActionListeners
in interface ActionListenerSupport
public FeatureType getFeatureType()
getFeatureType
in interface FeatureStoreSearchPanel
public void setEnabled(boolean enabled)
setEnabled
in interface FeatureStoreSearchPanel
setEnabled
in class javax.swing.JComponent
public void clear()
clear
in interface FeatureStoreSearchPanel
public FeatureQuery getLastQuery()
getLastQuery
in interface FeatureStoreSearchPanel
public boolean isValid(java.lang.StringBuilder message)
public java.lang.String getWarnings()
public int search()
FeatureStoreSearchPanel
search
in interface FeatureStoreSearchPanel
public int search(SearchParameters searchParams)
FeatureStoreSearchPanel
search
in interface FeatureStoreSearchPanel
public SimpleFeaturesTableModel getResultsTableModel()
getResultsTableModel
in interface FeatureStoreSearchPanel
public void setResultColumnNames(java.util.List<java.lang.String> names)
public boolean setFilter(Expression filter)
setFilter
in interface FeatureStoreSearchPanel
public java.util.List<SearchConditionPanel> getConditionPanels()
getConditionPanels
in interface FeatureStoreSearchPanel
public SearchConditionPanel getConditionPanel(java.lang.String name)
getConditionPanel
in interface FeatureStoreSearchPanel
public FeatureSelection getSelectedFeatures()
public Expression getFilterForSelectedFeatures()
getFilterForSelectedFeatures
in interface FeatureStoreSearchPanel
public Expression getFilterForSelectedFeature()
getFilterForSelectedFeature
in interface FeatureStoreSearchPanel
public FeatureStore getStore()
getStore
in interface FeatureStoreSearchPanel
public javax.swing.ImageIcon loadImage(java.lang.String imageName)
DefaultSearchPanelView2
loadImage
in class DefaultSearchPanelView2
imageName
- the package and name of the file to load relative to the CLASSPATHpublic int getSelectedFeatureCount()
getSelectedFeatureCount
in interface FeatureStoreSearchPanel
public javax.swing.JComponent getActionButton(java.lang.String name)
getActionButton
in interface FeatureStoreSearchPanel
public void setShowActions(boolean showActions)
setShowActions
in interface FeatureStoreSearchPanel
public boolean isShowActions()
isShowActions
in interface FeatureStoreSearchPanel
public void put(SearchParameters inParams)
put
in interface FeatureStoreSearchPanel
public SearchParameters fetch(SearchParameters outParams)
fetch
in interface FeatureStoreSearchPanel
public static void selfRegister()
public boolean isVisible(java.lang.Object component)
isVisible
in interface SupportIsVisible
public boolean isEnabled(java.lang.Object component)
isEnabled
in interface SupportIsEnable
public void setFilterOnlyMode(boolean filterOnlyMode)
setFilterOnlyMode
in interface FeatureStoreSearchPanel
public boolean isFilterOnlyMode()
isFilterOnlyMode
in interface FeatureStoreSearchPanel
public Feature getLastSelectedFeature()
getLastSelectedFeature
in interface FeatureStoreSearchPanel
public java.lang.Object getProperty(java.lang.String name)
getProperty
in interface PropertiesSupport
public void setProperty(java.lang.String name, java.lang.Object value)
setProperty
in interface PropertiesSupport
public java.util.Map<java.lang.String,java.lang.Object> getProperties()
getProperties
in interface PropertiesSupport
public void setAutomaticallySearch(boolean automaticallySearch)
setAutomaticallySearch
in interface FeatureStoreSearchPanel
public boolean isAutomaticallySearch()
isAutomaticallySearch
in interface FeatureStoreSearchPanel
public java.lang.String getLastErrorMessage()
getLastErrorMessage
in interface FeatureStoreSearchPanel
public void setPostProcessEnabled(boolean enabled)
setPostProcessEnabled
in interface FeatureStoreSearchPanel
public void setGroupByEnabled(boolean enabled)
setGroupByEnabled
in interface FeatureStoreSearchPanel
public boolean isPostProcessEnabled()
isPostProcessEnabled
in interface FeatureStoreSearchPanel
public boolean isGroupByEnabled()
isGroupByEnabled
in interface FeatureStoreSearchPanel
public void addResultPanel(java.lang.String name, java.lang.String title, Component component)
addResultPanel
in interface FeatureStoreSearchPanel
public void removeResultPanel(java.lang.String name)
removeResultPanel
in interface FeatureStoreSearchPanel
public DALActionFactory.DALActionContext getSearchActionContext()
getSearchActionContext
in interface FeatureStoreSearchPanel