public abstract class AbstractXULScriptHelper extends java.lang.Object implements XULScriptHelper
Modifier and Type | Field and Description |
---|---|
protected ScriptManager |
manager
The ScriptManager.
|
Constructor and Description |
---|
AbstractXULScriptHelper() |
Modifier and Type | Method and Description |
---|---|
FilePicker |
createFilePicker()
Return a new FilePicker.
|
boolean |
dispose()
Call
dispose() on the current document parent frame or winsow. |
java.lang.Object |
evalScript(java.lang.String scriptMethod,
java.lang.Object... args)
Evaluate a Script method.
|
boolean |
exit()
Call
System.exit() . |
ScriptManager |
getScriptManager()
Return the ScriptManager.
|
java.lang.String |
getText(java.io.File file)
Return the text associated with a text File.
|
void |
setScriptManager(ScriptManager manager)
Set the ScriptManager.
|
boolean |
setText(java.io.File file,
java.lang.String text)
Set the text associated with a text File.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
evalScript, getContext, getCurrentDocument, getCurrentWidget, getCurrentWindow
protected ScriptManager manager
public void setScriptManager(ScriptManager manager)
setScriptManager
in interface XULScriptHelper
manager
- the ScriptManagerpublic ScriptManager getScriptManager()
public java.lang.Object evalScript(java.lang.String scriptMethod, java.lang.Object... args)
evalScript
in interface XULScriptHelper
scriptMethod
- the Script method nameargs
- the argumentspublic FilePicker createFilePicker()
public boolean exit()
System.exit()
. It is allowed if the ScriptManagerProperties.ALLOW_EXIT
is set to true (default is false so not allowed).exit
in interface XULScriptHelper
public boolean dispose()
dispose()
on the current document parent frame or winsow. It is allowed if the
ScriptManagerProperties.ALLOW_DISPOSE
is set to true (default is false so not allowed).dispose
in interface XULScriptHelper
public java.lang.String getText(java.io.File file)
getText
in interface XULScriptHelper
file
- the filepublic boolean setText(java.io.File file, java.lang.String text)
setText
in interface XULScriptHelper
file
- the filetext
- the textCopyright © 2008-2020 Herve Girod. All Rights Reserved. Documentation and source under the LGPL licence