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.
-
CLASS_PAGE_TYPE
- Use this value as an argument to DisplayPage.setType() if the
page to display is a TaskManagerPanel.
-
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.
-
TEXT_PAGE_TYPE
- Use this value as an argument to DisplayPage.setType() if the
page to display will only contain text.
-
DisplayPage(DisplayArea)
- Constructor.
-
getIcon()
- Get the icon to display next to the title of this page in the
TableOfContents.
-
getPanel(ResultListener)
- Get the panel to display when this page is selected.
-
getTarget()
- Get the target to launch when this page is
selected in the TableOfContents.
-
getTitle()
- Get the title of this page.
-
getType()
- Get the page type.
-
setIcon(Icon)
- Set the icon that will be displayed along with the title of
this page in the TableOfContents.
-
setIconLabel(JLabel)
- Get the label on which the icon for this page is displayed.
-
setPanel(JPanel)
- Set the panel to display when this page is selected.
-
setTarget(String)
- Set the target to launch when this page is selected in
the TableOfContents.
-
setTitle(String)
- Set the title of this page.
-
setType(int)
- Set the page type.
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.
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.
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.
DisplayPage
public DisplayPage(DisplayArea displayArea)
- Constructor.
- Parameters:
- displayArea - The DisplayArea that will be displaying this
page.
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.
getType
public int getType()
- Get the page type.
- Returns:
- The type of this page.
setTitle
public void setTitle(String title)
- Set the title of this page.
- Parameters:
- title - The user-readable title of this page.
getTitle
public String getTitle()
- Get the title of this page.
- Returns:
- The title of this page.
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.
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.
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.
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.
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.
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.
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