2 * Copyright (C) 2015 Roland Haeder
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 package org.mxchange.addressbook.client.gui;
19 import org.mxchange.jcore.FrameworkInterface;
20 import org.mxchange.jcore.client.Client;
21 import org.mxchange.jcore.contact.Contact;
22 import org.mxchange.jcore.exceptions.FrameAlreadyInitializedException;
25 * An interface for applications with a frame
27 * @author Roland Haeder
29 public interface ClientFrame extends FrameworkInterface {
32 * Shows the user the "add contact" form with some special text
34 * @return Contact instance
36 public Contact doEnterOwnData ();
41 public void doShutdown ();
44 * Enables main window (frame)
46 public void enableMainWindow ();
49 * Setups the frame (and starts it). You have to call init() before you can
52 * @param client Client instance
54 public void setupFrame (final Client client);
60 * org.mxchange.jcore.exceptions.FrameAlreadyInitializedException If
61 * this method has been called twice
63 public void init () throws FrameAlreadyInitializedException;
66 * Returns field isInitialized. This flag indicates whether this frame has
67 * been initialized or not.
69 * @return Field isInitialized
71 public boolean isInitialized ();
74 * Shuts down application
76 public void shutdownApplication ();