|
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.SinglePartElement | +--weblogic.html.InputElement
An InputElement object is used to capture user input on an htmlKona FormElement. You build an htmlKona form by constructing a FormElement and adding InputElements to it.
The methods in this class allow you to set input attributes, such as length, border, width, height, and name. Use a FieldType object as an argument in constructing the InputElement to establish the type (button, checkbox, text, etc.) of an InputElement.
FormElement
,
FieldType
Fields inherited from class weblogic.html.HtmlElement |
codeset,
useObsolete |
Constructor Summary | |
InputElement()
Deprecated. Constructs an InputElement. |
|
InputElement(java.lang.String namestr)
Deprecated. Constructs an InputElement with the specified name. |
|
InputElement(java.lang.String namestr,
FieldType typeval)
Deprecated. Constructs an InputElement with the specified name and of the specified type. |
|
InputElement(java.lang.String namestr,
FieldType typeval,
HtmlElement value)
Deprecated. Constructs an InputElement with the specified name and of the specified type, set to the specified HtmlElement. |
|
InputElement(java.lang.String namestr,
FieldType typeval,
java.lang.String val)
Deprecated. Constructs an InputElement with the specified name and of the specified type, set to the specified string. |
|
InputElement(java.lang.String namestr,
FieldType typeval,
java.lang.String value,
HtmlElement label)
Deprecated. Constructs an InputElement with the specified name, type, and value, with the label set to the specified label. |
|
InputElement(java.lang.String namestr,
FieldType typeval,
java.lang.String value,
java.lang.String label)
Deprecated. Constructs an InputElement with the specified name, type, and value, with the label set to the specified label. |
Method Summary | |
protected java.lang.String |
getHtmlCode()
Deprecated. |
FieldType |
getType()
Deprecated. Gets the FieldType associated with an InputElement. |
java.lang.String |
getValue()
Deprecated. Gets the VALUE attribute of an InputElement, if one exists; otherwise, returns an empty string. |
protected boolean |
printCR()
Deprecated. |
protected boolean |
printEndingTag()
Deprecated. |
InputElement |
setAccept(java.lang.String filetype)
Deprecated. Sets the ACCEPT attribute for FieldType.filetype InputElement. |
InputElement |
setAlign(AlignType val)
Deprecated. Sets the alignment of an InputElement. |
InputElement |
setBorder(int val)
Deprecated. Sets the BORDER attribute of an InputElement. |
InputElement |
setChecked(boolean val)
Deprecated. Sets the CHECKED attribute of an InputElement. |
InputElement |
setHeight(int val)
Deprecated. Sets the HEIGHT attribute of an InputElement. |
InputElement |
setMaxlen(int val)
Deprecated. Sets the MAXLENGTH attribute of an InputElement. |
InputElement |
setName(java.lang.String val)
Deprecated. Sets the NAME attribute of an InputElement. |
InputElement |
setOnBlur(java.lang.String val)
Deprecated. Sets the ONBLUR attribute of an InputElement. |
InputElement |
setOnChange(java.lang.String val)
Deprecated. Sets the ONCHANGE attribute of an InputElement. |
InputElement |
setOnClick(java.lang.String val)
Deprecated. Sets the ONCLICK attribute of an InputElement. |
InputElement |
setOnFocus(java.lang.String val)
Deprecated. Sets the ONFOCUS attribute of an InputElement. |
InputElement |
setOnSelect(java.lang.String val)
Deprecated. Sets the ONSELECT attribute of an InputElement. |
InputElement |
setSize(int val)
Deprecated. Sets the SIZE attribute of an InputElement. |
InputElement |
setSource(java.lang.String val)
Deprecated. Sets the SRC attribute of an InputElement to a string enclosed in double quotes. |
InputElement |
setTabindex(int tabindex)
Deprecated. Sets the tabbing order for an InputElement, which defines the order in which page elements get the focus when a user navigates the page with a keyboard. |
InputElement |
setTabindex(java.lang.String tabindex)
Deprecated. Sets the TABINDEX attribute for an InputElement. |
InputElement |
setType(FieldType val)
Deprecated. Sets the type of an InputElement. |
InputElement |
setUnquotedSrc(HtmlElement src)
Deprecated. Sets the SRC attribute of an InputElement to an HtmlElement without double quotes. |
InputElement |
setValue(int val)
Deprecated. Sets the VALUE attribute of an InputElement. |
InputElement |
setValue(java.lang.String val)
Deprecated. Sets the VALUE attribute of an InputElement. |
InputElement |
setWidth(int val)
Deprecated. Sets the WIDTH attribute of an InputElement. |
Methods inherited from class weblogic.html.SinglePartElement |
getElement,
printBody,
printBody,
printBody,
setElement,
setElement,
widthAsLiteral |
Methods inherited from class weblogic.html.ElementWithAttributes |
addAttribute,
addAttribute,
escapeQuotes,
getBooleanAttribute,
getElementAttribute,
getLocalVar,
getQuotedAttribute,
output,
output,
output,
printBody,
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 InputElement()
public InputElement(java.lang.String namestr)
namestr
- Name of elementpublic InputElement(java.lang.String namestr, FieldType typeval)
namestr
- Name of elementtypeval
- FieldType objectpublic InputElement(java.lang.String namestr, FieldType typeval, HtmlElement value)
namestr
- Name of elementtypeval
- FieldType objectvalue
- HtmlElement objectpublic InputElement(java.lang.String namestr, FieldType typeval, java.lang.String value, HtmlElement label)
namestr
- Name of elementtypeval
- FieldType objectval
- String valuelabel
- HtmlElement labelpublic InputElement(java.lang.String namestr, FieldType typeval, java.lang.String value, java.lang.String label)
namestr
- Name of elementtypeval
- FieldType objectval
- String valuelabel
- String labelpublic InputElement(java.lang.String namestr, FieldType typeval, java.lang.String val)
namestr
- Name of elementtypeval
- FieldType objectval
- StringMethod Detail |
protected java.lang.String getHtmlCode()
protected boolean printCR()
protected boolean printEndingTag()
public FieldType getType()
public java.lang.String getValue()
public InputElement setAccept(java.lang.String filetype)
filetype
- MIME content types in comma-separated listpublic InputElement setAlign(AlignType val)
val
- AlignType objectpublic InputElement setChecked(boolean val)
val
- True if element should be checkedpublic InputElement setTabindex(java.lang.String tabindex)
tabindex
- Indexpublic InputElement setTabindex(int tabindex)
tabindex
- intpublic InputElement setType(FieldType val)
val
- FieldType objectpublic InputElement setBorder(int val)
val
- Size of the border in pixelspublic InputElement setHeight(int val)
val
- Height of the input fieldpublic InputElement setMaxlen(int val)
val
- Max length of the input fieldpublic InputElement setName(java.lang.String val)
val
- Namepublic InputElement setOnBlur(java.lang.String val)
val
- Responsepublic InputElement setOnChange(java.lang.String val)
val
- Responsepublic InputElement setOnClick(java.lang.String val)
val
- Responsepublic InputElement setOnFocus(java.lang.String val)
val
- Responsepublic InputElement setOnSelect(java.lang.String val)
val
- Responsepublic InputElement setSize(int val)
val
- Sizepublic InputElement setSource(java.lang.String val)
val
- Sourcepublic InputElement setUnquotedSrc(HtmlElement src)
src
- HtmlElementpublic InputElement setValue(java.lang.String val)
val
- Valuepublic InputElement setValue(int val)
val
- Valuepublic InputElement setWidth(int val)
val
- Width of the input field
|
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 |