DzzD
Interface IProgressMonitor


public interface IProgressMonitor

Monitor a changing state on an object.

Usual states are : 1 - loading, 2 - initialising

Since:
1.0
Version:
1.0, 01/01/04
Author:
Bruno Augier

Method Summary
 void progress(java.lang.Object obj, int state, int p)
          Periodicaly called while processing (eg.: periodicaly called while loading) This method will be called to inform interested object about object state progress
 void terminate(java.lang.Object o, int state)
          Called when object reach a new state This method will be called when an object reach a new state
 

Method Detail

progress

public void progress(java.lang.Object obj,
                     int state,
                     int p)
Periodicaly called while processing (eg.: periodicaly called while loading)

This method will be called to inform interested object about object state progress

Parameters:
obj - object for wich state progress is given
state - object state for wich progress is given (eg: 1 could mean loading and 2 could mean initialising)
p - current state progress expressed in percent (0-100)
Since:
1.0

terminate

public void terminate(java.lang.Object o,
                      int state)
Called when object reach a new state

This method will be called when an object reach a new state

Parameters:
state - object state reached (eg: 1 could mean loaded and 2 could mean initialised)
Since:
1.0