Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
JButtonI |
|
| 1.0;1 |
1 | /****************************************************************************** | |
2 | * JButtonI.java - Business interface for a JButton without the yucky GUI stuff. | |
3 | * $Id$ | |
4 | * | |
5 | * BuckoFIBS - Backgammon by BuckoSoft | |
6 | * Copyright© 2011 - Dick Balaska - BuckoSoft, Corp. | |
7 | * | |
8 | * $Log$ | |
9 | */ | |
10 | ||
11 | /* | |
12 | * This program is free software: you can redistribute it and/or modify | |
13 | * it under the terms of the GNU General Public License as published by | |
14 | * the Free Software Foundation, either version 3 of the License, or | |
15 | * (at your option) any later version. | |
16 | * | |
17 | * This program is distributed in the hope that it will be useful, | |
18 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 | * GNU General Public License for more details. | |
21 | * | |
22 | * You should have received a copy of the GNU General Public License | |
23 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
24 | * | |
25 | * The Original Code is BuckoFIBS, <http://www.buckosoft.com/BuckoFIBS/>. | |
26 | * The Initial Developer of the Original Code is Dick Balaska and BuckoSoft, Corp. | |
27 | * | |
28 | */ | |
29 | package com.buckosoft.swing; | |
30 | ||
31 | /** Business interface for a JButton without the yucky GUI stuff. | |
32 | * This is used instead of accessing a JButton directly so that we can create a test harness | |
33 | * of buttons without the GUI bits. | |
34 | * @author Dick Balaska | |
35 | * @since 2011/05/10 | |
36 | * @version $Revision$ <br> $Date$ | |
37 | * @see <a href="http://cvs.buckosoft.com/Projects/BuckoFIBS/BuckoFIBS/src/main/java/com/buckosoft/swing/JButtonI.java">cvs JButtonI.java</a> | |
38 | * @see javax.swing.JButton | |
39 | * | |
40 | */ | |
41 | public interface JButtonI { | |
42 | ||
43 | /** Is this button enabled? | |
44 | * @return whether this button is enabled or not. | |
45 | * @see javax.swing.JButton#isEnabled() | |
46 | */ | |
47 | public boolean isEnabled(); | |
48 | ||
49 | /** Set the enabled state of this button | |
50 | * @param enabled true to enable the button | |
51 | * @see javax.swing.JButton#setEnabled(boolean) | |
52 | */ | |
53 | public void setEnabled(boolean enabled); | |
54 | } |