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.4 $ $Date: 2002/01/26 09:46:20 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
PropertyEditorFactory
private PropertyEditorFactory()
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.