1
2
3
4
5
6
7
8
9
10
11
12
13
14 package org.gscg.gameleader.dialogs.actor.actions;
15
16 import java.awt.event.ActionEvent;
17
18 import javax.swing.AbstractAction;
19
20 import org.gscg.gameleader.dialogs.actor.components.BankAccountPanel;
21
22 /***
23 * The UpdateBalanceAction is invoked whenever a game administrator would like
24 * to update the balance of a supplychain actor.
25 * <p>
26 *
27 * Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX
28 * Delft, the Netherlands. All rights reserved.
29 *
30 * See for project information <a href="http://www.simulation.tudelft.nl/">
31 * www.simulation.tudelft.nl </a>.
32 *
33 * The source code and binary code of this software is proprietary information
34 * of Delft University of Technology.
35 *
36 * @author <a
37 * href="http://www.tbm.tudelft.nl/webstaf/stijnh/index.htm">Stijn-Pieter
38 * van Houten </a>
39 * @version $Revision: 1.1 $ $Date: 2005/06/16 12:34:10 $
40 * @since 1.0.0
41 */
42 public class UpdateBalanceAction extends AbstractAction
43 {
44 /*** the serial version uid */
45 private static final long serialVersionUID = 11L;
46
47 /*** the bank account panel panel */
48 private BankAccountPanel bankAccountPanel = null;
49
50 /***
51 * constructs a new SendAction
52 *
53 * @param bankAccountPanel the bank account panel
54 * @param name the name of the action
55 */
56 public UpdateBalanceAction(final BankAccountPanel bankAccountPanel,
57 final String name)
58 {
59 super(name);
60 this.bankAccountPanel = bankAccountPanel;
61 }
62
63 /***
64 * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
65 */
66 public void actionPerformed(final ActionEvent actionEvent)
67 {
68 this.bankAccountPanel.updateBalance();
69 }
70 }