com.izforge.izpack.installer.event
Class ProgressNotifiersImpl

java.lang.Object
  extended by com.izforge.izpack.installer.event.ProgressNotifiersImpl
All Implemented Interfaces:
ProgressNotifiers

public class ProgressNotifiersImpl
extends Object
implements ProgressNotifiers

Implementation of the ProgressNotifiers interface.

Author:
Tim Anderson

Constructor Summary
ProgressNotifiersImpl()
           
 
Method Summary
 void addNotifier(InstallerListener listener)
          Adds a listener that may notify a ProgressListener.
 int getNotifiers()
          Returns the count of registered listeners that may perform notification.
 int indexOf(InstallerListener listener)
          Returns the index of the specified listener.
 boolean notifyProgress()
          Determines if listeners should notify an ProgressListener.
 void setNotifyProgress(boolean notify)
          Determines if listeners should notify an ProgressListener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgressNotifiersImpl

public ProgressNotifiersImpl()
Method Detail

addNotifier

public void addNotifier(InstallerListener listener)
Adds a listener that may notify a ProgressListener.

Specified by:
addNotifier in interface ProgressNotifiers
Parameters:
listener - the listener

indexOf

public int indexOf(InstallerListener listener)
Returns the index of the specified listener.

Specified by:
indexOf in interface ProgressNotifiers
Parameters:
listener - the listener
Returns:
the index of the listener or -1 if it is not registered

setNotifyProgress

public void setNotifyProgress(boolean notify)
Determines if listeners should notify an ProgressListener.

Specified by:
setNotifyProgress in interface ProgressNotifiers
Parameters:
notify - if true, notify the ProgressListener

notifyProgress

public boolean notifyProgress()
Determines if listeners should notify an ProgressListener.

Specified by:
notifyProgress in interface ProgressNotifiers
Returns:
true if the ProgressListener should be notified

getNotifiers

public int getNotifiers()
Returns the count of registered listeners that may perform notification.

Specified by:
getNotifiers in interface ProgressNotifiers
Returns:
the count of registered listeners


Copyright © 2018. All rights reserved.