org.apache.cocoon.woody.formmodel
Class Repeater.RepeaterRow

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.Repeater.RepeaterRow
All Implemented Interfaces:
ContainerWidget, Widget
Enclosing class:
Repeater

public class Repeater.RepeaterRow
extends AbstractContainerWidget


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
Repeater.RepeaterRow(AbstractWidgetDefinition definition)
           
 
Method Summary
 void broadcastEvent(WidgetEvent event)
          Broadcast an event previously queued by this widget to its event listeners.
 void generateLabel(ContentHandler contentHandler)
          Generates SAX events for the label of this widget.
 void generateSaxFragment(ContentHandler contentHandler, Locale locale)
          Generates an XML representation of this widget.
 Form getForm()
          Get the Form to which this widget belongs.
 String getFullyQualifiedId()
          Returns the id prefixed with the namespace, this name should be unique accross all widgets on the form.
 String getId()
          Gets the id of this widget.
 String getLocation()
          Gets the source location of this widget.
 String getNamespace()
          Gets the namespace of this widget.
 Widget getParent()
          Gets the parent of this widget.
 void setParent(Widget widget)
          This method is called on a widget when it is added to a container.
 boolean validate(FormContext formContext)
          Validates this widget and returns the outcome.
 
Methods inherited from class org.apache.cocoon.woody.formmodel.AbstractContainerWidget
addWidget, generateSaxFragment, getChildren, getWidget, hasWidget, readFromRequest
 
Methods inherited from class org.apache.cocoon.woody.formmodel.AbstractWidget
addValidator, generateItemSaxFragment, generateSaxFragment, getValue, isRequired, removeValidator, setDefinition, setLocation, 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
getValue, isRequired, setValue
 

Constructor Detail

Repeater.RepeaterRow

public Repeater.RepeaterRow(AbstractWidgetDefinition definition)
Method Detail

getLocation

public String getLocation()
Description copied from class: AbstractWidget
Gets the source location of this widget.

Specified by:
getLocation in interface Widget
Overrides:
getLocation in class AbstractWidget

getId

public String getId()
Description copied from class: AbstractWidget
Gets the id of this widget.

Specified by:
getId in interface Widget
Overrides:
getId in class AbstractWidget

getParent

public Widget getParent()
Description copied from interface: Widget
Gets the parent of this widget. If this widget is the root widget, this method returns null.

Specified by:
getParent in interface Widget
Overrides:
getParent in class AbstractWidget

getForm

public Form getForm()
Description copied from interface: Widget
Get the Form to which this widget belongs. The form is the top-most ancestor of the widget.

Specified by:
getForm in interface Widget
Overrides:
getForm in class AbstractWidget

getNamespace

public String getNamespace()
Description copied from interface: Widget
Gets the namespace of this widget. The combination of a widget's namespace with its id (see Widget.getId() gives the widget a form-wide unique name. In practice, the namespace consists of the id's of the widget's parent widgets, separated by dots.

Specified by:
getNamespace in interface Widget
Overrides:
getNamespace in class AbstractWidget

getFullyQualifiedId

public String getFullyQualifiedId()
Description copied from interface: Widget
Returns the id prefixed with the namespace, this name should be unique accross all widgets on the form.

Specified by:
getFullyQualifiedId in interface Widget
Overrides:
getFullyQualifiedId in class AbstractWidget

setParent

public void setParent(Widget widget)
Description copied from interface: Widget
This method is called on a widget when it is added to a container. You shouldn't call this method unless youre implementing a widget yourself (in which case it should be called when a widget is added as child of your widget).

Specified by:
setParent in interface Widget
Overrides:
setParent in class AbstractWidget

validate

public boolean validate(FormContext formContext)
Description copied from interface: Widget
Validates this widget and returns the outcome. Possible error messages are remembered by the widget itself and will be part of the XML produced by this widget in its Widget.generateSaxFragment(ContentHandler, Locale) method.

Specified by:
validate in interface Widget
Overrides:
validate in class AbstractContainerWidget

generateLabel

public void generateLabel(ContentHandler contentHandler)
                   throws SAXException
Description copied from interface: Widget
Generates SAX events for the label of this widget. The label will not be wrapped inside another element.

Specified by:
generateLabel in interface Widget
Overrides:
generateLabel in class AbstractWidget
Throws:
SAXException

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

broadcastEvent

public void broadcastEvent(WidgetEvent event)
Description copied from interface: Widget
Broadcast an event previously queued by this widget to its event listeners.

Specified by:
broadcastEvent in interface Widget
Overrides:
broadcastEvent in class AbstractWidget


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