All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sgi.sysadm.ui.ItemViewPanel

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

public class ItemViewPanel
extends JPanel
implements ItemViewProperties
An ItemViewPanel defines the overall look of the ItemView. See the ItemView documents for more information

See Also:
ItemView

Constructor Index

 o ItemViewPanel(ItemViewContext)
Constructor for ItemViewPanel

Method Index

 o addItemViewInfo(Component, Component)
Adds a label and value to the "info" part of the panel.
 o addItemViewInfo(Component, String)
Adds a label and value to the "info" part of the panel.
 o addItemViewInfo(String, Component)
Adds a label and value to the "info" part of the panel.
 o addItemViewInfo(String, String)
Adds a label and value to the "info" part of the panel.
 o getPreferredSize()
Returns the preferred size for this frame.
 o removeItemViewInfo(ItemViewInfo)
Removes a label and value from the "info" part of the panel
 o setAdditionalInfo(Component)
Sets the Component that will be displayed in the "additional info" area of the panel.
 o setIcon(Icon)
Sets the panel's icon to a specified icon
 o setTaskShelf(Component)
Sets the Component that will be displayed in the "task shelf" area of the panel.

Constructors

 o ItemViewPanel
 public ItemViewPanel(ItemViewContext ivc)
Constructor for ItemViewPanel

Parameters:
ivc - The ItemViewContext for the panel

Methods

 o getPreferredSize
 public Dimension getPreferredSize()
Returns the preferred size for this frame.

Returns:
The Dimension as specified by the WIDTH and HEIGHT resources.
Overrides:
getPreferredSize in class JComponent
 o setIcon
 public void setIcon(Icon icon)
Sets the panel's icon to a specified icon

Parameters:
icon - The icon to display
 o setTaskShelf
 public void setTaskShelf(Component taskShelf)
Sets the Component that will be displayed in the "task shelf" area of the panel.

Parameters:
taskShelf - The TaskShelf to display
 o setAdditionalInfo
 public void setAdditionalInfo(Component additionalInfo)
Sets the Component that will be displayed in the "additional info" area of the panel.

Parameters:
additionalInfo - The Component to put in the "additional info" area.
 o addItemViewInfo
 public ItemViewInfo addItemViewInfo(String label,
                                     String value)
Adds a label and value to the "info" part of the panel.

Parameters:
label - The label to display. Will be used in the constructor of a LinkLabel
value - The value to display
Returns:
An ItemViewInfo object that contains the Components that were added to the panel for use when modifying the values of the label or the value.
See Also:
LinkLabel
 o addItemViewInfo
 public ItemViewInfo addItemViewInfo(String label,
                                     Component value)
Adds a label and value to the "info" part of the panel.

Parameters:
label - The label to display. Will be used in the constructor of a LinkLabel
value - The value to display
Returns:
An ItemViewInfo object that contains the Components that were added to the panel for use when modifying the values of the label or the value.
See Also:
LinkLabel
 o addItemViewInfo
 public ItemViewInfo addItemViewInfo(Component label,
                                     Component value)
Adds a label and value to the "info" part of the panel.

Parameters:
label - The label to display
value - The value to display
Returns:
An ItemViewInfo object that contains the Components that were added to the panel for use when modifying the values of the label or the value.
 o addItemViewInfo
 public ItemViewInfo addItemViewInfo(Component label,
                                     String value)
Adds a label and value to the "info" part of the panel.

Parameters:
label - The label to display
value - The value to display
Returns:
An ItemViewInfo object that contains the Components that were added to the panel for use when modifying the values of the label or the value.
 o removeItemViewInfo
 public void removeItemViewInfo(ItemViewInfo ivi)
Removes a label and value from the "info" part of the panel

Parameters:
ivi - The ItemViewInfo object that was returned when the label-value pair was added.

All Packages  Class Hierarchy  This Package  Previous  Next  Index