de.mguennewig.pobjform
Class AbstractSpacerElement

java.lang.Object
  extended by de.mguennewig.pobjform.AbstractFormElement
      extended by de.mguennewig.pobjform.AbstractSpacerElement
All Implemented Interfaces:
FormElement, SpacerElement
Direct Known Subclasses:
HtmlSpacerElement, SwingSpacerElement

public abstract class AbstractSpacerElement
extends AbstractFormElement
implements SpacerElement

Common base class for all spacer element implementations.

Author:
Michael Günnewig

Constructor Summary
AbstractSpacerElement(PObjForm form, SpacerEntry entry)
          Creates a new abstract spacer element.
 
Method Summary
 int getRenderAs()
          
 boolean hasChanged()
          Tests whether the data for this element has been changed.
 boolean isMandatory()
          Tests whether data for this element must be entered.
 boolean isVisible()
          Tests whether this element will write anything visible.
 void setVisible(boolean visible)
          Sets whether this element will be written visibly.
 void validate()
          Checks for a valid value in this form element and any possible children.
 
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, isPulledIn, omitRowHeader, setLabel, setProperty, setPullInPrefix, startsNewCell
 

Constructor Detail

AbstractSpacerElement

public AbstractSpacerElement(PObjForm form,
                             SpacerEntry entry)
Creates a new abstract spacer element.

Method Detail

isMandatory

public final boolean isMandatory()
Tests whether data for this element must be entered.

Specified by:
isMandatory in interface FormElement

isVisible

public final boolean isVisible()
Tests whether this element will write anything visible.

Specified by:
isVisible in interface FormElement

setVisible

public void setVisible(boolean visible)
Sets whether this element will be written visibly.

A spacer element is always visible.

Specified by:
setVisible in interface FormElement

hasChanged

public final boolean hasChanged()
Tests whether the data for this element has been changed.

Specified by:
hasChanged in interface FormElement

getRenderAs

public final int getRenderAs()

Specified by:
getRenderAs in interface SpacerElement

validate

public void validate()
Checks for a valid value in this form element and any possible children.

Specified by:
validate in interface FormElement