001    package net.sf.tacos.components.dojo;
002    
003    import org.apache.tapestry.dojo.IWidget;
004    
005    /**
006     * Represents a <a href="http://dojotoolkit.org">dojo</a> widget that contains children widgets.
007     * A contained widget can use the method {@link #addChild(IWidget)} to add itself to its container.
008     * During the execution of the container's script template the childs are added by calling
009     * <code>dojo.widget.DomWidget.addChild(Widget)</code>
010     * 
011     * @author idrobiazk
012     *
013     */
014    public interface IDojoContainer {
015            
016            /**
017             * Adds a child {@link IWidget} to a container.
018             * @param widget child to add
019             */
020            public void addChild(IWidget widget);
021    }