]> git.mxchange.org Git - addressbook-swing.git/commitdiff
More cleanups
authorRoland Haeder <roland@mxchange.org>
Fri, 18 Sep 2015 09:59:56 +0000 (11:59 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 18 Sep 2015 09:59:56 +0000 (11:59 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/addressbook/client/BaseAddressbookClient.java
src/org/mxchange/addressbook/client/gui/SwingClient.java
src/org/mxchange/addressbook/manager/contact/AddressbookContactManager.java

index a21dbec05a251aa5bb7f87f86c3e13f66b480e36..d1551b7d83455e2186f6588d165ca04adb485fc9 100644 (file)
@@ -72,7 +72,7 @@ public abstract class BaseAddressbookClient extends BaseClient implements Addres
         * @param menuType Menu type instance to return
         * @return Menu or null if not found
         */
-       public Menu getMenu (final String menuType) {
+       private Menu getMenu (final String menuType) {
                // Default is not found
                Menu menu = null;
 
@@ -135,6 +135,7 @@ public abstract class BaseAddressbookClient extends BaseClient implements Addres
                // Trace message
                this.getLogger().trace(MessageFormat.format("menuType={0} - CALLED!", menuType)); //NOI18N
 
+               // Get menu from type
                Menu menu = this.getMenu(menuType);
 
                // Is the menu set?
index db75caf024f6e32f647d5eb827e5b7712d3afce4..fe62846f998a489f3fdac78f350489d978b54755 100644 (file)
@@ -20,7 +20,6 @@ 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.exceptions.FrameAlreadyInitializedException;
@@ -75,17 +74,17 @@ 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
        }
 
@@ -150,11 +149,6 @@ 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
         *
index c3067ca3d3152fc410743f5e94ed51e30d48fd2d..7a5e5eed43f7e41a3c20b1aa65b0d3871a6056b1 100644 (file)
@@ -681,22 +681,6 @@ public class AddressbookContactManager extends BaseManager implements Manageable
                this.getLogger().trace("EXIT!"); //NOI18N
        }
 
-       @Override
-       public final int size () throws IOException {
-               // Init size
-               int size = -1;
-
-               try {
-                       size = ((AddressbookContactFrontend) this.getFrontend()).getContactsCount();
-               } catch (final SQLException ex) {
-                       // Something happened
-                       this.abortProgramWithException(ex);
-               }
-
-               // Return amount
-               return size;
-       }
-
        /**
         * Fills the column names array with strings from bundle
         */