Class: $.JsonDataResourcesView
- Inherits:
-
WatchUi.View
-
WatchUi.View
-
Overview
Show the current JSON Resource
Typedef Summary collapse
- JsonResourceType as Lang.Numeric or Lang.String or Lang.Array<JsonDataResourcesView.JsonResourceType> or Lang.Dictionary<Lang.String, JsonDataResourcesView.JsonResourceType>
Instance Member Summary collapse
Instance Method Summary collapse
-
getArrayDisplayString(array as Lang.Array<JsonDataResourcesView.JsonResourceType>) as Lang.String
Get a display string for an array.
-
getDictionaryDisplayString(dictionary as Lang.Dictionary<Lang.String, JsonDataResourcesView.JsonResourceType>) as Lang.String
Get a display string for a dictionary.
-
getDisplayString(item as JsonDataResourcesView.JsonResourceType) as Lang.String
Get a display string for the current object.
-
initialize()
Constructor.
-
loadJsonRecord(resourceId as Lang.ResourceId) as Void
Load a JSON resource record into _curLoadedResource.
-
onHide() as Void
Handle view being hidden.
-
onLayout(dc as Graphics.Dc) as Void
Load your resources here.
-
onShow() as Void
Restore the state of this View and prepare the view to be shown.
-
onUpdate(dc as Graphics.Dc) as Void
Update the view.
Typedef Details
JsonResourceType as Lang.Numeric or Lang.String or Lang.Array<JsonDataResourcesView.JsonResourceType> or Lang.Dictionary<Lang.String, JsonDataResourcesView.JsonResourceType>
Instance Attribute Details
var _curLoadedJsonResource as JsonDataResourcesView.JsonResourceType or Null
Instance Method Details
getArrayDisplayString(array as Lang.Array<JsonDataResourcesView.JsonResourceType>) as Lang.String
Get a display string for an array
getDictionaryDisplayString(dictionary as Lang.Dictionary<Lang.String, JsonDataResourcesView.JsonResourceType>) as Lang.String
Get a display string for a dictionary
getDisplayString(item as JsonDataResourcesView.JsonResourceType) as Lang.String
Get a display string for the current object
initialize()
Constructor
loadJsonRecord(resourceId as Lang.ResourceId) as Void
Load a JSON resource record into _curLoadedResource
onHide() as Void
Handle view being hidden
onLayout(dc as Graphics.Dc) as Void
Load your resources here
onShow() as Void
Restore the state of this View and prepare the view to be shown
onUpdate(dc as Graphics.Dc) as Void
Update the view