add window title
[jSite2.git] / src / net / pterodactylus / jsite / gui / FileManager.java
1 /*
2  * jSite2 - FileManager.java -
3  * Copyright © 2008 David Roden
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18  */
19
20 package net.pterodactylus.jsite.gui;
21
22 import javax.swing.JDialog;
23 import javax.swing.JFrame;
24
25 import net.pterodactylus.jsite.i18n.I18n;
26 import net.pterodactylus.jsite.i18n.I18nable;
27 import net.pterodactylus.jsite.project.Project;
28
29 /**
30  * Manages physical and virtual files in a project.
31  * 
32  * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
33  */
34 public class FileManager extends JDialog implements I18nable {
35
36         /** The project whose files to manage. */
37         private final Project project;
38
39         /**
40          * Creates a new file manager.
41          * 
42          * @param parent
43          *            The parent frame
44          * @param project
45          *            The project whose files to manage
46          */
47         public FileManager(JFrame parent, Project project) {
48                 super(parent, I18n.get("fileManager.title", project.getName()));
49                 this.project = project;
50                 initComponents();
51         }
52
53         //
54         // PRIVATE ACTIONS
55         //
56
57         /**
58          * Initializes all components.
59          */
60         private void initComponents() {
61                 /* TODO. */
62         }
63
64         //
65         // INTERFACE I18nable
66         //
67
68         /**
69          * {@inheritDoc}
70          */
71         public void updateI18n() {
72                 setTitle(I18n.get("fileManager.title", project.getName()));
73         }
74
75 }