]> git.mxchange.org Git - jfinancials-swing.git/blobdiff - src/org/mxchange/addressbook/menu/console/ConsoleMenu.java
Project relocated (a bit better now?) + continued with Swing client
[jfinancials-swing.git] / src / org / mxchange / addressbook / menu / console / ConsoleMenu.java
diff --git a/src/org/mxchange/addressbook/menu/console/ConsoleMenu.java b/src/org/mxchange/addressbook/menu/console/ConsoleMenu.java
new file mode 100644 (file)
index 0000000..cefa2c5
--- /dev/null
@@ -0,0 +1,40 @@
+/*\r
+ * Copyright (C) 2015 Roland Haeder\r
+ *\r
+ * This program is free software: you can redistribute it and/or modify\r
+ * it under the terms of the GNU General Public License as published by\r
+ * the Free Software Foundation, either version 3 of the License, or\r
+ * (at your option) any later version.\r
+ *\r
+ * This program is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+ * GNU General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License\r
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.\r
+ */\r
+package org.mxchange.addressbook.menu.console;\r
+\r
+import org.mxchange.addressbook.client.Client;\r
+import org.mxchange.addressbook.menu.AddressbookMenu;\r
+import org.mxchange.addressbook.menu.BaseMenu;\r
+import org.mxchange.addressbook.menu.Menu;\r
+\r
+/**\r
+ *\r
+ * @author Roland Haeder\r
+ */\r
+public class ConsoleMenu extends BaseMenu implements Menu {\r
+    /**\r
+     * Constructor for this menu\r
+     * @param menuType Menu type to initialize\r
+     * @param client CLient to call back\r
+     */\r
+    public ConsoleMenu (final String menuType, final Client client) {\r
+       this.initMenu(menuType, client);\r
+       \r
+       // Add all items\r
+       AddressbookMenu.addItemsToList(this.getMenuList(), menuType, client);\r
+    }\r
+}\r