|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.commons.io.NullProgressMonitor
public class NullProgressMonitor
Null pattern implementation of the ProgressMonitor
interface.
Field Summary | |
---|---|
static NullProgressMonitor |
MONITOR
Static instance that can be used so no new null monitors have to be allocated. |
Constructor Summary | |
---|---|
NullProgressMonitor()
|
Method Summary | |
---|---|
Component |
getComponent()
Returns null . |
boolean |
isCancelled()
Returns false . |
void |
setCancelEnabled(boolean enabled)
Does nothing. |
void |
setText(String text)
Does nothing. |
void |
setTotalSteps(long max)
Does nothing. |
void |
setValue(long value)
Does nothing. |
void |
work(long amount)
Does nothing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final NullProgressMonitor MONITOR
Constructor Detail |
---|
public NullProgressMonitor()
Method Detail |
---|
public boolean isCancelled()
false
.
isCancelled
in interface ProgressMonitor
public void setCancelEnabled(boolean enabled)
setCancelEnabled
in interface ProgressMonitor
public void setTotalSteps(long max)
setTotalSteps
in interface ProgressMonitor
public void setValue(long value)
setValue
in interface ProgressMonitor
value
- min <= value <= maxpublic void setText(String text)
setText
in interface ProgressMonitor
public void work(long amount)
work
in interface ProgressMonitor
public Component getComponent()
null
.
getComponent
in interface ProgressMonitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |