plugins.adufour.vars.lang
Class VarSwimmingObject

java.lang.Object
  extended by plugins.adufour.vars.lang.Var<icy.swimmingPool.SwimmingObject>
      extended by plugins.adufour.vars.lang.VarSwimmingObject
All Implemented Interfaces:
icy.file.xml.XMLPersistent, VarListener<icy.swimmingPool.SwimmingObject>

public class VarSwimmingObject
extends Var<icy.swimmingPool.SwimmingObject>


Field Summary
 
Fields inherited from class plugins.adufour.vars.lang.Var
listeners, NO_VALUE, type, XML_KEY_ID
 
Constructor Summary
VarSwimmingObject(java.lang.String name, icy.swimmingPool.SwimmingObject defaultValue)
           
 
Method Summary
 VarEditor<icy.swimmingPool.SwimmingObject> createVarEditor()
          Creates a new VarEditor object that allows the user to graphically adjust the value of this variable.
 java.lang.String getValueAsString()
           
 
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, isAssignableFrom, isEnabled, isOptional, isReferenced, loadFromXML, parse, prettyPrint, referenceChanged, removeListener, removeListeners, saveToXML, setDefaultEditorModel, setEnabled, setOptional, setReference, setReferencingPolicy, setValue, toString, valueChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VarSwimmingObject

public VarSwimmingObject(java.lang.String name,
                         icy.swimmingPool.SwimmingObject defaultValue)
Method Detail

createVarEditor

public VarEditor<icy.swimmingPool.SwimmingObject> 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<icy.swimmingPool.SwimmingObject>
Returns:
the variable editor embarking the graphical component

getValueAsString

public java.lang.String getValueAsString()
Overrides:
getValueAsString in class Var<icy.swimmingPool.SwimmingObject>
Returns:
a pretty-printed text representation of the variable's local value (referenced variables are not followed). This text is used to display the value (e.g. in a graphical interface) or store the value into XML files. Overriding implementations should make sure that the result of this method is compatible with the Var.parse(String) method to ensure proper reloading from XML files.