1 package fr.ifremer.quadrige3.ui.swing.synchro.log; 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 import fr.ifremer.quadrige3.ui.swing.model.AbstractEmptyUIModel; 28 29 import java.io.File; 30 31 /** 32 * <p>SynchroLogUIModel class.</p> 33 * 34 * @author Lionel Touseau <lionel.touseau@e-is.pro> 35 */ 36 public class SynchroLogUIModel extends AbstractEmptyUIModel<SynchroLogUIModel> { 37 38 /** Constant <code>PROPERTY_MESSAGE="message"</code> */ 39 public final static String PROPERTY_MESSAGE = "message"; 40 41 /** Constant <code>PROPERTY_LOG_FILE="logFile"</code> */ 42 public final static String PROPERTY_LOG_FILE = "logFile"; 43 44 private String message; 45 46 private File logFile; 47 48 /** 49 * <p>Getter for the field <code>message</code>.</p> 50 * 51 * @return a {@link String} object. 52 */ 53 public String getMessage() { 54 return message; 55 } 56 57 /** 58 * <p>Setter for the field <code>message</code>.</p> 59 * 60 * @param message a {@link String} object. 61 */ 62 public void setMessage(String message) { 63 String oldMessage = getMessage(); 64 this.message = message; 65 firePropertyChange(PROPERTY_MESSAGE, oldMessage, message); 66 } 67 68 /** 69 * <p>Getter for the field <code>logFile</code>.</p> 70 * 71 * @return a {@link File} object. 72 */ 73 public File getLogFile() { 74 return logFile; 75 } 76 77 /** 78 * <p>Setter for the field <code>logFile</code>.</p> 79 * 80 * @param logFile a {@link File} object. 81 */ 82 public void setLogFile(File logFile) { 83 firePropertyChange(PROPERTY_LOG_FILE, 84 this.logFile, 85 this.logFile = logFile); 86 } 87 }