chrriis.uihierarchy.creator
Class NullComponentCreator
java.lang.Object
chrriis.uihierarchy.creator.NullComponentCreator
- All Implemented Interfaces:
- ComponentCreator
- public class NullComponentCreator
- extends Object
- implements ComponentCreator
The component creator that handles the null object.
- Version:
- 1.0 2003.11.03
- Author:
- Christopher Deckers (chrriis@brainlex.com)
NullComponentCreator
public NullComponentCreator()
createComponent
public Component createComponent(UIHConfig uihConfig,
Container parentContainer,
Object component,
int level)
- Create a component from a null component. The resulting component is a
panel.
- Specified by:
createComponent
in interface ComponentCreator
- Parameters:
uihConfig
- The configuration in use.parentContainer
- The container that will be the parent of the
component to create. The addition of the component to the parent will be
automatic so this method should not affect this behaviour. The parent can
be null when the node is a sub node.component
- The component's representation from which to create the
component. It is ignored by this creator.level
- The indication of the level of the component. It is either
NODE
or LEAF
. Root nodes are differentiated from
nodes by the fact that the parent container is null.
- Returns:
- A panel.
- See Also:
ComponentCreator.createComponent(chrriis.uihierarchy.UIHConfig, java.awt.Container, java.lang.Object, int)