All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.ui.TaskShelfPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----javax.swing.JComponent
                           |
                           +----javax.swing.JPanel
                                   |
                                   +----com.sgi.sysadm.ui.TaskShelfPanel

public class TaskShelfPanel
extends JPanel
This class uses a JTable and an associated TabelModel to display a TaskShelf


Variable Index

 o ICON_COLUMN_WIDTH
A resource TaskShelfPanel.iconColumnWidth that specifies the width in points of columns that contain icons.
 o INTERCELL_HEIGHT
A resource TaskShelfPanel.IntercellSpacing.height that specifies the height (in points) of the gap to put between cells in the table.
 o INTERCELL_WIDTH
A resource TaskShelfPanel.IntercellSpacing.width that specifies the width (in points) of the gap to put between cells in the table.
 o ROW_HEIGHT
A resource TaskShelfPanel.rowHeight that specifies the height of the rows in the panel in points.
 o ROWS
A resource TaskShelfPanel.rows that specifies the desired height (in rows) of the TaskShelf
 o WIDTH
A resource TaskShelfPanel.width that specifies the desired width (in points) of the TaskShelf

Constructor Index

 o TaskShelfPanel(UIContext)
Constructor that uses a TaskShelfTableModel for the model
 o TaskShelfPanel(UIContext, TaskShelfTableModel)
Constructor that allows you to specify an alternate table model

Method Index

 o addTaskLaunchRequestListener(TaskLaunchRequestListener)
Adds a listener to the list that will be notified when a user requests that a task be launched.
 o removeTaskLaunchRequestListener(TaskLaunchRequestListener)
Removes a TaskLaunchRequestListener
 o setItem(Item)
Sets the Item that should be passed in the TaskLaunchRequestEvent if the user launches a task.
 o setTaskList(TaskLoader[])
Sets the TaskList to display a list of tasks.

Variables

 o WIDTH
 public static final String WIDTH
A resource TaskShelfPanel.width that specifies the desired width (in points) of the TaskShelf

 o ROWS
 public static final String ROWS
A resource TaskShelfPanel.rows that specifies the desired height (in rows) of the TaskShelf

 o INTERCELL_WIDTH
 public static final String INTERCELL_WIDTH
A resource TaskShelfPanel.IntercellSpacing.width that specifies the width (in points) of the gap to put between cells in the table.

 o INTERCELL_HEIGHT
 public static final String INTERCELL_HEIGHT
A resource TaskShelfPanel.IntercellSpacing.height that specifies the height (in points) of the gap to put between cells in the table.

 o ROW_HEIGHT
 public static final String ROW_HEIGHT
A resource TaskShelfPanel.rowHeight that specifies the height of the rows in the panel in points.

 o ICON_COLUMN_WIDTH
 public static final String ICON_COLUMN_WIDTH
A resource TaskShelfPanel.iconColumnWidth that specifies the width in points of columns that contain icons.

Constructors

 o TaskShelfPanel
 public TaskShelfPanel(UIContext uic)
Constructor that uses a TaskShelfTableModel for the model

Parameters:
uic - The UIContext that the Panel can use to display messages.
 o TaskShelfPanel
 public TaskShelfPanel(UIContext uic,
                       TaskShelfTableModel tm)
Constructor that allows you to specify an alternate table model

Parameters:
uic - The UIContext that the Panel can use to display messages.
tm - The TaskShelfTableModel that will be used to control the JTable.

Methods

 o setTaskList
 public void setTaskList(TaskLoader taskLoaderList[])
Sets the TaskList to display a list of tasks.

Parameters:
taskLoaderList - The list of tasks to display
 o addTaskLaunchRequestListener
 public void addTaskLaunchRequestListener(TaskLaunchRequestListener listener)
Adds a listener to the list that will be notified when a user requests that a task be launched.

Parameters:
listener - The listener to add.
 o removeTaskLaunchRequestListener
 public void removeTaskLaunchRequestListener(TaskLaunchRequestListener listener)
Removes a TaskLaunchRequestListener

Parameters:
listener - The listener to remove.
 o setItem
 public void setItem(Item item)
Sets the Item that should be passed in the TaskLaunchRequestEvent if the user launches a task.

Parameters:
item - The item. Can be null if there is no applicable item.

All Packages  Class Hierarchy  This Package  Previous  Next  Index