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.StringgetLabel()java.lang.ObjectgetValue()voidsetLabel(java.lang.String label)voidsetValue(java.lang.Object value)JSONObjecttoJson()
-
-
-
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:
toJsonin interfaceComponentData- Throws:
JSONException
-
-