public class DefaultScriptingDialog extends DefaultScriptingScript implements ScriptingDialog, ActionListener
DefaultScriptingScript.OutputWriter
compiledCode, engine, extension, langName, librarySuffix
enabled, isolation
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,
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, setMainName
getIsolation, isEnabled, setEnabled, setIsolation
addPropertyChangeListener, create, firePropertyChange, firePropertyChangeListener, getCreatedBy, getDescription, getFile, getFileResource, getId, getInfBoolean, getInfInt, getInfString, getInfValue, getManager, getName, getParent, getTypeName, getVersion, isSaved, setCreatedBy, setDescription, setId, setName, setParent, setSaved, setVersion, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCode, getLangName, getMainName, invokeFunction, invokeMethod, save, setCode, setMainName
addStderrWriter, addStdoutWriter, compile, getIsolation, getLibrarySuffix, getResource, getScriptFile, isEnabled, put, removeStderrWriter, removeStdoutWriter, run, setEnabled, setIsolation, setLibrarySuffix
addPropertyChangeListener, getCreatedBy, getDescription, getFile, getId, getName, getParent, getTypeName, getVersion, isSaved, setCreatedBy, setDescription, setName, setSaved, setVersion
addObserver, deleteObserver, deleteObservers
getName, getTypeName, put
public DefaultScriptingDialog(ScriptingFolder parent, ScriptingManager manager, String id)
public void runAsTask(Object[] args)
ScriptingBaseScript
runAsTask
in interface ScriptingBaseScript
runAsTask
in class DefaultScriptingScript
args
- Contains the input parameters to run the ScriptBaseScript.public Object run(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 String[] getIconNames()
ScriptingUnit
getIconNames
in interface ScriptingUnit
getIconNames
in class DefaultScriptingScript
public void actionPerformed(ActionEvent arg0)
actionPerformed
in interface ActionListener
public File getDialogFile()
ScriptingDialog
getDialogFile
in interface ScriptingDialog
public List<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, String id, String language)
create
in interface Unit
create
in class DefaultScriptingScript
public String getMimeType()
getMimeType
in interface ScriptingScript
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(String newId)
ScriptingUnit
rename
in interface ScriptingUnit
rename
in class DefaultScriptingScript
newId
- String that contains the new Id.