de.mguennewig.pobjform.html
Class HtmlInputElement

java.lang.Object
  extended by de.mguennewig.pobjform.AbstractFormElement
      extended by de.mguennewig.pobjform.AbstractValueElement
          extended by de.mguennewig.pobjform.AbstractInputElement
              extended by de.mguennewig.pobjform.html.HtmlInputElement
All Implemented Interfaces:
FormElement, HtmlFormElement, InputElement, ValueElement
Direct Known Subclasses:
HtmlCheckboxElement, HtmlReferenceElement, HtmlStringElement, HtmlTextAreaElement

public abstract class HtmlInputElement
extends AbstractInputElement
implements HtmlFormElement

Class description goes here.

Author:
Michael Günnewig

Field Summary
 
Fields inherited from interface de.mguennewig.pobjform.InputElement
MAX_INPUT_SIZE, RENDER_AS_DISABLED, RENDER_AS_HIDDEN, RENDER_AS_HIDDEN_WITH_LABEL, RENDER_AS_INPUT, RENDER_AS_TEXT
 
Constructor Summary
HtmlInputElement(PObjHtmlForm form, InputEntry entry)
          Creates a new HtmlInputElement.
 
Method Summary
 java.lang.String getCurrentString()
          Returns the string representation of the current object.
 java.lang.Object getInitialObject()
          Returns the initial object.
 java.lang.String getInitialString()
          Returns the string representation of the initial object.
 java.lang.Object getObject()
          Returns the current object.
 boolean hasChanged()
          Tests whether the data for this element has been changed.
 void read(javax.servlet.http.HttpServletRequest request)
          Reads the internal state from the HTTP request.
 void setCurrentAsInitialState()
          Copies the current state to the initial state.
 void setCurrentString(java.lang.String current)
           
 void setInitialString(java.lang.String initial)
           
 void setObject(java.lang.Object obj)
          Sets the current object to the new value.
 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.AbstractInputElement
addChangeListener, getChangeListeners, getInputEntry, getRenderAs, getType, getVisualString, isHiddenInput, isMandatory, isRightAligned, isVisible, removeChangeListener, setMandatory, setRenderAs, setRightAligned, 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, isMandatory, isPulledIn, isVisible, omitRowHeader, setLabel, setProperty, setPullInPrefix, setVisible, startsNewCell, validate
 

Constructor Detail

HtmlInputElement

public HtmlInputElement(PObjHtmlForm form,
                        InputEntry entry)
Creates a new HtmlInputElement.

Method Detail

hasChanged

public boolean hasChanged()
Description copied from interface: FormElement
Tests whether the data for this element has been changed.

Specified by:
hasChanged in interface FormElement

getObject

public java.lang.Object getObject()
Returns the current object.

Specified by:
getObject in interface ValueElement
Overrides:
getObject in class AbstractInputElement

setObject

public void setObject(java.lang.Object obj)
Sets the current object to the new value.

Specified by:
setObject in interface ValueElement
Overrides:
setObject in class AbstractInputElement

getInitialObject

public java.lang.Object getInitialObject()
Description copied from interface: ValueElement
Returns the initial object.

Specified by:
getInitialObject in interface ValueElement

getInitialString

public final java.lang.String getInitialString()
Description copied from interface: ValueElement
Returns the string representation of the initial object.

Specified by:
getInitialString in interface ValueElement

setInitialString

public void setInitialString(java.lang.String initial)

getCurrentString

public final java.lang.String getCurrentString()
Description copied from interface: ValueElement
Returns the string representation of the current object.

Specified by:
getCurrentString in interface ValueElement

setCurrentString

public void setCurrentString(java.lang.String current)

setCurrentAsInitialState

public void setCurrentAsInitialState()
Description copied from interface: ValueElement
Copies the current state to the initial state.

Specified by:
setCurrentAsInitialState in interface ValueElement

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