Logo Search packages:      
Sourcecode: wims version File versions  Download package

void edu::hws::jcm::awt::Controller::add ( Object  obj  )  [inline]

Add an object to be controlled by this controller. It should be of one or more of the types InputObject, Computable, Tie. If it is a Controller, then this Controller becomes its parent.

Definition at line 134 of file Controller.java.

References computables, inputs, parent, remove(), and ties.

Referenced by edu::hws::jcm::awt::JCMPanel::processContainerEvent(), EpsilonDelta::setUpBottomPanel(), and EpsilonDelta::setUpCanvas().

      if (obj == null)
      if (obj instanceof Controller) {
          Controller c = (Controller)obj;
          if (c.parent != null)
          c.parent = this;
      if (obj instanceof Computable) {
         if (computables == null)
            computables = new Vector();
      if (obj instanceof InputObject) {
         if (inputs == null)
            inputs = new Vector();
      if (obj instanceof Tie) {
         if (ties == null)
            ties = new Vector();

Generated by  Doxygen 1.6.0   Back to index