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

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

public abstract class ButtonTag
extends TagHtmlBase
implements HtmlConstants

Render the HTML <button> element. In HTML 4.01 the start and end tags are required.

This renderer is just used by the NetUI Button as an alternative to the <input> HTML element rendered by the InputSubmitTag.


Nested Class Summary
static class ButtonTag.State
           
 
Nested classes/interfaces inherited from class TagRenderingBase
TagRenderingBase.Factory
 
Field Summary
 
Fields inherited from class TagRenderingBase
ANCHOR_TAG, AREA_TAG, BASE_TAG, BODY_TAG, BR_TAG, BUTTON_TAG, CAPTION_TAG, DIV_TAG, FORM_TAG, HTML_RENDERING, HTML_RENDERING_QUIRKS, 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, SCRIPT_TAG, SELECT_TAG, SPAN_TAG, TABLE_TAG, TBODY_TAG, TD_TAG, TEXT_AREA_TAG, TFOOT_TAG, TH_TAG, THEAD_TAG, TR_TAG, UNKNOWN_RENDERING, XHTML_RENDERING
 
Fields inherited from interface HtmlConstants
ABBR, ACCEPT, ACCESSKEY, ACTION, ALIGN, ALINK, ALT, ANCHOR, AREA, AXIS, BACKGROUND, BASE, BGCOLOR, BODY, BORDER, BR, BUTTON, CAPTION, CELLPADDING, CELLSPACING, CHAR, CHAROFF, CHARSET, CHECKED, CLASS, COLS, COLSPAN, COORDS, DIR, DISABLED, DIV, ENCTYPE, FOR, FORM, FORM_GET, FORM_POST, FRAME, HEADERS, 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, LANGUAGE, 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, ROWSPAN, RULES, SCOPE, SCRIPT, SELECT, SHAPE, SIZE, SPAN, SRC, STYLE, SUMMARY, TABINDEX, TABLE, TARGET, TBODY, TD, TEXT, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TYPE, USEMAP, VALIGN, VALUE, VLINK, VSPACE, WIDTH
 
Constructor Summary
ButtonTag()
           
 
Method Summary
static void add(HashMap html, HashMap htmlQuirks, HashMap xhtml)
           
 void doEndTag(AbstractRenderAppender writer)
          Render the end tag for an element.
 void doStartTag(AbstractRenderAppender writer, AbstractTagState renderState)
          Render the start tag for an element.
protected abstract  void renderDisabled(AbstractRenderAppender writer, boolean disabled)
           
 
Methods inherited from class TagHtmlBase
renderAttributes
 
Methods inherited from class TagRenderingBase
getAmp, getDefaultDocType, renderAttribute, renderAttributes, renderAttributeSingleQuotes, renderEndTag, renderGeneral, renderTag, setDefaultDocType, write
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ButtonTag

public ButtonTag()
Method Detail

add

public static void add(HashMap html,
                       HashMap htmlQuirks,
                       HashMap xhtml)

doStartTag

public void doStartTag(AbstractRenderAppender writer,
                       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 InternalStringBuilder.

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

doEndTag

public void doEndTag(AbstractRenderAppender writer)
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:
writer - A InternalStringBuilder where the element end tag may be appended.

renderDisabled

protected abstract void renderDisabled(AbstractRenderAppender writer,
                                       boolean disabled)