de.mguennewig.pobjform.html
Class HtmlButtonElement

java.lang.Object
  extended by de.mguennewig.pobjform.AbstractFormElement
      extended by de.mguennewig.pobjform.AbstractButtonElement
          extended by de.mguennewig.pobjform.html.HtmlButtonElement
All Implemented Interfaces:
ButtonElement, FormElement, HtmlFormElement

public class HtmlButtonElement
extends AbstractButtonElement
implements HtmlFormElement

HTML button form element.

Author:
Michael Günnewig

Constructor Summary
HtmlButtonElement(PObjHtmlForm form, ButtonEntry entry)
          Creates a new HtmlButtonElement.
 
Method Summary
 boolean hasPressed()
          Tests whether the button has been pressed by the user.
 void read(javax.servlet.http.HttpServletRequest request)
          Reads the internal state from the HTTP request.
 void resetPressed()
          Clears the currently set pressed status.
 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.AbstractButtonElement
getButtonLabel, hasChanged, isMandatory, isVisible, setButtonLabel, 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

HtmlButtonElement

public HtmlButtonElement(PObjHtmlForm form,
                         ButtonEntry entry)
Creates a new HtmlButtonElement.

Method Detail

hasPressed

public final boolean hasPressed()
Tests whether the button has been pressed by the user.

Specified by:
hasPressed in interface ButtonElement

resetPressed

public final void resetPressed()
Clears the currently set pressed status.

Specified by:
resetPressed in interface ButtonElement

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 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