Class GroupVariable

java.lang.Object
org.opensourcephysics.ejs.control.GroupVariable

public class GroupVariable extends 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 Details

    • GroupVariable

      public GroupVariable(String _aName, Value _aValue)
      Constructor GroupVariable
      Parameters:
      _aName -
      _aValue -
  • Method Details

    • getName

      public String getName()
    • toString

      public String toString()
      Overrides:
      toString in class 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(Object _target, String _method)
    • addListener

      public void addListener(Object _target, String _method, Object _anObject)
    • removeListener

      public void removeListener(Object _target, String _method)
    • invokeListeners

      public void invokeListeners(ControlElement _element)