]> git.mxchange.org Git - jfinancials-swing.git/blob - Addressbook/src/org/mxchange/addressbook/client/gui/SwingClient.java
83417e166f8e4f3e9aa468d2019aa1ad10e5ecd9
[jfinancials-swing.git] / Addressbook / src / org / mxchange / addressbook / client / gui / SwingClient.java
1 /*\r
2  * Copyright (C) 2015 Roland Haeder\r
3  *\r
4  * This program is free software: you can redistribute it and/or modify\r
5  * it under the terms of the GNU General Public License as published by\r
6  * the Free Software Foundation, either version 3 of the License, or\r
7  * (at your option) any later version.\r
8  *\r
9  * This program is distributed in the hope that it will be useful,\r
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
12  * GNU General Public License for more details.\r
13  *\r
14  * You should have received a copy of the GNU General Public License\r
15  * along with this program.  If not, see <http://www.gnu.org/licenses/>.\r
16  */\r
17 package org.mxchange.addressbook.client.gui;\r
18 \r
19 import org.mxchange.addressbook.UnhandledUserChoiceException;\r
20 import org.mxchange.addressbook.application.AddressbookApplication;\r
21 import org.mxchange.addressbook.client.BaseClient;\r
22 import org.mxchange.addressbook.client.Client;\r
23 import org.mxchange.addressbook.contact.Contact;\r
24 import org.mxchange.addressbook.menu.Menu;\r
25 import org.mxchange.addressbook.menu.item.SelectableMenuItem;\r
26 \r
27 /**\r
28  *\r
29  * @author Roland Haeder\r
30  */\r
31 public class SwingClient extends BaseClient implements Client {\r
32     /**\r
33      * Constructor with application instance\r
34      * @param application \r
35      */\r
36     public SwingClient (final AddressbookApplication application) {\r
37         super();\r
38 \r
39         // Set application instance\r
40         this.setApplication(application);\r
41 \r
42         // Init contact manager here\r
43         this.initContactManager(this);\r
44 \r
45         // Fill menu map\r
46         this.fillMenuMap();\r
47     }\r
48 \r
49     @Override\r
50     public void displayAddressBox (final Contact contact) {\r
51         throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.\r
52     }\r
53 \r
54     @Override\r
55     public void displayNameBox (final Contact contact) {\r
56         throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.\r
57     }\r
58 \r
59     @Override\r
60     public void displayOtherDataBox (final Contact contact) {\r
61         throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.\r
62     }\r
63 \r
64     @Override\r
65     public void doUserMenuChoice () throws UnhandledUserChoiceException {\r
66         throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.\r
67     }\r
68 \r
69     @Override\r
70     public char enterChar (final char[] validChars, String message) {\r
71         throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.\r
72     }\r
73 \r
74     @Override\r
75     public int enterInt (final int minimum, final int maximum, final String message) {\r
76         throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.\r
77     }\r
78 \r
79     @Override\r
80     public String enterString (final int minLength, final int maxLength, final String message, final boolean allowEmpty) {\r
81         throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.\r
82     }\r
83 \r
84     @Override\r
85     public Menu getMenu (final String menuType) {\r
86         throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.\r
87     }\r
88 \r
89     /**\r
90      * Returns a Swing menu item\r
91      * \r
92      * @param accessKey Key to access the menu\r
93      * @param text Text to show to user\r
94      * @return A SelectableMenuItem\r
95      * @todo Make sure the access key is unique\r
96      */\r
97     @Override\r
98     public SelectableMenuItem getMenuItem (final char accessKey, final String text) {\r
99         // Returns null as the menu is now no longer controlled here.\r
100         return null;\r
101     }\r
102 \r
103     @Override\r
104     public void outputMessage (final String message) {\r
105         throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.\r
106     }\r
107 \r
108     @Override\r
109     public void showCurrentMenu () {\r
110         throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.\r
111     }\r
112 \r
113     @Override\r
114     public void showEntry (final SelectableMenuItem item) {\r
115         throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.\r
116     }\r
117 \r
118     @Override\r
119     public void showWelcome () {\r
120         throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.\r
121     }\r
122 \r
123     @Override\r
124     public void userChooseChangeContactData (final Contact contact) throws UnhandledUserChoiceException {\r
125         throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.\r
126     }\r
127 \r
128     /**\r
129      * Fills menu map with swing menus\r
130      */\r
131     @Override\r
132     protected final void fillMenuMap () {\r
133         // Nothing to fill here as the Swing frame is handling this all\r
134     }\r
135     \r
136 }\r