uk.co.silentsoftware.ui.views
Class BluetoothListView

java.lang.Object
  extended by javax.microedition.lcdui.Displayable
      extended by javax.microedition.lcdui.Screen
          extended by javax.microedition.lcdui.List
              extended by uk.co.silentsoftware.ui.views.AbstractListView
                  extended by uk.co.silentsoftware.ui.views.BluetoothListView
All Implemented Interfaces:
javax.microedition.lcdui.Choice, javax.microedition.lcdui.CommandListener

public class BluetoothListView
extends AbstractListView
implements javax.microedition.lcdui.CommandListener

A view to choose a bluetooth GPS device. This view is not an option on any menu but is called directly from the BluetoothGPSReader


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
BluetoothListView(javax.microedition.midlet.MIDlet parent)
          Populate and show this list of devices
 
Method Summary
 void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable d)
          Set the chosen device and initiate a connection
 void setReader(BluetoothGPSReader reader)
           
 
Methods inherited from class uk.co.silentsoftware.ui.views.AbstractListView
displayList
 
Methods inherited from class javax.microedition.lcdui.List
append, delete, deleteAll, getFitPolicy, getFont, getImage, getSelectedFlags, getSelectedIndex, getString, getTicker, insert, isSelected, removeCommand, set, setFitPolicy, setFont, setSelectCommand, setSelectedFlags, setSelectedIndex, setTicker, setTitle, size
 
Methods inherited from class javax.microedition.lcdui.Displayable
addCommand, getHeight, getTitle, getWidth, isShown, setCommandListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BluetoothListView

public BluetoothListView(javax.microedition.midlet.MIDlet parent)
Populate and show this list of devices

Parameters:
parent -
Method Detail

commandAction

public void commandAction(javax.microedition.lcdui.Command c,
                          javax.microedition.lcdui.Displayable d)
Set the chosen device and initiate a connection

Specified by:
commandAction in interface javax.microedition.lcdui.CommandListener

setReader

public void setReader(BluetoothGPSReader reader)