1 /* 2 * Copyright (C) 2008 ETH Zurich 3 * 4 * This file is part of Fosstrak (www.fosstrak.org). 5 * 6 * Fosstrak is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License version 2.1, as published by the Free Software Foundation. 9 * 10 * Fosstrak is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13 * Lesser General Public License for more details. 14 * 15 * You should have received a copy of the GNU Lesser General Public 16 * License along with Fosstrak; if not, write to the Free 17 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 18 * Boston, MA 02110-1301 USA 19 */ 20 21 package org.fosstrak.epcis.gui; 22 23 import java.util.EventObject; 24 25 /** 26 * Notification that authentication options have changed. 27 * 28 * @author Sean Wellington 29 */ 30 public class AuthenticationOptionsChangeEvent extends EventObject { 31 32 static final long serialVersionUID = 7641439802544240559L; 33 34 private boolean complete; 35 36 public AuthenticationOptionsChangeEvent(Object source, boolean complete) { 37 super(source); 38 this.complete = complete; 39 } 40 41 /** 42 * Indicates whether the supplied options are complete (i.e. sufficient filled out 43 * to allow the desired type of authentication to proceed), and the GUI buttons 44 * can be reactivated. 45 * @return true, if the options are sufficiently filled out to allow the 46 * desired type of authentication to proceed, false otherwise. 47 */ 48 public boolean isComplete() { 49 return complete; 50 } 51 52 }