com.vaadin.ui.declarative
Class Design.DefaultComponentFactory
java.lang.Object
com.vaadin.ui.declarative.Design.DefaultComponentFactory
- All Implemented Interfaces:
- Design.ComponentFactory, java.io.Serializable
- Enclosing class:
- Design
public static class Design.DefaultComponentFactory
- extends java.lang.Object
- implements Design.ComponentFactory
Default implementation of Design.ComponentFactory, using
Class.forName(className).newInstance() for finding the
component class and creating a component instance.
- Since:
- 7.4.1
- See Also:
- Serialized Form
|
Method Summary |
Component |
createComponent(java.lang.String fullyQualifiedClassName,
DesignContext context)
Creates a component based on the fully qualified name derived from
the tag name in the design. |
protected java.lang.Class<? extends Component> |
resolveComponentClass(java.lang.String qualifiedClassName,
DesignContext context)
Resolves a component class based on the fully qualified name of the
class. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Design.DefaultComponentFactory
public Design.DefaultComponentFactory()
createComponent
public Component createComponent(java.lang.String fullyQualifiedClassName,
DesignContext context)
- Description copied from interface:
Design.ComponentFactory
- Creates a component based on the fully qualified name derived from
the tag name in the design.
- Specified by:
createComponent in interface Design.ComponentFactory
- Parameters:
fullyQualifiedClassName - the fully qualified name of the component to createcontext - the design context for which the component is created
- Returns:
- a newly created component
resolveComponentClass
protected java.lang.Class<? extends Component> resolveComponentClass(java.lang.String qualifiedClassName,
DesignContext context)
- Resolves a component class based on the fully qualified name of the
class.
- Parameters:
qualifiedClassName - the fully qualified name of the resolved classcontext - the design context for which the class is resolved
- Returns:
- a component class object representing the provided class name
Copyright © 2000-2014 Vaadin Ltd. All Rights Reserved.