org.progeeks.util.swing
Class DefaultWindowFactory

java.lang.Object
  extended by org.progeeks.util.DefaultViewFactory
      extended by org.progeeks.util.swing.DefaultWindowFactory
All Implemented Interfaces:
WindowFactory, ViewFactory

public class DefaultWindowFactory
extends DefaultViewFactory
implements WindowFactory

Default implementation of WindowFactory that will instantiate a Window of a specified class type. A best effort is made to match the context with an appropriate constructor on the window class.

Version:
$Revision: 1.3 $
Author:
Paul Speed

Constructor Summary
DefaultWindowFactory(java.lang.Class windowType)
           
 
Method Summary
 java.awt.Window createViewWindow(ViewContext context)
          Creates a window associated with the specified view context.
 
Methods inherited from class org.progeeks.util.DefaultViewFactory
createView, destroyView, getViewType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultWindowFactory

public DefaultWindowFactory(java.lang.Class windowType)
Method Detail

createViewWindow

public java.awt.Window createViewWindow(ViewContext context)
Creates a window associated with the specified view context.

Specified by:
createViewWindow in interface WindowFactory


Copyright © 2002-2003 Paul Speed. All Rights Reserved.