1 /****************************************************************************** 2 * JUButton.java - A button implementing the JButtonI without a GUI 3 * $Id$ 4 * 5 * BuckoFIBS - Backgammon by BuckoSoft 6 * Copyright© 2011 - Dick Balaska - BuckoSoft, Corp. 7 * 8 * $Log$ 9 * Revision 1.2 2011/05/13 14:14:29 dick 10 * Javadoc. 11 * 12 * Revision 1.1 2011/05/10 22:29:47 dick 13 * Initial Mock Objects checkin. 14 * 15 */ 16 17 /* 18 * This program is free software: you can redistribute it and/or modify 19 * it under the terms of the GNU General Public License as published by 20 * the Free Software Foundation, either version 3 of the License, or 21 * (at your option) any later version. 22 * 23 * This program is distributed in the hope that it will be useful, 24 * but WITHOUT ANY WARRANTY; without even the implied warranty of 25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 26 * GNU General Public License for more details. 27 * 28 * You should have received a copy of the GNU General Public License 29 * along with this program. If not, see <http://www.gnu.org/licenses/>. 30 * 31 * The Original Code is BuckoFIBS, <http://www.buckosoft.com/BuckoFIBS/>. 32 * The Initial Developer of the Original Code is Dick Balaska and BuckoSoft, Corp. 33 * 34 */ 35 36 package com.buckosoft.swing; 37 38 /** A button implementing the JButtonI without a GUI. 39 * A JUnit compatible button. 40 * @author Dick Balaska 41 * @since 2011/05/10 42 * @version $Revision$ <br> $Date$ 43 * @see <a href="http://cvs.buckosoft.com/Projects/BuckoFIBS/BuckoFIBS/src/main/java/com/buckosoft/swing/JUButton.java">cvs JUButton.java</a> 44 */ 45 public class JUButton implements JButtonI { 46 private boolean enabled = true; 47 48 @Override 49 public boolean isEnabled() { 50 return(this.enabled); 51 } 52 53 @Override 54 public void setEnabled(boolean enabled) { 55 this.enabled = true; 56 57 } 58 59 }