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
Fields inherited from class javax.microedition.lcdui.Item |
BUTTON, HYPERLINK, LAYOUT_2, LAYOUT_BOTTOM, LAYOUT_CENTER, LAYOUT_DEFAULT, LAYOUT_EXPAND, LAYOUT_LEFT, LAYOUT_NEWLINE_AFTER, LAYOUT_NEWLINE_BEFORE, LAYOUT_RIGHT, LAYOUT_SHRINK, LAYOUT_TOP, LAYOUT_VCENTER, LAYOUT_VEXPAND, LAYOUT_VSHRINK, PLAIN |
Methods inherited from class javax.microedition.lcdui.Item |
addCommand, getLabel, getLayout, getMinimumHeight, getMinimumWidth, getPreferredHeight, getPreferredWidth, notifyStateChanged, removeCommand, setDefaultCommand, setItemCommandListener, setLabel, setLayout, setPreferredSize |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChoiceGroup
public ChoiceGroup(String label,
int choiceType)
ChoiceGroup
public ChoiceGroup(String label,
int choiceType,
String[] stringElements,
Image[] imageElements)
size
public int size()
- Specified by:
size
in interface Choice
getString
public String getString(int elementNum)
- Specified by:
getString
in interface Choice
getImage
public Image getImage(int elementNum)
- Specified by:
getImage
in interface Choice
append
public int append(String stringPart,
Image imagePart)
- Specified by:
append
in interface Choice
insert
public void insert(int elementNum,
String stringPart,
Image imagePart)
- Specified by:
insert
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
set
public void set(int elementNum,
String stringPart,
Image imagePart)
- Specified by:
set
in interface Choice
isSelected
public boolean isSelected(int elementNum)
- Specified by:
isSelected
in interface Choice
getSelectedIndex
public int getSelectedIndex()
- Specified by:
getSelectedIndex
in interface Choice
getSelectedFlags
public int getSelectedFlags(boolean[] selectedArray_return)
- Specified by:
getSelectedFlags
in interface Choice
setSelectedIndex
public void setSelectedIndex(int elementNum,
boolean selected)
- Specified by:
setSelectedIndex
in interface Choice
setSelectedFlags
public void setSelectedFlags(boolean[] selectedArray)
- Specified by:
setSelectedFlags
in interface Choice
setFitPolicy
public void setFitPolicy(int fitPolicy)
- Specified by:
setFitPolicy
in interface Choice
getFitPolicy
public int getFitPolicy()
- Specified by:
getFitPolicy
in interface Choice
setFont
public void setFont(int elementNum,
Font font)
- Specified by:
setFont
in interface Choice
getFont
public Font getFont(int elementNum)
- Specified by:
getFont
in interface Choice
Copyright © 2006-2007 Jayway AB. All Rights Reserved.