root / import / ext3D / trunk / install-extension3d / IzPack / src / lib / com / izforge / izpack / installer / PanelAutomation.java @ 15280
History | View | Annotate | Download (2.4 KB)
1 |
/*
|
---|---|
2 |
* $Id: PanelAutomation.java,v 1.1 2006/06/14 07:29:07 cesar Exp $
|
3 |
* IzPack
|
4 |
* Copyright (C) 2001-2003 Jonathan Halliday, Julien Ponge
|
5 |
*
|
6 |
* File : PanelAutomation.java
|
7 |
* Description : Automation (silent install) Interface.
|
8 |
* Author's email : jonathan.halliday@arjuna.com
|
9 |
* Author's Website : http://www.arjuna.com
|
10 |
*
|
11 |
* This program is free software; you can redistribute it and/or
|
12 |
* modify it under the terms of the GNU General Public License
|
13 |
* as published by the Free Software Foundation; either version 2
|
14 |
* of the License, or any later version.
|
15 |
*
|
16 |
* This program is distributed in the hope that it will be useful,
|
17 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
18 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
19 |
* GNU General Public License for more details.
|
20 |
*
|
21 |
* You should have received a copy of the GNU General Public License
|
22 |
* along with this program; if not, write to the Free Software
|
23 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
24 |
*/
|
25 |
package com.izforge.izpack.installer; |
26 |
|
27 |
import net.n3.nanoxml.XMLElement; |
28 |
|
29 |
/**
|
30 |
* Defines the Interface that must be implemented for running
|
31 |
* Panels in automated (or "silent", "headless") install mode.
|
32 |
*
|
33 |
* Implementing classes MUST NOT link against awt/swing classes.
|
34 |
* Thus the Panels cannot implement this interface directly,
|
35 |
* they should use e.g. helper classes instead.
|
36 |
*
|
37 |
* @see AutomatedInstaller
|
38 |
* @author Jonathan Halliday
|
39 |
* @author Julien Ponge
|
40 |
*/
|
41 |
public interface PanelAutomation |
42 |
{ |
43 |
/**
|
44 |
* Asks the panel to set its own XML data that can be brought back for an
|
45 |
* automated installation process. Use it as a blackbox if your panel needs
|
46 |
* to do something even in automated mode.
|
47 |
*
|
48 |
* @param installData The installation data
|
49 |
* @param panelRoot The XML root element of the panels blackbox tree.
|
50 |
*/
|
51 |
public void makeXMLData(AutomatedInstallData installData, XMLElement panelRoot); |
52 |
|
53 |
/**
|
54 |
* Makes the panel work in automated mode. Default is to do nothing, but any
|
55 |
* panel doing something 'effective' during the installation process should
|
56 |
* implement this method.
|
57 |
*
|
58 |
* @param installData The installation data
|
59 |
* @param panelRoot The XML root element of the panels blackbox tree.
|
60 |
*/
|
61 |
public void runAutomated(AutomatedInstallData installData, XMLElement panelRoot); |
62 |
} |