All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.manager.taskManager.DisplayArea

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----javax.swing.JComponent
                           |
                           +----javax.swing.JScrollPane
                                   |
                                   +----com.sgi.sysadm.manager.taskManager.DisplayArea

public class DisplayArea
extends JScrollPane
implements TaskManagerProperties
The DisplayArea is the scrolled panel on the right hand side of the TaskManager window. The contents of the DisplayArea change in response to the selection of a new category in the Table of Contents.


Constructor Index

 o DisplayArea(HostContext, UIContext)
Constructor.

Method Index

 o createTitleComponent(String)
Create a component that will display a title string.
 o getHostContext()
Get the HostContext associated with the DisplayArea.
 o getLinkListener()
Get the shared DisplayArea TaskManagerLinkListener.
 o getUIContext()
Get the UIContext associated with the DisplayArea.
 o setBorder(JPanel)
Set the standard DisplayArea border for panel.
 o setComponentAppearance(Component)
Set the font, foreground, and background of the component to match the rest of the DisplayArea.
 o showPage(DisplayPage, ResultListener)
showPage is called when the user selects a category in the TableOfContents.

Constructors

 o DisplayArea
 public DisplayArea(HostContext hc,
                    UIContext uic)
Constructor.

Parameters:
hc - HostContext shared with TaskManager.
uic - UIContext shared with TaskManager
pages - The list of pages that can be requested by the TableOfContents.

Methods

 o showPage
 public void showPage(DisplayPage newPage,
                      ResultListener listener)
showPage is called when the user selects a category in the TableOfContents. The DisplayArea will create the new page if it has not been shown yet and will then display the page.

Parameters:
pageNumber - The number of the page to display.
listener - The listener to notify when the page has been displayed.
 o getHostContext
 public HostContext getHostContext()
Get the HostContext associated with the DisplayArea.

Returns:
The HostContext associated with the DisplayArea.
 o getUIContext
 public UIContext getUIContext()
Get the UIContext associated with the DisplayArea.

Returns:
The UIContext associated with the DisplayArea.
 o createTitleComponent
 public JComponent createTitleComponent(String title)
Create a component that will display a title string. The font and color of this panel will match the rest of the DisplayArea.

Parameters:
title - The title to display in the title panel.
Returns:
A JComponent that displays title
 o setComponentAppearance
 public void setComponentAppearance(Component comp)
Set the font, foreground, and background of the component to match the rest of the DisplayArea.

Parameters:
comp - The component whose appearance is to be set.
 o setBorder
 public void setBorder(JPanel panel)
Set the standard DisplayArea border for panel.

Parameters:
panel - The panel whose border is to be set.
 o getLinkListener
 public TaskManagerLinkListener getLinkListener()
Get the shared DisplayArea TaskManagerLinkListener.

Returns:
The shared DisplayArea TaskManagerLinkListener.

All Packages  Class Hierarchy  This Package  Previous  Next  Index