2 * Copyright (C) 2015 Roland Haeder
\r
4 * This program is free software: you can redistribute it and/or modify
\r
5 * it under the terms of the GNU General Public License as published by
\r
6 * the Free Software Foundation, either version 3 of the License, or
\r
7 * (at your option) any later version.
\r
9 * This program is distributed in the hope that it will be useful,
\r
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
12 * GNU General Public License for more details.
\r
14 * You should have received a copy of the GNU General Public License
\r
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
\r
17 package org.mxchange.addressbook.client;
\r
19 import org.mxchange.addressbook.BaseFrameworkSystem;
\r
24 * @author Roland Haeder
\r
26 public class BaseClient extends BaseFrameworkSystem {
\r
29 * Current menu choice
\r
31 private String currentMenu;
\r
34 * Application is not running by default
\r
36 private boolean isRunning;
\r
39 * No instances can be created of this class
\r
41 protected BaseClient () {
\r
46 * Disables running state, so the main loop can abort.
\r
48 public void disableIsRunning () {
\r
49 this.isRunning = false;
\r
52 public void enableIsRunning () {
\r
53 this.isRunning = true;
\r
57 * Current menu choice
\r
58 * @return the currentMenu
\r
60 public String getCurrentMenu () {
\r
61 return this.currentMenu;
\r
65 * Current menu choice
\r
66 * @param currentMenu the currentMenu to set
\r
68 public void setCurrentMenu (final String currentMenu) {
\r
69 this.currentMenu = currentMenu;
\r
72 public boolean isApplicationRunning () {
\r
73 // In console client, 0 may have been used
\r
74 return this.isRunning;
\r