|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthep.wired.cut.AbstractConditionDefinition
public abstract class AbstractConditionDefinition
Adapter for implementing ConditionDefinition
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface hep.wired.cut.ConditionDefinition |
---|
ConditionDefinition.Type |
Field Summary | |
---|---|
protected HashSet<Condition> |
_conditions
|
protected String |
_description
|
protected String |
_name
|
protected String |
_unit
|
protected boolean |
_valueIsAdjusting
|
Constructor Summary | |
---|---|
AbstractConditionDefinition(String name)
|
|
AbstractConditionDefinition(String name,
String unit,
String description)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface hep.wired.cut.ConditionDefinition |
---|
addToDomain, createCondition, getDomain, getType, setDomain |
Field Detail |
---|
protected String _name
protected String _unit
protected String _description
protected boolean _valueIsAdjusting
protected HashSet<Condition> _conditions
Constructor Detail |
---|
public AbstractConditionDefinition(String name)
public AbstractConditionDefinition(String name, String unit, String description)
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |