de.mguennewig.pobjform.html
Class HtmlRecordElement

java.lang.Object
  extended by de.mguennewig.pobjform.AbstractFormElement
      extended by de.mguennewig.pobjform.AbstractValueElement
          extended by de.mguennewig.pobjform.AbstractRecordElement
              extended by de.mguennewig.pobjform.html.HtmlRecordElement
All Implemented Interfaces:
FormElement, HtmlFormElement, RecordElement, ValueElement, java.lang.Iterable<java.lang.String>
Direct Known Subclasses:
HtmlRadioElement, PClassHtmlSearchForm.HtmlColumn, PClassHtmlSearchForm.HtmlCondition

public class HtmlRecordElement
extends AbstractRecordElement
implements HtmlFormElement

Class description goes here.

Author:
Michael Günnewig

Constructor Summary
HtmlRecordElement(PObjHtmlForm form, RecordEntry entry)
          Creates a new HtmlRecordElement.
 
Method Summary
 boolean isVisible()
          Tests whether this element will write anything visible.
 void read(javax.servlet.http.HttpServletRequest request)
          Reads the internal state from the HTTP request.
 void write(Layout w)
          Writes the form element into the HTML stream without any postponing.
 void write(Layout w, java.util.Collection<HtmlFormElement> postponedElements)
          Writes the form element into the HTML stream.
 void writeErrors(Layout w)
          Writes any error messages concerning this form element into the HTML stream.
 
Methods inherited from class de.mguennewig.pobjform.AbstractRecordElement
appendToList, getCurrentString, getElement, getInitialObject, getInitialString, getNumElement, getObject, hasChanged, isMandatory, iterator, setCurrentAsInitialState, setObject, setObject, setProperty, setVisible, validate
 
Methods inherited from class de.mguennewig.pobjform.AbstractFormElement
getContainer, getEntry, getForm, getLabel, getProperty, getPullInPrefix, isPulledIn, omitRowHeader, setLabel, setPullInPrefix, startsNewCell
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.mguennewig.pobjform.FormElement
appendToList, getContainer, getEntry, getForm, getLabel, getProperty, getPullInPrefix, hasChanged, isMandatory, isPulledIn, omitRowHeader, setLabel, setProperty, setPullInPrefix, setVisible, startsNewCell, validate
 

Constructor Detail

HtmlRecordElement

public HtmlRecordElement(PObjHtmlForm form,
                         RecordEntry entry)
Creates a new HtmlRecordElement.

Method Detail

isVisible

public boolean isVisible()
Description copied from interface: FormElement
Tests whether this element will write anything visible.

Specified by:
isVisible in interface FormElement

read

public void read(javax.servlet.http.HttpServletRequest request)
Description copied from interface: HtmlFormElement
Reads the internal state from the HTTP request.

Specified by:
read in interface HtmlFormElement

write

public final void write(Layout w)
Description copied from interface: HtmlFormElement
Writes the form element into the HTML stream without any postponing.

This is short for this.write(w, null).

Specified by:
write in interface HtmlFormElement
See Also:
HtmlFormElement.write(Layout,Collection)

write

public void write(Layout w,
                  java.util.Collection<HtmlFormElement> postponedElements)
Description copied from interface: HtmlFormElement
Writes the form element into the HTML stream.

Specified by:
write in interface HtmlFormElement

writeErrors

public void writeErrors(Layout w)
Description copied from interface: HtmlFormElement
Writes any error messages concerning this form element into the HTML stream.

Specified by:
writeErrors in interface HtmlFormElement