站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 5.5.0

ProgressContributor (NetBeans Progress API) - NetBeans API Javadoc 5.5.0

org.netbeans.api.progress/1 1.5.22

org.netbeans.api.progress.aggregate
Class ProgressContributor

java.lang.Object
  extended by org.netbeans.api.progress.aggregate.ProgressContributor

public final class ProgressContributor
extends Object

A contributor to the aggragete progress indication. This class is not threadsafe, you should access the contributor from one thread only.

See Also:
AggregateProgressHandle.addContributor(ProgressContributor)

Method Summary
 void finish()
          finish the contributor, possibly also the whole task if this instance was the last one to finish.
 String getTrackingId()
          an id that allows identification of the progress contributor by the monitor.
 void progress(int workunit)
          Notify the user about completed workunits.
 void progress(String message)
          Notify the user about progress by showing message with details.
 void progress(String message, int unit)
          Notify the user about completed workunits.
 void start(int workunits)
          start the progress indication for a task with known number of steps.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTrackingId

public String getTrackingId()
an id that allows identification of the progress contributor by the monitor.


start

public void start(int workunits)
start the progress indication for a task with known number of steps.

Parameters:
workunits - a total number of workunits that this contributor will process.

finish

public void finish()
finish the contributor, possibly also the whole task if this instance was the last one to finish.


progress

public void progress(int workunit)
Notify the user about completed workunits.

Parameters:
workunit - a cumulative number of workunits completed so far

progress

public void progress(String message)
Notify the user about progress by showing message with details.

Parameters:
message - detailed info about current progress

progress

public void progress(String message,
                     int unit)
Notify the user about completed workunits.

Parameters:
message - detailed info about current progress
unit - a cumulative number of workunits completed so far

org.netbeans.api.progress/1 1.5.22

Built on May 28 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.