plugins.adufour.vars.lang
Class VarFile
java.lang.Object
plugins.adufour.vars.lang.Var<java.io.File>
plugins.adufour.vars.lang.VarFile
- All Implemented Interfaces:
- icy.file.xml.XMLPersistent, VarListener<java.io.File>
public class VarFile
- extends Var<java.io.File>
|
Constructor Summary |
VarFile(java.lang.String name,
java.io.File defaultValue)
|
|
Method Summary |
VarEditor<java.io.File> |
createVarEditor()
Creates a new VarEditor object that allows the user to graphically adjust the value
of this variable. |
java.io.File |
parse(java.lang.String s)
Parses the given String into the current type |
boolean |
saveToXML(org.w3c.dom.Node node)
Saves the current variable to the specified node |
java.lang.String |
toString()
|
| Methods inherited from class plugins.adufour.vars.lang.Var |
addListener, createVarViewer, fireVariableChanged, fireVariableChanged, getDefaultEditorModel, getDefaultValue, getIterableReferrers, getName, getReference, getReferencingPolicy, getReferrers, getType, getTypeAsString, getValue, getValue, getValueAsString, getValueAsString, isAssignableFrom, isEnabled, isOptional, isReferenced, loadFromXML, prettyPrint, referenceChanged, removeListener, removeListeners, setDefaultEditorModel, setEnabled, setOptional, setReference, setReferencingPolicy, setValue, valueChanged |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
VarFile
public VarFile(java.lang.String name,
java.io.File defaultValue)
parse
public java.io.File parse(java.lang.String s)
- Description copied from class:
Var
- Parses the given String into the current type
- Overrides:
parse in class Var<java.io.File>
- Returns:
- The variable value corresponding to the given string
toString
public java.lang.String toString()
- Overrides:
toString in class Var<java.io.File>
saveToXML
public boolean saveToXML(org.w3c.dom.Node node)
throws java.lang.UnsupportedOperationException
- Saves the current variable to the specified node
- Specified by:
saveToXML in interface icy.file.xml.XMLPersistent- Overrides:
saveToXML in class Var<java.io.File>
- Throws:
java.lang.UnsupportedOperationException - if the functionality is not supported by the current variable type
createVarEditor
public VarEditor<java.io.File> createVarEditor()
- Description copied from class:
Var
- Creates a new
VarEditor object that allows the user to graphically adjust the value
of this variable. By default this editor is an empty label for generic types, but this method
can be overridden to provide a custom editor.
- Overrides:
createVarEditor in class Var<java.io.File>
- Returns:
- the variable editor embarking the graphical component