Class Garmin.DeviceDisplay

Object
   |
   +--Garmin.DeviceDisplay

class Garmin.DeviceDisplay


Garmin.DeviceDisplay
Defined in GarminDeviceDisplay.js

Requires:


Field Summary
<static>  Object LINKS
          Constant defining links referenced in the DeviceDisplay
 
Constructor Summary
Garmin.DeviceDisplay(mainElement, options)
            Provides the easiest avenue for getting a working instance of the plug-in onto your page.
 
Method Summary
 void _addToActivityTable(index, activity)
           The activityTable object is the HTML table element on the demo page.
 void _applyDataFilters()
          
 Object _buildDescriptiveStatusString(statusText)
           Builds a descriptive string from the status response (typically JSON, but also can be a plain ol' string).
 void _checkAllDirectory()
           Selects all checkboxes in the activity directory, which selects all activities to be read from the device.
 void _clearActivityTable()
          
 void _createActivityDirectory()
           Creates the activity directory of all activities (activity IDs) on the device of the user-selected type.
 Object _createElement(id, text, type, parent)
          
 Object _directoryHasSelected()
           Checks if any activities in directory listing are selected.
 void _finishReadProcessing(json)
          
 void _generateActivityDirectoryElement()
          
 void _generateActivityTableElement()
          
 void _generateActivityTableHeader()
          
 void _generateSendDataElement()
          
 void _listActivities(activities)
          
 void _listDirectory(activities)
           Lists the directory and returns summary data (# of tracks).
 void _populateActivityQueue()
           Creates the activity queue of selected activities.
 void _postActivityToServer()
           Posts the last read activity data from the activityQueue using the method defined in this.options.postActivityHandler .
 void _readNextSelected()
           Reads the user-selected activities from the device by using the activity queue.
 Object _restrictByDevice()
           Checks the connected device against those listed in this.options.restrictByDevice and displays a status message if the connected device is not supported by the application.
 Garmin.Series _seriesFromSelect(select)
           Retreive the two index string value from the selected index.
 void cancelFindDevices()
           Entry point for cancelling search for connected devices.
 void clearMapDisplay()
           Clears overlays from map.
 void defaultExceptionHandler(<Error> error)
           Default exception handler method handles plug-in support/downloads/upgrades.
 void displayTrack(series)
           Draws a simple line on the map using the Garmin.MapController.
 void displayWaypoint(series)
           Draws a point (usualy as a thumb tack) on the map using the Garmin.MapController.
 void handleException(<Error> error)
           Central exception dispatch method will delegate to options.customExceptionHandler if defined or call defaultExceptionHandler otherwise.
 void hideProgressBar()
           Hides progress bar.
 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(readDataType)
           Generic read method, supporting GPX, TCX, Courses, Workouts, User Profiles, TCX activity directory, and TCX course directory reads.
 void resetUI()
           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.
 void writeToDevice()
           Writes any supported data to the device.

Field Detail

LINKS

<static> Object LINKS

Constructor Detail

Garmin.DeviceDisplay

Garmin.DeviceDisplay(mainElement, options)

Method Detail

_addToActivityTable

void _addToActivityTable(index, activity)

_applyDataFilters

void _applyDataFilters()

_buildDescriptiveStatusString

Object _buildDescriptiveStatusString(statusText)

_checkAllDirectory

void _checkAllDirectory()

_clearActivityTable

void _clearActivityTable()

_createActivityDirectory

void _createActivityDirectory()

_createElement

Object _createElement(id, text, type, parent)

_directoryHasSelected

Object _directoryHasSelected()

_finishReadProcessing

void _finishReadProcessing(json)

_generateActivityDirectoryElement

void _generateActivityDirectoryElement()

_generateActivityTableElement

void _generateActivityTableElement()

_generateActivityTableHeader

void _generateActivityTableHeader()

_generateSendDataElement

void _generateSendDataElement()

_listActivities

void _listActivities(activities)

_listDirectory

void _listDirectory(activities)

_populateActivityQueue

void _populateActivityQueue()

_postActivityToServer

void _postActivityToServer()

_readNextSelected

void _readNextSelected()

_restrictByDevice

Object _restrictByDevice()

_seriesFromSelect

Garmin.Series _seriesFromSelect(select)

cancelFindDevices

void cancelFindDevices()

clearMapDisplay

void clearMapDisplay()

defaultExceptionHandler

void defaultExceptionHandler(<Error> error)

displayTrack

void displayTrack(series)

displayWaypoint

void displayWaypoint(series)

handleException

void handleException(<Error> error)

hideProgressBar

void hideProgressBar()

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(readDataType)

resetUI

void resetUI()

setOptions

void setOptions(<Object> options)

setStatus

void setStatus(statusText)

showProgressBar

void showProgressBar()

startFindDevices

void startFindDevices()

updateProgressBar

void updateProgressBar(value)

writeToDevice

void writeToDevice()


Documentation generated by JSDoc on Wed Apr 9 16:12:40 2008