JAPI 0.9.0
Yet another Java API
API Documentation

net.sf.japi.swing
Interface Progress

All Known Implementing Classes:
ProgressDisplay

public interface Progress

Interface for classes that are able to display progress.

Author:
Christian Hujer

Method Summary
 void finished()
          Progress has finished.
 Component getParentComponent()
          Get the Component that is responsible for rendering the progress.
 void setLabel(String msg, int max)
          Set progress information text.
 void setValue(int value)
          Set progress value.
 

Method Detail

finished

void finished()
Progress has finished.


getParentComponent

Component getParentComponent()
Get the Component that is responsible for rendering the progress. This is useful if it is neccessary to open dialogs during the progress.

Returns:
Component responsible for rendering the progress

setLabel

void setLabel(String msg,
              int max)
Set progress information text.

Parameters:
msg - progress information text
max - maximum progress value

setValue

void setValue(int value)
Set progress value.

Parameters:
value - progress value

JAPI
Yet another Java API
API Documentation

© 2005-2006 Christian Hujer. All rights reserved. See copyright