com.izforge.izpack.panels.licence
Class AbstractLicenceConsolePanel
java.lang.Object
com.izforge.izpack.installer.console.AbstractConsolePanel
com.izforge.izpack.installer.console.AbstractTextConsolePanel
com.izforge.izpack.panels.licence.AbstractLicenceConsolePanel
- All Implemented Interfaces:
- ConsolePanel
- Direct Known Subclasses:
- HTMLLicenceConsolePanel, LicenceConsolePanel, PDFLicenceConsolePanel
public abstract class AbstractLicenceConsolePanel
- extends AbstractTextConsolePanel
Abstract panel for displaying license text to the console.
- Author:
- Tim Anderson
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractLicenceConsolePanel
public AbstractLicenceConsolePanel(PanelView<ConsolePanel> panel,
Resources resources)
- Constructs a
AbstractLicenseConsolePanel.
- Parameters:
panel - the parent panel/view. May be nullresources - the resources
loadLicence
protected URL loadLicence()
- Loads the license document URL.
- Returns:
- The license text URL.
loadLicenceAsString
protected String loadLicenceAsString()
loadLicenceAsString
protected String loadLicenceAsString(String encoding)
promptEndPanel
protected boolean promptEndPanel(InstallData installData,
Console console)
- Prompts to end the license panel.
This displays a prompt to accept, reject, or redisplay. On redisplay, it invokes
AbstractTextConsolePanel.run(InstallData, Console).
- Overrides:
promptEndPanel in class AbstractConsolePanel
- Parameters:
installData - the installation dateconsole - the console to use
- Returns:
true to accept, false to reject. If the panel is displayed again, the result of
AbstractTextConsolePanel.run(InstallData, Console) is returned
Copyright © 2018. All rights reserved.