net.sf.webmancer.widget
Class AbstractContainer

java.lang.Object
  extended by net.sf.webmancer.widget.AbstractWidget
      extended by net.sf.webmancer.widget.AbstractContainer
All Implemented Interfaces:
IModelable, IWidget, org.springframework.beans.factory.BeanNameAware
Direct Known Subclasses:
Page

public abstract class AbstractContainer
extends AbstractWidget

Author:
Michal Burda

Constructor Summary
AbstractContainer()
           
 
Method Summary
 void addChild(IWidget widget)
           
 void build(IModelBuilder builder)
           
protected  void buildChild(IWidget child, IModelBuilder builder)
           
 void handleEvent(Event event)
          Handle the given event.
 void setChildren(java.util.List<IWidget> children)
           
 
Methods inherited from class net.sf.webmancer.widget.AbstractWidget
getBeanName, getParent, putEvent, setBeanName, setParent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractContainer

public AbstractContainer()
Method Detail

handleEvent

public void handleEvent(Event event)
Description copied from interface: IWidget
Handle the given event.

Specified by:
handleEvent in interface IWidget
Overrides:
handleEvent in class AbstractWidget
Parameters:
event - an event to be handled.
See Also:
AbstractWidget.handleEvent(net.sf.webmancer.base.Event)

addChild

public void addChild(IWidget widget)
Parameters:
widget -

setChildren

public void setChildren(java.util.List<IWidget> children)
Parameters:
children -

build

public void build(IModelBuilder builder)
           throws ModelingException
Specified by:
build in interface IModelable
Specified by:
build in class AbstractWidget
Throws:
ModelingException
See Also:
AbstractWidget.build(net.sf.webmancer.model.IModelBuilder)

buildChild

protected void buildChild(IWidget child,
                          IModelBuilder builder)
                   throws ModelingException
Parameters:
child -
builder -
Throws:
ModelingException


Copyright © 2006-2007. All Rights Reserved.