Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.scopemvc.view.util
Class PropertyEditorFactory  view PropertyEditorFactory download PropertyEditorFactory.java

java.lang.Object
  extended byorg.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.4 $ $Date: 2002/01/26 09:46:20 $

Field Summary
private static char DELIMITER
           
private static java.lang.String EDITOR_PROPERTY_PREFIX
           
private static org.apache.commons.logging.Log LOG
           
private static java.util.HashMap propertyEditors
          Map of editor viewtype against HashMap of property class against editor class.
private static java.util.HashMap propertyViewers
          Map of viewer viewtype against HashMap of property class against viewer class.
static java.lang.String SWING
          Viewtype of viewers/editors to use in a Swing UI.
private static java.lang.String VIEWER_PROPERTY_PREFIX
           
 
Constructor Summary
private PropertyEditorFactory()
           
 
Method Summary
static org.scopemvc.core.View getPropertyEditor(java.lang.String inViewType, java.lang.Class inPropertyClass)
          Return a newly created editor for a property class for a certain viewtype.
static org.scopemvc.core.View getPropertyViewer(java.lang.String inViewType, java.lang.Class inPropertyClass)
          Return a newly created viewer a property class for a certain viewtype.
private static java.util.HashMap load(java.lang.String inPrefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final org.apache.commons.logging.Log LOG

EDITOR_PROPERTY_PREFIX

private static final java.lang.String EDITOR_PROPERTY_PREFIX
See Also:
Constant Field Values

VIEWER_PROPERTY_PREFIX

private static final java.lang.String VIEWER_PROPERTY_PREFIX
See Also:
Constant Field Values

SWING

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

See Also:
Constant Field Values

propertyEditors

private static java.util.HashMap propertyEditors
Map of editor viewtype against HashMap of property class against editor class.


propertyViewers

private static java.util.HashMap propertyViewers
Map of viewer viewtype against HashMap of property class against viewer class.


DELIMITER

private static char DELIMITER
Constructor Detail

PropertyEditorFactory

private PropertyEditorFactory()
Method Detail

load

private static java.util.HashMap load(java.lang.String inPrefix)

getPropertyEditor

public static org.scopemvc.core.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.


getPropertyViewer

public static org.scopemvc.core.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.