| java.lang.Object net.xoetrope.optional.registry.XRegisteredComponentFactory
XRegisteredComponentFactory | public class XRegisteredComponentFactory implements XComponentConstructor(Code) | | A component factory that builds components based upon some XML configuration
files.
Copyright (c) Xoetrope Ltd., 2002-2004
$Revision: 1.7 $
License: see License.txt
|
XRegisteredComponentFactory | public XRegisteredComponentFactory()(Code) | | |
addElement | public Object addElement(XComponentFactory cf, String type, String name, String content, Hashtable attribs)(Code) | | A generic factory method for adding non component elements.
Parameters: cf - the calling component factory Parameters: type - the object type Parameters: name - a name identifying the element to be created Parameters: content - the component text/content Parameters: attribs - the element attributes if any |
constructComponent | public Component constructComponent(XComponentFactory cf, int type, String content)(Code) | | A generic factory for adding XComponents. The component is constructed, positioned and
added to the parent panel if one exists. The component is named with a counter value
to uniquely identify the control.
When a ScrollPane is addd it becomes the parent.
Parameters: cf - the calling component factory Parameters: type - a constant identifying the type of component to be created Parameters: content - the component text/content |
constructComponent | public Component constructComponent(XComponentFactory cf, String type, String content)(Code) | | A generic factory for adding XComponents. The component is constructed, positioned and
added to the parent panel if one exists. The component is named with a counter value
to uniquely identify the control.
When a ScrollPane is addd it becomes the parent.
Parameters: cf - the calling component factory Parameters: type - a name identifying the type of component to be created Parameters: content - the component text/content |
getComponentAdapter | public ComponentAdapter getComponentAdapter(String type)(Code) | | Get the adapter for a particular component type. The adapter can be used
to get and set properties of the component.
Parameters: type - the name by which the component is specified and referenced the adapter |
read | protected void read()(Code) | | Read the component registry. The format is described in the components.xsd
schema.
|
read | public void read(Reader reader)(Code) | | Read the component registry. The format is described in the components.xsd
schema.
Parameters: reader - the reader from which to read the file |
setPackageName | public void setPackageName(String defPackage)(Code) | | Set the package name for the factory's widgets. This factory ignores the
default package name as the classes/componentes being instantiated can come
from different packages and their package must be fully specified.
|
update | public void update()(Code) | | Notify the component factories that some of their settings may have changed
|
|
|