org.progeeks.util.swing
Class DefaultJComponentFactory

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

public class DefaultJComponentFactory
extends DefaultViewFactory
implements JComponentFactory

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

Version:
$Revision: 1.1 $
Author:
Paul Speed

Constructor Summary
DefaultJComponentFactory(java.lang.Class componentType)
           
 
Method Summary
 javax.swing.JComponent createViewComponent(ViewContext context)
          Creates a JComponent 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

DefaultJComponentFactory

public DefaultJComponentFactory(java.lang.Class componentType)
Method Detail

createViewComponent

public javax.swing.JComponent createViewComponent(ViewContext context)
Creates a JComponent associated with the specified view context.

Specified by:
createViewComponent in interface JComponentFactory


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