Class WizardExtension

java.lang.Object
ca.phon.app.opgraph.wizard.WizardExtension
All Implemented Interfaces:
Cloneable, Iterable<ca.phon.opgraph.OpNode>
Direct Known Subclasses:
AnalysisWizardExtension, ReportWizardExtension

public class WizardExtension extends Object implements Iterable<ca.phon.opgraph.OpNode>, Cloneable
Provides a wizard for an OpGraph. Nodes are selected and ordered in the editor and the settings panel for each node (if available) will be presented as a step inside the wizard.
  • Field Details

  • Constructor Details

    • WizardExtension

      public WizardExtension(ca.phon.opgraph.OpGraph graph)
  • Method Details

    • createWizard

      public NodeWizard createWizard()
    • createWizard

      public NodeWizard createWizard(ca.phon.opgraph.Processor processor)
    • getGraph

      public ca.phon.opgraph.OpGraph getGraph()
    • size

      public int size()
    • containsNode

      public boolean containsNode(ca.phon.opgraph.OpNode o)
    • iterator

      public Iterator<ca.phon.opgraph.OpNode> iterator()
      Specified by:
      iterator in interface Iterable<ca.phon.opgraph.OpNode>
    • addNode

      public boolean addNode(ca.phon.opgraph.OpNode e)
    • indexOf

      public int indexOf(ca.phon.opgraph.OpNode e)
    • removeNode

      public boolean removeNode(Object o)
    • clear

      public void clear()
    • getNode

      public ca.phon.opgraph.OpNode getNode(int index)
    • setNodeForced

      public void setNodeForced(ca.phon.opgraph.OpNode node, boolean forced)
    • isNodeForced

      public boolean isNodeForced(ca.phon.opgraph.OpNode node)
    • removeNode

      public ca.phon.opgraph.OpNode removeNode(int index)
    • setNodeTitle

      public void setNodeTitle(ca.phon.opgraph.OpNode node, String title)
    • getOptionalNode

      public ca.phon.opgraph.OpNode getOptionalNode(int index)
    • addOptionalNode

      public void addOptionalNode(ca.phon.opgraph.OpNode node)
    • removeOptionalNode

      public ca.phon.opgraph.OpNode removeOptionalNode(int index)
    • removeOptionalNode

      public boolean removeOptionalNode(ca.phon.opgraph.OpNode node)
    • getOptionalNodeCount

      public int getOptionalNodeCount()
    • getOptionalNodes

      public List<ca.phon.opgraph.OpNode> getOptionalNodes()
    • getOptionalNodeDefaults

      public Map<ca.phon.opgraph.OpNode,Boolean> getOptionalNodeDefaults()
    • setOptionalNodeDefault

      public void setOptionalNodeDefault(ca.phon.opgraph.OpNode node, boolean enabled)
    • getOptionalNodeDefault

      public boolean getOptionalNodeDefault(ca.phon.opgraph.OpNode node)
    • isNodeOptional

      public boolean isNodeOptional(ca.phon.opgraph.OpNode node)
    • getNodeTitle

      public String getNodeTitle(ca.phon.opgraph.OpNode node)
    • setNodeMessage

      public void setNodeMessage(ca.phon.opgraph.OpNode node, String message)
    • setNodeMessage

      public void setNodeMessage(ca.phon.opgraph.OpNode node, String message, WizardInfoMessageFormat format)
    • getNodeMessage

      public String getNodeMessage(ca.phon.opgraph.OpNode node)
    • getNodeMessageFormat

      public WizardInfoMessageFormat getNodeMessageFormat(ca.phon.opgraph.OpNode node)
    • getNodeInfo

      public NodeInfo getNodeInfo(ca.phon.opgraph.OpNode node)
    • setWizardTitle

      public void setWizardTitle(String title)
    • getWizardTitle

      public String getWizardTitle()
    • setWizardMessage

      public void setWizardMessage(String message)
    • setWizardMessage

      public void setWizardMessage(String message, WizardInfoMessageFormat format)
    • getWizardMessage

      public String getWizardMessage()
    • getWizardMessageFormat

      public WizardInfoMessageFormat getWizardMessageFormat()
    • getWizardInfo

      public WizardInfo getWizardInfo()
    • setupReportContext

      public void setupReportContext(NodeWizardReportContext context)
      Setup a map of object which will be added to the report generator context.
      Parameters:
      context -
    • clone

      protected Object clone()
      Overrides:
      clone in class Object
    • addWizardExtensionListener

      public void addWizardExtensionListener(WizardExtensionListener listener)
    • removeWizardExtensionListener

      public void removeWizardExtensionListener(WizardExtensionListener listener)
    • getWizardExtensionListeners

      public List<WizardExtensionListener> getWizardExtensionListeners()
    • fireTitleChangedEvent

      public void fireTitleChangedEvent(String oldTitle, String newTitle)
    • fireNodeTitleChangedEvent

      public void fireNodeTitleChangedEvent(ca.phon.opgraph.OpNode node, String oldTitle, String newTitle)
    • fireNodeEvent

      public void fireNodeEvent(WizardExtensionEvent.EventType eventType, ca.phon.opgraph.OpNode node)