Class ChartStateEvent
- java.lang.Object
-
- com.inductiveautomation.sfc.recorder.Event
-
- com.inductiveautomation.sfc.recorder.ChartStatusEvent
-
- com.inductiveautomation.sfc.recorder.ChartStateEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class ChartStateEvent extends ChartStatusEvent
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TYPEID
-
Constructor Summary
Constructors Constructor Description ChartStateEvent()
ChartStateEvent(ChartStateEnum prev, ChartStateEnum cur, ChartStatus status)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
fromJson(JSONObject object)
ChartStateEnum
getCurrentState()
ChartStateEnum
getPreviousState()
java.lang.String
getType()
protected void
toJson(JSONObject object)
-
Methods inherited from class com.inductiveautomation.sfc.recorder.ChartStatusEvent
getElementStatusType, getStatus
-
Methods inherited from class com.inductiveautomation.sfc.recorder.Event
createFrom, getTimestamp, toJson
-
-
-
-
Field Detail
-
TYPEID
public static final java.lang.String TYPEID
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ChartStateEvent
public ChartStateEvent(ChartStateEnum prev, ChartStateEnum cur, ChartStatus status)
-
ChartStateEvent
public ChartStateEvent()
-
-
Method Detail
-
getType
public java.lang.String getType()
- Overrides:
getType
in classChartStatusEvent
-
getPreviousState
public ChartStateEnum getPreviousState()
-
getCurrentState
public ChartStateEnum getCurrentState()
-
toJson
protected void toJson(JSONObject object) throws JSONException
- Overrides:
toJson
in classChartStatusEvent
- Throws:
JSONException
-
fromJson
protected void fromJson(JSONObject object) throws JSONException
- Overrides:
fromJson
in classChartStatusEvent
- Throws:
JSONException
-
-