+++ /dev/null
-/*
- * Copyright (C) 2015 Roland Haeder
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.addressbook;
-
-import org.mxchange.jcore.BaseFrameworkSystem;
-
-/**
- * General class for addressbook application
- *
- * @author Roland Haeder
- */
-public class BaseAddressbookSystem extends BaseFrameworkSystem {
- /**
- * No instances can be created of this class
- */
- protected BaseAddressbookSystem () {
- }
-}
import java.io.IOException;
import java.sql.SQLException;
import java.text.MessageFormat;
-import java.util.logging.Level;
-import java.util.logging.Logger;
-import org.mxchange.addressbook.BaseAddressbookSystem;
import org.mxchange.addressbook.client.AddressbookClient;
import org.mxchange.addressbook.client.console.ConsoleClient;
import org.mxchange.addressbook.client.gui.SwingClient;
* @author Roland Haeder
* @version 0.0
*/
-public class AddressbookApplication extends BaseAddressbookSystem implements Application {
+public class AddressbookApplication extends BaseFrameworkSystem implements Application {
/**
* Application title
import javax.swing.JTextField;
import javax.swing.border.TitledBorder;
import javax.swing.table.TableModel;
-import org.mxchange.addressbook.BaseAddressbookSystem;
import org.mxchange.addressbook.application.AddressbookApplication;
import org.mxchange.addressbook.exceptions.ContactAlreadyAddedException;
import org.mxchange.addressbook.manager.contact.ManageableContactAddressbook;
+import org.mxchange.jcore.BaseFrameworkSystem;
import org.mxchange.jcore.client.Client;
import org.mxchange.jcore.exceptions.FrameAlreadyInitializedException;
import org.mxchange.jcore.model.contact.Contact;
*
* @author Roland Haeder
*/
-public class AddressbookFrame extends BaseAddressbookSystem implements ClientFrame {
+public class AddressbookFrame extends BaseFrameworkSystem implements ClientFrame {
/**
* Own instance
this.frame.setLocationRelativeTo(null);
// Init menu system
- initMenuSystem();
+ this.initMenuSystem();
// Init table
- initTable();
+ this.initTable();
// Init status panel
- initStatusPanel();
+ this.initStatusPanel();
// Init other windows
- initOtherDialogs();
+ this.initOtherDialogs();
// Trace message
this.getLogger().trace("EXIT!"); //NOI18N
this.getLogger().trace("CALLED!"); //NOI18N
// Instance table model
- this.dataModel = new ContactTableModel(this.getClient());
+ this.dataModel = new ContactTableModel(this.getClient().getManager());
// Instance table
this.dataTable = new JTable(this.dataModel);
/**
* Class for "add address" button
*/
- private static class AddActionListener extends BaseAddressbookSystem implements ActionListener {
+ private static class AddActionListener extends BaseFrameworkSystem implements ActionListener {
/**
* Dialog instance
*/
/**
* Class for "cancel address" button
*/
- private static class CancelActionListener extends BaseAddressbookSystem implements ActionListener {
+ private static class CancelActionListener extends BaseFrameworkSystem implements ActionListener {
/**
* Dialog instance
*/
import java.text.MessageFormat;
import java.util.List;
import org.apache.logging.log4j.Logger;
-import org.mxchange.addressbook.BaseAddressbookSystem;
import org.mxchange.addressbook.client.AddressbookClient;
import org.mxchange.addressbook.menu.item.SelectableMenuItem;
import org.mxchange.jcore.client.Client;
*
* @author Roland Haeder
*/
-public class AddressbookMenu extends BaseAddressbookSystem {
+public class AddressbookMenu extends BaseMenu {
/**
* Copies entries for given type into the menu list
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
-import org.mxchange.addressbook.BaseAddressbookSystem;
import org.mxchange.addressbook.client.AddressbookClient;
import org.mxchange.addressbook.menu.item.SelectableMenuItem;
+import org.mxchange.jcore.BaseFrameworkSystem;
import org.mxchange.jcore.client.Client;
/**
*
* @author Roland Haeder
*/
-public class BaseMenu extends BaseAddressbookSystem {
+public class BaseMenu extends BaseFrameworkSystem {
/**
* Menu list
import java.util.Iterator;
import java.util.Map;
import org.apache.logging.log4j.Logger;
-import org.mxchange.addressbook.BaseAddressbookSystem;
import org.mxchange.addressbook.menu.item.SelectableMenuItem;
+import org.mxchange.jcore.BaseFrameworkSystem;
/**
*
* @author Roland Haeder
*/
-public class MenuTools extends BaseAddressbookSystem {
+public class MenuTools extends BaseFrameworkSystem {
/**
* Gets an array with all available access keys back from given menu map.
*/
package org.mxchange.addressbook.menu.item;
-import org.mxchange.addressbook.BaseAddressbookSystem;
+import org.mxchange.jcore.BaseFrameworkSystem;
/**
*
* @author Roland Haeder
*/
-public class BaseMenuItem extends BaseAddressbookSystem {
+public class BaseMenuItem extends BaseFrameworkSystem {
}