Source code: entagged/gui/tageditor/listeners/RenameButtonListener.java
1 /*
2 * ******************************************************************** **
3 * Copyright notice **
4 * ** **
5 * (c) 2003 Entagged Developpement Team **
6 * http://www.sourceforge.net/projects/entagged **
7 * ** **
8 * All rights reserved **
9 * ** **
10 * This script is part of the Entagged project. The Entagged **
11 * project is free software; you can redistribute it and/or modify **
12 * it under the terms of the GNU General Public License as published by **
13 * the Free Software Foundation; either version 2 of the License, or **
14 * (at your option) any later version. **
15 * ** **
16 * The GNU General Public License can be found at **
17 * http://www.gnu.org/copyleft/gpl.html. **
18 * ** **
19 * This copyright notice MUST APPEAR in all copies of the file! **
20 * ********************************************************************
21 */
22 package entagged.gui.tageditor.listeners;
23 import entagged.gui.tageditor.*;
24 import entagged.gui.tageditor.dialogs.*;
25 import java.awt.event.*;
26
27
28 /**
29 * Creates a Listener that shows a Rename Dialog when event occurs $Id:
30 * RenameButtonListener.java,v 1.1 2003/09/22 14:44:29 kikidonk Exp $
31 *
32 * @author Raphaël Slinckx (KiKiDonK)
33 * @version v0.03
34 */
35 public class RenameButtonListener implements ActionListener {
36 /** Parent Tag Editor */
37 private TagEditorFrame tagEditorFrame;
38
39
40 /**
41 * Listener for the Rename Dialog button
42 *
43 * @param tagEditorFrame Parent Tag Editor Frame
44 */
45 public RenameButtonListener( TagEditorFrame tagEditorFrame ) {
46 this.tagEditorFrame = tagEditorFrame;
47 }
48
49
50 /**
51 * Create and show the Rename Dialog
52 *
53 * @param e event
54 */
55 public void actionPerformed( ActionEvent e ) {
56 RenameDialog dialog = new RenameDialog( this.tagEditorFrame );
57 dialog.setVisible( true );
58 }
59 }
60