org.scopemvc.view.util
Class PropertyEditorFactory

java.lang.Object
  |
  +--org.scopemvc.view.util.PropertyEditorFactory

public final class PropertyEditorFactory
extends java.lang.Object

Factory for Property Editors/Viewers of different Types (eg Swing, AWT etc) loaded from Scope Config.

Format of config is this:

 PropertyEditor..

 = PropertyViewer..

 = 
Defaults are provided in DefaultScopeConfig for java primitive types for the "Swing" viewtype.

Version:
$Revision: 1.6 $ $Date: 2002/09/05 15:41:45 $
Author:
Steve Meyfroidt

Field Summary
static java.lang.String SWING
          Viewtype of viewers/editors to use in a Swing UI.
 
Method Summary
static View getPropertyEditor(java.lang.String inViewType, java.lang.Class inPropertyClass)
          Return a newly created editor for a property class for a certain viewtype.
static View getPropertyViewer(java.lang.String inViewType, java.lang.Class inPropertyClass)
          Return a newly created viewer a property class for a certain viewtype.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SWING

public static final java.lang.String SWING
Viewtype of viewers/editors to use in a Swing UI.

See Also:
Constant Field Values
Method Detail

getPropertyEditor

public static View getPropertyEditor(java.lang.String inViewType,
                                     java.lang.Class inPropertyClass)
Return a newly created editor for a property class for a certain viewtype. Viewtype is arbitrary and could be for instance Swing or XML or AWT: define the editors in ScopeConfig.

Parameters:
inViewType - find an editor of this type.
inPropertyClass - TODO: Describe the Parameter
Returns:
a newly created editor View or null if nothing appropriate can be found.

getPropertyViewer

public static View getPropertyViewer(java.lang.String inViewType,
                                     java.lang.Class inPropertyClass)
Return a newly created viewer a property class for a certain viewtype. Viewtype is arbitrary and could be for instance Swing or XML or AWT: define the viewers in ScopeConfig.

Parameters:
inViewType - find an viewer of this type.
inPropertyClass - TODO: Describe the Parameter
Returns:
a newly created viewer View or null if nothing appropriate can be found.


Copyright © 2000-2002 The Scope Team. All Rights Reserved.