st
Class ShowtimeList

java.lang.Object
  |
  +--javax.microedition.lcdui.Displayable
        |
        +--javax.microedition.lcdui.Screen
              |
              +--javax.microedition.lcdui.List
                    |
                    +--st.ShowtimeList
All Implemented Interfaces:
javax.microedition.lcdui.Choice

public class ShowtimeList
extends javax.microedition.lcdui.List

A list of showtimes.


Fields inherited from class javax.microedition.lcdui.List
SELECT_COMMAND
 
Fields inherited from interface javax.microedition.lcdui.Choice
EXCLUSIVE, IMPLICIT, MULTIPLE
 
Constructor Summary
ShowtimeList()
           
 
Method Summary
 void addShowtime(int id, java.lang.String showtime)
          Add the given showtime to the list, corresponding to the given ID.
 int getShowID()
          Return the ID of the selected show.
 java.lang.String getShowtime()
          Return the time of the selected show.
 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
 

Constructor Detail

ShowtimeList

public ShowtimeList()
Method Detail

init

public void init(int size)
Initialize this list to contain the given number of items.
Parameters:
the - size of this list.

addShowtime

public void addShowtime(int id,
                        java.lang.String showtime)
Add the given showtime to the list, corresponding to the given ID.
Parameters:
the - ID of the showtime to add.
the - time of the show to add.

getShowID

public int getShowID()
Return the ID of the selected show.

getShowtime

public java.lang.String getShowtime()
Return the time of the selected show.


Copyright © 2002 Sun Microsystems Inc. All rights reserved.