Package com.inductiveautomation.perspective.common
package com.inductiveautomation.perspective.common
-
ClassDescriptionConvenience class for ensuring that a json object structure has expected members in it.A utility class that parses a json file adding components to a static map of componentTypeId: JsonObject, given that* the json file contains either a single json component definition, or array of json component definitions associated* with a "components" property inside the root of the json object, where a 'json component definition' is a valid json* object string like:
{ "id" : "ia.input.button", "palette" : { "name": "Button", "category": "input" }, "props": { "aName": "somePropertyValue" }, "resources": [ { "name": "someComponentLib-js", // unique name of the resource "path": "/main/data/myModuleAlias/js/someComponentLib.js", // url to the resource file "type": "js" // type of resource, such as 'js' or 'css' } ] }
Parameters posted to designer pageCreated by carlg on 12/29/2016.RPC calls specific to a Designer session of PerspectiveContains common configuration and const definitions for things like module ID, and also provides a registry for components.RPC Interface for the Perspective Module.Abstract JsonDeserializer that will use the default Gson reflective deserialization logic, and then let subclasses perform further logic on the deserialized object.Helper class that helps gson serializers make JsonObject instances and avoid serializing null fields where omitting them would make for a cleaner serialized object.