Ontimize Document Management 0.032EN

com.ontimize.dms.client.gui.property.editor
Class DefaultFactory

java.lang.Object
  extended by com.ontimize.dms.client.gui.property.editor.DefaultFactory
All Implemented Interfaces:
Editor, EditorConfiguration, EditorFactory, EditorLoaderFactory

public class DefaultFactory
extends java.lang.Object
implements Editor, EditorLoaderFactory, EditorFactory, EditorConfiguration

Property list component avaliable editors.

Creates the new required editor.

Since:
02/10/2008, 17/12/2009 Load default editors from properties and XML file., 18/12/2009 Refactoring to allow a factory instance of each component., 29/12/2009 Internal model. Load editors by property name and path., 30/12/2009 Allows patterns in the path. Remove multiple value choice., 30/12/2009 Internal XML node loaders factory., 31/12/2009 XML with children nodes loader.

Field Summary
protected  ComponentContext context
           
static java.lang.String DEFAULT_EDITORS_PROPERTY_KEY
           
protected static java.lang.String DEFAULT_EDITORS_PROPERTY_PATH
           
static java.lang.String DEFAULT_LOADERS_PROPERTY_KEY
           
protected static java.lang.String DEFAULT_LOADERS_PROPERTY_PATH
           
static java.lang.String DEFAULT_NODE_KEY
           
protected  EditorList editors
           
protected static java.util.Map loaders
          XML node loaders factory.
static java.lang.String PATH_NODE_KEY
           
static java.lang.String PROPERTY_NODE_KEY
           
static java.lang.String ROOT_NODE_KEY
           
 
Fields inherited from interface com.ontimize.dms.client.gui.property.editor.Editor
BOOLEAN, COMBO, DATE, DECIMAL, DOUBLE, FLOAT, INT, LONG, MULTIPLE, SHORT, TEXT, TIME, TIMESTAMP
 
Constructor Summary
DefaultFactory()
           
 
Method Summary
protected  PropertyListEditor createEditor(java.util.Map editors, java.lang.String editorKey)
           
protected  EditorLoader createLoader(java.lang.String loaderClassName)
           
 PropertyListEditor getEditor(java.lang.Class clazz)
           
 PropertyListEditor getEditor(java.lang.Class clazz, java.lang.String name)
           
 PropertyListEditor getEditor(java.lang.Class clazz, java.lang.String name, java.lang.String path)
           
 PropertyListEditor getEditor(Property property)
           
 EditorLoader getLoader(java.lang.Object key)
           
protected  void init()
           
 void setContext(ComponentContext context)
           
 void setEditors(java.lang.String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_LOADERS_PROPERTY_KEY

public static final java.lang.String DEFAULT_LOADERS_PROPERTY_KEY
See Also:
Constant Field Values

DEFAULT_LOADERS_PROPERTY_PATH

protected static java.lang.String DEFAULT_LOADERS_PROPERTY_PATH

DEFAULT_EDITORS_PROPERTY_KEY

public static final java.lang.String DEFAULT_EDITORS_PROPERTY_KEY
See Also:
Constant Field Values

DEFAULT_EDITORS_PROPERTY_PATH

protected static java.lang.String DEFAULT_EDITORS_PROPERTY_PATH

ROOT_NODE_KEY

public static final java.lang.String ROOT_NODE_KEY
See Also:
Constant Field Values

DEFAULT_NODE_KEY

public static final java.lang.String DEFAULT_NODE_KEY
See Also:
Constant Field Values

PROPERTY_NODE_KEY

public static final java.lang.String PROPERTY_NODE_KEY
See Also:
Constant Field Values

PATH_NODE_KEY

public static final java.lang.String PATH_NODE_KEY
See Also:
Constant Field Values

loaders

protected static java.util.Map loaders
XML node loaders factory.


editors

protected EditorList editors

context

protected ComponentContext context
Constructor Detail

DefaultFactory

public DefaultFactory()
Method Detail

init

protected void init()

getLoader

public EditorLoader getLoader(java.lang.Object key)
Specified by:
getLoader in interface EditorLoaderFactory

createLoader

protected EditorLoader createLoader(java.lang.String loaderClassName)

getEditor

public PropertyListEditor getEditor(Property property)
Specified by:
getEditor in interface EditorFactory

getEditor

public PropertyListEditor getEditor(java.lang.Class clazz)
Specified by:
getEditor in interface EditorFactory

getEditor

public PropertyListEditor getEditor(java.lang.Class clazz,
                                    java.lang.String name)
Specified by:
getEditor in interface EditorFactory

getEditor

public PropertyListEditor getEditor(java.lang.Class clazz,
                                    java.lang.String name,
                                    java.lang.String path)
Specified by:
getEditor in interface EditorFactory

createEditor

protected PropertyListEditor createEditor(java.util.Map editors,
                                          java.lang.String editorKey)

setContext

public void setContext(ComponentContext context)
Specified by:
setContext in interface EditorConfiguration

setEditors

public void setEditors(java.lang.String path)
Specified by:
setEditors in interface EditorConfiguration

Ontimize Document Management