| net.xoetrope.xui.XComponentConstructor
All known Subclasses: net.xoetrope.swing.SwingComponentFactory, net.xoetrope.optional.registry.XRegisteredComponentFactory,
XComponentConstructor | public interface XComponentConstructor (Code) | | 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: 1.8 $
|
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 |
setPackageName | public void setPackageName(String defPackage)(Code) | | Set the package name for the factory's widgets.
|
update | public void update()(Code) | | Notify the component factories that some of their settings may have changed
|
|
|