ambit2.core.data.experiment
Class TemplateField
java.lang.Object
com.jgoodies.binding.beans.Model
ambit2.base.data.AmbitBean
ambit2.core.data.experiment.TemplateField
- All Implemented Interfaces:
- com.jgoodies.binding.beans.Observable, java.io.Serializable
public class TemplateField
- extends ambit2.base.data.AmbitBean
A StudyTemplate
field.
- See Also:
- Serialized Form
Field Summary |
protected int |
id
|
protected boolean |
isResult
|
protected java.lang.String |
name
|
protected boolean |
numeric
|
protected java.lang.String |
units
|
Methods inherited from class ambit2.base.data.AmbitBean |
clone |
Methods inherited from class com.jgoodies.binding.beans.Model |
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
units
protected java.lang.String units
numeric
protected boolean numeric
isResult
protected boolean isResult
name
protected java.lang.String name
id
protected int id
TemplateField
public TemplateField()
TemplateField
public TemplateField(java.lang.String name)
- Parameters:
name
-
TemplateField
public TemplateField(java.lang.String name,
java.lang.String units,
boolean numeric,
boolean isResult)
- Creates a templte field
- Parameters:
name
- units
- numeric
- isResult
-
TemplateField
public TemplateField(java.lang.String name,
int id)
- Parameters:
name
- id
-
getUnits
public java.lang.String getUnits()
setUnits
public void setUnits(java.lang.String units)
isNumeric
public boolean isNumeric()
setNumeric
public void setNumeric(boolean numeric)
getType
public java.lang.String getType()
getMode
public java.lang.String getMode()
isResult
public boolean isResult()
setResult
public void setResult(boolean isResult)
save
public boolean save(java.io.OutputStream out)
throws ambit2.base.exceptions.AmbitIOException
- Throws:
ambit2.base.exceptions.AmbitIOException
save
public boolean save(java.io.Writer writer)
throws ambit2.base.exceptions.AmbitIOException
- Throws:
ambit2.base.exceptions.AmbitIOException
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
setName
public void setName(java.lang.String name)
getId
public int getId()
setId
public void setId(int id)
getName
public java.lang.String getName()