org.apache.cocoon.woody.formmodel
Class Struct

java.lang.Object
  extended by org.apache.cocoon.woody.formmodel.AbstractWidget
      extended by org.apache.cocoon.woody.formmodel.AbstractContainerWidget
          extended by org.apache.cocoon.woody.formmodel.Struct
All Implemented Interfaces:
ContainerWidget, Widget

public class Struct
extends AbstractContainerWidget

A container Widget which can hold zero or more child widgets.

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

Field Summary
 
Fields inherited from class org.apache.cocoon.woody.formmodel.AbstractContainerWidget
widgets
 
Fields inherited from class org.apache.cocoon.woody.formmodel.AbstractWidget
definition
 
Constructor Summary
Struct(StructDefinition definition)
           
 
Method Summary
 void generateSaxFragment(ContentHandler contentHandler, Locale locale)
          Generates an XML representation of this widget.
 
Methods inherited from class org.apache.cocoon.woody.formmodel.AbstractContainerWidget
addWidget, generateSaxFragment, getChildren, getWidget, hasWidget, readFromRequest, validate
 
Methods inherited from class org.apache.cocoon.woody.formmodel.AbstractWidget
addValidator, broadcastEvent, generateItemSaxFragment, generateLabel, generateSaxFragment, getForm, getFullyQualifiedId, getId, getLocation, getNamespace, getParent, getValue, isRequired, removeValidator, setDefinition, setLocation, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.cocoon.woody.formmodel.Widget
broadcastEvent, generateLabel, getForm, getFullyQualifiedId, getId, getLocation, getNamespace, getParent, getValue, isRequired, setParent, setValue
 

Constructor Detail

Struct

public Struct(StructDefinition definition)
Method Detail

generateSaxFragment

public void generateSaxFragment(ContentHandler contentHandler,
                                Locale locale)
                         throws SAXException
Description copied from interface: Widget
Generates an XML representation of this widget. The startDocument and endDocument SAX events will not be called. It is assumed that the prefix for the Woody namespace mentioned in Constants.WI_PREFIX is already declared (by the caller or otherwise).

Throws:
SAXException


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