|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 ProgressMonitorpublic void setCancelEnabled(boolean enabled)
setCancelEnabled in interface ProgressMonitorpublic void setTotalSteps(long max)
setTotalSteps in interface ProgressMonitorpublic void setValue(long value)
setValue in interface ProgressMonitorvalue - min <= value <= maxpublic void setText(String text)
setText in interface ProgressMonitorpublic void work(long amount)
work in interface ProgressMonitorpublic Component getComponent()
null.
getComponent in interface ProgressMonitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||