net.sf.jpackit.ui.text
Class ProgressPrinter

java.lang.Object
  extended by net.sf.jpackit.ui.text.ProgressPrinter
All Implemented Interfaces:
JPackitNotificationListener

public class ProgressPrinter
extends java.lang.Object
implements JPackitNotificationListener

This class prints all events that come from JarPackageBuilder

Author:
Kamil K. Shamgunov

Constructor Summary
ProgressPrinter()
          Creates a new instance of ProgressPrinter
 
Method Summary
 void actionInterrupted()
          This method gets called when package builder wants to inform that building process was interrupted
 void errorMessageChanged(JPackitNotificationEvent event)
          This method gets called when package builder wants to inform that error occured
 void progressInfoChanged(JPackitNotificationEvent event)
          This method gets called when package builder wants to inform that progress was changed (percentage)
 void stateChanged(JPackitNotificationEvent event)
          This method gets called when package builder wants to inform that current state was changed (i.e. new action is executing)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgressPrinter

public ProgressPrinter()
Creates a new instance of ProgressPrinter

Method Detail

actionInterrupted

public void actionInterrupted()
Description copied from interface: JPackitNotificationListener
This method gets called when package builder wants to inform that building process was interrupted

Specified by:
actionInterrupted in interface JPackitNotificationListener

errorMessageChanged

public void errorMessageChanged(JPackitNotificationEvent event)
Description copied from interface: JPackitNotificationListener
This method gets called when package builder wants to inform that error occured

Specified by:
errorMessageChanged in interface JPackitNotificationListener
Parameters:
event - object describing errors

progressInfoChanged

public void progressInfoChanged(JPackitNotificationEvent event)
Description copied from interface: JPackitNotificationListener
This method gets called when package builder wants to inform that progress was changed (percentage)

Specified by:
progressInfoChanged in interface JPackitNotificationListener
Parameters:
event - object describing new progress

stateChanged

public void stateChanged(JPackitNotificationEvent event)
Description copied from interface: JPackitNotificationListener
This method gets called when package builder wants to inform that current state was changed (i.e. new action is executing)

Specified by:
stateChanged in interface JPackitNotificationListener
Parameters:
event - object describing changes