org.apache.beehive.netui.tags.rendering
Class InputBooleanTag

Object
  extended by TagRenderingBase
      extended by TagHtmlBase
          extended by InputBooleanTag
All Implemented Interfaces:
HtmlConstants

public abstract class InputBooleanTag
extends TagHtmlBase
implements HtmlConstants

Render and HTML <input> element of either type checkbox or radio. In HTML 4.01 the start tag is required and the end tag is forbidden. There are no required attributes.


Nested Class Summary
static class InputBooleanTag.State
           
 
Nested classes/interfaces inherited from class TagRenderingBase
TagRenderingBase.Factory
 
Field Summary
 
Fields inherited from class TagRenderingBase
ANCHOR_TAG, BASE_TAG, BODY_TAG, BR_TAG, CAPTION_TAG, DIV_TAG, FORM_TAG, HTML_RENDERING, HTML_TAG, IMAGE_TAG, INPUT_BOOLEAN_TAG, INPUT_FILE_TAG, INPUT_HIDDEN_TAG, INPUT_IMAGE_TAG, INPUT_SUBMIT_TAG, INPUT_TEXT_TAG, LABEL_TAG, OPTION_TAG, SELECT_TAG, SPAN_TAG, TABLE_TAG, TD_TAG, TEXT_AREA_TAG, TR_TAG, UNKNOWN_RENDERING, XHTML_RENDERING
 
Fields inherited from interface HtmlConstants
ACCEPT, ACCESSKEY, ACTION, ALIGN, ALINK, ALT, ANCHOR, BACKGROUND, BASE, BGCOLOR, BODY, BORDER, BR, CAPTION, CELLPADDING, CELLSPACING, CHAR, CHAROFF, CHARSET, CHECKED, CLASS, COLS, COORDS, DIR, DISABLED, DIV, ENCTYPE, FOR, FORM, FORM_GET, FORM_POST, FRAME, HEIGHT, HREF, HREFLANG, HSPACE, HTML, ID, IMAGE, INPUT, INPUT_BUTTON, INPUT_CHECKBOX, INPUT_FILE, INPUT_HIDDEN, INPUT_IMAGE, INPUT_PASSWORD, INPUT_RADIO, INPUT_RESET, INPUT_SUBMIT, INPUT_TEXT, ISMAP, LABEL, LANG, LINK, LONGDESC, MAXLENGTH, METHOD, NAME, ONBLUR, ONCHANGE, ONCLICK, ONDBLCLICK, ONFOCUS, ONKEYDOWN, ONKEYPRESS, ONKEYUP, ONLOAD, ONMOUSEDOWN, ONMOUSEMOVE, ONMOUSEOUT, ONMOUSEOVER, ONMOUSEUP, ONRESET, ONSELECT, ONSUBMIT, ONUNLOAD, OPTION, READONLY, REL, REV, ROWS, RULES, SELECT, SHAPE, SIZE, SPAN, SRC, STYLE, SUMMARY, TABINDEX, TABLE, TARGET, TD, TEXT, TEXTAREA, TITLE, TR, TYPE, USEMAP, VALIGN, VALUE, VLINK, VSPACE, WIDTH
 
Constructor Summary
InputBooleanTag()
           
 
Method Summary
static void add(HashMap html, HashMap xhtml)
           
 void doEndTag(StringBuilder sb)
          Render the end tag for an element.
 void doStartTag(StringBuilder sb, AbstractTagState renderState)
          Render the start tag for an element.
protected abstract  void renderChecked(StringBuilder sb, boolean checked)
           
protected abstract  void renderDisabled(StringBuilder sb, boolean disabled)
           
protected abstract  void writeEnd(StringBuilder sb)
           
 
Methods inherited from class TagHtmlBase
renderAttributes
 
Methods inherited from class TagRenderingBase
getAmp, renderAttribute, renderAttributes, renderAttributeSingleQuotes, renderEndTag, renderGeneral, renderTag
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputBooleanTag

public InputBooleanTag()
Method Detail

add

public static void add(HashMap html,
                       HashMap xhtml)

doStartTag

public void doStartTag(StringBuilder sb,
                       AbstractTagState renderState)
Description copied from class: TagRenderingBase
Render the start tag for an element. The element will render the tag and all of it's attributes into a StringBuffer.

Specified by:
doStartTag in class TagRenderingBase
Parameters:
sb - A StringBuffer where the element start tag is appended.
renderState - The state assocated with the element.

doEndTag

public void doEndTag(StringBuilder sb)
Description copied from class: TagRenderingBase
Render the end tag for an element. The end tag will be rendered if the tag requires an end tag.

Specified by:
doEndTag in class TagRenderingBase
Parameters:
sb - A StringBuffer where the element end tag may be appended.

writeEnd

protected abstract void writeEnd(StringBuilder sb)

renderDisabled

protected abstract void renderDisabled(StringBuilder sb,
                                       boolean disabled)

renderChecked

protected abstract void renderChecked(StringBuilder sb,
                                      boolean checked)