Package ca.phon.app.opgraph.nodes.table
Class TableScriptNode
java.lang.Object
ca.phon.opgraph.OpNode
ca.phon.app.opgraph.nodes.table.TableOpNode
ca.phon.app.opgraph.nodes.table.TableScriptNode
- All Implemented Interfaces:
ScriptNode
,ca.phon.opgraph.app.extensions.NodeSettings
,ca.phon.opgraph.dag.Vertex
,ca.phon.opgraph.extensions.Extendable
- Direct Known Subclasses:
AddColumnNode
public class TableScriptNode
extends TableOpNode
implements ca.phon.opgraph.app.extensions.NodeSettings, ScriptNode
Base class for script operations on tables. This node looks for
the function 'tableOp(context, table)' in the user-provided script.
Output table will be same object as input table.
-
Field Summary
Fields inherited from class ca.phon.app.opgraph.nodes.table.TableOpNode
tableInput, tableOutput
Fields inherited from class ca.phon.opgraph.OpNode
CATEGORY_PROPERTY, COMPLETED_FIELD, DESCRIPTION_PROPERTY, ENABLED_FIELD, ID_PROPERTY, NAME_PROPERTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected JComponent
getComponent
(ca.phon.opgraph.app.GraphDocument document) static ResourceLoader<URL>
void
loadSettings
(Properties properties) void
operate
(ca.phon.opgraph.OpContext context) void
Reload the input/output fields from the script.ca.phon.opgraph.OpNode
toOpNode()
Methods inherited from class ca.phon.app.opgraph.nodes.table.TableOpNode
getColumnIndex, getColumnIndices, getInputTable, setTableOutput
Methods inherited from class ca.phon.opgraph.OpNode
addNodeListener, checkCanceled, getCategory, getDefaultCategory, getDefaultDescription, getDefaultName, getDescription, getExtension, getExtensionClasses, getId, getInputFields, getInputFieldWithKey, getName, getOutputFields, getOutputFieldWithKey, isBreakpoint, isCanceled, putExtension, putField, putField, putField, putField, removeAllInputFields, removeAllOutputFields, removeField, removeField, removeNodeListener, setBreakpoint, setCanceled, setCategory, setDescription, setId, setName
-
Constructor Details
-
TableScriptNode
public TableScriptNode() -
TableScriptNode
-
TableScriptNode
-
-
Method Details
-
getTableScriptResourceLoader
-
getScript
- Specified by:
getScript
in interfaceScriptNode
-
getScriptPanel
- Specified by:
getScriptPanel
in interfaceScriptNode
-
toOpNode
public ca.phon.opgraph.OpNode toOpNode()- Specified by:
toOpNode
in interfaceScriptNode
-
reloadFields
public void reloadFields()Reload the input/output fields from the script.- Specified by:
reloadFields
in interfaceScriptNode
-
getComponent
- Specified by:
getComponent
in interfaceca.phon.opgraph.app.extensions.NodeSettings
-
createSettingsPanel
-
getSettings
- Specified by:
getSettings
in interfaceca.phon.opgraph.app.extensions.NodeSettings
-
loadSettings
- Specified by:
loadSettings
in interfaceca.phon.opgraph.app.extensions.NodeSettings
-
operate
public void operate(ca.phon.opgraph.OpContext context) throws ca.phon.opgraph.exceptions.ProcessingException - Specified by:
operate
in classca.phon.opgraph.OpNode
- Throws:
ca.phon.opgraph.exceptions.ProcessingException
-