|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ercp.swt.mobile.ListBoxItem
public class ListBoxItem
Instances of this class represent an item in a ListBox widget. Heading and
detail icons, if provided, are displayed at the size provided, or stretched
to fit the ListBox styles. For consistancy, all heading icons should be the
same size and all detail icons should be the same size for any one list.
Elements of a ListBoxItem which are null
are not displayed in
the ListBox layout.
ListBox
Constructor Summary | |
---|---|
ListBoxItem()
Constructs a new instance of this class. |
|
ListBoxItem(java.lang.String detailText,
Image detailIcon,
java.lang.String headingText,
Image headingIcon)
Constructs a new instance of this class and initializes it using provided data. |
Method Summary | |
---|---|
Image[] |
getDetailIcons()
Gets the detail icons of the item. |
java.lang.String |
getDetailText()
Gets the detail text of the item. |
Image[] |
getHeadingIcons()
Gets the heading icons for this item. |
java.lang.String |
getHeadingText()
Gets the heading text of the item. |
void |
setDetailIcons(Image[] icons)
Sets the detail icons of the item. |
void |
setDetailText(java.lang.String detailText)
Sets the detail text of the item. |
void |
setHeadingIcons(Image[] icons)
Sets the heading icons for this item. |
void |
setHeadingText(java.lang.String headingText)
Sets the heading text of the item. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListBoxItem()
public ListBoxItem(java.lang.String detailText, Image detailIcon, java.lang.String headingText, Image headingIcon)
null
except for
detailText
.
detailText
- string providing detail textdetailIcon
- Image providing single detail iconheadingText
- detail string providing detail textheadingIcon
- Image providing single heading icon
java.lang.IllegalArgumentException
- Method Detail |
---|
public Image[] getDetailIcons()
null
.
public java.lang.String getDetailText()
public Image[] getHeadingIcons()
null
.
public java.lang.String getHeadingText()
null
.
public void setDetailIcons(Image[] icons)
icons
- array providing detail iconspublic void setDetailText(java.lang.String detailText)
detailText
- string providing detail text
java.lang.IllegalArgumentException
- public void setHeadingIcons(Image[] icons)
icons
- array providing heading icons, or null
.public void setHeadingText(java.lang.String headingText)
headingText
- string providing heading text
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |