public abstract class AbstractConditionDefinition extends Object implements ConditionDefinition
ConditionDefinition
.ConditionDefinition.Type
Modifier and Type | Field and Description |
---|---|
protected HashSet<Condition> |
_conditions |
protected String |
_description |
protected String |
_name |
protected String |
_unit |
protected boolean |
_valueIsAdjusting |
Constructor and Description |
---|
AbstractConditionDefinition(String name) |
AbstractConditionDefinition(String name,
String unit,
String description) |
Modifier and Type | Method and Description |
---|---|
void |
addChangeListener(ChangeListener listener)
Adds change listener.
|
Condition |
createCondition()
Returns a new
Condition object linked to this ConditionDefinition. |
protected void |
fireStateChanged() |
protected void |
fireStateChanged(ChangeEvent event) |
String |
getDescription()
Returns a brief description of the condition.
|
String |
getName()
Returns the name of this definition.
|
String |
getUnit()
Returns the unit name for conditions based on numerical value.
|
boolean |
getValueIsAdjusting()
Returns valueIsAdjusting property.
|
void |
remove()
Called when this definition is being deleted.
|
void |
removeChangeListener(ChangeListener listener)
Removes change listener.
|
void |
removeCondition(Condition condition)
Unregisters the specified Condition.
|
void |
setValueIsAdjusting(boolean isValueAdjusting)
Sets valueIsAdjusting property.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addToDomain, createCondition, getDomain, getType, setDomain
protected String _name
protected String _unit
protected String _description
protected boolean _valueIsAdjusting
public AbstractConditionDefinition(String name)
public String getName()
getName
in interface ConditionDefinition
public String getUnit()
getUnit
in interface ConditionDefinition
public String getDescription()
getDescription
in interface ConditionDefinition
public Condition createCondition()
Condition
object linked to this ConditionDefinition.
The newly created Condition is registered with this ConditionDefinition.
Conditions created with this method are not enabled and not inverted.createCondition
in interface ConditionDefinition
public void removeCondition(Condition condition)
removeCondition
in interface ConditionDefinition
public void remove()
remove
in interface ConditionDefinition
public void addChangeListener(ChangeListener listener)
addChangeListener
in interface ConditionDefinition
public void removeChangeListener(ChangeListener listener)
removeChangeListener
in interface ConditionDefinition
public void setValueIsAdjusting(boolean isValueAdjusting)
setValueIsAdjusting
in interface ConditionDefinition
public boolean getValueIsAdjusting()
getValueIsAdjusting
in interface ConditionDefinition
protected void fireStateChanged()
protected void fireStateChanged(ChangeEvent event)
Copyright © 1996-2014 FreeHEP. All Rights Reserved.