|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbluegammon.gui.menu.MenuPage
bluegammon.gui.BluetoothDevicePage
A page that presents nearby devices, and gives
feedback when search is active. Presentation and
callhandler to the underlying workflow, an instance of
BluetoothClientWorkflow
.
BluetoothClientWorkflow
Field Summary |
Fields inherited from class bluegammon.gui.menu.MenuPage |
LAYOUT_LEFT, LAYOUT_RIGHT |
Constructor Summary | |
BluetoothDevicePage(char[] title,
Menu menu,
PopupCanvas canvas,
SoftButtonControl softButtons)
Creates the nearby bluetooth devices page. |
Method Summary | |
void |
addItem(PageItem item)
Adds an item and repaints. |
void |
commandAction(javax.microedition.lcdui.Command c,
javax.microedition.lcdui.Displayable d)
Called from softbutton control. |
boolean |
isSearching()
Returns whether this page displays the icon indicating device search or not. |
void |
onEnter()
Called when this page shows up. |
void |
onLeave()
Called when this page is hidden for something else. |
void |
run()
Bluetooth search animation. |
void |
setClientWorkflow(BluetoothClientWorkflow bch)
Registers the behaviour to enable when user wants to connect as client to a device listed in this page. |
void |
setSearching(boolean on)
Enables or disables the searching |
Methods inherited from class bluegammon.gui.menu.MenuPage |
getIndex, getLayout, getSelectedIndex, getTitle, getTitleImage, itemAt, removeAllItems, removeItem, removeItem, setLayout, setSelectedIndex, setTitle, setTitleImage, size |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BluetoothDevicePage(char[] title, Menu menu, PopupCanvas canvas, SoftButtonControl softButtons)
title
- The title of the page.menu
- The menu this page belongs to.canvas
- The canvas this page is drawed upon.softButtons
- The softbutton control used in above canvas.Method Detail |
public void addItem(PageItem item)
addItem
in class MenuPage
item
- The item to add.public void setClientWorkflow(BluetoothClientWorkflow bch)
bch
- The workflow for connecting to a device as client.public boolean isSearching()
public void setSearching(boolean on)
on
- public void onEnter()
onEnter
in interface FocusablePage
public void onLeave()
onLeave
in interface FocusablePage
public void commandAction(javax.microedition.lcdui.Command c, javax.microedition.lcdui.Displayable d)
commandAction
in interface javax.microedition.lcdui.CommandListener
public void run()
run
in interface java.lang.Runnable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |