Class: $.JsonDataResourcesView

Inherits:
WatchUi.View show all

Overview

Show the current JSON Resource

Typedef Summary collapse

Instance Member Summary collapse

Instance Method Summary collapse

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

Parameters:

  • array —

    Array from JSON Resources

Returns:

  • String representation of the array

getDictionaryDisplayString(dictionary as Lang.Dictionary<Lang.String, JsonDataResourcesView.JsonResourceType>) as Lang.String

Get a display string for a dictionary

Parameters:

  • dictionary —

    Dictionary from JSON Resources

Returns:

  • String representation of the dictionary

getDisplayString(item as JsonDataResourcesView.JsonResourceType) as Lang.String

Get a display string for the current object

Parameters:

  • item —

    A loaded JSON Resource

Returns:

  • String representation of the item

initialize()

Constructor

loadJsonRecord(resourceId as Lang.ResourceId) as Void

Load a JSON resource record into _curLoadedResource

Parameters:

  • resourceId —

    Resource identifier for the record

onHide() as Void

Handle view being hidden

onLayout(dc as Graphics.Dc) as Void

Load your resources here

Parameters:

  • dc —

    Device context

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

Parameters:

  • dc —

    Device context


Generated Oct 20, 2026, 8:20:41 AM