Class Garmin.DeviceDisplay

Object
   |
   +--Garmin.DeviceDisplay

class Garmin.DeviceDisplay


Garmin.DeviceDisplay
Defined in GarminDeviceDisplay.js

Requires:


Field Summary
<static>  Object CONST
          
 
Constructor Summary
Garmin.DeviceDisplay(<String> mainElement, <Object> options)
            Provides the easiest avenue for getting a working instance of the plug-in onto your page.
 
Method Summary
 Object _createElement(id, text, type, parent)
          
 void cancelFindDevices()
           Entry point for cancelling search for connected devices.
 void clearMapDisplay()
           Clears overlays from map.
 void displayTrack(<Garmin.Track> track)
           Draws a simple line on the map using the Garmin.MapController.
 void displayWayPoint(wpt)
           Draws a point (usualy as a thumb tack) on the map using the Garmin.MapController.
 {Array[Garmin.Track]} getTracks()
           Returns an array of tracks.
 {Array[Garmin.WayPoint]} getWaypoints()
           Returns an array of waypoints.
 void handleException(<Error> error)
           Central exception dispatch method, default is to If customExceptionHandler is defined, all error handling is delegated to that method.
 void hideProgressBar()
           Hides progress bar.
 void initialize(mainElement, options)
          
 Boolean isUnlocked()
           Plugin unlock status
 void onCancelFindDevices(json)
           Call-back for find device cancelled.
 void onCancelReadFromDevice(json)
           Call-back for device read cancelled.
 void onCancelWriteToDevice(json)
           Call-back triggered when write has been cancelled.
 void onException(json)
           Call-back for asynchronous method exceptions.
 void onFinishFindDevices(json)
           Call-back triggered after plugin has completed its search for devices.
 void onFinishReadFromDevice(json)
           Call-back for device read.
 void onFinishWriteToDevice(json)
          
 void onProgressReadFromDevice(json)
           Call-back for device read progress.
 void onProgressWriteToDevice(json)
          
 void onStartFindDevices(json)
           Call-back triggered before plugin searches for connected devices.
 void onStartWriteToDevice(json)
           Call-back triggered before writing to a device.
 void onWaitingWriteToDevice(json)
           Call-back when the device already has a file with this name on it.
 void readFromDevice()
           Initiation call for reading from a device.
 void readSpecificTypeFromDevice(<String> extension)
           Initiation call for reading from a device.
 void resetUI(statusMsg)
           Resets UI widgets based on state of application.
 void setOptions(<Object> options)
           Sets options for this display object.
 void setStatus(statusText)
           Set status text if showStatusElement is visible.
 void showProgressBar()
           Makes progress bar visible.
 void startFindDevices()
           Entry point for searching for connected devices.
 void updateProgressBar(value)
           Update percentage representation of progress bar.

Field Detail

CONST

<static> Object CONST

Constructor Detail

Garmin.DeviceDisplay

Garmin.DeviceDisplay(<String> mainElement, <Object> options)

Method Detail

_createElement

Object _createElement(id, text, type, parent)

cancelFindDevices

void cancelFindDevices()

clearMapDisplay

void clearMapDisplay()

displayTrack

void displayTrack(<Garmin.Track> track)

displayWayPoint

void displayWayPoint(wpt)

getTracks

{Array[Garmin.Track]} getTracks()

getWaypoints

{Array[Garmin.WayPoint]} getWaypoints()

handleException

void handleException(<Error> error)

hideProgressBar

void hideProgressBar()

initialize

void initialize(mainElement, options)

isUnlocked

Boolean isUnlocked()

onCancelFindDevices

void onCancelFindDevices(json)

onCancelReadFromDevice

void onCancelReadFromDevice(json)

onCancelWriteToDevice

void onCancelWriteToDevice(json)

onException

void onException(json)

onFinishFindDevices

void onFinishFindDevices(json)

onFinishReadFromDevice

void onFinishReadFromDevice(json)

onFinishWriteToDevice

void onFinishWriteToDevice(json)

onProgressReadFromDevice

void onProgressReadFromDevice(json)

onProgressWriteToDevice

void onProgressWriteToDevice(json)

onStartFindDevices

void onStartFindDevices(json)

onStartWriteToDevice

void onStartWriteToDevice(json)

onWaitingWriteToDevice

void onWaitingWriteToDevice(json)

readFromDevice

void readFromDevice()

readSpecificTypeFromDevice

void readSpecificTypeFromDevice(<String> extension)

resetUI

void resetUI(statusMsg)

setOptions

void setOptions(<Object> options)

setStatus

void setStatus(statusText)

showProgressBar

void showProgressBar()

startFindDevices

void startFindDevices()

updateProgressBar

void updateProgressBar(value)


Documentation generated by JSDoc on Tue May 29 09:15:02 2007