KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * Copyright (c) 2003 - 2007 OpenSubsystems s.r.o. Slovak Republic. All rights reserved.
3  *
4  * Project: OpenSubsystems
5  *
6  * $Id: CharacterPadListener.java,v 1.6 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 /**
25  * Interface which should be implemented by anybody who wants to get notified
26  * when the main CharacterPad special button is clicked.
27  *
28  * @version $Id: CharacterPadListener.java,v 1.6 2007/01/07 06:14:15 bastafidli Exp $
29  * @author Martin Cerba
30  * @code.reviewer Miro Halas
31  * @code.reviewed 1.4 2006/04/05 05:32:29 bastafidli
32  */

33 public interface CharacterPadListener
34 {
35    /**
36     * This method is called when action button of the dialog is clicked. This
37     * means that user is finished with the changes and want to take some action
38     * with those changes. This method is NOT called when user wants to cancel
39     * the changes which he has done.
40     *
41     * @param chpad - what character pad generated this event
42     * @param iActionButton - integer offset of special button in special buttons
43     * array
44     * @param strButtonName - what was the name of the button
45     * @param strText - what was the text and the moment of click
46     * @return boolean - if true is returned the the text in the CharacterPad is
47     * cleared otherwise the value is kept there
48     */

49    boolean takeAction(
50       CharacterPad chpad,
51       int iActionButton,
52       String JavaDoc strButtonName,
53       String JavaDoc strText
54    );
55 }
56
Popular Tags