]> git.mxchange.org Git - addressbook-lib.git/blobdiff - Addressbook/src/org/mxchange/addressbook/client/gui/ClientFrame.java
A lot more improvements:
[addressbook-lib.git] / Addressbook / src / org / mxchange / addressbook / client / gui / ClientFrame.java
index 0c5ab4dfa365d580cd7d769f253f5aec4880c671..b68a3b7277f0ffd2396959e574ff9101889de61f 100644 (file)
@@ -1,50 +1,77 @@
-/*\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.client.gui;\r
-\r
-import org.mxchange.addressbook.FrameAlreadyInitializedException;\r
-import org.mxchange.addressbook.FrameworkInterface;\r
-import org.mxchange.addressbook.client.Client;\r
-\r
-/**\r
- * An interface for applications with a frame\r
- *\r
- * @author Roland Haeder\r
- */\r
-public interface ClientFrame extends FrameworkInterface {\r
-    /**\r
-     * Setups the frame (and starts it). You have to call initFrame() before you\r
-     * can call this method.\r
-     * \r
-     * @param client Client instance\r
-     */\r
-    public void setupFrame (final Client client);\r
-\r
-    /**\r
-     * Initializes frame\r
-     * \r
-     * @throws org.mxchange.addressbook.FrameAlreadyInitializedException If this method has been called twice\r
-     */\r
-    public void initFrame () throws FrameAlreadyInitializedException;\r
-\r
-    /**\r
-     * Returns field isInitialized. This flag indicates whether this frame has been initialized or not.\r
-     * \r
-     * @return Field isInitialized\r
-     */\r
-    public boolean isInitialized ();\r
-}\r
+/*
+ * 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.client.gui;
+
+import org.mxchange.addressbook.FrameworkInterface;
+import org.mxchange.addressbook.client.Client;
+import org.mxchange.addressbook.contact.Contact;
+import org.mxchange.addressbook.exceptions.FrameAlreadyInitializedException;
+
+/**
+ * An interface for applications with a frame
+ *
+ * @author Roland Haeder
+ */
+public interface ClientFrame extends FrameworkInterface {
+
+       /**
+        * Shows the user the "add contact" form with some special text
+        * 
+        * @return Contact instance
+        */
+       public Contact doEnterOwnData ();
+
+       /**
+        * Shutdown this frame
+        */
+       public void doShutdown ();
+
+       /**
+        * Enables main window (frame)
+        */
+       public void enableMainWindow ();
+
+       /**
+        * Setups the frame (and starts it). You have to call init() before you can
+        * call this method.
+        *
+        * @param client Client instance
+        */
+       public void setupFrame (final Client client);
+
+       /**
+        * Initializes frame
+        *
+        * @throws
+        * org.mxchange.addressbook.exceptions.FrameAlreadyInitializedException If
+        * this method has been called twice
+        */
+       public void init () throws FrameAlreadyInitializedException;
+
+       /**
+        * Returns field isInitialized. This flag indicates whether this frame has
+        * been initialized or not.
+        *
+        * @return Field isInitialized
+        */
+       public boolean isInitialized ();
+
+       /**
+        * Shuts down application
+        */
+       public void shutdownApplication ();
+}