|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface XComponentConstructor
An interface for building components, used by and to extend componentFactory. This interface can be used to allow new component types to be instantiated by the component factory. Each instance of this interface should be registered with the component factory by calling the registerComponentFactory method. The registration is static so it does not matter what instance of the component factory is used.
Copyright (c) Xoetrope Ltd., 2002-2003
License: see license.txt
$Revision: 2.6 $
| Method Summary | |
|---|---|
java.lang.Object |
addElement(XComponentFactory cf,
java.lang.String type,
java.lang.String name,
java.lang.String content,
java.util.Hashtable attribs)
A generic factory method for adding non component elements. |
java.lang.Object |
constructComponent(XComponentFactory cf,
java.lang.String type,
java.lang.String content)
A generic factory for adding XComponents. |
ComponentAdapter |
getComponentAdapter(java.lang.String type)
Get the component adapter for this type |
void |
setPackageName(java.lang.String defPackage)
Set the package name for the factory's widgets. |
void |
update()
Notify the component factories that some of their settings may have changed |
| Method Detail |
|---|
java.lang.Object constructComponent(XComponentFactory cf,
java.lang.String type,
java.lang.String content)
cf - the calling component factorytype - a name identifying the type of component to be createdcontent - the component text/content
java.lang.Object addElement(XComponentFactory cf,
java.lang.String type,
java.lang.String name,
java.lang.String content,
java.util.Hashtable attribs)
cf - the calling component factorytype - the object typename - a name identifying the element to be createdcontent - the component text/contentattribs - the element attributes if any
void update()
void setPackageName(java.lang.String defPackage)
defPackage - the default package nameComponentAdapter getComponentAdapter(java.lang.String type)
type - the name identifying the type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||