-/*\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.FrameworkInterface;\r
-import org.mxchange.addressbook.client.Client;\r
-\r
-/**\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
- * \r
- * @param client Client instance\r
- */\r
- public void setupFrame (final Client client);\r
-\r
- /**\r
- * Initializes frame\r
- */\r
- public void initFrame ();\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.FrameAlreadyInitializedException;
+import org.mxchange.addressbook.FrameworkInterface;
+import org.mxchange.addressbook.client.Client;
+
+/**
+ * An interface for applications with a frame
+ *
+ * @author Roland Haeder
+ */
+public interface ClientFrame extends FrameworkInterface {
+
+ /**
+ * Shutdown this frame
+ */
+ public void doShutdown ();
+
+ /**
+ * 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;
+
+ /**
+ * Returns field isInitialized. This flag indicates whether this frame has been initialized or not.
+ *
+ * @return Field isInitialized
+ */
+ public boolean isInitialized ();
+}