All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.manager.taskManager.DisplayPage

java.lang.Object
   |
   +----com.sgi.sysadm.manager.taskManager.DisplayPage

public class DisplayPage
extends Object
implements TaskManagerProperties
DisplayPage is a page that will be displayed in the DisplayArea of the TaskManager window. The User interface for the page will not be created until the User requests the page.


Variable Index

 o CLASS_PAGE_TYPE
Use this value as an argument to DisplayPage.setType() if the page to display is a TaskManagerPanel.
 o TASKLIST_PAGE_TYPE
Use this value as an argument to DisplayPage.setType() if the page to display is a tasklist, which will contain a list of Metatasks and Tasks that the User can launch.
 o TEXT_PAGE_TYPE
Use this value as an argument to DisplayPage.setType() if the page to display will only contain text.

Constructor Index

 o DisplayPage(DisplayArea)
Constructor.

Method Index

 o getIcon()
Get the icon to display next to the title of this page in the TableOfContents.
 o getPanel(ResultListener)
Get the panel to display when this page is selected.
 o getTarget()
Get the target to launch when this page is selected in the TableOfContents.
 o getTitle()
Get the title of this page.
 o getType()
Get the page type.
 o setIcon(Icon)
Set the icon that will be displayed along with the title of this page in the TableOfContents.
 o setIconLabel(JLabel)
Get the label on which the icon for this page is displayed.
 o setPanel(JPanel)
Set the panel to display when this page is selected.
 o setTarget(String)
Set the target to launch when this page is selected in the TableOfContents.
 o setTitle(String)
Set the title of this page.
 o setType(int)
Set the page type.

Variables

 o TEXT_PAGE_TYPE
 public static final int TEXT_PAGE_TYPE
Use this value as an argument to DisplayPage.setType() if the page to display will only contain text.

 o TASKLIST_PAGE_TYPE
 public static final int TASKLIST_PAGE_TYPE
Use this value as an argument to DisplayPage.setType() if the page to display is a tasklist, which will contain a list of Metatasks and Tasks that the User can launch.

 o CLASS_PAGE_TYPE
 public static final int CLASS_PAGE_TYPE
Use this value as an argument to DisplayPage.setType() if the page to display is a TaskManagerPanel.

Constructors

 o DisplayPage
 public DisplayPage(DisplayArea displayArea)
Constructor.

Parameters:
displayArea - The DisplayArea that will be displaying this page.

Methods

 o setType
 public void setType(int type)
Set the page type. Must be one of DisplayPage.TEXT_PAGE_TYPE, DisplayPage.TASKLIST_PAGE_TYPE, or DisplayPage.CLASS_PAGE_TYPE.

Parameters:
type - The page type.
 o getType
 public int getType()
Get the page type.

Returns:
The type of this page.
 o setTitle
 public void setTitle(String title)
Set the title of this page.

Parameters:
title - The user-readable title of this page.
 o getTitle
 public String getTitle()
Get the title of this page.

Returns:
The title of this page.
 o setIcon
 public void setIcon(Icon icon)
Set the icon that will be displayed along with the title of this page in the TableOfContents.

Parameters:
icon - The icon to display next to the title of this page in the TableOfContents.
 o getIcon
 public Icon getIcon()
Get the icon to display next to the title of this page in the TableOfContents.

Returns:
The icon to display next to the title of this page in the TableOfContents.
 o setIconLabel
 public void setIconLabel(JLabel iconLabel)
Get the label on which the icon for this page is displayed.

Parameters:
iconLabel - The label used to display the icon for this page.
 o setTarget
 public void setTarget(String target)
Set the target to launch when this page is selected in the TableOfContents.

Parameters:
target - The target to launch when this page is selected. If the page type is TEXT, then the target is the actual text to display. If the page type is METATASK, the target is the package-qualified name of a metatask. If the page type is CLASS, the target is the package-qualified name of a TaskManagerPlugin.
 o getTarget
 public String getTarget()
Get the target to launch when this page is selected in the TableOfContents.

Returns:
The target to launch when this page is selected. If the page type is TEXT, then the target is the actual text to display. If the page type is METATASK, the target is the package-qualified name of a metatask. If the page type is CLASS, the target is the package-qualified name of a TaskManagerPlugin.
 o setPanel
 public void setPanel(JPanel panel)
Set the panel to display when this page is selected.

Parameters:
panel - The panel to display when this page is selected.
 o getPanel
 public void getPanel(ResultListener listener)
Get the panel to display when this page is selected. If the page has not yet been created, create it.

Parameters:
listener - The listener to notify when the page has been retrieved or created.

All Packages  Class Hierarchy  This Package  Previous  Next  Index