Package ca.phon.app.script
Class ScriptEditorFactory
java.lang.Object
ca.phon.app.script.ScriptEditorFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.fife.ui.rtextarea.RTextScrollPane
Create editor for script including appropriate scroll pane.static org.fife.ui.rtextarea.RTextScrollPane
createEditorComponentForScript
(PhonScript script, boolean editScriptDirectly) Create editor for script including appropriate scroll pane.static PhonScriptTextArea
createEditorForScript
(PhonScript script) Create editor for the given script.static PhonScriptTextArea
createEditorForScript
(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
- - iftrue
changes made in editor will automatically apply to text of given script object. Iffalse
script 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:
-