org.opensourcephysics.ejs.control
Class GroupVariable

java.lang.Object
  extended by 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
 
Method Summary
 void addElementListener(ControlElement _element, int _index)
           
 void addListener(java.lang.Object _target, java.lang.String _method)
           
 void addListener(java.lang.Object _target, java.lang.String _method, java.lang.Object _anObject)
           
 java.lang.String getName()
           
 Value getValue()
           
 void invokeListeners(ControlElement _element)
           
 void propagateValue(ControlElement _element)
           
 void removeElementListener(ControlElement _element, int _index)
           
 void removeListener(java.lang.Object _target, java.lang.String _method)
           
 void setValue(Value _aValue)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GroupVariable

public GroupVariable(java.lang.String _aName,
                     Value _aValue)
Constructor GroupVariable

Parameters:
_aName -
_aValue -
Method Detail

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)