Package spin.off

Class DialogDispatcherFactory

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

public abstract class DialogDispatcherFactory extends 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:
  • Constructor Details

    • DialogDispatcherFactory

      public DialogDispatcherFactory()
  • Method Details

    • createDispatcher

      public Dispatcher createDispatcher()
      Create a dispatcher.
      Specified by:
      createDispatcher in interface DispatcherFactory
      Returns:
      dispatcher that does the actual dispatching
    • aquireDialog

      protected abstract Dialog aquireDialog()
      Factory method to implement by subclasses to aquire a dialog.
      Returns:
      dialog
    • releaseDialog

      protected abstract void releaseDialog(Dialog dialog)
      Factory method to implement by subclasses to release a dialog.
      Parameters:
      dialog - the dialog to release