Package ca.phon.app.opgraph.wizard
Class WizardExtension
java.lang.Object
ca.phon.app.opgraph.wizard.WizardExtension
- Direct Known Subclasses:
AnalysisWizardExtension
,ReportWizardExtension
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
addNode
(ca.phon.opgraph.OpNode e) void
addOptionalNode
(ca.phon.opgraph.OpNode node) void
void
clear()
protected Object
clone()
boolean
containsNode
(ca.phon.opgraph.OpNode o) createWizard
(ca.phon.opgraph.Processor processor) void
fireNodeEvent
(WizardExtensionEvent.EventType eventType, ca.phon.opgraph.OpNode node) void
fireNodeTitleChangedEvent
(ca.phon.opgraph.OpNode node, String oldTitle, String newTitle) void
fireTitleChangedEvent
(String oldTitle, String newTitle) ca.phon.opgraph.OpGraph
getGraph()
ca.phon.opgraph.OpNode
getNode
(int index) getNodeInfo
(ca.phon.opgraph.OpNode node) getNodeMessage
(ca.phon.opgraph.OpNode node) getNodeMessageFormat
(ca.phon.opgraph.OpNode node) getNodeTitle
(ca.phon.opgraph.OpNode node) ca.phon.opgraph.OpNode
getOptionalNode
(int index) int
boolean
getOptionalNodeDefault
(ca.phon.opgraph.OpNode node) List<ca.phon.opgraph.OpNode>
int
indexOf
(ca.phon.opgraph.OpNode e) boolean
isNodeForced
(ca.phon.opgraph.OpNode node) boolean
isNodeOptional
(ca.phon.opgraph.OpNode node) Iterator<ca.phon.opgraph.OpNode>
iterator()
ca.phon.opgraph.OpNode
removeNode
(int index) boolean
removeNode
(Object o) ca.phon.opgraph.OpNode
removeOptionalNode
(int index) boolean
removeOptionalNode
(ca.phon.opgraph.OpNode node) void
void
setNodeForced
(ca.phon.opgraph.OpNode node, boolean forced) void
setNodeMessage
(ca.phon.opgraph.OpNode node, String message) void
setNodeMessage
(ca.phon.opgraph.OpNode node, String message, WizardInfoMessageFormat format) void
setNodeTitle
(ca.phon.opgraph.OpNode node, String title) void
setOptionalNodeDefault
(ca.phon.opgraph.OpNode node, boolean enabled) void
Setup a map of object which will be added to the report generator context.void
setWizardMessage
(String message) void
setWizardMessage
(String message, WizardInfoMessageFormat format) void
setWizardTitle
(String title) int
size()
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
WIZARDEXT_CTX_KEY
- See Also:
-
OPGRAPH_CTX_KEY
- See Also:
-
-
Constructor Details
-
WizardExtension
public WizardExtension(ca.phon.opgraph.OpGraph graph)
-
-
Method Details
-
createWizard
-
createWizard
-
getGraph
public ca.phon.opgraph.OpGraph getGraph() -
size
public int size() -
containsNode
public boolean containsNode(ca.phon.opgraph.OpNode o) -
iterator
-
addNode
public boolean addNode(ca.phon.opgraph.OpNode e) -
indexOf
public int indexOf(ca.phon.opgraph.OpNode e) -
removeNode
-
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
-
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
-
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
-
setNodeMessage
-
setNodeMessage
public void setNodeMessage(ca.phon.opgraph.OpNode node, String message, WizardInfoMessageFormat format) -
getNodeMessage
-
getNodeMessageFormat
-
getNodeInfo
-
setWizardTitle
-
getWizardTitle
-
setWizardMessage
-
setWizardMessage
-
getWizardMessage
-
getWizardMessageFormat
-
getWizardInfo
-
setupReportContext
Setup a map of object which will be added to the report generator context.- Parameters:
context
-
-
clone
-
addWizardExtensionListener
-
removeWizardExtensionListener
-
getWizardExtensionListeners
-
fireTitleChangedEvent
-
fireNodeTitleChangedEvent
-
fireNodeEvent
-