com.taursys.xml.render
Class CheckboxFieldRenderer

java.lang.Object
  extended bycom.taursys.xml.render.AbstractRenderer
      extended bycom.taursys.xml.render.VisibleRenderer
          extended bycom.taursys.xml.render.CheckboxFieldRenderer
Direct Known Subclasses:
HTMLCheckboxFieldRenderer

public class CheckboxFieldRenderer
extends VisibleRenderer

Subcomponent which can render a value from a CheckboxField to a DOM Element as a TextNode.


Field Summary
 
Fields inherited from class com.taursys.xml.render.AbstractRenderer
id, parentDocumentAdapter
 
Constructor Summary
CheckboxFieldRenderer(CheckboxField field)
          Constructs a new CheckboxRenderer for the given CheckboxField.
 
Method Summary
protected  void renderContents()
          Renders the CheckboxField to a Text Node of Element in a Document.
 
Methods inherited from class com.taursys.xml.render.AbstractRenderer
getComponent, getComponentNode, getDocument, getParentNode, getSiblingNode, init, isRemoved, removeSelf, render, restoreSelf, setRemoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CheckboxFieldRenderer

public CheckboxFieldRenderer(CheckboxField field)
Constructs a new CheckboxRenderer for the given CheckboxField.

Method Detail

renderContents

protected void renderContents()
                       throws RenderException
Renders the CheckboxField to a Text Node of Element in a Document. This component accesses the given textField's parent to obtain the DocumentAdapter. It also accesses the given field's id and model. It uses the DocumentAdapter's setElementText to render the model's text value to the Element indicated by the id.

Overrides:
renderContents in class VisibleRenderer
Throws:
RenderException - if any problem occurs during rendering


Copyright © 2007 Martin T Phelan. All Rights Reserved.