Class Form
java.lang.Object
com.webfirmframework.wffweb.tag.core.AbstractTagBase
com.webfirmframework.wffweb.tag.core.AbstractJsObject
com.webfirmframework.wffweb.tag.html.AbstractHtml
com.webfirmframework.wffweb.tag.html.formsandinputs.Form
- All Implemented Interfaces:
TagBase
,Serializable
,Cloneable
- Since:
- 1.0.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.webfirmframework.wffweb.tag.html.AbstractHtml
AbstractHtml.TagType
-
Field Summary
Fields inherited from class com.webfirmframework.wffweb.tag.html.AbstractHtml
noTagContentTypeHtml
Fields inherited from class com.webfirmframework.wffweb.tag.core.AbstractJsObject
wffBMDatas
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprepares and gets the js object for the input tag names (TagNameConstants.INPUT, TagNameConstants.TEXTAREA and TagNameConstants.SELECT) under this form tag.getIdBasedJsObject
(String functionName) prepares and gets the js object for the input tag names (TagNameConstants.INPUT, TagNameConstants.TEXTAREA and TagNameConstants.SELECT) under this form tag.getIdBasedJsObject
(String functionName, Collection<String> onlyForTagNames) prepares and gets the js object for the given tag names under this form tag.getIdBasedJsObject
(Collection<String> onlyForTagNames) prepares and gets the js object for the given tag names under this form tag.getIdBasedJsObjectPlus
(String functionName, Collection<String> additionalTagNames) prepares and gets the js object for the input tag names (TagNameConstants.INPUT, TagNameConstants.TEXTAREA and TagNameConstants.SELECT) under this form tag.getIdBasedJsObjectPlus
(Collection<String> additionalTagNames) prepares and gets the js object for the input tag names (TagNameConstants.INPUT, TagNameConstants.TEXTAREA and TagNameConstants.SELECT) under this form tag.prepares and gets the js object for the input tag names (TagNameConstants.INPUT, TagNameConstants.TEXTAREA and TagNameConstants.SELECT) under this form tag.getNameBasedJsObject
(Collection<String> onlyForTagNames) prepares and gets the js object for the given tag names under this form tag.protected void
init()
invokes only once per objectMethods inherited from class com.webfirmframework.wffweb.tag.html.AbstractHtml
addAttributes, addAttributes, addAttributes, addChild, addInnerHtml, addInnerHtml, addInnerHtml, addInnerHtml, addInnerHtml, addInnerHtmls, addInnerHtmls, addWffData, appendChild, appendChildren, appendChildren, beforePrintStructure, beforeWritePrintStructureToOutputStream, beforeWritePrintStructureToWffBinaryMessageOutputStream, clone, clone, containsChild, deepClone, getAllNestedChildrenIncludingParent, getAttributeByName, getAttributeHtmlBytesCompressedByIndex, getAttributes, getCharset, getChildAt, getChildren, getChildren, getChildrenAsArray, getChildrenSize, getClosingTag, getDataWffId, getExactTagFromWffBMBytes, getFirstChild, getHtmlMiddleSB, getIndexByChild, getIndexByChild, getLastChild, getOpeningTag, getParent, getPrintStructure, getPrintStructure, getReadLock, getRootTag, getSharedData, getSharedObject, getSharedTagContent, getTagFromWffBMBytes, getTagFromWffBMBytes, getTagFromWffBMBytes, getTagName, getWffData, getWffObjects, getWriteLock, give, give, insertAfter, insertAfterIfPossible, insertBefore, insertBeforeIfPossible, internalId, isHtmlStartSBAsFirst, isSubscribedToSharedTagContent, loopThroughAllNestedChildren, prependChildren, removeAllChildren, removeAttributes, removeAttributes, removeAttributes, removeAttributes, removeAttributes, removeAttributes, removeChild, removeChildren, removeChildren, removeSharedTagContent, removeWffData, replaceWith, replaceWithIfPossible, resetHierarchy, setCharset, setChildren, setDataWffId, setParent, setSharedData, setSharedDataIfNull, subscribeTo, subscribeTo, subscribeTo, toBigHtmlString, toBigHtmlString, toBigOutputStream, toBigOutputStream, toBigOutputStream, toBigOutputStream, toBigOutputStream, toBigOutputStream, toBigOutputStream, toCompressedWffBMBytes, toCompressedWffBMBytesV2, toCompressedWffBMBytesV2, toHtmlString, toHtmlString, toHtmlString, toHtmlString, toHtmlString, toHtmlString, toOutputStream, toOutputStream, toOutputStream, toOutputStream, toOutputStream, toOutputStream, toOutputStream, toOutputStream, toOutputStream, toString, toWffBMBytes, toWffBMBytes, toWffBMBytes, toWffBMBytes, writePrintStructureToOutputStream, writePrintStructureToOutputStream, writePrintStructureToWffBinaryMessageOutputStream
Methods inherited from class com.webfirmframework.wffweb.tag.core.AbstractJsObject
addWffData, getWffData, removeWffData
Methods inherited from class com.webfirmframework.wffweb.tag.core.AbstractTagBase
equals, getData, hashCode, isModified, isRebuild, setData, setModified, setRebuild
-
Constructor Details
-
Form
- Parameters:
base
- i.e. parent tag of this tagattributes
- An array ofAbstractAttribute
- Since:
- 1.0.0
-
-
Method Details
-
init
protected void init()invokes only once per object- Since:
- 1.0.0
-
getNameBasedJsObject
prepares and gets the js object for the given tag names under this form tag. This js object may be used to return in onsubmit attribute.- Parameters:
onlyForTagNames
- TagNameConstants.INPUT, TagNameConstants.TEXTAREA and TagNameConstants.SELECT. Pass object ofList
,HashSet
based on the number of elements in it.- Returns:
- the js object string for the given tag names. The returned js string will be as {name1.name1.value} where name1 is the value of name attribute of the field.
- Since:
- 2.1.8, 2.1.13 changed
Collection<Set> onlyForTagNames
toCollection<String> onlyForTagNames
.
-
getIdBasedJsObject
prepares and gets the js object for the given tag names under this form tag. This js object may be used to return in onsubmit attribute.- Parameters:
onlyForTagNames
- TagNameConstants.INPUT, TagNameConstants.TEXTAREA and TagNameConstants.SELECT Pass object ofList
,HashSet
based on the number of elements in it.- Returns:
- the js object string for the given tag names. The returned js string will be as {name1:document.getElementById('name1').value} where name1 is the value of id attribute of the field.
- Since:
- 2.1.13
-
getIdBasedJsObject
prepares and gets the js object for the given tag names under this form tag. This js object may be used to return in onsubmit attribute.- Parameters:
functionName
- the function name to get the element, eg: document.getElementByIdonlyForTagNames
- TagNameConstants.INPUT, TagNameConstants.TEXTAREA and TagNameConstants.SELECT Pass object ofList
,HashSet
based on the number of elements in it.- Returns:
- the js object string for the given tag names. The returned js string will be as {name1:document.getElementById('name1').value} where name1 is the value of id attribute of the field.
- Since:
- 3.0.1
-
getNameBasedJsObject
prepares and gets the js object for the input tag names (TagNameConstants.INPUT, TagNameConstants.TEXTAREA and TagNameConstants.SELECT) under this form tag.
NB:- If there are any missing input tag types, please inform webfirmframework to update this method.
This js object may be used to return in onsubmit attribute.- Returns:
- the js object string for field names of TagNameConstants.INPUT, TagNameConstants.TEXTAREA and TagNameConstants.SELECT. The returned js string will be as {name1:name1.value} where name1 is the value of name attribute of the field. If the input type is checkbox/radio then checked property will be included instead of value property.
- Since:
- 2.1.8
-
getIdBasedJsObject
prepares and gets the js object for the input tag names (TagNameConstants.INPUT, TagNameConstants.TEXTAREA and TagNameConstants.SELECT) under this form tag.
NB:- If there are any missing input tag types, please inform webfirmframework to update this method.
This js object may be used to return in onsubmit attribute.- Returns:
- the js object string for field names of TagNameConstants.INPUT, TagNameConstants.TEXTAREA and TagNameConstants.SELECT. The returned js string will be as {name1:document.getElementById('name1').value} where name1 is the value of id attribute of the field. If the input type is checkbox/radio then checked property will be included instead of value property.
- Since:
- 2.1.13
-
getIdBasedJsObject
prepares and gets the js object for the input tag names (TagNameConstants.INPUT, TagNameConstants.TEXTAREA and TagNameConstants.SELECT) under this form tag.
NB:- If there are any missing input tag types, please inform webfirmframework to update this method.
This js object may be used to return in onsubmit attribute.- Parameters:
functionName
- function name to get element, Eg: document.getElementById- Returns:
- the js object string for field names of TagNameConstants.INPUT, TagNameConstants.TEXTAREA and TagNameConstants.SELECT. The returned js string will be as {name1:gebi('name1').value} where name1 is the value of id attribute of the field and gebi is the function name to get element. If the input type is checkbox/radio then checked property will be included instead of value property.
- Since:
- 3.0.1
-
getIdBasedJsObjectPlus
prepares and gets the js object for the input tag names (TagNameConstants.INPUT, TagNameConstants.TEXTAREA and TagNameConstants.SELECT) under this form tag.
NB:- If there are any missing input tag types, please inform webfirmframework to update this method.
This js object may be used to return in onsubmit attribute.- Parameters:
additionalTagNames
- Tag names other than TagNameConstants.INPUT, TagNameConstants.TEXTAREA and TagNameConstants.SELECT. Pass object ofList
,HashSet
based on the number of elements in it.- Returns:
- the js object string for field names of TagNameConstants.INPUT, TagNameConstants.TEXTAREA and TagNameConstants.SELECT. The returned js string will be as {name1:document.getElementById('name1').value} where name1 is the value of id attribute of the field. If the input type is checkbox/radio then checked property will be included instead of value property.
- Since:
- 2.1.13
-
getIdBasedJsObjectPlus
prepares and gets the js object for the input tag names (TagNameConstants.INPUT, TagNameConstants.TEXTAREA and TagNameConstants.SELECT) under this form tag.
NB:- If there are any missing input tag types, please inform webfirmframework to update this method.
This js object may be used to return in onsubmit attribute.- Parameters:
functionName
- function name to get element, Eg: document.getElementByIdadditionalTagNames
- Tag names other than TagNameConstants.INPUT, TagNameConstants.TEXTAREA and TagNameConstants.SELECT. Pass object ofList
,HashSet
based on the number of elements in it.- Returns:
- the js object string for field names of TagNameConstants.INPUT, TagNameConstants.TEXTAREA and TagNameConstants.SELECT. The returned js string will be as {name1:gebi('name1').value} where name1 is the value of id attribute of the field and gebi is the function name to get the element. If the input type is checkbox/radio then checked property will be included instead of value property.
- Since:
- 3.0.1
-