st
Class LocationList
java.lang.Object
|
+--javax.microedition.lcdui.Displayable
|
+--javax.microedition.lcdui.Screen
|
+--javax.microedition.lcdui.List
|
+--st.LocationList
- All Implemented Interfaces:
- javax.microedition.lcdui.Choice
- public class LocationList
- extends javax.microedition.lcdui.List
A list of locations where a movie can be seen.
Fields inherited from class javax.microedition.lcdui.List |
SELECT_COMMAND |
Fields inherited from interface javax.microedition.lcdui.Choice |
EXCLUSIVE, IMPLICIT, MULTIPLE |
Method Summary |
void |
addLocation(int id,
java.lang.String location)
Add a location to this list, and map it to the given ID. |
java.lang.String |
getLocation()
|
int |
getLocationID()
|
void |
init(int size)
Initialize this list to contain the given number of items. |
Methods inherited from class javax.microedition.lcdui.List |
append, delete, getImage, getSelectedFlags, getSelectedIndex, getString, insert, isSelected, set, setSelectedFlags, setSelectedIndex, size |
Methods inherited from class javax.microedition.lcdui.Screen |
getTicker, getTitle, setTicker, setTitle |
Methods inherited from class javax.microedition.lcdui.Displayable |
addCommand, isShown, removeCommand, setCommandListener |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LocationList
public LocationList()
init
public void init(int size)
- Initialize this list to contain the given number of items.
- Parameters:
the
- size of this list.
addLocation
public void addLocation(int id,
java.lang.String location)
- Add a location to this list, and map it to the given ID.
- Parameters:
id
- the ID of the location.location
- the name of the location.
getLocationID
public int getLocationID()
getLocation
public java.lang.String getLocation()
Copyright © 2002 Sun Microsystems Inc. All rights reserved.