KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > opensubsystems > patterns > thickclient > application > swt > ToggleButtonListener


1 /*
2  * Copyright (c) 2003 - 2007 OpenSubsystems s.r.o. Slovak Republic. All rights reserved.
3  *
4  * Project: OpenSubsystems
5  *
6  * $Id: ToggleButtonListener.java,v 1.3 2007/01/07 06:14:15 bastafidli Exp $
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; version 2 of the License.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20  */

21  
22 package org.opensubsystems.patterns.thickclient.application.swt;
23
24 import org.eclipse.swt.widgets.TableItem;
25
26 /**
27  * Interface which should be implemented by anybody who wants to get notified
28  * when the toggle button is toggled.
29  *
30  * @version $Id: ToggleButtonListener.java,v 1.3 2007/01/07 06:14:15 bastafidli Exp $
31  * @author Miro Halas
32  * @code.reviewer Miro Halas
33  * @code.reviewed 1.1 2006/02/17 03:37:04
34  */

35 public interface ToggleButtonListener
36 {
37    /**
38     * This method is called when the value is toggled. No actual change of value
39     * is performed by the adapter, it just sends a message that the value
40     * should be toggled and the subscribed listener should do the work.
41     *
42     * @param item - table item which was toggled
43     * @param iColumn - column which was toggled
44     * @param objData - data represented by the control
45     * @param strValue - what was the value and the moment of modification
46     */

47    void valueToggled(
48       TableItem item,
49       int iColumn,
50       Object JavaDoc objData,
51       String JavaDoc strValue
52    );
53 }
54
Popular Tags