scriptella.interactive
Class ProgressCallback

java.lang.Object
  extended by scriptella.interactive.ProgressCallback
Direct Known Subclasses:
ProgressCallback.Subprogress

public class ProgressCallback
extends java.lang.Object

TODO: Add documentation

Version:
1.0
Author:
Fyodor Kupolov

Nested Class Summary
protected static class ProgressCallback.Subprogress
           
 
Field Summary
protected  int pos
           
protected  ProgressIndicator progressIndicator
           
protected  int size
           
 
Constructor Summary
ProgressCallback(int size)
           
ProgressCallback(int size, ProgressIndicator indicator)
           
 
Method Summary
 void complete()
           
 ProgressCallback fork(int newSize)
           
 ProgressCallback fork(int step, int newSize)
           
 int getLeft()
           
 int getPos()
           
 int getSize()
           
 boolean isComplete()
           
 void setProgressBar(ProgressIndicator progressIndicator)
           
 int step(int step)
           
 int step(int step, java.lang.String message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

size

protected int size

pos

protected int pos

progressIndicator

protected ProgressIndicator progressIndicator
Constructor Detail

ProgressCallback

public ProgressCallback(int size)

ProgressCallback

public ProgressCallback(int size,
                        ProgressIndicator indicator)
Method Detail

step

public int step(int step)

step

public int step(int step,
                java.lang.String message)

isComplete

public boolean isComplete()

complete

public void complete()

getSize

public int getSize()

getPos

public int getPos()

setProgressBar

public void setProgressBar(ProgressIndicator progressIndicator)

fork

public ProgressCallback fork(int newSize)

fork

public ProgressCallback fork(int step,
                             int newSize)

getLeft

public int getLeft()


Copyright © Copyright 2006-2009 The Scriptella Project Team.