]> git.mxchange.org Git - jbonuscard-lib.git/blobdiff - src/org/mxchange/addressbook/client/gui/SwingClient.java
Continued:
[jbonuscard-lib.git] / src / org / mxchange / addressbook / client / gui / SwingClient.java
index b66b07c0030bd33fbac8976fe548d2f97b60b029..8d91d075abb948656aa4b504e3b3f9ad588eaafc 100644 (file)
@@ -20,16 +20,16 @@ import java.io.IOException;
 import java.sql.SQLException;
 import org.mxchange.addressbook.client.AddressbookClient;
 import org.mxchange.addressbook.client.BaseAddressbookClient;
-import org.mxchange.addressbook.menu.Menu;
 import org.mxchange.addressbook.menu.item.SelectableMenuItem;
 import org.mxchange.jcore.application.Application;
-import org.mxchange.jcore.contact.Contact;
-import org.mxchange.jcore.contact.gender.Gender;
 import org.mxchange.jcore.exceptions.FrameAlreadyInitializedException;
 import org.mxchange.jcore.exceptions.UnhandledUserChoiceException;
-import org.mxchange.jswingcore.client.gui.ClientFrame;
+import org.mxchange.jcore.model.contact.Contact;
+import org.mxchange.jcore.model.contact.gender.Gender;
+import org.mxchange.jcoreswing.client.gui.ClientFrame;
 
 /**
+ * A swing client
  *
  * @author Roland Haeder
  */
@@ -42,12 +42,12 @@ public class SwingClient extends BaseAddressbookClient implements AddressbookCli
 
        /**
         * Constructor with an Application instance.
-        *
+        * <p>
         * @param application Application instance
         */
        public SwingClient (final Application application) {
                // Debug message
-               this.getLogger().trace("CALLED!"); //NOI18N
+               this.getLogger().logTrace("CALLED!"); //NOI18N
 
                // Set application instance
                this.setApplication(application);
@@ -56,7 +56,7 @@ public class SwingClient extends BaseAddressbookClient implements AddressbookCli
                this.frame = AddressbookFrame.getSelfInstance(this);
 
                // Trace message
-               this.getLogger().trace("EXIT!"); //NOI18N
+               this.getLogger().logTrace("EXIT!"); //NOI18N
        }
 
        @Override
@@ -75,29 +75,29 @@ public class SwingClient extends BaseAddressbookClient implements AddressbookCli
        }
 
        @Override
-       public void doChangeOwnAddressData (Contact contact) {
+       public void doChangeOwnAddressData (final Contact contact) {
                throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. //NOI18N
        }
 
        @Override
-       public void doChangeOwnNameData (Contact contact) {
+       public void doChangeOwnNameData (final Contact contact) {
                throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. //NOI18N
        }
 
        @Override
-       public void doChangeOwnOtherData (Contact contact) {
+       public void doChangeOwnOtherData (final Contact contact) {
                throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. //NOI18N
        }
 
        /**
         * Shows dialog to enter new contact
-        *
+        * <p>
         * @return Returns finished Contact instance
         */
        @Override
        public Contact doEnterOwnData () {
                // Trace message
-               this.getLogger().trace("CALLED!"); //NOI18N
+               this.getLogger().logTrace("CALLED!"); //NOI18N
 
                // Deligate this call to the frame
                return this.frame.doEnterOwnData();
@@ -109,7 +109,7 @@ public class SwingClient extends BaseAddressbookClient implements AddressbookCli
        @Override
        public void doShutdown () throws SQLException, IOException {
                // Debug message
-               this.getLogger().trace("CALLED!"); //NOI18N
+               this.getLogger().logTrace("CALLED!"); //NOI18N
 
                // Parent call
                super.doShutdown();
@@ -119,13 +119,13 @@ public class SwingClient extends BaseAddressbookClient implements AddressbookCli
 
                // TODO Add other shutdown stuff
                // Debug message
-               this.getLogger().trace("EXIT!"); //NOI18N
+               this.getLogger().logTrace("EXIT!"); //NOI18N
        }
 
        @Override
        public void doUserMenuChoice () throws UnhandledUserChoiceException {
                // Debug message
-               //* NOISY-DEBUG: */ this.getLogger().trace("CALLED!");
+               //* NOISY-DEBUG: */ this.getLogger().logTrace("CALLED!");
 
                // Not implemented here
        }
@@ -150,14 +150,9 @@ public class SwingClient extends BaseAddressbookClient implements AddressbookCli
                throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. //NOI18N
        }
 
-       @Override
-       public Menu getMenu (final String menuType) {
-               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. //NOI18N
-       }
-
        /**
         * Returns a Swing menu item
-        *
+        * <p>
         * @param accessKey Key to access the menu
         * @param text Text to show to user
         * @return A SelectableMenuItem
@@ -165,7 +160,7 @@ public class SwingClient extends BaseAddressbookClient implements AddressbookCli
        @Override
        public SelectableMenuItem getMenuItem (final char accessKey, final String text) {
                // Debug message
-               this.getLogger().trace("CALLED!"); //NOI18N
+               this.getLogger().logTrace("CALLED!"); //NOI18N
 
                // Returns null as the menu is now no longer controlled here.
                return null;
@@ -177,7 +172,7 @@ public class SwingClient extends BaseAddressbookClient implements AddressbookCli
        @Override
        public void init () {
                // Debug message
-               this.getLogger().trace("CALLED!"); //NOI18N
+               this.getLogger().logTrace("CALLED!"); //NOI18N
 
                try {
                        // Init contact manager here
@@ -194,7 +189,7 @@ public class SwingClient extends BaseAddressbookClient implements AddressbookCli
                }
 
                // Debug message
-               this.getLogger().trace("EXIT!"); //NOI18N
+               this.getLogger().logTrace("EXIT!"); //NOI18N
        }
 
        @Override
@@ -202,10 +197,15 @@ public class SwingClient extends BaseAddressbookClient implements AddressbookCli
                throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. //NOI18N
        }
 
+       @Override
+       public void show (final Contact contact) {
+               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+       }
+
        @Override
        public void showCurrentMenu () {
                // Debug message
-               //* NOISY-DEBUG: */ this.getLogger().trace("CALLED!");
+               //* NOISY-DEBUG: */ this.getLogger().logTrace("CALLED!");
 
                // Not implemented here
        }
@@ -218,7 +218,7 @@ public class SwingClient extends BaseAddressbookClient implements AddressbookCli
        @Override
        public void showWelcome () {
                // Debug message
-               this.getLogger().trace("CALLED!"); //NOI18N
+               this.getLogger().logTrace("CALLED!"); //NOI18N
 
                // Not implemented here
        }