public class SearchComponent
extends javax.swing.JSplitPane
implements java.awt.event.ActionListener, javax.swing.event.ChangeListener, javax.swing.event.ListSelectionListener, java.beans.PropertyChangeListener, java.awt.event.FocusListener, java.awt.event.ItemListener
TargetList
,
SearchInterface
,
Serialized Formjavax.swing.JSplitPane.AccessibleJSplitPane
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTROL_PANEL_UPDATE_PROPERTY |
static java.lang.String |
DEBUG_CONSTRUCTOR_PROPERTY |
static java.lang.String |
DEBUG_EVENT_PROPERTY |
static java.lang.String |
DEBUG_PROPERTY_EVENTS_PROPERTY |
static java.lang.String |
DEBUG_QUERY_RESULTS_PROPERTY |
static java.lang.String |
DEBUG_REFRESH_PROPERTY |
static java.lang.String |
ID |
BOTTOM, CONTINUOUS_LAYOUT_PROPERTY, continuousLayout, DIVIDER, DIVIDER_LOCATION_PROPERTY, DIVIDER_SIZE_PROPERTY, dividerSize, HORIZONTAL_SPLIT, LAST_DIVIDER_LOCATION_PROPERTY, lastDividerLocation, LEFT, leftComponent, ONE_TOUCH_EXPANDABLE_PROPERTY, oneTouchExpandable, orientation, ORIENTATION_PROPERTY, RESIZE_WEIGHT_PROPERTY, RIGHT, rightComponent, TOP, VERTICAL_SPLIT
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
SearchComponent(TargetList.ListTypes list_name,
int index,
PIRL.Configuration.Configuration configuration,
boolean include_nearby_obs_list,
java.awt.Component parent_component) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent event) |
java.util.Vector<java.lang.Integer> |
addedSuggestionsNotFound()
Get the set of added suggestions (from the added suggestions vector) that
do not appear in the target list.
|
java.util.Vector<java.lang.String> |
columnHeadings()
Get the Vector of Strings that contains the column names of the data table.
|
java.util.Vector<java.util.Vector<java.lang.String>> |
dataTable()
Get the data table as a Vector of Vector Strings.
|
void |
enableRowLimits(boolean enable)
Enable or disable row limits in the underlying database query.
|
void |
focusGained(java.awt.event.FocusEvent event) |
void |
focusLost(java.awt.event.FocusEvent e) |
TargetList.ListTypes |
getListType()
Get the underlying list type of this SearchComponent.
|
double |
getMaximumLatitudeFilter() |
double |
getMaximumLongitudeFilter() |
double |
getMaximumLsubSFilter() |
double |
getMinimumLatitudeFilter() |
double |
getMinimumLongitudeFilter() |
double |
getMinimumLsubSFilter() |
java.util.HashMap<java.lang.Integer,TargetWarning> |
getMissingSuggestionWarnings() |
TargetList |
getTargetList() |
boolean |
ignoreFilterUpdates() |
void |
itemStateChanged(java.awt.event.ItemEvent event) |
static void |
main(java.lang.String[] args) |
void |
propertyChange(java.beans.PropertyChangeEvent event) |
void |
refresh() |
void |
setAddedSuggestions(java.util.Vector<java.lang.Integer> suggestion_list) |
void |
setMaximumLatitudeFilter(double maxLatitude)
Set the value of the maximum latitude filter
|
void |
setMaximumLongitudeFilter(double maxLongitude)
Set the maximum longitude filter to the given value
|
void |
setMaximumLsubSFilter(double maxLsubS)
Set the maximum LsubS filter to the given value
|
void |
setMaximumRowCount(int rowCount)
Set the maximum number of rows the search query should return to the given
value.
|
void |
setMinimumLatitudeFilter(double minLatitude)
Set the value of the minimum latitude filter
|
void |
setMinimumLongtitudeFilter(double minLongitude)
Set the minimum longitude filter to the given value
|
void |
setMinimumLsubSFilter(double minLsubS)
Set the minimum LsubS filter to the given value
|
void |
setRetrieveNearestNeighberList(boolean include_nearest_neighbor_list) |
void |
setSelectedPriorities(java.util.Vector<java.lang.String> priorityList)
Set the list of priorities to return by the database query
|
void |
setSelectedScienceThemes(java.util.Vector<java.lang.String> themesList) |
void |
setSuggestionsPerScienceTheme(int count)
Sets the number of suggestions per science theme.
|
void |
setTabComponent(ButtonTabComponent component) |
void |
setThreadCounter(ThreadCounter counter) |
void |
stateChanged(javax.swing.event.ChangeEvent arg0) |
void |
updateAddedSuggestions() |
void |
valueChanged(javax.swing.event.ListSelectionEvent event) |
addImpl, getAccessibleContext, getBottomComponent, getDividerLocation, getDividerSize, getLastDividerLocation, getLeftComponent, getMaximumDividerLocation, getMinimumDividerLocation, getOrientation, getResizeWeight, getRightComponent, getTopComponent, getUI, getUIClassID, isContinuousLayout, isOneTouchExpandable, isValidateRoot, paintChildren, paramString, remove, remove, removeAll, resetToPreferredSizes, setBottomComponent, setContinuousLayout, setDividerLocation, setDividerLocation, setDividerSize, setLastDividerLocation, setLeftComponent, setOneTouchExpandable, setOrientation, setResizeWeight, setRightComponent, setTopComponent, 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, paint, paintBorder, 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, 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, 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 java.lang.String ID
public static final java.lang.String CONTROL_PANEL_UPDATE_PROPERTY
public static final java.lang.String DEBUG_CONSTRUCTOR_PROPERTY
public static final java.lang.String DEBUG_PROPERTY_EVENTS_PROPERTY
public static final java.lang.String DEBUG_EVENT_PROPERTY
public static final java.lang.String DEBUG_QUERY_RESULTS_PROPERTY
public static final java.lang.String DEBUG_REFRESH_PROPERTY
public SearchComponent(TargetList.ListTypes list_name, int index, PIRL.Configuration.Configuration configuration, boolean include_nearby_obs_list, java.awt.Component parent_component) throws PIRL.Configuration.Configuration_Exception, PIRL.Database.Database_Exception
PIRL.Configuration.Configuration_Exception
PIRL.Database.Database_Exception
public java.util.Vector<java.lang.String> columnHeadings()
public java.util.Vector<java.util.Vector<java.lang.String>> dataTable()
public void setAddedSuggestions(java.util.Vector<java.lang.Integer> suggestion_list)
public void updateAddedSuggestions() throws PIRL.Database.Database_Exception
PIRL.Database.Database_Exception
public void setRetrieveNearestNeighberList(boolean include_nearest_neighbor_list)
public void refresh()
public void setTabComponent(ButtonTabComponent component)
public java.util.Vector<java.lang.Integer> addedSuggestionsNotFound()
TargetList.addedSuggestionsNotFound()
public boolean ignoreFilterUpdates()
public java.util.HashMap<java.lang.Integer,TargetWarning> getMissingSuggestionWarnings()
public TargetList.ListTypes getListType()
TargetList.ListTypes
public TargetList getTargetList()
public void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange
in interface java.beans.PropertyChangeListener
public void valueChanged(javax.swing.event.ListSelectionEvent event)
valueChanged
in interface javax.swing.event.ListSelectionListener
public void stateChanged(javax.swing.event.ChangeEvent arg0)
stateChanged
in interface javax.swing.event.ChangeListener
public void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed
in interface java.awt.event.ActionListener
public void focusGained(java.awt.event.FocusEvent event)
focusGained
in interface java.awt.event.FocusListener
public void focusLost(java.awt.event.FocusEvent e)
focusLost
in interface java.awt.event.FocusListener
public void itemStateChanged(java.awt.event.ItemEvent event)
itemStateChanged
in interface java.awt.event.ItemListener
public double getMinimumLatitudeFilter()
public void setMinimumLatitudeFilter(double minLatitude)
minLatitude
- - a double value indicating the minimum latitude to set the filter topublic double getMaximumLatitudeFilter()
public void setMaximumLatitudeFilter(double maxLatitude)
maxLatitude
- - a double value indicating the latitude to set the maximum latitude topublic double getMinimumLongitudeFilter()
public void setMinimumLongtitudeFilter(double minLongitude)
minLongitude
- - a double value to set the minimum longitude topublic double getMaximumLongitudeFilter()
public void setMaximumLongitudeFilter(double maxLongitude)
maxLongitude
- - A double value indicating the maximum longitude settingpublic double getMinimumLsubSFilter()
public void setMinimumLsubSFilter(double minLsubS)
minLsubS
- - a double value indicating the minimum LsubSpublic double getMaximumLsubSFilter()
public void setMaximumLsubSFilter(double maxLsubS)
maxLsubS
- - a double value indication the maximum LsubSpublic void setMaximumRowCount(int rowCount)
rowCount
- - an integer indicating the maximum number of rows to returnpublic void setSuggestionsPerScienceTheme(int count)
count
- - an integerpublic void enableRowLimits(boolean enable)
enable
- - true to enable row limits, false to turn off the limits.public void setSelectedPriorities(java.util.Vector<java.lang.String> priorityList)
priorityList
- - A Vector of Strings, each string indicates a priority to
return.PriorityList
public void setSelectedScienceThemes(java.util.Vector<java.lang.String> themesList)
themesList
- public void setThreadCounter(ThreadCounter counter)
public static void main(java.lang.String[] args)
args
- Copyright \ (C) Arizona Board of Regents on behalf of the \ Planetary Image Research Laboratory, Lunar and \ Planetary Laboratory at the University of Arizona