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 SummaryConstructors Constructor Description StaticGaugeData(java.lang.Object value, java.lang.String label)
 - 
Method SummaryAll 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- 
getValuepublic java.lang.Object getValue() 
 - 
setValuepublic void setValue(@Nonnull java.lang.Object value)
 - 
getLabelpublic java.lang.String getLabel() 
 - 
setLabelpublic void setLabel(java.lang.String label) 
 - 
toJsonpublic JSONObject toJson() throws JSONException - Specified by:
- toJsonin interface- ComponentData
- Throws:
- JSONException
 
 
- 
 
-