com.izforge.izpack.panels.process
Class ProcessPanelWorker

java.lang.Object
  extended by com.izforge.izpack.panels.process.ProcessPanelWorker
All Implemented Interfaces:
Runnable

public class ProcessPanelWorker
extends Object
implements Runnable

This class does alle the work for the process panel.

It responsible for

Author:
Tino Schwarze

Field Summary
static String SPEC_RESOURCE_NAME
          Name of resource for specifying processing parameters.
 
Constructor Summary
ProcessPanelWorker(InstallData installData, RulesEngine rules, Resources resources, PlatformModelMatcher matcher)
          Constructs a ProcessPanelWorker.
 
Method Summary
 boolean getResult()
          Return the result of the process execution.
 void run()
          This is called when the processing thread is activated.
 void setHandler(AbstractUIProcessHandler handler)
           
 void startThread()
          Start the compilation in a separate thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SPEC_RESOURCE_NAME

public static final String SPEC_RESOURCE_NAME
Name of resource for specifying processing parameters.

See Also:
Constant Field Values
Constructor Detail

ProcessPanelWorker

public ProcessPanelWorker(InstallData installData,
                          RulesEngine rules,
                          Resources resources,
                          PlatformModelMatcher matcher)
Constructs a ProcessPanelWorker.

Parameters:
installData - the installation data
rules - the rules engine
resources - the resources
matcher - the platform-model matcher
Method Detail

setHandler

public void setHandler(AbstractUIProcessHandler handler)

run

public void run()
This is called when the processing thread is activated.

Can also be called directly if asynchronous processing is not desired.

Specified by:
run in interface Runnable

startThread

public void startThread()
Start the compilation in a separate thread.


getResult

public boolean getResult()
Return the result of the process execution.

Returns:
true if all processes succeeded, false otherwise.


Copyright © 2018. All rights reserved.