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

void GenericGraphApplet::actionPerformed ( ActionEvent  evt  )  [inline]

Respond when user clicks a button; not meant to be called directly.

Reimplemented in DataPlotApplet.

Definition at line 771 of file GenericGraphApplet.java.

References edu::hws::jcm::awt::Controller::compute(), computeButton, doLoadExample(), and mainController.

                                                {
      Object source = evt.getSource();
      if (source == computeButton && computeButton != null)
         mainController.compute();
      else if (source == launchButton && launchButton != null)
         doLaunchButton();
      else if (source == loadExampleButton && exampleStrings != null) {
         if (exampleStrings.size() == 1)
            doLoadExample( (String)exampleStrings.elementAt(0) );
         else
            doLoadExample( (String)exampleStrings.elementAt(exampleMenu.getSelectedIndex()) );
      }
   }


Generated by  Doxygen 1.6.0   Back to index