public class DefaultScriptingDialog extends DefaultScriptingScript implements ScriptingDialog, java.awt.event.ActionListener
DefaultScriptingScript.OutputWriter
compiledCode, engine, extension, langName, librarySuffix, useSysPath
enabled, isolationGroup
changeListener, createdBy, description, id, manager, name, parent, saved, typename, version
MODE_DIALOG, MODE_TOOL, MODE_WINDOW
ISOLATION_HIGH, ISOLATION_LOW
Constructor and Description |
---|
DefaultScriptingDialog(ScriptingFolder parent,
ScriptingManager manager,
java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent arg0) |
void |
create(ScriptingFolder folder,
java.lang.String id,
java.lang.String language) |
java.io.File |
getDialogFile()
Returns the file where is the window dialog's gui.
|
java.util.List<java.io.File> |
getFiles()
Return a list of the files that use this unit with out the inf file.
|
java.lang.String[] |
getIconNames()
Gets the name of the icons associated to the ScriptingUnit type.
|
java.lang.String |
getMimeType() |
int |
getShowMode()
Returns the type of the window dialog associated with the ScriptingDialog.
|
protected void |
loadInf(Ini prefs) |
boolean |
move(ScriptingFolder target)
Moves a ScriptingUnitfrom the current directory to the new location.
|
boolean |
remove() |
boolean |
rename(java.lang.String newId)
Changes the ID of a ScriptingUnit and the name of the files and/or directories associated
|
java.lang.Object |
run(java.lang.Object[] args)
Executes the code of a ScriptBaseScript.
|
void |
runAsTask(java.lang.Object[] args)
Executes the code of a ScriptBaseScript in a separated thread
|
protected void |
save(Ini prefs) |
void |
setShowMode(int mode)
Sets the window mode associated with a ScriptingDialog.
|
__call__, __call__, __getattr__, __setattr__, addDisposable, addObserver, addStderrWriter, addStdoutWriter, compile, console_println, deleteObserver, deleteObservers, get, get, getCode, getCodeToInitializeEngine, getEngine, getExtension, getLangName, getLibFolders, getLibrarySuffix, getMainName, getNames, getNewTemplate, getResource, getScriptFile, getStderr, getStdout, getText, hashCode, invokeFunction, invokeMethod, load, main, main, notifyErrors, put, removeStderrWriter, removeStdoutWriter, run, save, setCode, setExtension, setLangName, setLibrarySuffix, setMainName, setText
getIsolationGroup, isEnabled, registerDataFolder, setEnabled, setIsolationGroup
addPropertyChangeListener, create, equals, firePropertyChange, firePropertyChangeListener, getCreatedBy, getDescription, getFile, getFileResource, getId, getInfBoolean, getInfInt, getInfString, getInfValue, getManager, getName, getParent, getProperties, getProperty, getTypeName, getURL, getUserPath, getVersion, isASystemUnit, isSaved, reload, setCreatedBy, setDescription, setId, setName, setParent, setProperty, setSaved, setVersion, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCode, getLangName, getMainName, invokeFunction, invokeMethod, registerDataFolder, save, setCode, setMainName
getText, setText
addStderrWriter, addStdoutWriter, compile, getIsolationGroup, getLibrarySuffix, getResource, getScriptFile, isEnabled, put, removeStderrWriter, removeStdoutWriter, run, setEnabled, setIsolationGroup, setLibrarySuffix
addPropertyChangeListener, getCreatedBy, getDescription, getFile, getFileResource, getId, getName, getParent, getProperties, getProperty, getTypeName, getUserPath, getVersion, isASystemUnit, isSaved, reload, setCreatedBy, setDescription, setName, setProperty, setSaved, setVersion
addObserver, deleteObserver, deleteObservers
public DefaultScriptingDialog(ScriptingFolder parent, ScriptingManager manager, java.lang.String id)
public void runAsTask(java.lang.Object[] args)
ScriptingBaseScript
runAsTask
in interface ScriptingBaseScript
runAsTask
in class DefaultScriptingScript
args
- Contains the input parameters to run the ScriptBaseScript.public java.lang.Object run(java.lang.Object[] args)
ScriptingBaseScript
run
in interface ScriptingBaseScript
run
in class DefaultScriptingScript
args
- Contains the input parameters to run the ScriptBaseScript.protected void loadInf(Ini prefs)
loadInf
in class DefaultScriptingScript
protected void save(Ini prefs)
save
in class DefaultScriptingScript
public java.lang.String[] getIconNames()
ScriptingUnit
getIconNames
in interface ScriptingUnit
getIconNames
in class DefaultScriptingScript
public void actionPerformed(java.awt.event.ActionEvent arg0)
actionPerformed
in interface java.awt.event.ActionListener
public java.io.File getDialogFile()
ScriptingDialog
getDialogFile
in interface ScriptingDialog
public java.util.List<java.io.File> getFiles()
ScriptingUnit
getFiles
in interface ScriptingUnit
getFiles
in class DefaultScriptingScript
public int getShowMode()
ScriptingDialog
getShowMode
in interface ScriptingDialog
public void setShowMode(int mode)
ScriptingDialog
setShowMode
in interface ScriptingDialog
mode
- int that contains the window mode.public boolean remove()
remove
in interface ScriptingUnit
remove
in class DefaultScriptingScript
public void create(ScriptingFolder folder, java.lang.String id, java.lang.String language)
create
in interface Unit
create
in class DefaultScriptingScript
public java.lang.String getMimeType()
getMimeType
in interface ScriptingScript
getMimeType
in interface ScriptingText
getMimeType
in class DefaultScriptingScript
public boolean move(ScriptingFolder target)
ScriptingUnit
move
in interface ScriptingUnit
move
in class DefaultScriptingScript
target
- ScriptingFolder
that represents the destination..public boolean rename(java.lang.String newId)
ScriptingUnit
rename
in interface ScriptingUnit
rename
in class DefaultScriptingScript
newId
- String that contains the new Id.