|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.nokia.mid.ui.PopupListItem
public class PopupListItem
This class represents an item in a popuplist.
PopupList item types are:
Text:
Text
Text and Icon:
Icon Text
Text and additional marking (checkbox) functionality:
Text V
Text and Icon and marking:
Icon Text V
| Constructor Summary | |
|---|---|
PopupListItem(java.lang.String itemText)
This constructor instantiates the PopupList item. |
|
PopupListItem(java.lang.String itemText,
boolean markingEnabled)
This constructor instantiates the PopupList item. |
|
PopupListItem(java.lang.String itemText,
javax.microedition.lcdui.Image itemIcon)
This constructor instantiates the PopupList item. |
|
PopupListItem(java.lang.String itemText,
javax.microedition.lcdui.Image itemIcon,
boolean itemHasMarking,
boolean marked)
This constructor instantiates the PopupList item. |
|
| Method Summary | |
|---|---|
javax.microedition.lcdui.Image |
getIcon()
This returns the icon currently used in this PopupList item. |
java.lang.String |
getText()
This method gets the text displayed by the PopupList item. |
boolean |
hasMarking()
This retrieves whether the PopupListItem has marking or not |
boolean |
isMarked()
This retrieves whether the PopupListItem is marked (checked). |
void |
setHasMarking(boolean hasMarking)
This method sets whether the PopupListItem has marking or not. |
void |
setIcon(javax.microedition.lcdui.Image itemIcon)
This method sets the current icon of this PopupList item. |
void |
setMarked(boolean marked)
This method sets whether the PopupListItem is marked (checked). |
void |
setText(java.lang.String itemText)
This method sets the text for the PopupList item to the indicated value. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PopupListItem(java.lang.String itemText)
throws java.lang.NullPointerException
itemText - The text to show on the PopupList item.
java.lang.NullPointerException - if null itemText is null.
public PopupListItem(java.lang.String itemText,
boolean markingEnabled)
throws java.lang.NullPointerException
itemText - The text to show on the PopupList item.markingEnabled - if marking is supported on this item
java.lang.NullPointerException - if null itemText is null.
public PopupListItem(java.lang.String itemText,
javax.microedition.lcdui.Image itemIcon)
throws java.lang.NullPointerException
itemText - The text to show on the PopupList item.itemIcon - The icon to show on the PopupList item.
java.lang.NullPointerException - if null itemText is null.
public PopupListItem(java.lang.String itemText,
javax.microedition.lcdui.Image itemIcon,
boolean itemHasMarking,
boolean marked)
throws java.lang.NullPointerException
itemText - The text to show on the PopupList item.itemIcon - The icon to show on the PopupList item. null
if no icon should be useditemHasMarking - Indicates that a check mark icon should
be used in the PopupList item.marked - true: item is default checked, false: item is
default not checked.
java.lang.NullPointerException - if null itemText is null.| Method Detail |
|---|
public void setText(java.lang.String itemText)
throws java.lang.NullPointerException
itemText - The text to set the PopupList item to.
java.lang.NullPointerException - if itemText is nullpublic java.lang.String getText()
public void setIcon(javax.microedition.lcdui.Image itemIcon)
itemIcon - The icon to show on the PopupList item.public javax.microedition.lcdui.Image getIcon()
public void setMarked(boolean marked)
marked - true: item is checked, false: item is not checked.public boolean isMarked()
public void setHasMarking(boolean hasMarking)
hasMarking - true: item has marking, false: item doesn't have marking.public boolean hasMarking()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||