facets.util.app
Class BusyCursor

java.lang.Object
  extended by facets.util.Tracer
      extended by facets.util.app.BusyCursor

public abstract class BusyCursor
extends Tracer

Sets the application busy cursor.

A BusyCursor passed to AppWatcher.pushCursor(BusyCursor) will call setCursor(boolean) whenever the AppWatcher senses significant change in the application's busy state.

Concrete instances must implement setCursor(boolean) for a particular combination of surface (eg application or dialog) and GUI toolkit.


Constructor Summary
BusyCursor()
           
 
Method Summary
 void forceSwitch(boolean busy)
           
protected abstract  void setCursor(boolean busy)
          Set the busy cursor over the required part of the application surface.
protected  void traceOutput(java.lang.String msg)
          Outputs complete trace messages to console or elsewhere.
 
Methods inherited from class facets.util.Tracer
trace, trace, trace, trace, trace, traceDebug, traceDebug, traceObjectText, traceOutputWithClass
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusyCursor

public BusyCursor()
Method Detail

traceOutput

protected final void traceOutput(java.lang.String msg)
Description copied from class: Tracer
Outputs complete trace messages to console or elsewhere.

Default prepends helpful classname to message.

Overrides:
traceOutput in class Tracer
Parameters:
msg - passed from one of the public methods

forceSwitch

public final void forceSwitch(boolean busy)

setCursor

protected abstract void setCursor(boolean busy)
Set the busy cursor over the required part of the application surface.