org.apache.cocoon.woody.formmodel
Class ContainerDelegate

java.lang.Object
  extended by org.apache.cocoon.woody.formmodel.ContainerDelegate

public class ContainerDelegate
extends Object

Helper class for the implementation of widgets containing other widgets.

Version:
$Id: ContainerDelegate.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Timothy Larson

Constructor Summary
ContainerDelegate(WidgetDefinition definition)
           
 
Method Summary
 void addWidget(Widget widget)
           
 void generateSaxFragment(ContentHandler contentHandler, Locale locale)
           
 Widget getWidget(String id)
           
 boolean hasWidget(String id)
           
 Iterator iterator()
           
 void readFromRequest(FormContext formContext)
           
 boolean validate(FormContext formContext)
           
 boolean widgetsHaveValues()
          Returns false if there is at least one field which has no value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerDelegate

public ContainerDelegate(WidgetDefinition definition)
Method Detail

addWidget

public void addWidget(Widget widget)

readFromRequest

public void readFromRequest(FormContext formContext)

validate

public boolean validate(FormContext formContext)

hasWidget

public boolean hasWidget(String id)

getWidget

public Widget getWidget(String id)

iterator

public Iterator iterator()

widgetsHaveValues

public boolean widgetsHaveValues()
Returns false if there is at least one field which has no value.


generateSaxFragment

public void generateSaxFragment(ContentHandler contentHandler,
                                Locale locale)
                         throws SAXException
Throws:
SAXException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.