com.pietschy.command.worker
Interface GlassPaneStrategy

All Known Implementing Classes:
DefaultGlassPaneStrategy

public interface GlassPaneStrategy

Defines a strategy for activating and deactivating the glasspane. Strategies are configured on the CommandContainer and used by SwingWorkerCommands and GlassPaneInterceptors.

Implementation generally need to be reentrant and handle multiple activations occuring before deactivations. This will typically happen when commands delegate to other commands that also activate the glasspane.

The source parameter can be used to control the display of the glasspane, such as adding progress information and task status.


Method Summary
 void activatePane(java.lang.Object source)
          Activates the glasspane.
 void deactivatePane(java.lang.Object source)
          Deactivates the glasspane.
 

Method Detail

activatePane

void activatePane(java.lang.Object source)
Activates the glasspane.

Parameters:
source - the object that requested the activation.

deactivatePane

void deactivatePane(java.lang.Object source)
Deactivates the glasspane.

Parameters:
source - the object that previously requested the activation.


Copyright © 2006 - 2007 Andrew Pietsch