public class SearchPanel extends PIAPanel
JPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategycollectDataFromInvisiblePanels, isTracking, mIAList, mImplIMAGE_CENTERED, IMAGE_SCALE_TO_HEIGHT, IMAGE_SCALE_TO_WIDTH, IMAGE_SCALED, IMAGE_TILED, mImageIcon, mScaledImagelistenerList, 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_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
SearchPanel() |
SearchPanel(Properties p)
Constructs a search panel using a tabbed pane for selecting search
templates.
|
SearchPanel(Properties p,
boolean b)
Constructs a search panel using either a tabbed pane, which will allow
the user to select from a list of templates, or a panel that displays a
single template.
|
SearchPanel(Properties p,
boolean b,
String[] data,
oracle.help.CSHManager cshManager)
Constructs a search panel using either a tabbed pane, which will allow
the user to select from a list of templates, or a panel that displays a
single template.
|
SearchPanel(Properties p,
boolean b,
String tmpl,
oracle.help.CSHManager cshManager)
Constructs a search panel using either a tabbed pane, which will allow
the user to select from a list of templates, or a panel that displays a
single template.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addActionListener(ActionListener l)
Adds an action listener to the buttons of the dialog.
|
void |
addSearchEventListener(SearchListener l)
Add a search listener for the search results.
|
void |
addSearchInfoListener(SearchInfoListener l)
Add a SearchInfoListener.
|
void |
addSearchResultsListener(ResultsListener l)
Connects the search panel to a class that is interested in the results
of the search.
|
void |
collectData(PCollectDataEvent event)
Override collectData(), turning it into a no-op.
|
protected void |
fireSearchProgress(Integer prog)
Sends a SearchEvent which contains the progress of the search.
|
protected void |
fireSearchResultData(ResultData[] res)
Sends a SearchEvent which contains the results of the search.
|
protected void |
fireSearchResults(PModelHandle[] res)
Sends a SearchEvent which contains the results of the search.
|
String |
getControllerClassName()
Gets the class name for this panel's controller.
|
void |
removeActionListener(ActionListener l)
Removes the given action listener from the dialog.
|
void |
removeSearchEventListener(SearchListener l)
Remove a search listener.
|
void |
removeSearchInfoListener(SearchInfoListener l)
Removes a SearchInfoListener.
|
void |
removeSearchResultsListener(ResultsListener l)
Disconnects the search panel to a class that is interested in the results
of the search.
|
void |
setCurrentTemplate(String tmpl)
Updates the UI with the given template.
|
void |
setInitialData(String[] data)
Sets the initial data to be displayed in the panel.
|
void |
setResultFields(String[] fields)
Set the 'resultFields' property, which is used in the search.
|
void |
setTabbedPane(boolean b)
Sets the property tabbedPane to the given value.
|
void |
setTemplates(Properties p)
This method will initialize the SearchTemplates for the panel and
it's controller.
|
void |
viewDataChange(PViewDataChangeEvent event)
Listens for change events from the controller.
|
clear, componentAdded, componentRemoved, containsError, firePropertyChange, fireVetoableChange, getBackgroundImageSource, getBundle, getModelHandle, getRemoteComponent, getResourceName, getTools, isClean, isCurrencyDisplay, isDirty, isError, isInputTracking, isLight, isRequired, processError, resetToDefault, revertToPrimary, setBackgroundImageMode, setBackgroundImageSource, setClean, setCurrencyDisplay, setDefault, setError, setInputTracking, setModelHandle, setRequired, setResourceName, togglePrimaryToSecondary, unregistergetBackgroundImageIcon, getBackgroundImageMode, imageUpdate, paintComponent, setBackgroundImageIcongetAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, 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, 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, updateadd, 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, 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, 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, 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 SearchPanel()
public SearchPanel(Properties p)
p - the search template definitionpublic SearchPanel(Properties p, boolean b)
p - the search template definitionb - indicates whether the panel should use a tabbed panepublic SearchPanel(Properties p, boolean b, String tmpl, oracle.help.CSHManager cshManager)
p - the search template definitionb - indicates whether the panel should use a tabbed panetmpl - the template to load in by defaultcshManager - context Sensitive help managerpublic SearchPanel(Properties p, boolean b, String[] data, oracle.help.CSHManager cshManager)
p - the search template definitionb - indicates whether the panel should use a tabbed panedata - the inital data to display in the windowcshManager - context Sensitive help managerpublic void setCurrentTemplate(String tmpl)
tmpl - the template to load in the panelpublic void setInitialData(String[] data)
data - any initial data to be loaded into the panelpublic void setTabbedPane(boolean b)
b - if false, displays a single templatepublic void setTemplates(Properties p)
p - the new set of Properties to use.public void addSearchEventListener(SearchListener l)
l - the listener to addpublic void removeSearchEventListener(SearchListener l)
l - the listener to removepublic void addSearchInfoListener(SearchInfoListener l)
l - the listener to add.public void removeSearchInfoListener(SearchInfoListener l)
l - the listener to add.public void addActionListener(ActionListener l)
l - the action listener to be addedpublic void removeActionListener(ActionListener l)
l - the action listener to be removedpublic void addSearchResultsListener(ResultsListener l)
l - the class interested in the searchpublic void removeSearchResultsListener(ResultsListener l)
l - the class disinterested in the searchpublic String getControllerClassName() throws RemoteException
getControllerClassName in interface PComponentgetControllerClassName in class PIAPanelRemoteException - thrown for errorspublic void collectData(PCollectDataEvent event)
collectData in interface PCollectDataListenercollectData in class PIAPanelevent - the PCollectDataEvent data eventpublic void viewDataChange(PViewDataChangeEvent event) throws RemoteException
viewDataChange in interface PViewDataChangeListenerviewDataChange in class PIAPanelevent - the data change eventRemoteException - thrown for errorspublic void setResultFields(String[] fields)
fields - the new list of fields expected for each found resultprotected void fireSearchProgress(Integer prog)
prog - the number of items found in the searchprotected void fireSearchResults(PModelHandle[] res)
event - the search eventprotected void fireSearchResultData(ResultData[] res)
event - the search eventCopyright © 2003, 2023, Oracle and/or its affiliates.