View Javadoc
1   /******************************************************************************
2    * ToolbarHandler.java - Interface to describe how to handle one of the board toolbar events.
3    * $Id$
4    * 
5    * BuckoFIBS - Backgammon by BuckoSoft
6    * Copyright© 2009,2010 - Dick Balaska - BuckoSoft, Corp.
7    * 
8    * $Log$
9    * Revision 1.2  2011/05/23 02:46:59  dick
10   * Add the PlayPaused button.
11   *
12   * Revision 1.1  2011/05/15 02:17:33  dick
13   * c.b.f.B.gui.board becomes c.b.f.B.gui.boardTab.
14   *
15   * Revision 1.3  2010/03/03 13:12:21  inim
16   * Replaced (c) sign in comment mangled by CVS default encoding back to UTF-8
17   *
18   * Revision 1.2  2010/03/03 12:19:49  inim
19   * Moved source to UTF8 encoding from CP1252 encoding. To this end all source files' (c) message was updated to "Copyright© 2009,2010 - Dick Balaska - BuckoSoft, Corp.". This replaces the (c) sign to UTF8, and adds the new year 2010.
20   *
21   * Revision 1.1  2010/02/04 05:57:53  inim
22   * Mavenized project folder layout
23   *
24   * Revision 1.3  2009/02/14 15:32:16  dick
25   * BuckoFIBS is released under the GNU license.
26   *
27   * Revision 1.2  2009/02/05 05:59:18  dick
28   * Add the AskDoubles and Resign buttons.
29   *
30   * Revision 1.1  2009/01/31 06:03:34  dick
31   * Interface to describe how to handle one of the board toolbar events.
32   */
33  
34  /* 
35   * This program is free software: you can redistribute it and/or modify
36   * it under the terms of the GNU General Public License as published by
37   * the Free Software Foundation, either version 3 of the License, or
38   * (at your option) any later version.
39   *
40   * This program is distributed in the hope that it will be useful,
41   * but WITHOUT ANY WARRANTY; without even the implied warranty of
42   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
43   * GNU General Public License for more details.
44   *
45   * You should have received a copy of the GNU General Public License
46   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
47   *
48   * The Original Code is BuckoFIBS, <http://www.buckosoft.com/BuckoFIBS/>.
49   * The Initial Developer of the Original Code is Dick Balaska and BuckoSoft, Corp.
50   * 
51   */
52  package com.buckosoft.fibs.BuckoFIBS.gui.boardTab;
53  
54  /** Interface to describe how to handle one of the board toolbar events.
55   * @author Dick Balaska
56   * @since 2009/01/30
57   * @version $Revision$ <br> $Date$
58   * @see <a href="http://cvs.buckosoft.com/Projects/BuckoFIBS/BuckoFIBS/src/main/java/com/buckosoft/fibs/BuckoFIBS/gui/boardTab/ToolbarHandler.java">cvs ToolbarHandler.java</a>
59   */
60  public interface ToolbarHandler {
61  	
62  	/** Define the different buttons on the Board toolbar
63  	 */
64  	enum Button {
65  		Undo,
66  		Greedy,
67  		AskDoubles,
68  		Resign,
69  		
70  		First,
71  		Prev,
72  		Next,
73  		Last,
74  		/** Play or Paused pressed */
75  		PlayPaused,
76  	}
77  	
78  	/** Method to call when a button is pressed
79  	 * @param button The Button
80  	 */
81  	void	buttonPressed(Button button);
82  }