Package com.portal.browse
Class ResultsTablePanel
java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.portal.pfc.ui.ImagePanel
com.portal.bas.comp.PIACustomizablePanel
com.portal.browse.ResultsTablePanel
- All Implemented Interfaces:
PAppComponent
,PClientComponent
,PCollectDataListener
,PComponent
,PComponentAttribute
,PViewDataChangeListener
,ResultsDisplay
,SearchInfoListener
,ContainerListener
,ImageObserver
,MenuContainer
,Serializable
,EventListener
,Accessible
- Direct Known Subclasses:
EventResultsTablePanel
A bean that is used for displaying result information for BrowseWin.
Search results are displayed in a table. Double clicking on a table
item that is of type DataTemplate will display detailed information
about that node in a dialog that contains the BrowserBean.
- Version:
- %version: 49 % %date_modified: Mon Nov 26 14:34:03 2001 %
- Author:
- Monica Gaines
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Field Summary
FieldsFields inherited from class com.portal.bas.comp.PIACustomizablePanel
isTracking, mIAList, mImpl, unregList
Fields inherited from class com.portal.pfc.ui.ImagePanel
IMAGE_CENTERED, IMAGE_SCALE_TO_HEIGHT, IMAGE_SCALE_TO_WIDTH, IMAGE_SCALED, IMAGE_TILED, mImageIcon, mScaledImage
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Fields inherited from interface com.portal.browse.ResultsDisplay
EVENT_TYPE, OBJECT_TYPE
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a panel that uses a table to display results for EventBrowser.Creates a panel that uses a table to display results for EventBrowser. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clears the window of all search results.void
Clears the window of all search results.void
Clears the selected event rows of search results.void
Closes any open portal contexts(connections)void
displayDetails
(int type) Display the detail information of the selected object.Gets the class name for this class's controller.Returns the list of marked events.Returns the remote listener, i.e.Returns an array of history items that contains poid and account information about the selected rows in the table.void
Initializes the second connection for search purposes.void
Initializes the controller with information needed from the search.int
Return the number of items displayed in the table.protected void
loadBrowserDisplay
(DataTemplate dt, String title, boolean recurse) void
Marks all the rows in the table.void
markItem()
Mark the selected event.void
progress
(SearchEvent evt) progress: With the new BAS API the panel has to fetch the results from the controller The panel no more gets the event notification from the controller(via firedatachangeevent) The search "start" and "end" events are handled by the BrowseWin.void
Removes a remote listener, i.e.void
searchStarted
(SearchEvent evt) This method is called at the start of the search to allow the listener to initialize the GUI for the search.void
selectFirstItem
(int i) Update the results panel.void
setMaskFields
(String[] flds) Sets the fields that need to be masked in the browser bean.void
Set the resource bundle for the panel.void
setResultData
(ResultData[] data, int index, boolean b) Sets the information used for displaying the results.void
Displays all items in the table.protected void
showDialog
(int type) Displays the BrowserBean in a dialog.boolean
This will change the view of the table to show the marked item list as opposed to the search results list.void
substituteData
(Hashtable data) Substitue the given data in the browser bean.void
Unmarks all the rows in the table.void
Unmark the selected event(s).Methods inherited from class com.portal.bas.comp.PIACustomizablePanel
clear, collectData, componentAdded, componentRemoved, containsError, 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, viewDataChange
Methods inherited from class com.portal.pfc.ui.ImagePanel
getBackgroundImageIcon, getBackgroundImageMode, imageUpdate, paintComponent, setBackgroundImageIcon
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
Methods inherited from class javax.swing.JComponent
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, 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
Methods inherited from class java.awt.Container
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
Methods inherited from class java.awt.Component
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, 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, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
Field Details
-
browser
-
-
Constructor Details
-
ResultsTablePanel
Creates a panel that uses a table to display results for EventBrowser. It displays event and object details by displaying the BrowserBean in a separate dialog.- Throws:
RemoteException
-
ResultsTablePanel
Creates a panel that uses a table to display results for EventBrowser. It displays event and object details by displaying the BrowserBean in a separate dialog.- Parameters:
res
- the resource bundle to use for stringsctx
- the portal context to use for the display- Throws:
RemoteException
-
-
Method Details
-
getControllerClassName
Gets the class name for this class's controller.- Specified by:
getControllerClassName
in interfacePComponent
- Overrides:
getControllerClassName
in classPIACustomizablePanel
- Returns:
- a String with the component's controller's classname
- Throws:
RemoteException
- thrown for errors
-
setResources
Set the resource bundle for the panel.- Parameters:
res
- the resource bundle for the panel.
-
clearContents
public void clearContents()Clears the window of all search results.- Specified by:
clearContents
in interfaceResultsDisplay
-
clearMarkedData
public void clearMarkedData()Clears the window of all search results. -
clearMarkedRows
public void clearMarkedRows()Clears the selected event rows of search results. -
closeContext
public void closeContext()Closes any open portal contexts(connections)- Specified by:
closeContext
in interfaceResultsDisplay
-
initializeSecConnection
public void initializeSecConnection()Initializes the second connection for search purposes. -
markItem
public void markItem()Mark the selected event.- Specified by:
markItem
in interfaceResultsDisplay
-
unmarkItem
public void unmarkItem()Unmark the selected event(s).- Specified by:
unmarkItem
in interfaceResultsDisplay
-
markAllItems
public void markAllItems()Marks all the rows in the table.- Specified by:
markAllItems
in interfaceResultsDisplay
-
unmarkAllItems
public void unmarkAllItems()Unmarks all the rows in the table.- Specified by:
unmarkAllItems
in interfaceResultsDisplay
-
initSearchResults
public void initSearchResults()Initializes the controller with information needed from the search.- Specified by:
initSearchResults
in interfaceResultsDisplay
-
selectFirstItem
public void selectFirstItem(int i) Update the results panel. If the given value is 1, then the contents of the display are cleared. If the given value is -1, it indicates that the table needs to be sorted.- Specified by:
selectFirstItem
in interfaceResultsDisplay
- Parameters:
i
- indicates what type of action needs to be performed on the panel
-
showMarkedItems
public boolean showMarkedItems()This will change the view of the table to show the marked item list as opposed to the search results list. If there are no items marked, then the view does not change.- Specified by:
showMarkedItems
in interfaceResultsDisplay
- Returns:
- returns true if there are marked items to show, otherwise false
-
showAllItems
public void showAllItems()Displays all items in the table.- Specified by:
showAllItems
in interfaceResultsDisplay
-
setMaskFields
Sets the fields that need to be masked in the browser bean.- Specified by:
setMaskFields
in interfaceResultsDisplay
- Parameters:
flds
- the fields to be masked
-
substituteData
Substitue the given data in the browser bean.- Specified by:
substituteData
in interfaceResultsDisplay
- Parameters:
data
- the data to substitue
-
itemCount
public int itemCount()Return the number of items displayed in the table.- Specified by:
itemCount
in interfaceResultsDisplay
- Returns:
- the number of items displayed in the table
-
getSelectedItems
Returns an array of history items that contains poid and account information about the selected rows in the table.- Specified by:
getSelectedItems
in interfaceResultsDisplay
- Returns:
- an array of history items
-
getMarkedEvents
Returns the list of marked events.- Specified by:
getMarkedEvents
in interfaceResultsDisplay
- Returns:
- a hashtable containing information about marked events
-
setResultData
Sets the information used for displaying the results. The labels from the ResultsData are used for the table column headers. The sort index defines which column to sort the table on.- Specified by:
setResultData
in interfaceResultsDisplay
- Parameters:
data
- the data defining the results to displayindex
- the index used for sorting
-
displayDetails
public void displayDetails(int type) Display the detail information of the selected object.- Specified by:
displayDetails
in interfaceResultsDisplay
- Parameters:
type
- type of object to display, either EVENT_TYPE or OBJECT_TYPE
-
getRemoteListener
Returns the remote listener, i.e. the one defined in the controller, for search results.- Specified by:
getRemoteListener
in interfaceSearchInfoListener
- Returns:
- the remote listener
-
releaseRemoteListener
public void releaseRemoteListener()Removes a remote listener, i.e. the one defined in the controller, for the search results.- Specified by:
releaseRemoteListener
in interfaceSearchInfoListener
-
progress
progress: With the new BAS API the panel has to fetch the results from the controller The panel no more gets the event notification from the controller(via firedatachangeevent) The search "start" and "end" events are handled by the BrowseWin. The "only"(?) other type of event is handled here. This other event is the datachangeevent- Specified by:
progress
in interfaceSearchInfoListener
- Parameters:
evt
- contains information about the progress of the search.
-
searchStarted
Description copied from interface:SearchInfoListener
This method is called at the start of the search to allow the listener to initialize the GUI for the search. The type of results to be returned from the search are passed in the event.- Specified by:
searchStarted
in interfaceSearchInfoListener
- Parameters:
evt
- contains useful information about the search
-
showDialog
protected void showDialog(int type) Displays the BrowserBean in a dialog. The dialog will be created if necessary. -
loadBrowserDisplay
-