BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs.

com.bea.wlw.netui.tags.html
Class Select

java.lang.Object
  extended by javax.servlet.jsp.tagext.TagSupport
      extended by javax.servlet.jsp.tagext.BodyTagSupport
          extended by com.bea.wlw.netui.tags.AbstractBaseTag
              extended by com.bea.wlw.netui.tags.DataSourceTag
                  extended by com.bea.wlw.netui.tags.DefaultableDataSourceTag
                      extended by com.bea.wlw.netui.tags.OptionsDataSourceTag
                          extended by com.bea.wlw.netui.tags.html.Select
All Implemented Interfaces:
Formattable, HtmlConstants, IAttributeConsumer, Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

public class Select
extends OptionsDataSourceTag
implements Formattable, IAttributeConsumer

Renders a select containing a set of SelectOptions. Select binds to an Iterator of Strings. If Select uses any Format tags, it must have those tags come before any nested SelectOption tags.

Attribute Descriptions
AttributeRequiredRuntime Expression EvaluationData Bindable
accessKeyNoNoNo
Define the keyboard navigation key for the element.
dataSourceYesNoRead / Write
The name of a form bean property or an expression that contains the Select state.
defaultValueNoNoRead Only
A literal value or an expression that is used to set the Select's initial state.
disabledNoNoRead Only
A boolean value which if true will cause the Select to be disabled.
multipleNoNoNo
Whether or not multi-selection is enabled.
nullableNoNoNo
Whether a (null) option should be added to the bottom of the list. If the Select has multiple=true, (null) won't be shown regardless.
nullableOptionTextNoNoNo
If nullable is true, then this is optional text for the option. The default is to use the empty string, "", as the value.
optionsDataSourceNoNoRead Only
An expression which is used to generate a set of dynamic SelectOption tags.
tagIdNoNoNo
The ID of this select used by the enclosing html tag to get the tag's name for javascript and focus purposes.
sizeNoNoNo
The number of visible options.

See Also:
SelectOption, Serialized Form
Example:
The following sample uses the optionsDataSource attribute to reference a dynamically generated dropdown list.
 <netui:select dataSource="{actionForm.selectedOption}"
     optionsDataSource="{actionForm.itemOptions}" />
 

Assume that the optionsDataSource attribute refers to a java.util.Map object. The Map object will be rendered as a series of <option> tags. HTML that is similar to the following will be rendered in the browser:

    <select>
        <option value="633">Aurora Bridge</option>
        <option value="631">FA-18 fighter jet</option>
        <option value="635">Space Needle</option>
        <option value="642">Thin Mints</option>
              ...
    </select>

Sample Code

[BEA_HOME]/weblogic81/samples/workshop/SamplesApp/WebApp/tagSamples/select/

[BEA_HOME]/weblogic81/samples/workshop/SamplesApp/WebApp/handlingData/dropdown/

Beadoc.see:
<netui:select> Tag Sample, Dynamically Populating the Options in a Dropdown Sample
Beadoc.tagdescription:
Renders an HTML <select> tag containing a set of selectable options.

The <netui:select> tag can generate a set of selectable options in two ways:

  1. they can be dynamically generated by pointing the <netui:select> tag at a String[] object or java.util.HashMap
  2. they can be statically generated by providing a set of children SelectOption tags

Dynamically Generated Options

You can dynamically generate a set of selectable options by pointing the <netui:select> tag at a String[].

    public String[] _options = {"red", "green", "blue", "orange", "pink", "aqua", "black", "brown", "tan"};

To point the <netui:select> tag at the String[] object use the optionsDataSource attribute.

    <netui:select optionsDataSource="{pageFlow._options}"
Note that you can make the display value and the submitted value differ by pointing the <netui:select> tag at a HashMap object. (Any object that implements the java.util.Map interface will work.)
    public HashMap _hashMap = new HashMap();
  
    protected void onCreate()
    {
        _hashMap.put("#ff3333", "red");
        _hashMap.put("#3333ff", "blue");
        _hashMap.put("#33ff33", "green");
    }
The following HTML will be generated.
      <select size="3">
          <option value="#3333ff">blue</option>
          <option value="#33ff33">green</option>
          <option value="#ff3333">red</option>
      </select>

Statically Generated Options

To statically generate selecable options, place a set of <netui:selectOption> tags inside the <netui:select> tag.

      <netui:select dataSource="{actionForm.selections}" size="5">
          <netui:selectOption value="red" />
          <netui:selectOption value="blue" />
          <netui:selectOption value="green" />
          <netui:selectOption value="yellow" />
          <netui:selectOption value="orange" />
      </netui:select>

Submitting Selections

A <netui:select> is submitted as a String or String[] object, depending on whether the multiple attribute is set to true. In the following example, the dataSource attribute points at a String[] object.

     </netui:select dataSource="{actionForm.selections}">

In this case, the <netui:select> tag submits to a String[] field of a Form Bean.

    public static class SubmitForm extends FormData
    {
        private String[] selections;
      
        public void setSelections(String[] selections)

        {
            this.selections = selections;
        }
      
        public String[] getSelections()
        {
            return this.selections;
        }
    }

Nested Class Summary
static class Select.SelectPrefixHandler
           
 
Field Summary
static String NULL_VALUE
           
 
Fields inherited from class com.bea.wlw.netui.tags.AbstractBaseTag
ATTR_GENERAL, ATTR_GENERAL_EXPRESSION, ATTR_JAVASCRIPT, ATTR_STYLE, JAVASCRIPT_STATUS, NETUI_UNIQUE_CNT
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface com.bea.wlw.netui.tags.html.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
 
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
Select()
           
 
Method Summary
 void addFormatter(FormatTag.Formatter formatter)
          Adds a FormatTag.Formatter to the Select's set of formatters
 void addOptionToList(String value)
           
protected  boolean containsString(List list, String value)
          Return true, if the list contains an Object.toString().equals(value).
 int doAfterBody()
          Save any body content of this tag, which will generally be the option(s) representing the values displayed to the user.
 int doEndTag()
          Render the end of this select.
 int doStartTag()
          Render the beginning of this select.
protected  Object evaluateDefaultValue()
          Evaluate the defaultValues
protected  Object evaluateOptionsDataSource()
           
 String formatText(Object text)
          Apply the Select's set of formatters to the given text
 String getAccessKey()
          Gets the accessKey attribute value.
 String getDisabled()
          Returns the boolean value or expression indicating the disable state of the Select.
 boolean getMultiple()
          Gets whether multiple selections are allowed.
 String getNullableOptionText()
          If the nullable option is true, this is the text of that option.
 boolean getNullableTop()
          Returns the boolean value indicating whether the null option is at the top (true) or the bottom (false) of the select list.
 String getOnBlur()
          Gets the onBlur javascript event.
 String getOnChange()
          Gets the onChange javascript event.
 String getOnClick()
          Gets the onClick javascript event.
 String getOnDblClick()
          Gets the onDblClick javascript event.
 String getOnFocus()
          Gets the onFocus javascript event.
 String getOnKeyDown()
          Gets the onKeyDown javascript event.
 String getOnKeyPress()
          Gets the onKeyPress javascript event.
 String getOnKeyUp()
          Gets the onKeyUp javascript event.
 String getOnMouseDown()
          Gets the onMouseDown javascript event.
 String getOnMouseMove()
          Gets the onMouseMove javascript event.
 String getOnMouseOut()
          Gets the onMouseOut javascript event.
 String getOnMouseOver()
          Gets the onMouseOver javascript event.
 String getOnMouseUp()
          Gets the onMouseUp javascript event.
 String getOnSelect()
          Gets the onSelect javascript event.
 String getSize()
          Gets how many options are displayed.
 String getStyle()
          Gets the style of the rendered html tag.
 String getStyleClass()
          Gets the style class of the rendered html tag.
 String getTabindex()
          Gets the tabIndex of the rendered html tag.
 String getTagId()
          Return the ID of the select.
 String getTagName()
          Return the name of the Tag.
 boolean isMatched(String value)
          Does the specified value match one of those we are looking for?
 boolean isNullable()
          Gets whether a null option is desired.
protected  void localRelease()
          Release any acquired resources.
 void setAccessKey(String accessKey)
          Sets the accessKey attribute value.
 void setAttribute(String name, String value)
          Set an attribute value.
 void setDisabled(String disabled)
          Set the disable state either with the literal "true" or "false" or with an expression.
 void setMultiple(boolean multiple)
          Set whether multiple selections are allowed.
 void setNullable(boolean nullable)
          Set whethera null option is desired.
 void setNullableOptionText(String nullableOptionText)
          Set the text of the nullable option.
 void setNullableTop(boolean nullableTop)
          Set to true if the null option should be at the top of the select list.
 void setOnBlur(String onblur)
          Sets the onBlur javascript event.
 void setOnChange(String onchange)
          Sets the onChange javascript event.
 void setOnClick(String onclick)
          Sets the onClick javascript event.
 void setOnDblClick(String ondblclick)
          Sets the onDblClick javascript event.
 void setOnFocus(String onfocus)
          Sets the onFocus javascript event.
 void setOnKeyDown(String onkeydown)
          Sets the onKeyDown javascript event.
 void setOnKeyPress(String onkeypress)
          Sets the onKeyPress javascript event.
 void setOnKeyUp(String onkeyup)
          Sets the onKeyUp javascript event.
 void setOnMouseDown(String onmousedown)
          Sets the onMouseDown javascript event.
 void setOnMouseMove(String onmousemove)
          Sets the onMouseMove javascript event.
 void setOnMouseOut(String onmouseout)
          Sets the onMouseOut javascript event.
 void setOnMouseOver(String onmouseover)
          Sets the onMouseOver javascript event.
 void setOnMouseUp(String onmouseup)
          Sets the onMouseUp javascript event.
 void setOnSelect(String onselect)
          Sets the onSelect javascript event.
 void setSize(String size)
          Sets how many options are displayed.
 void setStyle(String style)
          Sets the style of the rendered html tag.
 void setStyleClass(String styleClass)
          Sets the style class of the rendered html tag.
 void setTabindex(String tabindex)
          Sets the tabIndex of the rendered html tag.
 void setTagId(String tagId)
          Set the ID of the select.
 
Methods inherited from class com.bea.wlw.netui.tags.OptionsDataSourceTag
getOptionsDataSource, setOptionsDataSource
 
Methods inherited from class com.bea.wlw.netui.tags.DefaultableDataSourceTag
getDefaultValue, setDefaultValue
 
Methods inherited from class com.bea.wlw.netui.tags.DataSourceTag
addNamingInterceptor, doNaming, evaluateDataSource, getDataSource, qualifyAttribute, removeNamingInterceptor, setDataSource
 
Methods inherited from class com.bea.wlw.netui.tags.AbstractBaseTag
addTagIdMapping, containsExpression, evaluateAttributeToString, evaluateExpression, filter, filter, formatErrorString, formatString, getAttribute, getErrorsReport, getExpressionEvaluator, getJavaScriptUtils, getNearestForm, getNextId, getQualifiedBundleName, getScriptReporter, getUserLocale, hasErrors, isExpression, prepForRendering, registerAttribute, registerError, registerTagError, release, removeAttribute, renderAttribute, renderAttributes, reportErrors, rewriteName, setPageContext, updateExpression, write
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setParent
 

Field Detail

NULL_VALUE

public static final String NULL_VALUE
See Also:
Constant Field Values
Constructor Detail

Select

public Select()
Method Detail

getTagName

public String getTagName()
Return the name of the Tag.

Specified by:
getTagName in class AbstractBaseTag

setAttribute

public void setAttribute(String name,
                         String value)
                  throws javax.servlet.jsp.JspException
Set an attribute value. The name represents the name of the attribute. The value represents the value and may contain a netui expression. This method may result in errors being generated. This requires that the tag buffer its body and write attributes in the end tag. For the select tag it is not legal to set the id or name attributes with this method.

Specified by:
setAttribute in interface IAttributeConsumer
Parameters:
name - The name of the attribute. This value may not be null or the empty string.
value - The value of the attribute. This may contain a netui expression.
Throws:
javax.servlet.jsp.JspException - A JspException may be thrown if there is an error setting the attribute.

evaluateDefaultValue

protected Object evaluateDefaultValue()
Evaluate the defaultValues

Overrides:
evaluateDefaultValue in class DefaultableDataSourceTag

getMultiple

public boolean getMultiple()
Gets whether multiple selections are allowed.

Returns:
the multiple value

setMultiple

public void setMultiple(boolean multiple)
Set whether multiple selections are allowed.

Parameters:
multiple - - the multiple value ("true" or "false")
Beadoc.attributedescription:
Boolean. Whether or not multi-selection is enabled. If multiple selection is enabled, a null option will not be displayed, even if the nullable is set to true.
Beadoc.attributesyntaxvalue:
boolean_multipleSelectEnabled
Beadoc.databindable:
false

isNullable

public boolean isNullable()
Gets whether a null option is desired.

Returns:
the nullable value

setNullable

public void setNullable(boolean nullable)
Set whethera null option is desired.

Parameters:
nullable - - the nullable value
Beadoc.attributedescription:
Boolean. Whether a option with the value null should be added to the bottom of the list. If <select> has the multiple attribute set to true, the null option won't be shown.
Beadoc.attributesyntaxvalue:
boolean_nullable
Beadoc.databindable:
false

getNullableOptionText

public String getNullableOptionText()
If the nullable option is true, this is the text of that option. The default is "";

Returns:
the text of the nullable option

setNullableOptionText

public void setNullableOptionText(String nullableOptionText)
Set the text of the nullable option. If the nullable option is true, this is the text of that option. The default is "";

Beadoc.attributedescription:
Boolean. If the nullable attribute is set to true, then the nullableOptionText attribute determines the display text of the null option. The default is to use the empty string, "", as the display text.
Beadoc.attributesyntaxvalue:
boolean_nullableOptionText
Beadoc.databindable:
false

evaluateOptionsDataSource

protected Object evaluateOptionsDataSource()
                                    throws javax.servlet.jsp.JspException
Overrides:
evaluateOptionsDataSource in class OptionsDataSourceTag
Throws:
javax.servlet.jsp.JspException
Exclude:

getSize

public String getSize()
Gets how many options are displayed.

Returns:
the size

setSize

public void setSize(String size)
Sets how many options are displayed.

Parameters:
size - - the size (a number)
Beadoc.attributedescription:
The number of visible options
Beadoc.attributesyntaxvalue:
integer_size
Beadoc.databindable:
false

getTagId

public String getTagId()
Return the ID of the select.

Returns:
the ID.

setTagId

public void setTagId(String tagId)
Set the ID of the select.

Parameters:
tagId - - the ID.
Beadoc.attributedescription:

String value. Sets the id (or name) attribute of the rendered HTML tag. Note that the real id attribute rendered in the browser may be changed by the application container (for example, Portal containers may change the rendered id value to ensure the uniqueness of id's on the page). In this case, the real id rendered in the browser may be looked up through the JavaScript function getNetuiTagName( tagId, tag ).

For example, assume that some tag's tagId attribute is set to foo.

    <netui:textBox tagId="foo" />

Then the following JavaScript function will return the real id attribute rendered in the browser:

    getNetuiTagName( "foo", this )

To get a <netui:form> element and all of its children elements in JavaScript, use the same JavaScript function getNetuiTagName( tagId, tag ). For example, assume that there is a <netui:form> whose tagId attribute is set to bar.

    <netui:form tagId="bar" >

Then the following JavaScript function will return the <netui:form> element and its children (packaged as an array).

    document[getNetuiTagName( "bar", this )]

To retreive the value entered into a <netui:textBox> within the <netui:form> tag, use the following JavaScript expression.

    document[getNetuiTagName("bar", this)][getNetuiTagName("foo", this)].value

The second parameter ensures that the JavaScript function begins its search within the correct Portlet scope. Pass the JavaScript keyword this as the second parameter. For detailed information on using the function getNetuiTagName( tagId, tag ) see Using JavaScript in Page Flow and Portal Applications.

Beadoc.attributesyntaxvalue:
string_tagId
Beadoc.databindable:
false

getDisabled

public String getDisabled()
Returns the boolean value or expression indicating the disable state of the Select.

Returns:
the disabled state (true or false) or an expression

setDisabled

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

Parameters:
disabled - - true or false or an expression
Beadoc.attributedescription:
Boolean. If set to true, the button will be visible, but diabled.
Beadoc.attributesyntaxvalue:
boolean_disabled
Beadoc.databindable:
Read Only

getNullableTop

public boolean getNullableTop()
Returns the boolean value indicating whether the null option is at the top (true) or the bottom (false) of the select list.

Returns:
true if the null option is at the top of the list

setNullableTop

public void setNullableTop(boolean nullableTop)
Set to true if the null option should be at the top of the select list. If this attribute is false (the default) then the null option will appear at the bottom of the list.

Parameters:
nullableTop - - true if nullable should be at the top of the list
Beadoc.attributedescription:
Boolean. If set to true, the null option will be at the top of the list
Beadoc.attributesyntaxvalue:
boolean_nullableTop
Beadoc.databindable:
false

isMatched

public boolean isMatched(String value)
Does the specified value match one of those we are looking for?

Parameters:
value - Value to be compared

doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Render the beginning of this select.

Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred

doAfterBody

public int doAfterBody()
                throws javax.servlet.jsp.JspException
Save any body content of this tag, which will generally be the option(s) representing the values displayed to the user.

Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
Overrides:
doAfterBody in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Render the end of this select.

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred

localRelease

protected void localRelease()
Release any acquired resources.

Overrides:
localRelease in class OptionsDataSourceTag

addFormatter

public void addFormatter(FormatTag.Formatter formatter)
Adds a FormatTag.Formatter to the Select's set of formatters

Specified by:
addFormatter in interface Formattable
Parameters:
formatter - - a FormatTag.Formatter added by a child FormatTag.

addOptionToList

public void addOptionToList(String value)
Exclude:

containsString

protected boolean containsString(List list,
                                 String value)
Return true, if the list contains an Object.toString().equals(value).

Parameters:
list -
value -
Returns:

formatText

public String formatText(Object text)
Apply the Select's set of formatters to the given text

Parameters:
text - - the text to format.
Returns:
the formatted text
Exclude:

setTabindex

public void setTabindex(String tabindex)
Sets the tabIndex of the rendered html tag.

Parameters:
tabindex - - the tab index.
Beadoc.attributedescription:
The tabIndex of the rendered HTML tag. This attribute determines the position of the tag in the sequence of page elements that the user may advance through by pressing the TAB key.
Beadoc.attributesyntaxvalue:
string_tabIndex
Beadoc.databindable:
false

getTabindex

public String getTabindex()
Gets the tabIndex of the rendered html tag.

Returns:
the tabindex.

setStyle

public void setStyle(String style)
Sets the style of the rendered html tag.

Parameters:
style - - the html style.
Beadoc.attributedescription:
The style of the rendered HTML tag.
Beadoc.attributesyntaxvalue:
string_Style
Beadoc.databindable:
false

getStyle

public String getStyle()
Gets the style of the rendered html tag.

Returns:
the style.

setStyleClass

public void setStyleClass(String styleClass)
Sets the style class of the rendered html tag.

Parameters:
styleClass - - the html style class.
Beadoc.attributedescription:
The class of the rendered HTML tag.
Beadoc.attributesyntaxvalue:
string_Class
Beadoc.databindable:
false

getStyleClass

public String getStyleClass()
Gets the style class of the rendered html tag.

Returns:
the style class.

getAccessKey

public String getAccessKey()
Gets the accessKey attribute value.

Returns:
the accessKey value.

setAccessKey

public void setAccessKey(String accessKey)
Sets the accessKey attribute value. This should key value of the keyboard navigation key. It is recommended not to use the following values because there are often used by browsers A, C, E, F, G, H, V, left arrow, and right arrow.

Parameters:
accessKey - - the accessKey value.
Beadoc.attributedescription:
The keyboard navigation key for the element. The following values are not recommended because they are often used by browsers: A, C, E, F, G, H, V, left arrow, and right arrow
Beadoc.attributesyntaxvalue:
string_accessKey
Beadoc.databindable:
false

getOnClick

public String getOnClick()
Gets the onClick javascript event.

Returns:
the onClick event.

setOnClick

public void setOnClick(String onclick)
Sets the onClick javascript event.

Parameters:
onclick - - the onClick event.
Beadoc.attributedescription:
The onClick JavaScript event.
Beadoc.attributesyntaxvalue:
string_onClick
Beadoc.databindable:
false

getOnDblClick

public String getOnDblClick()
Gets the onDblClick javascript event.

Returns:
the onDblClick event.

setOnDblClick

public void setOnDblClick(String ondblclick)
Sets the onDblClick javascript event.

Parameters:
ondblclick - - the onDblClick event.
Beadoc.attributedescription:
The onDblClick JavaScript event.
Beadoc.attributesyntaxvalue:
string_onDblClick
Beadoc.databindable:
false

getOnKeyDown

public String getOnKeyDown()
Gets the onKeyDown javascript event.

Returns:
the onKeyDown event.

setOnKeyDown

public void setOnKeyDown(String onkeydown)
Sets the onKeyDown javascript event.

Parameters:
onkeydown - - the onKeyDown event.
Beadoc.attributedescription:
The onKeyDown JavaScript event.
Beadoc.attributesyntaxvalue:
string_onKeyDown
Beadoc.databindable:
false

getOnKeyPress

public String getOnKeyPress()
Gets the onKeyPress javascript event.

Returns:
the onKeyPress event.

setOnKeyPress

public void setOnKeyPress(String onkeypress)
Sets the onKeyPress javascript event.

Parameters:
onkeypress - - the onKeyPress event.
Beadoc.attributedescription:
The onKeyPress JavaScript event.
Beadoc.attributesyntaxvalue:
string_onKeyPress
Beadoc.databindable:
false

getOnKeyUp

public String getOnKeyUp()
Gets the onKeyUp javascript event.

Returns:
the onKeyUp event.

setOnKeyUp

public void setOnKeyUp(String onkeyup)
Sets the onKeyUp javascript event.

Parameters:
onkeyup - - the onKeyUp event.
Beadoc.attributedescription:
The onKeyUp JavaScript event.
Beadoc.attributesyntaxvalue:
string_onKeyUp
Beadoc.databindable:
false

getOnMouseDown

public String getOnMouseDown()
Gets the onMouseDown javascript event.

Returns:
the onMouseDown event.

setOnMouseDown

public void setOnMouseDown(String onmousedown)
Sets the onMouseDown javascript event.

Parameters:
onmousedown - - the onMouseDown event.
Beadoc.attributedescription:
The onMouseDown JavaScript event.
Beadoc.attributesyntaxvalue:
string_onMouseDown
Beadoc.databindable:
false

getOnMouseMove

public String getOnMouseMove()
Gets the onMouseMove javascript event.

Returns:
the onMouseMove event.

setOnMouseMove

public void setOnMouseMove(String onmousemove)
Sets the onMouseMove javascript event.

Parameters:
onmousemove - - the onMouseMove event.
Beadoc.attributedescription:
The onMouseMove JavaScript event.
Beadoc.attributesyntaxvalue:
string_onMouseMove
Beadoc.databindable:
false

getOnMouseOut

public String getOnMouseOut()
Gets the onMouseOut javascript event.

Returns:
the onMouseOut event.

setOnMouseOut

public void setOnMouseOut(String onmouseout)
Sets the onMouseOut javascript event.

Parameters:
onmouseout - - the onMouseOut event.
Beadoc.attributedescription:
The onMouseOut JavaScript event.
Beadoc.attributesyntaxvalue:
string_onMouseOut
Beadoc.databindable:
false

getOnMouseOver

public String getOnMouseOver()
Gets the onMouseOver javascript event.

Returns:
the onMouseOver event.

setOnMouseOver

public void setOnMouseOver(String onmouseover)
Sets the onMouseOver javascript event.

Parameters:
onmouseover - - the onMouseOver event.
Beadoc.attributedescription:
The onMouseOver JavaScript event.
Beadoc.attributesyntaxvalue:
string_onMouseOver
Beadoc.databindable:
false

getOnMouseUp

public String getOnMouseUp()
Gets the onMouseUp javascript event.

Returns:
the onMouseUp event.

setOnMouseUp

public void setOnMouseUp(String onmouseup)
Sets the onMouseUp javascript event.

Parameters:
onmouseup - - the onMouseUp event.
Beadoc.attributedescription:
The onMouseUp JavaScript event.
Beadoc.attributesyntaxvalue:
string_onMouseUp
Beadoc.databindable:
false

getOnBlur

public String getOnBlur()
Gets the onBlur javascript event.

Returns:
the onBlur event.

setOnBlur

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

Parameters:
onblur - - the onBlur event.
Beadoc.attributedescription:
The onBlur JavaScript event.
Beadoc.attributesyntaxvalue:
string_onBlur
Beadoc.databindable:
false

getOnFocus

public String getOnFocus()
Gets the onFocus javascript event.

Returns:
the onFocus event.

setOnFocus

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

Parameters:
onfocus - - the onFocus event.
Beadoc.attributedescription:
The onFocus JavaScript event.
Beadoc.attributesyntaxvalue:
string_onFocus
Beadoc.databindable:
false

getOnChange

public String getOnChange()
Gets the onChange javascript event.

Returns:
the onChange event.

setOnChange

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

Parameters:
onchange - - the onChange event.
Beadoc.attributedescription:
The onChange JavaScript event.
Beadoc.attributesyntaxvalue:
string_onChange
Beadoc.databindable:
false

getOnSelect

public String getOnSelect()
Gets the onSelect javascript event.

Returns:
the onSelect event.

setOnSelect

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

Parameters:
onselect - - the onSelect event.
Beadoc.attributedescription:
The onSelect JavaScript event.
Beadoc.attributesyntaxvalue:
string_onSelect
Beadoc.databindable:
false

BEA NetUI tags and APIs are included for backward compatibility only. For new applications, use the Beehive tags and APIs.