javax.microedition.lcdui
Class List
java.lang.Object
javax.microedition.lcdui.Displayable
javax.microedition.lcdui.Screen
javax.microedition.lcdui.List
- All Implemented Interfaces:
- Choice
public class List
- extends Screen
- implements Choice
- Author:
- Andre Nijholt
Fields inherited from class javax.microedition.lcdui.Displayable |
cmdListener, commands, height, KEY_BACK, KEY_ENTER, KEY_LEFT, KEY_RIGHT, shown, ticker, title, width |
Methods inherited from class javax.microedition.lcdui.Displayable |
addCommand, callCommandListener, clearPaintRequest, getHeight, getPaintRequest, getTicker, getTitle, getWidth, isShown, removeCommand, repaint, setCommandListener, setTicker, setTicker, setTitle, sizeChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
listType
protected int listType
listItems
protected ArrayList<javax.microedition.lcdui.List.ListItem> listItems
List
public List(String title,
int listType)
List
public List(String title,
int listType,
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 Screen
paint
protected void paint(Graphics g)
- Specified by:
paint
in class Screen