butler.web.util
Class ValueEditorBroker
java.lang.Object
butler.web.util.ValueEditorBroker
public class ValueEditorBroker
- extends java.lang.Object
Singelton broker that can create value editors from a given
datatype. If customer datatypes and/or editors is used,
they must be registered in this broker.
- Author:
- Fredrik Bertilsson
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ValueEditorBroker
public ValueEditorBroker()
getInstance
public static ValueEditorBroker getInstance()
register
public void register(java.lang.Class datatypeClass,
java.lang.Class editorClass)
throws java.lang.Exception
- Registers a given factory with a given datatype.
- Throws:
java.lang.Exception
createEditor
public ValueEditor createEditor(Datatype datatype,
java.lang.String style)
throws java.lang.Exception
- Creates a value editor from a given datatype.
Registered factories is used.
- Throws:
java.lang.Exception
createEditor
public ValueEditor createEditor(Datatype datatype)
throws java.lang.Exception
- Throws:
java.lang.Exception
createEditor
public ValueEditor createEditor(DValueEditor desc)
throws java.lang.Exception
- Throws:
java.lang.Exception