Class ScriptEditorFactory
java.lang.Object
ca.phon.app.script.ScriptEditorFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.fife.ui.rtextarea.RTextScrollPaneCreate editor for script including appropriate scroll pane.static org.fife.ui.rtextarea.RTextScrollPanecreateEditorComponentForScript(PhonScript script, boolean editScriptDirectly) Create editor for script including appropriate scroll pane.static PhonScriptTextAreacreateEditorForScript(PhonScript script) Create editor for the given script.static PhonScriptTextAreacreateEditorForScript(PhonScript script, boolean editScriptDirectly) Create editor for the given script.
-
Constructor Details
-
ScriptEditorFactory
public ScriptEditorFactory()
-
-
Method Details
-
createEditorForScript
public static PhonScriptTextArea createEditorForScript(PhonScript script, boolean editScriptDirectly) Create editor for the given script.- Parameters:
script-editScriptDirectly- - iftruechanges made in editor will automatically apply to text of given script object. Iffalsescript object will need to be updated when user manually- Returns:
- new editor
-
createEditorForScript
Create editor for the given script.- Parameters:
script-- Returns:
- new editor
-
createEditorComponentForScript
public static org.fife.ui.rtextarea.RTextScrollPane createEditorComponentForScript(PhonScript script) Create editor for script including appropriate scroll pane.- Parameters:
script-- Returns:
-
createEditorComponentForScript
public static org.fife.ui.rtextarea.RTextScrollPane createEditorComponentForScript(PhonScript script, boolean editScriptDirectly) Create editor for script including appropriate scroll pane.- Parameters:
script-- Returns:
-