|
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.FormElement
FormElement objects are used to set and get attributes customarily used in the HTML FORM indicator, like "ACTION" and "ONSUBMIT". Add InputElements, TextAreaElements, ButtonElement, FieldsetElement, and SelectElements to a FormElement with the addElement() method.
InputElement
,
TextAreaElement
,
SelectElement
,
ButtonElement
,
FieldsetElement
Fields inherited from class weblogic.html.HtmlElement |
codeset,
useObsolete |
Constructor Summary | |
FormElement(java.lang.String actionstr,
java.lang.String methodstr)
Constructs a FormElement with the specified action and method. |
|
FormElement(java.lang.String actionstr,
java.lang.String methodstr,
java.lang.String encstr)
Constructs a FormElement with the specified action, method, and encoding. |
Method Summary | |
FormElement |
addElement(HtmlElement val)
Adds an HtmlElement to a FormElement. |
FormElement |
addElement(java.lang.String str)
Adds a string to a FormElement. |
HtmlElement |
getElementAt(int pos)
Gets the HtmlElement at the specified index position. |
protected java.lang.String |
getHtmlCode()
|
protected boolean |
printCR()
|
FormElement |
setAction(java.lang.String actionstr)
Sets the form action, which specifies the location to which the contents of the form is to be submitted for a response. |
FormElement |
setEncType(java.lang.String encstr)
Sets the encoding attribute, which specifies the MIME content type to be used to encode the contents of the form. |
FormElement |
setMethod(java.lang.String methodstr)
Sets the form method, which is used to send the form contents. |
FormElement |
setName(java.lang.String name)
Sets the name for a FormElement. |
FormElement |
setOnSubmit(java.lang.String submitstr)
Sets the ONSUBMIT attribute. |
FormElement |
setTarget(java.lang.String targetstr)
Sets the window or frame target for a FormElement. |
FormElement |
setTarget(WindowName window)
Sets the window or frame target for a FormElement to a WindowName, which supports magic target names. |
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 FormElement(java.lang.String actionstr, java.lang.String methodstr)
actionstr
- Server-side form handler (URI)methodstr
- Form methodpublic FormElement(java.lang.String actionstr, java.lang.String methodstr, java.lang.String encstr)
actionstr
- Server-side form handler (URI) enclosed in double quotesmethodstr
- Form method enclosed in double quotesencstr
- Form encoding enclosed in double quotesMethod Detail |
protected java.lang.String getHtmlCode()
protected boolean printCR()
public FormElement addElement(HtmlElement val)
val
- HtmlElement objectpublic FormElement addElement(java.lang.String str)
val
- String objectpublic HtmlElement getElementAt(int pos)
pos
- Index positionpublic FormElement setAction(java.lang.String actionstr)
actionstr
- Actionpublic FormElement setEncType(java.lang.String encstr)
encstr
- Encapsulationpublic FormElement setMethod(java.lang.String methodstr)
methodstr
- Methodpublic FormElement setName(java.lang.String name)
name
- String form namepublic FormElement setTarget(java.lang.String targetstr)
targetstr
- String window namepublic FormElement setTarget(WindowName window)
target
- WindowName objectpublic FormElement setOnSubmit(java.lang.String submitstr)
submitstr
- Submit string
|
Documentation is available at http://www.weblogic.com/docs51 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |