public class DefaultScriptingExternalFile extends AbstractUnit implements ScriptingExternalFile
changeListener, createdBy, description, id, logger, manager, name, parent, saved, typename, version| Constructor and Description |
|---|
DefaultScriptingExternalFile(ScriptingFolder parent,
ScriptingManager manager,
String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
create(ScriptingFolder folder,
String id) |
void |
create(ScriptingFolder folder,
String id,
String language) |
String |
getContentsAsText() |
File |
getExternalFile() |
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() |
void |
load(ScriptingFolder folder,
String id) |
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
|
void |
setContents(String text) |
addPropertyChangeListener, console_println, firePropertyChange, firePropertyChangeListener, getCreatedBy, getDescription, getFile, getFileResource, getId, getInfBoolean, getInfInt, getInfString, getInfValue, getManager, getName, getParent, getProperties, getProperty, getTypeName, getVersion, isSaved, loadInf, save, setCreatedBy, setDescription, setId, setName, setParent, setProperty, setSaved, setVersion, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddPropertyChangeListener, getCreatedBy, getDescription, getFile, getId, getName, getParent, getProperties, getProperty, getTypeName, getVersion, isSaved, setCreatedBy, setDescription, setName, setProperty, setSaved, setVersionpublic DefaultScriptingExternalFile(ScriptingFolder parent, ScriptingManager manager, String id)
public void load(ScriptingFolder folder, String id)
load in interface Unitload in class AbstractUnitpublic boolean rename(String newId)
ScriptingUnitrename in interface ScriptingUnitnewId - String that contains the new Id.public void create(ScriptingFolder folder, String id)
create in class AbstractUnitpublic void create(ScriptingFolder folder, String id, String language)
public boolean remove()
remove in interface ScriptingUnitpublic boolean move(ScriptingFolder target)
ScriptingUnitmove in interface ScriptingUnittarget - ScriptingFolder that represents the destination..public String[] getIconNames()
ScriptingUnitgetIconNames in interface ScriptingUnitpublic File getExternalFile()
getExternalFile in interface ScriptingExternalFilepublic List<File> getFiles()
ScriptingUnitgetFiles in interface ScriptingUnitpublic String getMimeType()
getMimeType in interface ScriptingExternalFilepublic void setContents(String text)
setContents in interface ScriptingExternalFilepublic String getContentsAsText()
getContentsAsText in interface ScriptingExternalFile