javax.microedition.lcdui
Class ChoiceGroup
java.lang.Object
javax.microedition.lcdui.Item
javax.microedition.lcdui.ChoiceGroup
- All Implemented Interfaces:
- Choice
public class ChoiceGroup
- extends Item
- implements Choice
- Author:
- Andre Nijholt
Methods inherited from class javax.microedition.lcdui.Item |
addCommand, getLabel, getMinimumHeight, getMinimumWidth, getPaintRequest, getPreferredHeight, getPreferredWidth, isInteractive, notifyStateChanged, removeCommand, setItemCommandListener, setPreferredSize |
ChoiceGroup
public ChoiceGroup(String label,
int choiceType)
ChoiceGroup
public ChoiceGroup(String label,
int choiceType,
String[] stringElements,
Image[] imageElements)
append
public int append(String stringPart,
Image imagePart)
- Specified by:
append
in interface Choice
delete
public void delete(int elementNum)
- Specified by:
delete
in interface Choice
deleteAll
public void deleteAll()
- Specified by:
deleteAll
in interface Choice
getImage
public Image getImage(int elementNum)
- Specified by:
getImage
in interface Choice
getSelectedFlags
public int getSelectedFlags(boolean[] selectedArray_return)
- Specified by:
getSelectedFlags
in interface Choice
getSelectedIndex
public int getSelectedIndex()
- Specified by:
getSelectedIndex
in interface Choice
getString
public String getString(int elementNum)
- Specified by:
getString
in interface Choice
insert
public void insert(int elementNum,
String stringPart,
Image imagePart)
- Specified by:
insert
in interface Choice
isSelected
public boolean isSelected(int elementNum)
- Specified by:
isSelected
in interface Choice
set
public void set(int elementNum,
String stringPart,
Image imagePart)
- Specified by:
set
in interface Choice
setScrollWrap
public void setScrollWrap(boolean scrollWrap)
setSelectedFlags
public void setSelectedFlags(boolean[] selectedArray)
- Specified by:
setSelectedFlags
in interface Choice
setSelectedIndex
public void setSelectedIndex(int elementNum,
boolean selected)
- Specified by:
setSelectedIndex
in interface Choice
size
public int size()
- Specified by:
size
in interface Choice