org.opensourcephysics.ejs.control
Class GroupVariable
java.lang.Object
org.opensourcephysics.ejs.control.GroupVariable
public class GroupVariable
- extends java.lang.Object
A utility class that holds information about a value that can be shared
by different ControlElement internal variables and that can also trigger
methods of a class
Constructor Summary |
GroupVariable(java.lang.String _aName,
Value _aValue)
Constructor GroupVariable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
GroupVariable
public GroupVariable(java.lang.String _aName,
Value _aValue)
- Constructor GroupVariable
- Parameters:
_aName
- _aValue
-
getName
public java.lang.String getName()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
setValue
public void setValue(Value _aValue)
getValue
public Value getValue()
addElementListener
public void addElementListener(ControlElement _element,
int _index)
removeElementListener
public void removeElementListener(ControlElement _element,
int _index)
propagateValue
public void propagateValue(ControlElement _element)
addListener
public void addListener(java.lang.Object _target,
java.lang.String _method)
addListener
public void addListener(java.lang.Object _target,
java.lang.String _method,
java.lang.Object _anObject)
removeListener
public void removeListener(java.lang.Object _target,
java.lang.String _method)
invokeListeners
public void invokeListeners(ControlElement _element)