org.araneaframework.core
Class BaseApplicationComponent.CompositeComponentImpl

java.lang.Object
  extended byorg.araneaframework.core.BaseApplicationComponent.CompositeComponentImpl
All Implemented Interfaces:
Composite.Interface, Serializable
Enclosing class:
BaseApplicationComponent

protected class BaseApplicationComponent.CompositeComponentImpl
extends Object
implements Composite.Interface

See Also:
Serialized Form

Constructor Summary
protected BaseApplicationComponent.CompositeComponentImpl()
           
 
Method Summary
 void attach(Object key, Component comp)
          Attaches a component as a child of this component.
 Component detach(Object key)
          Detaches a child component with the specified key from this component.
 Map getChildren()
          Returns an unmodifiable map of all the child components.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseApplicationComponent.CompositeComponentImpl

protected BaseApplicationComponent.CompositeComponentImpl()
Method Detail

getChildren

public Map getChildren()
Description copied from interface: Composite.Interface
Returns an unmodifiable map of all the child components.

Specified by:
getChildren in interface Composite.Interface
Returns:
a map of child components

attach

public void attach(Object key,
                   Component comp)
Description copied from interface: Composite.Interface
Attaches a component as a child of this component. No initialization of the child takes place.

Specified by:
attach in interface Composite.Interface
Parameters:
key - of the added component
comp - the component being attached

detach

public Component detach(Object key)
Description copied from interface: Composite.Interface
Detaches a child component with the specified key from this component. Child will not be destroyed, just removed.

Specified by:
detach in interface Composite.Interface
Parameters:
key - of the child getting detached
Returns:
the removed component