01: /*
02: * $Id:$
03: * IzPack - Copyright 2001-2008 Julien Ponge, All Rights Reserved.
04: *
05: * http://izpack.org/ http://izpack.codehaus.org/
06: *
07: * Copyright 2006 Klaus Bartz
08: *
09: * 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: * Interface for a gui listener. This interface can be used to modify the installer frame of IzPack.
23: *
24: * @author Klaus Bartz
25: *
26: */
27: public interface GUIListener {
28:
29: /**
30: * Constant to indicate that method buildGUI has called
31: */
32: static final int GUI_BUILDED = 0;
33:
34: /**
35: * Constant to indicate that method blockGUI has called
36: */
37: static final int GUI_BLOCKED = 1;
38:
39: /**
40: * Constant to indicate that method releaseGUI has called
41: */
42: static final int GUI_RELEASED = 2;
43:
44: /**
45: * Constant to indicate that method switchPanel has called
46: */
47: static final int PANEL_SWITCHED = 3;
48:
49: /**
50: * This method will be called from the installer frame at end of the methods buildGUI, blockGUI,
51: * releaseGUI and switchPanel.<br>
52: *
53: * The param what indicates from what method this listener was called.<br>
54: * If buildGUI is the calling method, the navigation panel will be set as param. At other
55: * calling methods param will be null.
56: *
57: * @param what identifier for the calling method
58: * @param param
59: */
60: void guiActionPerformed(int what, Object param);
61:
62: }
|