| java.lang.Object net.xoetrope.swing.SwingComponentFactory
SwingComponentFactory | public class SwingComponentFactory implements XComponentConstructor(Code) | | A factory for non-base Swing components such as Trees
Copyright: Copyright (c) Xoetrope Ltd., 2001-2004
$Revision: 1.4 $
License see license.txt
|
SwingComponentFactory | public SwingComponentFactory()(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.
This factory does not use this method and all components must be added by name
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.
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.
This factory does not yet use any startup properties or parameters
|
|
|