com.izforge.izpack.installer.console
Class ConsoleAction

java.lang.Object
  extended by com.izforge.izpack.installer.console.ConsoleAction
Direct Known Subclasses:
AbstractInstallAction

public abstract class ConsoleAction
extends Object

Console installer action.

Author:
Tim Anderson

Constructor Summary
ConsoleAction(InstallData installData)
          Constructs a ConsoleAction.
 
Method Summary
abstract  boolean complete()
          Invoked after the action has been successfully run for each panel.
protected  InstallData getInstallData()
          Returns the installation data.
 boolean isInstall()
          Determines if this is an installation action.
 boolean isValidating()
          Determines if this action should lead to panel validation.
abstract  boolean run(ConsolePanelView panel)
          Runs the action for the panel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleAction

public ConsoleAction(InstallData installData)
Constructs a ConsoleAction.

Parameters:
installData - the installation data
Method Detail

run

public abstract boolean run(ConsolePanelView panel)
Runs the action for the panel.

Parameters:
panel - the panel
Returns:
true if the action was successful, otherwise false

complete

public abstract boolean complete()
Invoked after the action has been successfully run for each panel.

Performs any necessary clean up.

Returns:
true if the operation succeeds; false if it fails

isInstall

public boolean isInstall()
Determines if this is an installation action.

An installation action is any action that performs installation. Installation actions need to be distinguished from other actions as they may subsequently require a reboot.

This default implementation always returns true.

Returns:
true

isValidating

public boolean isValidating()
Determines if this action should lead to panel validation.

This default implementation always returns true.

Returns:
true

getInstallData

protected InstallData getInstallData()
Returns the installation data.

Returns:
the installation data


Copyright © 2018. All rights reserved.