|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.oddjob.designer.factory.DesignFactoryBean
A factory which can create DesignComponents and DesignElements.
| Field Summary | |
static org.apache.log4j.Logger |
logger
|
static java.lang.String |
UNKNOWN_TAG
|
| Constructor Summary | |
DesignFactoryBean(java.io.InputStream in)
Constructor. |
|
| Method Summary | |
void |
addConfiguredCompDef(ComponentDefinition compdef)
Called during parsing of the XML with each ComponentDefinition. |
void |
addConfiguredTypeDef(TypeDefinition typedef)
Called during parsing of the XML with each TypeDefinition. |
java.lang.String[] |
allTypes()
|
SimpleHierarchy |
childActions(java.lang.Object subject,
java.lang.String element)
Returns a hierarchy of ComponentAction objects which can be used in a hierarchical menu structure for creating and adding components. |
ObjectFactory |
componentFactory()
Creates a ObjectFactory which creates components. |
DesignComponent |
createComponent(java.lang.String name)
Create a component for the given name. |
DesignElementType |
createType(java.lang.String name)
Creat a type for the given type name. |
java.lang.String[] |
supportedTypes(java.lang.Class type)
Return supported child type for a given type. |
java.lang.String[] |
supportedTypes(TypeDefinition typedef)
|
ObjectFactory |
valueFactory()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static org.apache.log4j.Logger logger
public static final java.lang.String UNKNOWN_TAG
| Constructor Detail |
public DesignFactoryBean(java.io.InputStream in)
| Method Detail |
public void addConfiguredCompDef(ComponentDefinition compdef)
compdef - A ComponentDefinition.public void addConfiguredTypeDef(TypeDefinition typedef)
public SimpleHierarchy childActions(java.lang.Object subject,
java.lang.String element)
subject - The object the new component will be added to.element - The element name the child appears under.
public DesignComponent createComponent(java.lang.String name)
throws ArooaException
name - The name of the tag identifiying the component.
ArooaException - If the component can't be created.public ObjectFactory componentFactory()
public java.lang.String[] supportedTypes(java.lang.Class type)
type - The type.
public java.lang.String[] supportedTypes(TypeDefinition typedef)
public java.lang.String[] allTypes()
public DesignElementType createType(java.lang.String name)
throws ArooaException
name - The type name.
ArooaException - If the type can't be created.public ObjectFactory valueFactory()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||