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.AccessibleJPanelNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested 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, unregListFields inherited from class com.portal.pfc.ui.ImagePanel
IMAGE_CENTERED, IMAGE_SCALE_TO_HEIGHT, IMAGE_SCALE_TO_WIDTH, IMAGE_SCALED, IMAGE_TILED, mImageIcon, mScaledImageFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTHFields 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 TypeMethodDescriptionvoidClears the window of all search results.voidClears the window of all search results.voidClears the selected event rows of search results.voidCloses any open portal contexts(connections)voiddisplayDetails(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.voidInitializes the second connection for search purposes.voidInitializes the controller with information needed from the search.intReturn the number of items displayed in the table.protected voidloadBrowserDisplay(DataTemplate dt, String title, boolean recurse) voidMarks all the rows in the table.voidmarkItem()Mark the selected event.voidprogress(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.voidRemoves a remote listener, i.e.voidsearchStarted(SearchEvent evt) This method is called at the start of the search to allow the listener to initialize the GUI for the search.voidselectFirstItem(int i) Update the results panel.voidsetMaskFields(String[] flds) Sets the fields that need to be masked in the browser bean.voidSet the resource bundle for the panel.voidsetResultData(ResultData[] data, int index, boolean b) Sets the information used for displaying the results.voidDisplays all items in the table.protected voidshowDialog(int type) Displays the BrowserBean in a dialog.booleanThis will change the view of the table to show the marked item list as opposed to the search results list.voidsubstituteData(Hashtable data) Substitue the given data in the browser bean.voidUnmarks all the rows in the table.voidUnmark 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, viewDataChangeMethods inherited from class com.portal.pfc.ui.ImagePanel
getBackgroundImageIcon, getBackgroundImageMode, imageUpdate, paintComponent, setBackgroundImageIconMethods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods 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, updateMethods 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, validateTreeMethods 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:
getControllerClassNamein interfacePComponent- Overrides:
getControllerClassNamein 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:
clearContentsin 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:
closeContextin interfaceResultsDisplay
-
initializeSecConnection
public void initializeSecConnection()Initializes the second connection for search purposes. -
markItem
public void markItem()Mark the selected event.- Specified by:
markItemin interfaceResultsDisplay
-
unmarkItem
public void unmarkItem()Unmark the selected event(s).- Specified by:
unmarkItemin interfaceResultsDisplay
-
markAllItems
public void markAllItems()Marks all the rows in the table.- Specified by:
markAllItemsin interfaceResultsDisplay
-
unmarkAllItems
public void unmarkAllItems()Unmarks all the rows in the table.- Specified by:
unmarkAllItemsin interfaceResultsDisplay
-
initSearchResults
public void initSearchResults()Initializes the controller with information needed from the search.- Specified by:
initSearchResultsin 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:
selectFirstItemin 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:
showMarkedItemsin 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:
showAllItemsin interfaceResultsDisplay
-
setMaskFields
Sets the fields that need to be masked in the browser bean.- Specified by:
setMaskFieldsin interfaceResultsDisplay- Parameters:
flds- the fields to be masked
-
substituteData
Substitue the given data in the browser bean.- Specified by:
substituteDatain interfaceResultsDisplay- Parameters:
data- the data to substitue
-
itemCount
public int itemCount()Return the number of items displayed in the table.- Specified by:
itemCountin 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:
getSelectedItemsin interfaceResultsDisplay- Returns:
- an array of history items
-
getMarkedEvents
Returns the list of marked events.- Specified by:
getMarkedEventsin 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:
setResultDatain 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:
displayDetailsin 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:
getRemoteListenerin 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:
releaseRemoteListenerin 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:
progressin interfaceSearchInfoListener- Parameters:
evt- contains information about the progress of the search.
-
searchStarted
Description copied from interface:SearchInfoListenerThis 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:
searchStartedin 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
-