de.mguennewig.pobjform.html
Class HtmlLinkElement

java.lang.Object
  extended by de.mguennewig.pobjform.AbstractFormElement
      extended by de.mguennewig.pobjform.AbstractLinkElement
          extended by de.mguennewig.pobjform.html.HtmlLinkElement
All Implemented Interfaces:
FormElement, HtmlFormElement, LinkElement

public class HtmlLinkElement
extends AbstractLinkElement
implements HtmlFormElement

Represents a link element by using an HTML anchor.

Author:
Michael Günnewig

Constructor Summary
HtmlLinkElement(PObjHtmlForm form, LinkEntry entry)
          Creates a new HtmlLinkElement.
 
Method Summary
 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.AbstractLinkElement
getLinkUrl, hasChanged, isMandatory, isVisible, setLinkUrl, setVisible, validate
 
Methods inherited from class de.mguennewig.pobjform.AbstractFormElement
appendToList, getContainer, getEntry, getForm, getLabel, getProperty, getPullInPrefix, isPulledIn, omitRowHeader, setLabel, setProperty, 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, isVisible, omitRowHeader, setLabel, setProperty, setPullInPrefix, setVisible, startsNewCell, validate
 

Constructor Detail

HtmlLinkElement

public HtmlLinkElement(PObjHtmlForm form,
                       LinkEntry entry)
Creates a new HtmlLinkElement.

Method Detail

read

public void read(javax.servlet.http.HttpServletRequest request)
Reads the internal state from the HTTP request.

Specified by:
read in interface HtmlFormElement

write

public void write(Layout w)
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)
Writes the form element into the HTML stream.

Specified by:
write in interface HtmlFormElement

writeErrors

public void writeErrors(Layout w)
Writes any error messages concerning this form element into the HTML stream.

Specified by:
writeErrors in interface HtmlFormElement