org.progeeks.meta.swing
Class DefaultEditorFactory

java.lang.Object
  extended by org.progeeks.meta.swing.DefaultEditorFactory
All Implemented Interfaces:
EditorFactory
Direct Known Subclasses:
DateEditorFactory, DateTimeEditorFactory

public class DefaultEditorFactory
extends java.lang.Object
implements EditorFactory

Simple factory that will just instantiate an editor of a particular class.

Version:
$Revision: 1.8 $
Author:
Paul Speed

Constructor Summary
DefaultEditorFactory(java.lang.Class editorType)
           
DefaultEditorFactory(java.lang.Class editorType, boolean passFactories)
           
 
Method Summary
 MetaPropertyEditor createPropertyEditor(MetaPropertyContext viewContext)
          Creates an editor for a specific set of property types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultEditorFactory

public DefaultEditorFactory(java.lang.Class editorType,
                            boolean passFactories)

DefaultEditorFactory

public DefaultEditorFactory(java.lang.Class editorType)
Method Detail

createPropertyEditor

public MetaPropertyEditor createPropertyEditor(MetaPropertyContext viewContext)
Creates an editor for a specific set of property types.

Specified by:
createPropertyEditor in interface EditorFactory
Parameters:
viewContext - The context within which this editor will be operating. It is up to the caller (usually the FactoryRegistry) to initialize the view with this view context. It is merely provide in case context information is necessary to decide which renderer to create.


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