org.araneaframework
Interface Composite.Interface

All Superinterfaces:
Serializable
All Known Implementing Classes:
BaseApplicationComponent.CompositeComponentImpl, BaseApplicationService.CompositeImpl, BaseApplicationWidget.CompositeImpl
Enclosing interface:
Composite

public static interface Composite.Interface
extends Serializable

The interface which takes care of calling the hooks in the template.


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.
 

Method Detail

getChildren

Map getChildren()
Returns an unmodifiable map of all the child components.

Returns:
a map of child components

attach

void attach(Object key,
            Component comp)
Attaches a component as a child of this component. No initialization of the child takes place.

Parameters:
key - of the added component
comp - the component being attached

detach

Component detach(Object key)
Detaches a child component with the specified key from this component. Child will not be destroyed, just removed.

Parameters:
key - of the child getting detached
Returns:
the removed component