org.araneaframework.core
Class BaseApplicationWidget.CompositeImpl

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

protected class BaseApplicationWidget.CompositeImpl
extends Object
implements Composite.Interface

See Also:
Serialized Form

Constructor Summary
protected BaseApplicationWidget.CompositeImpl()
           
 
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 a map of all the child components under this Composite.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseApplicationWidget.CompositeImpl

protected BaseApplicationWidget.CompositeImpl()
Method Detail

getChildren

public Map getChildren()
Returns a map of all the child components under this Composite.

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
See Also:
Composite.Interface.attach(java.lang.Object, org.araneaframework.Component)

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
See Also:
Composite.Interface.detach(java.lang.Object)