spin.demo.dispatcher
Class ConcealedDialogDispatcherFactory

java.lang.Object
  extended by spin.off.DialogDispatcherFactory
      extended by spin.demo.dispatcher.ConcealedDialogDispatcherFactory
All Implemented Interfaces:
DispatcherFactory

public class ConcealedDialogDispatcherFactory
extends DialogDispatcherFactory

Implementation of a dispatcher which uses a pool of modal dialogs to dispatch events. The dialogs are concealed, i.e. they are located outside of the visible screen area.
Note that the Dispatchers created by this class are not usable for GUIs with Cancel functionality since they will block user access to all windows of your application during dispatching.
While this seems to be a major drawback this class nevertheless has its eligibility:


Nested Class Summary
 
Nested classes/interfaces inherited from class spin.off.DialogDispatcherFactory
DialogDispatcherFactory.DialogDispatcher
 
Constructor Summary
ConcealedDialogDispatcherFactory()
           
 
Method Summary
protected  java.awt.Dialog aquireDialog()
          Aquire a pooled dialog.
protected  java.awt.Dialog createDialog()
          Factory method to create a new dialog.
protected  void initDialog(java.awt.Dialog dialog)
          Initialize the given dialog.
protected  void releaseDialog(java.awt.Dialog dialog)
          Release a pooled dialog.
 
Methods inherited from class spin.off.DialogDispatcherFactory
createDispatcher
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConcealedDialogDispatcherFactory

public ConcealedDialogDispatcherFactory()
Method Detail

aquireDialog

protected java.awt.Dialog aquireDialog()
Aquire a pooled dialog.

Specified by:
aquireDialog in class DialogDispatcherFactory
Returns:
dialog

releaseDialog

protected void releaseDialog(java.awt.Dialog dialog)
Release a pooled dialog.

Specified by:
releaseDialog in class DialogDispatcherFactory
Parameters:
dialog - dialog to release

createDialog

protected java.awt.Dialog createDialog()
Factory method to create a new dialog. Can be overriden to create a custom dialog.

Returns:
created dialog.

initDialog

protected void initDialog(java.awt.Dialog dialog)
Initialize the given dialog.
This default implementation positions the dialog outside of the visible screen boundary.

Parameters:
dialog - dialog to initialize


Copyright © 2007. All Rights Reserved.