|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.havi.ui.HListElement
public class HListElement
HListElement
is a holder for
content used with the HListGroup
component. It must contain a text string, and may also contain a
single graphical image.
Applications should not directly manipulate
HListElement
objects. They are intended
to be used in conjunction with an HListGroup
which maintains a list of them, and is responsible for
their rendering via the HListGroupLook
class. The methods setIcon()
and
setLabel()
of HListElement
shall not be
used for elements, which are part of HListGroup
. If an
application requires to alter the content, it shall either replace
the entire element, or remove it temporarily and re-add it after
the content was changed.
Parameter | Description | Default value | Set method | Get method |
---|---|---|---|---|
label | text content of this item | no default | - | getLabel |
icon | image content of this item | null | - | getIcon |
Description | Default value | Set method | Get method |
---|---|---|---|
None. |
HListGroup
,
HListGroupLook
Constructor Summary | |
---|---|
HListElement(java.awt.Image icon,
java.lang.String label)
Creates an HListElement object. |
|
HListElement(java.lang.String label)
Creates an HListElement object. |
Method Summary | |
---|---|
java.awt.Image |
getIcon()
Retrieve the icon for this HListElement. |
java.lang.String |
getLabel()
Retrieve the label for this HListElement. |
void |
setIcon(java.awt.Image icon)
Set the icon for this HListElement. |
void |
setLabel(java.lang.String label)
Set the label for this HListElement. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HListElement(java.lang.String label)
label
- The label for this HListElement.public HListElement(java.awt.Image icon, java.lang.String label)
icon
- The icon for this HListElement.label
- The label for this HListElement.Method Detail |
---|
public java.lang.String getLabel()
public java.awt.Image getIcon()
null
if no icon was set.public void setLabel(java.lang.String label)
label
- The label for this HListElement.public void setIcon(java.awt.Image icon)
icon
- The icon for this HListElement.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |