All Packages Class Hierarchy This Package Previous Next Index
Class com.sgi.sysadm.ui.ItemViewInfo
java.lang.Object
|
+----com.sgi.sysadm.ui.ItemViewInfo
- public class ItemViewInfo
- extends Object
An object of this class is returned by ItemViewPanel when a
label-value pair is added to the ItemView. You can use the
getLabel and getValue methods to get the associated Components, and
can use the setValueText method to modify the string that the
value is displaying.
-
getLabel()
- Returns the Component that is the label
-
getValue()
- Returns the Component that is the value
-
setLabelText(String)
-
Modifies the string contained by the "label" Component.
-
setValueText(String)
-
Modifies the string contained by the "value" Component.
setValueText
public void setValueText(String newValue)
- Modifies the string contained by the "value" Component. This
method assumes that the "value" Component is of type JLabel and
will throw an assertion if that is not the case.
- Parameters:
- newValue - The string to display.
setLabelText
public void setLabelText(String newValue)
- Modifies the string contained by the "label" Component. This
method assumes that the "label" Component is of type JLabel and
will throw an assertion if that is not the case.
- Parameters:
- newValue - The string to display.
getLabel
public Component getLabel()
- Returns the Component that is the label
- Returns:
- the label Component
getValue
public Component getValue()
- Returns the Component that is the value
- Returns:
- the value Component
All Packages Class Hierarchy This Package Previous Next Index