View Javadoc

1   // %3047457688:hoplugins.teamAnalyzer.ui.controller%
2   package hoplugins.teamAnalyzer.ui.controller;
3   
4   import hoplugins.teamAnalyzer.ht.HattrickManager;
5   import hoplugins.teamAnalyzer.manager.TeamManager;
6   import hoplugins.teamAnalyzer.vo.Team;
7   
8   import java.awt.event.ActionEvent;
9   import java.awt.event.ActionListener;
10  
11  import java.util.Iterator;
12  
13  
14  /***
15   * Action listener for the help menu item
16   *
17   * @author <a href=mailto:draghetto@users.sourceforge.net>Massimiliano Amato</a>
18   */
19  public class ImportItemListener implements ActionListener {
20      //~ Constructors -------------------------------------------------------------------------------
21  
22      /***
23       * Creates a new ImportItemListener object.
24       */
25      public ImportItemListener() {
26      }
27  
28      //~ Methods ------------------------------------------------------------------------------------
29  
30      /***
31       * TODO Missing Method Documentation
32       *
33       * @param arg0 TODO Missing Method Parameter Documentation
34       */
35      public void actionPerformed(ActionEvent arg0) {
36          for (Iterator iter = TeamManager.getTeams().iterator(); iter.hasNext();) {
37              Team element = (Team) iter.next();
38              System.out.println("Downloading " + element.getName());
39              HattrickManager.downloadPlayers(element.getTeamId());
40          }
41      }
42  }