public class DefaultScriptingDialog extends DefaultScriptingScript implements ScriptingDialog, ActionListener
DefaultScriptingScript.OutputWritercompiledCode, engine, extension, langName, librarySuffixenabled, isolationGroupchangeListener, createdBy, description, id, manager, name, parent, saved, typename, versionMODE_DIALOG, MODE_TOOL, MODE_WINDOWISOLATION_HIGH, ISOLATION_LOW| Constructor and Description |
|---|
DefaultScriptingDialog(ScriptingFolder parent,
ScriptingManager manager,
String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent arg0) |
void |
create(ScriptingFolder folder,
String id,
String language) |
File |
getDialogFile()
Returns the file where is the window dialog's gui.
|
List<File> |
getFiles()
Return a list of the files that use this unit with out the inf file.
|
String[] |
getIconNames()
Gets the name of the icons associated to the ScriptingUnit type.
|
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(String newId)
Changes the ID of a ScriptingUnit and the name of the files and/or directories associated
|
Object |
run(Object[] args)
Executes the code of a ScriptBaseScript.
|
void |
runAsTask(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, getNewTemplate, getResource, getScriptFile, getStderr, getStdout, invokeFunction, invokeMethod, load, main, main, notifyErrors, put, removeStderrWriter, removeStdoutWriter, run, save, setCode, setExtension, setLangName, setLibrarySuffix, setMainNamegetIsolationGroup, isEnabled, setEnabled, setIsolationGroupaddPropertyChangeListener, create, firePropertyChange, firePropertyChangeListener, getCreatedBy, getDescription, getFile, getFileResource, getId, getInfBoolean, getInfInt, getInfString, getInfValue, getManager, getName, getParent, getProperties, getProperty, getTypeName, getVersion, isSaved, setCreatedBy, setDescription, setId, setName, setParent, setProperty, setSaved, setVersion, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetCode, getLangName, getMainName, invokeFunction, invokeMethod, save, setCode, setMainNameaddStderrWriter, addStdoutWriter, compile, getIsolationGroup, getLibrarySuffix, getResource, getScriptFile, isEnabled, put, removeStderrWriter, removeStdoutWriter, run, setEnabled, setIsolationGroup, setLibrarySuffixaddPropertyChangeListener, getCreatedBy, getDescription, getFile, getId, getName, getParent, getProperties, getProperty, getTypeName, getVersion, isSaved, setCreatedBy, setDescription, setName, setProperty, setSaved, setVersionaddObserver, deleteObserver, deleteObserversgetName, getTypeName, putpublic DefaultScriptingDialog(ScriptingFolder parent, ScriptingManager manager, String id)
public void runAsTask(Object[] args)
ScriptingBaseScriptrunAsTask in interface ScriptingBaseScriptrunAsTask in class DefaultScriptingScriptargs - Contains the input parameters to run the ScriptBaseScript.public Object run(Object[] args)
ScriptingBaseScriptrun in interface ScriptingBaseScriptrun in class DefaultScriptingScriptargs - Contains the input parameters to run the ScriptBaseScript.protected void loadInf(Ini prefs)
loadInf in class DefaultScriptingScriptprotected void save(Ini prefs)
save in class DefaultScriptingScriptpublic String[] getIconNames()
ScriptingUnitgetIconNames in interface ScriptingUnitgetIconNames in class DefaultScriptingScriptpublic void actionPerformed(ActionEvent arg0)
actionPerformed in interface ActionListenerpublic File getDialogFile()
ScriptingDialoggetDialogFile in interface ScriptingDialogpublic List<File> getFiles()
ScriptingUnitgetFiles in interface ScriptingUnitgetFiles in class DefaultScriptingScriptpublic int getShowMode()
ScriptingDialoggetShowMode in interface ScriptingDialogpublic void setShowMode(int mode)
ScriptingDialogsetShowMode in interface ScriptingDialogmode - int that contains the window mode.public boolean remove()
remove in interface ScriptingUnitremove in class DefaultScriptingScriptpublic void create(ScriptingFolder folder, String id, String language)
create in interface Unitcreate in class DefaultScriptingScriptpublic String getMimeType()
getMimeType in interface ScriptingScriptgetMimeType in class DefaultScriptingScriptpublic boolean move(ScriptingFolder target)
ScriptingUnitmove in interface ScriptingUnitmove in class DefaultScriptingScripttarget - ScriptingFolder that represents the destination..public boolean rename(String newId)
ScriptingUnitrename in interface ScriptingUnitrename in class DefaultScriptingScriptnewId - String that contains the new Id.