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
-
ItemViewPanel(ItemViewContext)
-
Constructor for ItemViewPanel
-
addItemViewInfo(Component, Component)
-
Adds a label and value to the "info" part of the panel.
-
addItemViewInfo(Component, String)
-
Adds a label and value to the "info" part of the panel.
-
addItemViewInfo(String, Component)
-
Adds a label and value to the "info" part of the panel.
-
addItemViewInfo(String, String)
-
Adds a label and value to the "info" part of the panel.
-
getPreferredSize()
- Returns the preferred size for this frame.
-
removeItemViewInfo(ItemViewInfo)
-
Removes a label and value from the "info" part of the panel
-
setAdditionalInfo(Component)
-
Sets the Component that will be displayed in the "additional info"
area of the panel.
-
setIcon(Icon)
-
Sets the panel's icon to a specified icon
-
setTaskShelf(Component)
-
Sets the Component that will be displayed in the "task shelf"
area of the panel.
ItemViewPanel
public ItemViewPanel(ItemViewContext ivc)
- Constructor for ItemViewPanel
- Parameters:
- ivc - The ItemViewContext for the panel
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
setIcon
public void setIcon(Icon icon)
- Sets the panel's icon to a specified icon
- Parameters:
- icon - The icon to display
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
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.
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
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
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.
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.
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