public class HTMLForm extends HTMLContainer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
FORM_CHECK
String constant to check FORM start field
|
static java.lang.String |
FORM_END
String constant to check FORM end field
|
static java.lang.String |
MOBILE_IFRAME
The mobile iframe name
|
alignment, alt, bgColor, cancelBubble, events, gMutableTheme, hasInitFocus, id, intStyleSheet, items, name, parent, styleId, styleProperty, tabIndex, toolTip, VALID_NAME_REGEX, VALID_STYLE_REGEX
Constructor and Description |
---|
HTMLForm(java.lang.String uri)
Create a new HTML FORM
|
HTMLForm(java.lang.String uri,
java.lang.String windowMode)
Create a new HTML FORM
|
Modifier and Type | Method and Description |
---|---|
protected void |
compile(ClientBrowser browser)
Set the on submit action
|
java.lang.String |
getId()
get the ID of this component
|
protected void |
iGenerate(ClientBrowser browser,
java.lang.StringBuilder buffer)
generate the raw HTML for this component.
|
HTMLForm |
setAutoComplete(boolean on)
Turn on auto complete
|
HTMLForm |
setHandlesFiles(boolean flag)
Does this form handle files ?
|
HTMLForm |
setId(java.lang.String id)
set the ID of this component.
|
HTMLForm |
setMethod(java.lang.String method)
The form's method
|
HTMLForm |
setName(java.lang.String name)
Set the name of this form
|
HTMLForm |
setOnSubmit(java.lang.String submit)
The ON SUBMIT action
|
HTMLForm |
setTarget(java.lang.String target)
Set the target window
|
addComponent, addComponent, addText, clear, findId, getComponent, getComponentCount, hasComponent, removeComponent, removeComponent
addJavaScript, addJavaScript, addOnLoadScript, appendClassName, checkIsContainer, copyAttributes, doBuildToolTip, fetchStyleProperty, getClassName, getMutableTheme, getParent, getParentPage, getStyleSheet, getTheme, hasTheme, iAddComponent, iAddComponent, iAddedToPage, iAddEvent, iClear, iFindId, iGenerateAttributes, iGenerateAttributesID, iGenerateComponent, iGenerateComponent, iGenerateEvents, iGetComponent, iGetComponentCount, iHasEvent, iRemoveComponent, isCompiled, iSetId, iSetName, iSetStyleId, makeColorID, makeListOfEvents, monitorPage, postCompile, resetParent, setAlignment, setAttribute, setClassName, setHasInitFocus, setParent, setStyleProperty, setTabIndex, touch
public static final java.lang.String FORM_CHECK
public static final java.lang.String FORM_END
public static final java.lang.String MOBILE_IFRAME
public HTMLForm(java.lang.String uri)
uri
- public HTMLForm(java.lang.String uri, java.lang.String windowMode)
uri
- windowMode
- @CheckReturnValue @Nullable public java.lang.String getId()
getId
in class HTMLComponent
public HTMLForm setId(java.lang.String id)
id
- The id of the componentpublic HTMLForm setName(java.lang.String name)
name
- The form namepublic HTMLForm setAutoComplete(boolean on)
on
- turn ON or OFFpublic HTMLForm setTarget(java.lang.String target)
target
- The target window.public HTMLForm setMethod(java.lang.String method)
method
- POST or GETpublic HTMLForm setHandlesFiles(boolean flag)
flag
- true if handles filespublic HTMLForm setOnSubmit(java.lang.String submit)
submit
- The java scriptprotected void compile(ClientBrowser browser)
compile
in class HTMLComponent
browser
- The browser.protected void iGenerate(ClientBrowser browser, java.lang.StringBuilder buffer)
iGenerate
in class HTMLComponent
browser
- The target browserbuffer
- The generate HTMLstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.