X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=Addressbook%2Fsrc%2Forg%2Fmxchange%2Faddressbook%2Fclient%2Fgui%2FClientFrame.java;h=b68a3b7277f0ffd2396959e574ff9101889de61f;hb=236c7c955aa1c7dee89da1e324cce33bf72a4d49;hp=06af9bb57af2cb05b262f18aa1172d7212c61eed;hpb=ac52e6515a6d8e23aea65a40b1ac0d1d481d6dfe;p=jaddressbook-lib.git
diff --git a/Addressbook/src/org/mxchange/addressbook/client/gui/ClientFrame.java b/Addressbook/src/org/mxchange/addressbook/client/gui/ClientFrame.java
index 06af9bb5..b68a3b72 100644
--- a/Addressbook/src/org/mxchange/addressbook/client/gui/ClientFrame.java
+++ b/Addressbook/src/org/mxchange/addressbook/client/gui/ClientFrame.java
@@ -1,50 +1,77 @@
-/*
- * 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 .
- */
-package org.mxchange.addressbook.client.gui;
-
-import org.mxchange.addressbook.FrameAlreadyInitializedException;
-import org.mxchange.addressbook.FrameworkInterface;
-import org.mxchange.addressbook.client.Client;
-
-/**
- *
- * @author Roland Haeder
- */
-public interface ClientFrame extends FrameworkInterface {
-
- /**
- * From JFrame
- *
- * @param visible Set visibility
- */
- public void setVisible (boolean visible);
-
- /**
- * Setups the frame (and starts it). You have to call initFrame() before you
- * can call this method.
- *
- * @param client Client instance
- */
- public void setupFrame (final Client client);
-
- /**
- * Initializes frame
- *
- * @throws org.mxchange.addressbook.FrameAlreadyInitializedException If this method has been called twice
- */
- public void initFrame () throws FrameAlreadyInitializedException;
-}
+/*
+ * 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 .
+ */
+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 ();
+}