Add Interface.setCore(Core) method to set the core that is controlled by the interface.
[jkeytool.git] / src / net / pterodactylus / jkeytool / gui / swing / SwingInterface.java
1 /*
2  * jkeytool - SwingInterface.java -
3  * Copyright © 2009 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.jkeytool.gui.swing;
21
22 import java.io.File;
23 import java.security.KeyStore;
24
25 import net.pterodactylus.jkeytool.core.Core;
26 import net.pterodactylus.jkeytool.gui.Interface;
27
28 /**
29  * TODO
30  *
31  * @author David Roden <droden@gmail.com>
32  */
33 public class SwingInterface implements Interface {
34
35         /** The core to control. */
36         private Core core;
37
38         //
39         // INTERFACE Interface
40         //
41
42         /**
43          * Sets the core to control.
44          *
45          * @param core
46          *            The core to control
47          */
48         public void setCore(Core core) {
49                 this.core = core;
50         }
51
52         /**
53          * {@inheritDoc}
54          */
55         public void start() {
56                 /* TODO */
57         }
58
59         //
60         // INTERFACE CoreListener
61         //
62
63         /**
64          * {@inheritDoc}
65          */
66         public void keyStoreCreated(KeyStore keyStore) {
67                 /* TODO */
68         }
69
70         /**
71          * {@inheritDoc}
72          */
73         public void keyStoreLoaded(File keyStoreFile, KeyStore keyStore) {
74                 /* TODO */
75         }
76
77         /**
78          * {@inheritDoc}
79          */
80         public void keyStoreNotCreated(String keyStoreType, Throwable reason) {
81                 /* TODO */
82         }
83
84         /**
85          * {@inheritDoc}
86          */
87         public void keyStoreNotLoaded(File keyStoreFile) {
88                 /* TODO */
89         }
90
91 }