org.apache.beehive.netui.tags.html
Class HtmlFocusBaseTag

Object
  extended by TagSupport
      extended by BodyTagSupport
          extended by AbstractClassicTag
              extended by HtmlBaseTag
                  extended by HtmlFocusBaseTag
All Implemented Interfaces:
Serializable, BodyTag, IterationTag, JspTag, Tag, HtmlConstants, IAttributeConsumer, IHtmlAttrs, IHtmlCore, IHtmlEvents, IHtmlI18n, INetuiTag
Direct Known Subclasses:
Button, CheckBoxOption, HtmlDataSourceTag, ImageButton, RadioButtonOption

public abstract class HtmlFocusBaseTag
extends HtmlBaseTag

Abstract base class which implements support for the input tag. This class introduces the following event attributes which are found on the <input> element: onblur, onfocus, onchange, onselect. In addition, the disable attribute is added.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class AbstractClassicTag
DefaultNamingChain, EMPTY_STRING, NETUI_UNIQUE_CNT
 
Fields inherited from class BodyTagSupport
bodyContent
 
Fields inherited from class TagSupport
id, pageContext
 
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
 
Fields inherited from interface BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
HtmlFocusBaseTag()
           
 
Method Summary
protected  boolean isDisabled()
          This method will a boolean indicating if the control is disabled or not.
protected  void localRelease()
          Free the state variables of this base class.
 void setDisabled(boolean disabled)
          Set the disable state either with the literal "true" or "false" or with an expression.
 void setOnBlur(String onblur)
          Sets the onBlur javascript event.
 void setOnChange(String onchange)
          Sets the onChange javascript event.
 void setOnFocus(String onfocus)
          Sets the onFocus javascript event.
 void setOnSelect(String onselect)
          Sets the onSelect javascript event.
 
Methods inherited from class HtmlBaseTag
getJavaScriptAttribute, getOnClick, getState, getTagId, renderDefaultNameAndId, renderNameAndId, setAttribute, setDir, setLang, setOnClick, setOnDblClick, setOnKeyDown, setOnKeyPress, setOnKeyUp, setOnMouseDown, setOnMouseMove, setOnMouseOut, setOnMouseOver, setOnMouseUp, setStateAttribute, setStyle, setStyleClass, setTagId, setTitle
 
Methods inherited from class AbstractClassicTag
applyNamingChain, getErrorsReport, getIdForTagId, getNamingChain, getNearestForm, getNextId, getScriptReporter, getTagName, getUserLocale, hasErrors, qualifyAttribute, registerTagError, registerTagError, reportAndExit, reportErrors, rewriteName, setNonEmptyValueAttribute, setRequiredValueAttribute, write
 
Methods inherited from class BodyTagSupport
doAfterBody, doEndTag, doInitBody, doStartTag, getBodyContent, getPreviousOut, release, setBodyContent
 
Methods inherited from class TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface Tag
getParent, setPageContext, setParent
 

Constructor Detail

HtmlFocusBaseTag

public HtmlFocusBaseTag()
Method Detail

setDisabled

public void setDisabled(boolean disabled)
Set the disable state either with the literal "true" or "false" or with an expression.

Parameters:
disabled - true or false or an expression

isDisabled

protected final boolean isDisabled()
This method will a boolean indicating if the control is disabled or not. This will cause the disable attribute to be evaluated which may result in a runtime error or a JspException.

Returns:
true if the control is disabled.

setOnBlur

public void setOnBlur(String onblur)
Sets the onBlur javascript event.

Parameters:
onblur - the onBlur event.

setOnFocus

public void setOnFocus(String onfocus)
Sets the onFocus javascript event.

Parameters:
onfocus - the onFocus event.

setOnChange

public void setOnChange(String onchange)
Sets the onChange javascript event.

Parameters:
onchange - the onChange event.

setOnSelect

public void setOnSelect(String onselect)
Sets the onSelect javascript event.

Parameters:
onselect - the onSelect event.

localRelease

protected void localRelease()
Description copied from class: HtmlBaseTag
Free the state variables of this base class.

Overrides:
localRelease in class HtmlBaseTag