]> 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 02f4cad2ed0660fa8fafa5463004ae99fc27ba3e..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
-     * Setups the frame\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