spin.off
Class DialogDispatcherFactory

java.lang.Object
  extended by spin.off.DialogDispatcherFactory
All Implemented Interfaces:
DispatcherFactory
Direct Known Subclasses:
ConcealedDialogDispatcherFactory, RevealedDialogDispatcherFactory

public abstract class DialogDispatcherFactory
extends java.lang.Object
implements DispatcherFactory

Abstract base class for factories that dispatch events with java.awt.Dialogs. Shows how events can be dispatched with standard AWT.

See Also:
SpinOffEvaluator.SpinOffEvaluator(DispatcherFactory), SpinOffEvaluator.setDefaultDispatcherFactory(DispatcherFactory), AWTReflectDispatcherFactory

Nested Class Summary
protected  class DialogDispatcherFactory.DialogDispatcher
          Dispatcher with Dialog.
 
Constructor Summary
DialogDispatcherFactory()
           
 
Method Summary
protected abstract  java.awt.Dialog aquireDialog()
          Factory method to implement by subclasses to aquire a dialog.
 Dispatcher createDispatcher()
          Create a dispatcher.
protected abstract  void releaseDialog(java.awt.Dialog dialog)
          Factory method to implement by subclasses to release a dialog.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DialogDispatcherFactory

public DialogDispatcherFactory()
Method Detail

createDispatcher

public Dispatcher createDispatcher()
Create a dispatcher.

Specified by:
createDispatcher in interface DispatcherFactory
Returns:
dispatcher that does the actual dispatching

aquireDialog

protected abstract java.awt.Dialog aquireDialog()
Factory method to implement by subclasses to aquire a dialog.

Returns:
dialog

releaseDialog

protected abstract void releaseDialog(java.awt.Dialog dialog)
Factory method to implement by subclasses to release a dialog.

Parameters:
dialog - the dialog to release


Copyright © 2007. All Rights Reserved.