example.pim
Class ItemSelectionScreen

java.lang.Object
  extended by javax.microedition.lcdui.Displayable
      extended by javax.microedition.lcdui.Screen
          extended by javax.microedition.lcdui.List
              extended by example.pim.ItemSelectionScreen
All Implemented Interfaces:
javax.microedition.lcdui.Choice, javax.microedition.lcdui.CommandListener

public class ItemSelectionScreen
extends javax.microedition.lcdui.List
implements javax.microedition.lcdui.CommandListener

Demonstrate the use of JSR 75 PIM APIs


Field Summary
 
Fields inherited from class javax.microedition.lcdui.List
SELECT_COMMAND
 
Fields inherited from interface javax.microedition.lcdui.Choice
EXCLUSIVE, IMPLICIT, MULTIPLE, POPUP, TEXT_WRAP_DEFAULT, TEXT_WRAP_OFF, TEXT_WRAP_ON
 
Constructor Summary
ItemSelectionScreen(PIMDemo midlet, javax.microedition.lcdui.Displayable caller, int listType, javax.microedition.pim.PIMList list)
           
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command command, javax.microedition.lcdui.Displayable displayable)
           
(package private)  void fixDisplayedField(javax.microedition.pim.PIMItem item)
           
(package private)  java.lang.String getDisplayedField(javax.microedition.pim.PIMItem item)
           
(package private)  int getDisplayedFieldCode()
           
(package private)  void populateList()
           
 
Methods inherited from class javax.microedition.lcdui.List
append, delete, deleteAll, getFitPolicy, getFont, getImage, getSelectedFlags, getSelectedIndex, getString, insert, isSelected, removeCommand, set, setFitPolicy, setFont, setSelectCommand, setSelectedFlags, setSelectedIndex, setTicker, setTitle, size
 
Methods inherited from class javax.microedition.lcdui.Displayable
addCommand, getHeight, getTicker, getTitle, getWidth, isShown, setCommandListener, sizeChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemSelectionScreen

public ItemSelectionScreen(PIMDemo midlet,
                           javax.microedition.lcdui.Displayable caller,
                           int listType,
                           javax.microedition.pim.PIMList list)
                    throws javax.microedition.pim.PIMException
Throws:
javax.microedition.pim.PIMException
Method Detail

populateList

void populateList()

commandAction

public void commandAction(javax.microedition.lcdui.Command command,
                          javax.microedition.lcdui.Displayable displayable)
Specified by:
commandAction in interface javax.microedition.lcdui.CommandListener

getDisplayedFieldCode

int getDisplayedFieldCode()

fixDisplayedField

void fixDisplayedField(javax.microedition.pim.PIMItem item)

getDisplayedField

java.lang.String getDisplayedField(javax.microedition.pim.PIMItem item)