com.izforge.izpack.installer.util
Class PanelHelper

java.lang.Object
  extended by com.izforge.izpack.installer.util.PanelHelper

public class PanelHelper
extends Object

Helper routines for panels.

Author:
Tim Anderson

Constructor Summary
PanelHelper()
           
 
Method Summary
static Class<PanelAutomation> getAutomatedPanel(String className)
          Returns the automated implementation of an IzPanel.
static Class<PanelAutomation> getAutomatedPanel(String className, ClassLoader loader)
          Returns the automated implementation of an IzPanel.
static Class<ConsolePanel> getConsolePanel(String className)
          Returns the console implementation of an IzPanel.
static Class<ConsolePanel> getConsolePanel(String className, ClassLoader loader)
          Returns the console implementation of an IzPanel.
static Class<IzPanel> getIzPanel(String className)
          Returns the IzPanel implementation of an ConsolePanel.
static Class<IzPanel> getIzPanel(String className, ClassLoader loader)
          Returns the IzPanel implementation of an ConsolePanel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PanelHelper

public PanelHelper()
Method Detail

getIzPanel

public static Class<IzPanel> getIzPanel(String className)
Returns the IzPanel implementation of an ConsolePanel.

Console implementations must use the naming convention:

<prefix>ConsolePanel

where <prefix> is the IzPanel name, minus Panel.
E.g for the panel HelloPanel, the console implementation must be named HelloConsolePanel.

Parameters:
className - the ConsolePanel class name
Returns:
the corresponding IzPanel implementation, or null if none is found

getIzPanel

public static Class<IzPanel> getIzPanel(String className,
                                        ClassLoader loader)
Returns the IzPanel implementation of an ConsolePanel.

Console implementations must use the naming convention:

<prefix>ConsolePanel

where <prefix> is the IzPanel name, minus Panel.
E.g for the panel HelloPanel, the console implementation must be named HelloConsolePanel.

Parameters:
className - the ConsolePanel class name
loader - the class loader to use
Returns:
the corresponding IzPanel implementation, or null if none is found

getConsolePanel

public static Class<ConsolePanel> getConsolePanel(String className)
Returns the console implementation of an IzPanel.

Console implementations must use the naming convention:

<prefix>ConsolePanel

where <prefix> is the IzPanel name, minus Panel.
E.g for the panel HelloPanel, the console implementation must be named HelloConsolePanel.

Parameters:
className - the IzPanel class name
Returns:
the corresponding console implementation, or null if none is found

getConsolePanel

public static Class<ConsolePanel> getConsolePanel(String className,
                                                  ClassLoader loader)
Returns the console implementation of an IzPanel.

Console implementations must use the naming convention:

<prefix>ConsolePanel

where <prefix> is the IzPanel name, minus Panel.
E.g for the panel HelloPanel, the console implementation must be named HelloConsolePanel.

Parameters:
className - the IzPanel class name
loader - the class loader to use
Returns:
the corresponding console implementation, or null if none is found

getAutomatedPanel

public static Class<PanelAutomation> getAutomatedPanel(String className)
Returns the automated implementation of an IzPanel.

Parameters:
className - the IzPanel class name
Returns:
the corresponding automated implementation, or null if none is found

getAutomatedPanel

public static Class<PanelAutomation> getAutomatedPanel(String className,
                                                       ClassLoader loader)
Returns the automated implementation of an IzPanel.

Parameters:
className - the IzPanel class name
loader - the class loader to use
Returns:
the corresponding automated implementation, or null if none is found


Copyright © 2018. All rights reserved.