Class StaticGaugeData
- java.lang.Object
-
- com.inductiveautomation.ignition.gateway.web.components.react.StaticGaugeData
-
- All Implemented Interfaces:
ComponentData
public class StaticGaugeData extends java.lang.Object implements ComponentData
Filename: StaticGaugeData.java Created on Apr 11, 2016 Author: Kathy Applebaum Copyright Inductive Automation 2016 Project: gateway-apiAllows a static value and description that will then be formatted in a way that gauge.js likes. This should be rarely used -- MetricsGaugeData should be used instead. The JSON is built with the value's toString, so make sure this is what you want on the screen.
-
-
Constructor Summary
Constructors Constructor Description StaticGaugeData(java.lang.Object value, java.lang.String label)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getLabel()
java.lang.Object
getValue()
void
setLabel(java.lang.String label)
void
setValue(java.lang.Object value)
JSONObject
toJson()
-
-
-
Method Detail
-
getValue
public java.lang.Object getValue()
-
setValue
public void setValue(@Nonnull java.lang.Object value)
-
getLabel
public java.lang.String getLabel()
-
setLabel
public void setLabel(java.lang.String label)
-
toJson
public JSONObject toJson() throws JSONException
- Specified by:
toJson
in interfaceComponentData
- Throws:
JSONException
-
-