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
Method Summary |
int |
append(String stringPart,
Image imagePart)
|
void |
delete(int elementNum)
|
void |
deleteAll()
|
Image |
getImage(int elementNum)
|
int |
getSelectedFlags(boolean[] selectedArray_return)
|
int |
getSelectedIndex()
|
String |
getString(int elementNum)
|
void |
insert(int elementNum,
String stringPart,
Image imagePart)
|
boolean |
isSelected(int elementNum)
|
protected void |
keyPressed(int keyCode)
|
protected void |
paint(Graphics g,
int x,
int y,
int w,
int h,
boolean selected)
|
void |
set(int elementNum,
String stringPart,
Image imagePart)
|
void |
setScrollWrap(boolean scrollWrap)
|
void |
setSelectedFlags(boolean[] selectedArray)
|
void |
setSelectedIndex(int elementNum,
boolean selected)
|
int |
size()
|
Methods inherited from class javax.microedition.lcdui.Item |
addCommand, getLabel, getMinimumHeight, getMinimumWidth, getPaintRequest, getPreferredHeight, getPreferredWidth, hideNotify, isInteractive, keyReleased, notifyStateChanged, removeCommand, repaint, setItemCommandListener, setPreferredSize, showNotify |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
choiceType
protected int choiceType
choiceItems
protected ArrayList<javax.microedition.lcdui.ChoiceGroup.ChoiceItem> choiceItems
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
keyPressed
protected void keyPressed(int keyCode)
- Overrides:
keyPressed
in class Item
paint
protected void paint(Graphics g,
int x,
int y,
int w,
int h,
boolean selected)
- Specified by:
paint
in class Item