]> git.mxchange.org Git - addressbook-lib.git/blobdiff - Addressbook/src/org/mxchange/addressbook/client/gui/ClientFrame.java
Added 'final' keyword to getters/setters as it makes no sense overwriting them.
[addressbook-lib.git] / Addressbook / src / org / mxchange / addressbook / client / gui / ClientFrame.java
index 17318d4466b3907cf3172eb8a369ab37acb9d77f..0c5ab4dfa365d580cd7d769f253f5aec4880c671 100644 (file)
  */\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
-    /**\r
-     * From JFrame\r
-     * \r
-     * @param visible Set visibility\r
-     */\r
-    public void setVisible (boolean visible);\r
-\r
     /**\r
      * Setups the frame (and starts it). You have to call initFrame() before you\r
      * can call this method.\r
@@ -42,6 +36,15 @@ public interface ClientFrame extends FrameworkInterface {
 \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 void initFrame ();\r
+    public boolean isInitialized ();\r
 }\r