KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > izforge > izpack > installer > GUIListener


1 /*
2  * $Id:$
3  * IzPack - Copyright 2001-2007 Julien Ponge, All Rights Reserved.
4  *
5  * http://www.izforge.com/izpack/ http://developer.berlios.de/projects/izpack/
6  *
7  * Copyright 2006 Klaus Bartz
8  *
9  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
10  * in compliance with the License. You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software distributed under the License
15  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
16  * or implied. See the License for the specific language governing permissions and limitations under
17  * the License.
18  */

19 package com.izforge.izpack.installer;
20
21
22 /**
23  * Interface for a gui listener. This interface can be used to modify the installer frame of IzPack.
24  *
25  * @author Klaus Bartz
26  *
27  */

28 public interface GUIListener
29 {
30
31     /**
32      * Constant to indicate that method buildGUI has called
33      */

34     static final int GUI_BUILDED = 0;
35
36     /**
37      * Constant to indicate that method blockGUI has called
38      */

39     static final int GUI_BLOCKED = 1;
40
41     /**
42      * Constant to indicate that method releaseGUI has called
43      */

44     static final int GUI_RELEASED = 2;
45
46     /**
47      * Constant to indicate that method switchPanel has called
48      */

49     static final int PANEL_SWITCHED = 3;
50
51     /**
52      * This method will be called from the installer frame at end of the methods buildGUI, blockGUI,
53      * releaseGUI and switchPanel.<br>
54      *
55      * The param what indicates from what method this listener was called.<br>
56      * If buildGUI is the calling method, the navigation panel will be set as param. At other
57      * calling methods param will be null.
58      *
59      * @param what identifier for the calling method
60      * @param param
61      */

62     void guiActionPerformed(int what, Object JavaDoc param);
63
64 }
65
Popular Tags