public class DefaultComponentBuilder extends java.lang.Object implements ComponentBuilder
Modifier and Type | Field and Description |
---|---|
(package private) java.beans.BeanInfo |
beanInfo |
(package private) java.lang.Class |
clazz |
(package private) java.util.List<java.beans.PropertyDescriptor> |
editableProperties |
(package private) java.util.Map<java.lang.String,java.beans.PropertyDescriptor> |
nameToDescriptor |
(package private) java.util.List<BeanProperty> |
properties |
Constructor and Description |
---|
DefaultComponentBuilder(java.lang.Class clazz)
Creates a new instance of DefaultComponentFactory
|
DefaultComponentBuilder(java.lang.Class clazz,
java.lang.String[] properties)
Creates a new instance of DefaultComponentFactory
|
Modifier and Type | Method and Description |
---|---|
ComponentDef |
getComponentDef(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> beanProperties) |
java.lang.String |
getDeclaration(java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> beanProperties)
Returns the appropriate declaration suitable for this component
|
java.awt.Component |
getInstance(java.util.Map<java.lang.String,java.lang.Object> objectProperties)
Returns an instance of this object given the specified properties
|
java.util.List<BeanProperty> |
getProperties()
Returns a list of properties that are appropriate for construction
|
boolean |
isComponentALayoutContainer() |
java.lang.String |
toString() |
java.lang.Class clazz
java.beans.BeanInfo beanInfo
java.util.List<java.beans.PropertyDescriptor> editableProperties
java.util.Map<java.lang.String,java.beans.PropertyDescriptor> nameToDescriptor
java.util.List<BeanProperty> properties
public DefaultComponentBuilder(java.lang.Class clazz) throws java.beans.IntrospectionException
java.beans.IntrospectionException
public DefaultComponentBuilder(java.lang.Class clazz, java.lang.String[] properties) throws java.beans.IntrospectionException
java.beans.IntrospectionException
public java.lang.String getDeclaration(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> beanProperties)
ComponentBuilder
getDeclaration
in interface ComponentBuilder
public ComponentDef getComponentDef(java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> beanProperties)
getComponentDef
in interface ComponentBuilder
public java.awt.Component getInstance(java.util.Map<java.lang.String,java.lang.Object> objectProperties) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException
ComponentBuilder
getInstance
in interface ComponentBuilder
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public boolean isComponentALayoutContainer()
isComponentALayoutContainer
in interface ComponentBuilder
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.List<BeanProperty> getProperties()
ComponentBuilder
getProperties
in interface ComponentBuilder