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, waitevalScript, getContext, getCurrentDocument, getCurrentWidget, getCurrentWindowprotected ScriptManager manager
public void setScriptManager(ScriptManager manager)
setScriptManager in interface XULScriptHelpermanager - the ScriptManagerpublic ScriptManager getScriptManager()
public java.lang.Object evalScript(java.lang.String scriptMethod,
java.lang.Object... args)
evalScript in interface XULScriptHelperscriptMethod - 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 XULScriptHelperpublic 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 XULScriptHelperpublic java.lang.String getText(java.io.File file)
getText in interface XULScriptHelperfile - the filepublic boolean setText(java.io.File file,
java.lang.String text)
setText in interface XULScriptHelperfile - the filetext - the textCopyright © 2008-2020 Herve Girod. All Rights Reserved. Documentation and source under the LGPL licence