|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.html.HtmlElement | +--weblogic.html.ElementWithAttributes | +--weblogic.html.MultiPartElement | +--weblogic.html.SelectElement
A SelectElement object is analogous to an HTML select set used in a form for capturing user choices from a multi-item dropdown-type combo box.
A SelectElement can be populated by query results in a dbKona DataSet. A SelectElement may also be populated by adding OptionElement objects with the addElement() method.
OptionElement
Fields inherited from class weblogic.html.HtmlElement |
codeset,
useObsolete |
Constructor Summary | |
SelectElement(java.lang.String str)
Deprecated. Constructs a SelectElement by the specified name. |
|
SelectElement(java.lang.String str,
DataSet ds)
Deprecated. Constructs a SelectElement by the specified name and populates it with data from a weblogic.db.jdbc.dbKona DataSet. |
Method Summary | |
SelectElement |
addElement(OptionElement val)
Deprecated. Adds an OptionElement to a SelectElement. |
SelectElement |
addElement(java.lang.String val)
Deprecated. Adds a string selection to a SelectElement. |
SelectElement |
addElement(java.lang.String text,
java.lang.String val)
Deprecated. Adds a string selection and an associated value to a SelectElement. |
OptionElement |
getElementAt(int pos)
Deprecated. Gets the OptionElement at the specified index position. |
protected java.lang.String |
getHtmlCode()
Deprecated. |
boolean |
hasElementbyText(java.lang.String val)
Deprecated. Determines whether the specified text exists in a SelectElement. |
boolean |
hasElementbyValue(java.lang.String val)
Deprecated. Determines whether the specified value exists in a SelectElement. |
protected boolean |
printCR()
Deprecated. |
SelectElement |
selectElementByText(java.lang.String val)
Deprecated. Selects the specified text in a SelectElement. |
SelectElement |
selectElementByValue(java.lang.String val)
Deprecated. Selects the specified value in a SelectElement. |
SelectElement |
setMultipleSelect()
Deprecated. Sets a SelectElement to allow multiple selections. |
SelectElement |
setMultipleSelect(boolean multiple)
Deprecated. Sets the MULTIPLE attribute to the specified boolean. |
SelectElement |
setName(java.lang.String val)
Deprecated. Sets the name of a SelectElement. |
SelectElement |
setOnBlur(java.lang.String val)
Deprecated. Sets the ONBLUR attribute. |
SelectElement |
setOnChange(java.lang.String val)
Deprecated. Sets the ONCHANGE attribute. |
SelectElement |
setOnFocus(java.lang.String val)
Deprecated. Sets the ONFOCUS attribute. |
SelectElement |
setSingleSelect()
Deprecated. Sets a SelectElement to allow only one selection. |
SelectElement |
setSize(int val)
Deprecated. Sets the size of a SelectElement. |
SelectElement |
setTabindex(int tabindex)
Deprecated. Sets the tabbing order for a SelectElement, which defines the order in which page elements get the focus when a user navigates the page with a keyboard. |
SelectElement |
setTabindex(java.lang.String tabindex)
Deprecated. Sets the TABINDEX attribute for a SelectElement. |
Methods inherited from class weblogic.html.MultiPartElement |
addHeadMultiElement,
addMultiElement,
getMultiElementAt,
getNumElements,
printBody,
printBody,
printBody,
removeElement,
removeElementAt,
replaceElementAt,
replaceMultiElementAt,
widthAsLiteral |
Methods inherited from class weblogic.html.ElementWithAttributes |
addAttribute,
addAttribute,
escapeQuotes,
getBooleanAttribute,
getElementAttribute,
getLocalVar,
getQuotedAttribute,
output,
output,
output,
printBody,
printEndingTag,
setBooleanAttribute,
setBooleanAttribute,
setClass,
setDirection,
setElementAttribute,
setElementAttribute,
setElementAttribute,
setElementAttribute,
setElementAttribute,
setId,
setLang,
setLocalVar,
setQuotedAttribute,
setStyle |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public SelectElement(java.lang.String str)
str
- Name of the SelectElementpublic SelectElement(java.lang.String str, DataSet ds) throws java.sql.SQLException, DataSetException
str
- Name of the SelectElementds
- weblogic.db.jdbc.DataSetMethod Detail |
public SelectElement setSize(int val)
val
- Size (number of selections)public SelectElement setName(java.lang.String val)
val
- Namepublic SelectElement setMultipleSelect(boolean multiple)
multiple
- True if multiple selections are allowedpublic SelectElement setMultipleSelect()
public SelectElement setSingleSelect()
public SelectElement setTabindex(java.lang.String tabindex)
tabindex
- Indexpublic SelectElement setTabindex(int tabindex)
tabindex
- intpublic SelectElement setOnFocus(java.lang.String val)
val
- Stringpublic SelectElement setOnBlur(java.lang.String val)
val
- Stringpublic SelectElement setOnChange(java.lang.String val)
val
- Stringpublic SelectElement addElement(java.lang.String val)
val
- Stringpublic SelectElement addElement(java.lang.String text, java.lang.String val)
text
- Stringval
- Valuepublic SelectElement addElement(OptionElement val)
val
- OptionElementpublic OptionElement getElementAt(int pos)
pos
- Index positionpublic boolean hasElementbyValue(java.lang.String val)
val
- String for comparisonpublic boolean hasElementbyText(java.lang.String val)
val
- String for comparisonpublic SelectElement selectElementByText(java.lang.String val)
val
- String for comparisonpublic SelectElement selectElementByValue(java.lang.String val)
val
- String for comparisonprotected java.lang.String getHtmlCode()
protected boolean printCR()
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |