package pt.ist.renderers.layouts; import pt.ist.renderers.components.HtmlComponent; import pt.ist.renderers.components.HtmlList; import pt.ist.renderers.components.HtmlListItem; public abstract class ListLayout extends FlowLayout { public ListLayout() { super(); } @Override protected HtmlComponent getContainer() { return new HtmlList(); } @Override protected void addComponent(HtmlComponent container, HtmlComponent component) { HtmlList list = (HtmlList) container; HtmlListItem item = list.createItem(); item.setBody(component); } }