org.expasy.jpl.commons.base.task
Class JProgressBarAdapter

java.lang.Object
  extended by org.expasy.jpl.commons.base.task.JProgressBarAdapter
All Implemented Interfaces:
ProgressBar

public class JProgressBarAdapter
extends Object
implements ProgressBar

A simple adapter of JProgressBar to interface ProgressBar

Version:
1.0
Author:
nikitin

Method Summary
 boolean isIndeterminate()
          Return true if indeterminate
 void setIndeterminate(boolean bool)
          Sets the indeterminate property of the progress bar which determines whether the progress bar is in determinate or indeterminate mode.
 void setMaximum(int n)
          Sets the progress bar's minimum value to n
 void setMinimum(int n)
          Sets the progress bar's maximum value to n
 void setTaskName(String name)
          Set the task name (displayed in left margin)
 void setValue(int n)
          Sets the progress bar's current value to n
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isIndeterminate

public boolean isIndeterminate()
Description copied from interface: ProgressBar
Return true if indeterminate

Specified by:
isIndeterminate in interface ProgressBar

setIndeterminate

public void setIndeterminate(boolean bool)
Description copied from interface: ProgressBar
Sets the indeterminate property of the progress bar which determines whether the progress bar is in determinate or indeterminate mode.

Specified by:
setIndeterminate in interface ProgressBar

setTaskName

public void setTaskName(String name)
Description copied from interface: ProgressBar
Set the task name (displayed in left margin)

Specified by:
setTaskName in interface ProgressBar

setMaximum

public void setMaximum(int n)
Description copied from interface: ProgressBar
Sets the progress bar's minimum value to n

Specified by:
setMaximum in interface ProgressBar

setMinimum

public void setMinimum(int n)
Description copied from interface: ProgressBar
Sets the progress bar's maximum value to n

Specified by:
setMinimum in interface ProgressBar

setValue

public void setValue(int n)
Description copied from interface: ProgressBar
Sets the progress bar's current value to n

Specified by:
setValue in interface ProgressBar


Copyright (c) 2012 Swiss Institute of Bioinformatics. All rights reserved.