org.xnap.gui.component
Class ProgressMonitorAdapter

java.lang.Object
  extended by org.xnap.gui.component.ProgressMonitorAdapter
All Implemented Interfaces:
ProgressMonitor
Direct Known Subclasses:
TextProgressMonitor

public class ProgressMonitorAdapter
extends java.lang.Object
implements ProgressMonitor

Provides a progress monitor that does nothing.

Implements a Null-Pattern.


Constructor Summary
ProgressMonitorAdapter()
           
 
Method Summary
 void done()
          Does nothing.
 boolean isCancelled()
          Returns false.
 void setCancelEnabled(boolean enabled)
          Does nothing.
 void setMaximum(int max)
          Does nothing.
 void setMinimum(int min)
          Does nothing.
 void setPercent(double percent)
          Does nothing.
 void setText(java.lang.String text)
          Does nothing.
 void setThread(java.lang.Thread thread)
          Does nothing.
 void setValue(int value)
          Does nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgressMonitorAdapter

public ProgressMonitorAdapter()
Method Detail

done

public void done()
Does nothing.

Specified by:
done in interface ProgressMonitor

isCancelled

public boolean isCancelled()
Returns false.

Specified by:
isCancelled in interface ProgressMonitor

setCancelEnabled

public void setCancelEnabled(boolean enabled)
Does nothing.

Specified by:
setCancelEnabled in interface ProgressMonitor

setMaximum

public void setMaximum(int max)
Does nothing.

Specified by:
setMaximum in interface ProgressMonitor

setMinimum

public void setMinimum(int min)
Does nothing.

Specified by:
setMinimum in interface ProgressMonitor

setPercent

public void setPercent(double percent)
Does nothing.

Specified by:
setPercent in interface ProgressMonitor

setValue

public void setValue(int value)
Does nothing.

Specified by:
setValue in interface ProgressMonitor
Parameters:
value - min <= value <= max

setText

public void setText(java.lang.String text)
Does nothing.

Specified by:
setText in interface ProgressMonitor

setThread

public void setThread(java.lang.Thread thread)
Does nothing.

Specified by:
setThread in interface ProgressMonitor


Copyright © 2001-2005 XNap Team. All Rights Reserved.