]> git.mxchange.org Git - addressbook-lib.git/blobdiff - Addressbook/src/org/mxchange/addressbook/client/gui/SwingClient.java
Introduced more methods + added first dialog call (yes, it is still visible by startu...
[addressbook-lib.git] / Addressbook / src / org / mxchange / addressbook / client / gui / SwingClient.java
index 634b0cf2cf4cca5c1bad26da82e637102ac59517..a8c1a72910e14f39b1de5455d4bc296a475e96a5 100644 (file)
@@ -46,7 +46,7 @@ public class SwingClient extends BaseClient implements Client {
                super();
 
                // Debug message
-               this.getLogger().trace("CALLED!");
+               this.getLogger().trace("CALLED!"); //NOI18N
 
                // Set application instance
                this.setApplication(application);
@@ -57,42 +57,43 @@ public class SwingClient extends BaseClient implements Client {
 
        @Override
        public void displayAddressBox (final Contact contact) {
-               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. //NOI18N
        }
 
        @Override
        public void displayNameBox (final Contact contact) {
-               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. //NOI18N
        }
 
        @Override
        public void displayOtherDataBox (final Contact contact) {
-               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. //NOI18N
        }
 
        @Override
        public void doChangeOwnAddressData (Contact contact) {
-               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. //NOI18N
        }
 
        @Override
        public void doChangeOwnNameData (Contact contact) {
-               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. //NOI18N
        }
 
        @Override
        public void doChangeOwnOtherData (Contact contact) {
-               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. //NOI18N
        }
 
        /**
         * Shows dialog to enter new contact
-        * 
+        *
         * @return Returns finished Contact instance
         */
        @Override
        public Contact doEnterOwnData () {
-               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+               // Deligate this call to the frame
+               return this.frame.doEnterOwnData();
        }
 
        /**
@@ -101,7 +102,7 @@ public class SwingClient extends BaseClient implements Client {
        @Override
        public void doShutdown () {
                // Debug message
-               this.getLogger().trace("CALLED!");
+               this.getLogger().trace("CALLED!"); //NOI18N
 
                // Parent call
                super.doShutdown();
@@ -111,7 +112,7 @@ public class SwingClient extends BaseClient implements Client {
 
                // @TODO Add other shutdown stuff
                // Debug message
-               this.getLogger().trace("EXIT!");
+               this.getLogger().trace("EXIT!"); //NOI18N
        }
 
        @Override
@@ -124,27 +125,27 @@ public class SwingClient extends BaseClient implements Client {
 
        @Override
        public char enterChar (final char[] validChars, String message) {
-               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. //NOI18N
        }
 
        @Override
        public Gender enterGender (final String message) {
-               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. //NOI18N
        }
 
        @Override
        public int enterInt (final int minimum, final int maximum, final String message) {
-               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. //NOI18N
        }
 
        @Override
        public String enterString (final int minLength, final int maxLength, final String message, final boolean allowEmpty) {
-               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+               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.
+               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. //NOI18N
        }
 
        /**
@@ -157,7 +158,7 @@ public class SwingClient extends BaseClient implements Client {
        @Override
        public SelectableMenuItem getMenuItem (final char accessKey, final String text) {
                // Debug message
-               this.getLogger().trace("CALLED!");
+               this.getLogger().trace("CALLED!"); //NOI18N
 
                // Returns null as the menu is now no longer controlled here.
                return null;
@@ -169,7 +170,7 @@ public class SwingClient extends BaseClient implements Client {
        @Override
        public void init () {
                // Debug message
-               this.getLogger().trace("CALLED!");
+               this.getLogger().trace("CALLED!"); //NOI18N
 
                // Init contact manager here
                this.initContactManager();
@@ -186,12 +187,12 @@ public class SwingClient extends BaseClient implements Client {
                this.frame.setupFrame(this);
 
                // Debug message
-               this.getLogger().trace("EXIT!");
+               this.getLogger().trace("EXIT!"); //NOI18N
        }
 
        @Override
        public void outputMessage (final String message) {
-               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. //NOI18N
        }
 
        @Override
@@ -204,20 +205,20 @@ public class SwingClient extends BaseClient implements Client {
 
        @Override
        public void showEntry (final SelectableMenuItem item) {
-               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. //NOI18N
        }
 
        @Override
        public void showWelcome () {
                // Debug message
-               this.getLogger().trace("CALLED!");
+               this.getLogger().trace("CALLED!"); //NOI18N
 
                // Not implemented here
        }
 
        @Override
        public void userChooseChangeContactData (final Contact contact) throws UnhandledUserChoiceException {
-               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
+               throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates. //NOI18N
        }
 
        /**
@@ -226,6 +227,6 @@ public class SwingClient extends BaseClient implements Client {
        @Override
        protected final void fillMenuMap () {
                // Nothing to fill here as the Swing frame is handling this all
-               throw new UnsupportedOperationException("Not implemented.");
+               throw new UnsupportedOperationException("Not implemented."); //NOI18N
        }
 }