public class DefaultScriptingExternalTextFile extends DefaultScriptingExternalFile implements ScriptingText
changeListener, createdBy, description, id, LOGGER, manager, name, parent, saved, typename, version
Constructor and Description |
---|
DefaultScriptingExternalTextFile(ScriptingFolder parent,
ScriptingManager manager,
java.lang.String id) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getText()
Returns the text associated to this unit.
|
void |
save()
Persists the current status of this unit.
|
void |
setText(java.lang.String text)
Sets a the text associated to this unit.
|
create, create, getContentsAsText, getExternalFile, getFile, getFiles, getIconNames, getMimeType, load, move, remove, rename, setContents
addPropertyChangeListener, console_println, equals, firePropertyChange, firePropertyChangeListener, getCreatedBy, getDescription, getFileResource, getId, getInfBoolean, getInfInt, getInfString, getInfValue, getManager, getName, getParent, getProperties, getProperty, getTypeName, getURL, getUserPath, getVersion, hashCode, isASystemUnit, isSaved, loadInf, reload, save, setCreatedBy, setDescription, setId, setName, setParent, setProperty, setSaved, setVersion, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getMimeType
addPropertyChangeListener, getCreatedBy, getDescription, getFile, getFileResource, getFiles, getIconNames, getId, getName, getParent, getProperties, getProperty, getTypeName, getUserPath, getVersion, isASystemUnit, isSaved, move, reload, remove, rename, setCreatedBy, setDescription, setName, setProperty, setSaved, setVersion
public DefaultScriptingExternalTextFile(ScriptingFolder parent, ScriptingManager manager, java.lang.String id)
public java.lang.String getText()
ScriptingText
getText
in interface ScriptingText
public void setText(java.lang.String text)
ScriptingText
setText
in interface ScriptingText
text
- String to assign to this unit.public void save()
ScriptingText
save
in interface ScriptingText