public interface XULScriptHelper
extends org.scripthelper.context.ScriptHelper
Modifier and Type | Method and Description |
---|---|
default boolean |
dispose()
Call
dispose() on the current document parent frame or winsow. |
default java.lang.Object |
evalScript(java.lang.String scriptMethod)
Evaluate a Script method without any argument.
|
java.lang.Object |
evalScript(java.lang.String scriptMethod,
java.lang.Object... args)
Evaluate a Script method.
|
default boolean |
exit()
Call
System.exit() . |
XULScriptContext |
getContext()
Return the script context.
|
default XULDocument |
getCurrentDocument()
Return the document from which the last user event originates.
|
default XULWidget |
getCurrentWidget()
Return the widget from which the last user event originates.
|
default XULWindow |
getCurrentWindow()
Return the widget from which the last user event originates.
|
default java.lang.String |
getText(java.io.File file)
Return the text associated with a text File.
|
void |
setScriptManager(ScriptManager manager)
Set the ScriptManager.
|
default boolean |
setText(java.io.File file,
java.lang.String text)
Set the text associated with a text File.
|
void setScriptManager(ScriptManager manager)
manager
- the ScriptManagerXULScriptContext getContext()
getContext
in interface org.scripthelper.context.ScriptHelper
java.lang.Object evalScript(java.lang.String scriptMethod, java.lang.Object... args)
scriptMethod
- the Script method nameargs
- the argumentsdefault boolean exit()
System.exit()
. It is allowed if the ScriptManagerProperties.ALLOW_EXIT
is set to true (default is false so not allowed). Do nothing and return false by default.default 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).
Do nothing and return false by default.default java.lang.String getText(java.io.File file)
file
- the filedefault boolean setText(java.io.File file, java.lang.String text)
file
- the filetext
- the textdefault java.lang.Object evalScript(java.lang.String scriptMethod)
scriptMethod
- the Script method namedefault XULWidget getCurrentWidget()
default XULWindow getCurrentWindow()
default XULDocument getCurrentDocument()
Copyright © 2008-2020 Herve Girod. All Rights Reserved. Documentation and source under the LGPL licence