Class AbstractActionStepDelegate
- java.lang.Object
- 
- com.inductiveautomation.sfc.elements.steps.action.AbstractActionStepDelegate
 
- 
- All Implemented Interfaces:
- StepDelegate,- ActionStepProperties,- ChartStepProperties
 - Direct Known Subclasses:
- ActionStepUI.ActionStepFactory
 
 public class AbstractActionStepDelegate extends java.lang.Object implements StepDelegate, ActionStepProperties 
- 
- 
Field Summary- 
Fields inherited from interface com.inductiveautomation.sfc.elements.steps.action.ActionStepPropertiesERROR_HANDLER_SCRIPT, FACTORY_ID, NOTES, ON_ERROR, ON_START, ON_STOP, ON_TIMER, START_SCRIPT, STOP_SCRIPT, TIMER_SCRIPTS
 - 
Fields inherited from interface com.inductiveautomation.sfc.elements.steps.ChartStepPropertiesAssociatedData, Breakpoint, FactoryId, Name
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractActionStepDelegate()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfromXml(org.w3c.dom.Element domElement, ChartUIElement uiElement)Given an XML DOM element, fill in the properties of theChartUIElement.java.util.List<Property<?>>getCompilationAlteringProperties()java.lang.StringgetId()voidtoXml(javax.xml.stream.XMLStreamWriter writer, ChartUIElement element, java.lang.String tab)Serialize the given element (which is guaranteed to be a step element of this factory's type) to the stream writer.voidvalidate(ChartUIElement element, ChartCompilationResults results)Provides step implementations a chance to validate their settings.
 
- 
- 
- 
Method Detail- 
getIdpublic java.lang.String getId() - Specified by:
- getIdin interface- StepDelegate
- Returns:
- A unique string that identifies this kind of step, for example: "com.company.foostep".
 
 - 
toXmlpublic void toXml(javax.xml.stream.XMLStreamWriter writer, ChartUIElement element, java.lang.String tab) throws javax.xml.stream.XMLStreamExceptionDescription copied from interface:StepDelegateSerialize the given element (which is guaranteed to be a step element of this factory's type) to the stream writer. Common step attributes (type, id, name, size, location) will have already been serialized, meaning, the xml stream will have just written the open <step> element. Close any elements you open.- Specified by:
- toXmlin interface- StepDelegate
- Parameters:
- writer- the- XMLStreamWriterto write to.
- element- the- ChartUIElementto serialize.
- Throws:
- javax.xml.stream.XMLStreamException
 
 - 
fromXmlpublic void fromXml(org.w3c.dom.Element domElement, ChartUIElement uiElement) throws XmlParseExceptionDescription copied from interface:StepDelegateGiven an XML DOM element, fill in the properties of theChartUIElement. Just like for serializing, the id, location, and name will have already been handled.- Specified by:
- fromXmlin interface- StepDelegate
- Parameters:
- domElement- the XML DOM element.
- uiElement- the- ChartUIElementto deserialize.
- Throws:
- XmlParseException
 
 - 
getCompilationAlteringPropertiespublic java.util.List<Property<?>> getCompilationAlteringProperties() - Specified by:
- getCompilationAlteringPropertiesin interface- StepDelegate
- Returns:
- a list of properties that may alter this step's compilation validation.
 
 - 
validatepublic void validate(ChartUIElement element, ChartCompilationResults results) Description copied from interface:StepDelegateProvides step implementations a chance to validate their settings. If the settings are invalid, they should add an error to the compilation results.- Specified by:
- validatein interface- StepDelegate
- Parameters:
- element- the- ChartUIElementto validate.
- results- the- ChartCompilationResults.
 
 
- 
 
-