com.taursys.html.render
Class HTMLCheckboxFieldRenderer

java.lang.Object
  extended bycom.taursys.xml.render.AbstractRenderer
      extended bycom.taursys.xml.render.VisibleRenderer
          extended bycom.taursys.xml.render.CheckboxFieldRenderer
              extended bycom.taursys.html.render.HTMLCheckboxFieldRenderer

public class HTMLCheckboxFieldRenderer
extends CheckboxFieldRenderer

Subcomponent which can render a value from a CheckboxField to an HTML Checkbox. If the CheckboxModel isSelected returns true, then the "checked" attribute is added to the element, otherwise it is removed.


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

Constructor Detail

HTMLCheckboxFieldRenderer

public HTMLCheckboxFieldRenderer(CheckboxField field)
Constructs a new HTMLCheckboxFieldRenderer for given field.

Method Detail

render

public void render()
            throws RenderException
Renders the CheckboxField to a HTML Checkbox field. If the CheckboxModel isSelected returns true, then the "checked" attribute is added to the element, otherwise it is removed. This component accesses the given field's parent to obtain the DocumentAdapter. It also accesses the given field's id and model.

Overrides:
render in class AbstractRenderer
Throws:
RenderException - if any problem occurs during rendering


Copyright © 2007 Martin T Phelan. All Rights Reserved.