public class SearchPanel extends PIAPanel
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
collectDataFromInvisiblePanels, isTracking, mIAList, mImpl
IMAGE_CENTERED, IMAGE_SCALE_TO_HEIGHT, IMAGE_SCALE_TO_WIDTH, IMAGE_SCALED, IMAGE_TILED, mImageIcon, mScaledImage
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
ABORT, 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, unregister
getBackgroundImageIcon, getBackgroundImageMode, imageUpdate, paintComponent, setBackgroundImageIcon
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, 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, update
add, 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, 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, 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, transferFocusUpCycle
public 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 PComponent
getControllerClassName
in class PIAPanel
RemoteException
- thrown for errorspublic void collectData(PCollectDataEvent event)
collectData
in interface PCollectDataListener
collectData
in class PIAPanel
event
- the PCollectDataEvent
data eventpublic void viewDataChange(PViewDataChangeEvent event) throws RemoteException
viewDataChange
in interface PViewDataChangeListener
viewDataChange
in class PIAPanel
event
- 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.