1 package fr.ifremer.quadrige3.ui.swing; 2 3 /*- 4 * #%L 5 * Quadrige3 Core :: Quadrige3 UI Common 6 * $Id:$ 7 * $HeadURL:$ 8 * %% 9 * Copyright (C) 2017 Ifremer 10 * %% 11 * This program is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Affero General Public License as published by 13 * the Free Software Foundation, either version 3 of the License, or 14 * (at your option) any later version. 15 * 16 * This program is distributed in the hope that it will be useful, 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 * GNU General Public License for more details. 20 * 21 * You should have received a copy of the GNU Affero General Public License 22 * along with this program. If not, see <http://www.gnu.org/licenses/>. 23 * #L% 24 */ 25 26 /** 27 * @author peck7 on 29/06/2017. 28 */ 29 public class Screen { 30 31 /** 32 * home screen 33 */ 34 public static final Screen HOME = new Screen("HOME"); 35 36 /** 37 * database management screen 38 */ 39 public static final Screen MANAGE_DB = new Screen("MANAGE_DB"); 40 41 /** 42 * Consultation du journal des transferts 43 */ 44 public static final Screen SYNCHRO_LOG = new Screen("SYNCHRO_LOG"); 45 46 47 /* 48 * Screen definition 49 */ 50 private final String screenName; 51 52 protected Screen(String screenName) { 53 this.screenName = screenName; 54 } 55 56 public String getName() { 57 return screenName; 58 } 59 60 @Override 61 public int hashCode() { 62 return screenName.hashCode(); 63 } 64 65 @Override 66 public String toString() { 67 return "Screen: " + screenName; 68 } 69 }