Class ElementImpl
- All Implemented Interfaces:
Cloneable,EventTarget,Element,InnerHTML,ModelNode,Node,NonDocumentTypeChildNode,ParentNode,ScriptableDelegate
- Direct Known Subclasses:
HTMLElementImpl
ElementImpl class.
-
Field Summary
Fields inherited from class org.loboevolution.html.dom.nodeimpl.NodeImpl
document, nodeList, notificationsSuspended, parentNode, uiNodeFields inherited from interface org.loboevolution.html.node.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NONE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendOuterHTMLImpl(StringBuilder buffer) appendOuterHTMLImpl.voidassignAttributeField(String normalName, String value) intcalculateHeight(boolean isBorder, boolean isPadding, boolean isClient) intcalculateWidth(boolean isBorder, boolean isPadding, boolean isClient) <E extends Element>
EReturns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.getAttribute(String name) Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.String[]Returns the qualified names of all element's attributes.getAttributeNode(String name) getAttributeNode.getAttributeNodeNS(String namespaceURI, String localName) getAttributeNodeNS.getAttributeNS(String namespaceURI, String localName) Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.getAttributes.getBoundingClientRect.intgetChildElementCount.Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.Returns the value of element's class content attribute.intgetClientHeight.intgetClientLeft.getClientRects.intgetClientTop.getClientWidth.getDir()getDir.getElementsByClassName(String classNames) Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames.getElementsByTagName(String tagname) getElementsByTagName.getElementsByTagNameNS(String namespaceURI, String localName) getElementsByTagNameNS.Returns the first child that is an element, and null otherwise.getId()Getter for the field id.getInnerHTML.getInnerText.getLang()getLang.Returns the last child that is an element, and null otherwise.getLocalName.Returns a string appropriate for the type of node.intReturns the type of node.getNodeValue.getOuterHTML.protected StringgetRawInnerText(boolean includeComment) Gets inner text of the element, possibly including text in comments.getSchemaTypeInfo.doublegetScrollHeight.doublegetScrollLeft.doublegetScrollTop.doublegetScrollWidth.getSlot()Returns the value of element's slot content attribute.Returns the HTML-uppercased qualified name.getTitle()getTitle.booleanhasAttribute(String name) Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.booleanhasAttributeNS(String namespaceURI, String localName) Returns true if element has an attribute whose namespace is namespace and local name is localName.booleanReturns true if element has attributes, and false otherwise.booleanhasPointerCapture(int pointerId) hasPointerCapture.protected StringhtmlEncodeChildText(String text) htmlEncodeChildText.insertAdjacentElement(String where, Node insertedElement) insertAdjacentElement.voidinsertAdjacentHTML(String position, String text) insertAdjacentHTML.booleanisEqualNode(Node arg) Returns whether node and otherNode have the same properties.booleanReturns true if matching selectors against element's root yields element, and false otherwise.querySelector(String selectors) Returns the first element that is a descendant of node that matches selectors.querySelectorAll(String selector) Returns all element descendants of node that match selectors.voidreleasePointerCapture(int pointerId) releasePointerCapture.voidremoveAttribute(String name) Removes element's first attribute whose qualified name is qualifiedName.removeAttributeNode(Attr oldAttr) removeAttributeNode.voidremoveAttributeNS(String namespaceURI, String localName) Removes element's attribute whose namespace is namespace and local name is localName.voidrequestPointerLock.voidscroll(int x, int y) scroll.voidscrollBy(int x, int y) scrollBy.voidscrollIntoView.voidscrollIntoView(boolean arg) scrollIntoView.voidscrollTo(int x, int y) scrollTo.voidsetAttribute(String attrName, String value) Sets the value of element's first attribute whose qualified name is qualifiedName to value.setAttributeNode(Attr newAttr) setAttributeNode.setAttributeNodeNS(Attr newAttr) setAttributeNodeNS.voidsetAttributeNS(String namespaceURI, String qName, String value) Sets the value of element's attribute whose namespace is namespace and local name is localName to value.voidsetClassName(String className) setClassName.voidsetDir.voidsetId.voidsetIdAttribute(String localName, boolean isId) setIdAttribute.voidsetIdAttributeNode(Attr idAttr, boolean isId) setIdAttributeNode.voidsetIdAttributeNS(String namespaceURI, String localName, boolean isId) setIdAttributeNode.voidsetInnerHTML(String newHtml) setInnerHTML.voidsetInnerText(String newText) setInnerText.voidsetLang.voidsetNodeValue(String nodeValue) setNodeValue.voidsetOuterHTML(String newHtml) setOuterHTML.voidsetPointerCapture(int pointerId) setPointerCapture.voidsetScrollLeft(double left) setScrollLeft.voidsetScrollTop(double scroll) setScrollTop.voidsetSlot.voidsetTitle.booleantoggleAttribute(String qualifiedName) toggleAttribute.booleantoggleAttribute(String qualifiedName, boolean force) If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present.Methods inherited from class org.loboevolution.html.dom.nodeimpl.NodeImpl
appendChild, appendChildrenToCollectionImpl, appendInnerHTMLImpl, appendInnerTextImpl, clone, cloneNode, cloneNode, compareDocumentPosition, contains, createRenderState, extractDescendentsArrayImpl, findUINode, forgetRenderState, getATTRIBUTE_NODE, getBaseURI, getCDATA_SECTION_NODE, getChildIndex, getChildNodes, getChildren, getCOMMENT_NODE, getDescendents, getDOCUMENT_FRAGMENT_NODE, getDOCUMENT_NODE, getDOCUMENT_POSITION_CONTAINED_BY, getDOCUMENT_POSITION_CONTAINS, getDOCUMENT_POSITION_DISCONNECTED, getDOCUMENT_POSITION_FOLLOWING, getDOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, getDOCUMENT_POSITION_PRECEDING, getDOCUMENT_TYPE_NODE, getDocumentItem, getDocumentNode, getDocumentURL, getELEMENT_NODE, getENTITY_NODE, getENTITY_REFERENCE_NODE, getFeature, getFirstChild, getFirstChildByFilter, getFullURL, getHtmlRendererConfig, getHtmlRendererContext, getLastChild, getNamespaceURI, getNextElementSibling, getNextSibling, getNextTo, getNodeList, getNONE, getNOTATION_NODE, getOwnerDocument, getParentElement, getParentModelNode, getParentNode, getParentRenderState, getPrefix, getPreviousElementSibling, getPreviousSibling, getPreviousTo, getPROCESSING_INSTRUCTION_NODE, getRenderState, getRootNode, getTEXT_NODE, getTextContent, getUINode, getUserAgentContext, getUserData, hasChildNodes, informInvalid, informLayoutInvalid, informLookInvalid, informNodeLoaded, informPositionInvalid, informSizeInvalid, informStructureInvalid, insertAfter, insertAt, insertBefore, isDefaultNamespace, isEqualOrDescendentOf, isIsConnected, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, prepend, prependChild, removeChild, removeChildAt, removeChildrenImpl, removeTableChildren, replaceAdjacentTextNodes, replaceChild, setDocumentItem, setOwnerDocument, setOwnerDocument, setParentImpl, setPrefix, setTextContent, setUINode, setUserData, toString, visit, visitImpl, warn, warnMethods inherited from class org.loboevolution.html.dom.nodeimpl.event.EventTargetImpl
addEventListener, addEventListener, dispatchEvent, dispatchEvent, getFunction, removeEventListener, removeEventListenerMethods inherited from class org.loboevolution.js.AbstractScriptableDelegate
getScriptable, setScriptableMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.loboevolution.html.node.Element
getNamespaceURI, getPrefixMethods inherited from interface org.loboevolution.events.EventTarget
addEventListener, addEventListener, dispatchEvent, dispatchEvent, removeEventListener, removeEventListenerMethods inherited from interface org.loboevolution.html.node.ModelNode
getDocumentItem, getFullURL, getParentModelNode, getRenderState, isEqualOrDescendentOf, setDocumentItem, warnMethods inherited from interface org.loboevolution.html.node.Node
appendChild, appendChildrenToCollectionImpl, cloneNode, cloneNode, compareDocumentPosition, contains, extractDescendentsArrayImpl, findUINode, forgetRenderState, getBaseURI, getChildNodes, getDocumentNode, getFeature, getFirstChild, getLastChild, getNextSibling, getNextTo, getOwnerDocument, getParentElement, getParentNode, getPreviousSibling, getPreviousTo, getRootNode, getTextContent, getUserData, hasChildNodes, insertBefore, isDefaultNamespace, isIsConnected, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, prepend, prependChild, removeChild, replaceChild, setNamespaceURI, setOwnerDocument, setOwnerDocument, setParentImpl, setPrefix, setTextContent, setUserData, visitMethods inherited from interface org.loboevolution.html.node.NonDocumentTypeChildNode
getNextElementSibling, getPreviousElementSiblingMethods inherited from interface org.loboevolution.html.node.ParentNode
getChildren
-
Constructor Details
-
ElementImpl
Constructor for ElementImpl.
- Parameters:
name- aStringobject.
-
-
Method Details
-
getAttribute
Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.- Specified by:
getAttributein interfaceElement- Parameters:
name- aStringobject.- Returns:
- a
Stringobject.
-
getAttributeNS
Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.- Specified by:
getAttributeNSin interfaceElement- Parameters:
namespaceURI- aStringobject.localName- aStringobject.- Returns:
- a
Stringobject. - Throws:
DOMException
-
getAttributeNode
getAttributeNode.
- Specified by:
getAttributeNodein interfaceElement- Parameters:
name- aStringobject.- Returns:
- a
Attrobject.
-
getAttributeNodeNS
@JSFunction public Attr getAttributeNodeNS(String namespaceURI, String localName) throws DOMException getAttributeNodeNS.
- Specified by:
getAttributeNodeNSin interfaceElement- Parameters:
namespaceURI- aStringobject.localName- aStringobject.- Returns:
- a
Attrobject. - Throws:
DOMException
-
removeAttribute
Removes element's first attribute whose qualified name is qualifiedName.- Specified by:
removeAttributein interfaceElement- Parameters:
name- aStringobject.
-
removeAttributeNS
Removes element's attribute whose namespace is namespace and local name is localName.- Specified by:
removeAttributeNSin interfaceElement- Parameters:
namespaceURI- aStringobject.localName- aStringobject.- Throws:
DOMException
-
removeAttributeNode
removeAttributeNode.
- Specified by:
removeAttributeNodein interfaceElement- Parameters:
oldAttr- aAttrobject.- Returns:
- a
Attrobject.
-
setAttribute
Sets the value of element's first attribute whose qualified name is qualifiedName to value.- Specified by:
setAttributein interfaceElement- Parameters:
attrName- aStringobject.value- aStringobject.
-
setAttributeNS
Sets the value of element's attribute whose namespace is namespace and local name is localName to value.- Specified by:
setAttributeNSin interfaceElement- Parameters:
namespaceURI- aStringobject.qName- aStringobject.value- aStringobject.- Throws:
DOMException
-
setIdAttribute
setIdAttribute.
- Specified by:
setIdAttributein interfaceElement- Parameters:
localName- aStringobject.isId- a boolean.- Throws:
DOMException
-
setIdAttributeNS
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException setIdAttributeNode.
- Specified by:
setIdAttributeNSin interfaceElement- Parameters:
namespaceURI- aStringobject.localName- aStringobject.isId- a boolean.- Throws:
DOMException
-
setIdAttributeNode
setIdAttributeNode.
- Specified by:
setIdAttributeNodein interfaceElement- Parameters:
idAttr- aAttrobject.isId- a boolean.
-
setAttributeNode
setAttributeNode.
- Specified by:
setAttributeNodein interfaceElement- Parameters:
newAttr- aAttrobject.- Returns:
- a
Attrobject.
-
setAttributeNodeNS
setAttributeNodeNS.
- Specified by:
setAttributeNodeNSin interfaceElement- Parameters:
newAttr- aAttrobject.- Returns:
- a
Attrobject. - Throws:
DOMException
-
getAttributes
getAttributes.
- Specified by:
getAttributesin interfaceNode- Overrides:
getAttributesin classNodeImpl- Returns:
- a
NamedNodeMapobject.
-
getDir
getDir.
- Returns:
- a
Stringobject.
-
getId
Getter for the field id.
-
getLang
getLang.
- Returns:
- a
Stringobject.
-
getLocalName
getLocalName.
- Specified by:
getLocalNamein interfaceElement- Specified by:
getLocalNamein interfaceNode- Specified by:
getLocalNamein classNodeImpl- Returns:
- a
Stringobject.
-
getNodeName
Returns a string appropriate for the type of node.- Specified by:
getNodeNamein interfaceNode- Specified by:
getNodeNamein classNodeImpl- Returns:
- a
Stringobject.
-
getNodeType
public int getNodeType()Returns the type of node.- Specified by:
getNodeTypein interfaceNode- Specified by:
getNodeTypein classNodeImpl- Returns:
- a
Integerobject.
-
getNodeValue
Description copied from class:NodeImplgetNodeValue.
- Specified by:
getNodeValuein interfaceNode- Specified by:
getNodeValuein classNodeImpl- Returns:
- a
Stringobject. - Throws:
DOMException
-
getRawInnerText
Gets inner text of the element, possibly including text in comments. This can be used to get Javascript code out of a SCRIPT element.- Parameters:
includeComment- a boolean.- Returns:
- a
Stringobject.
-
getTagName
Returns the HTML-uppercased qualified name.- Specified by:
getTagNamein interfaceElement- Returns:
- a
Stringobject.
-
getTitle
getTitle.
- Returns:
- a
Stringobject.
-
hasAttribute
Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.- Specified by:
hasAttributein interfaceElement- Parameters:
name- aStringobject.- Returns:
- a boolean.
-
hasAttributeNS
Returns true if element has an attribute whose namespace is namespace and local name is localName.- Specified by:
hasAttributeNSin interfaceElement- Parameters:
namespaceURI- aStringobject.localName- aStringobject.- Returns:
- a boolean.
- Throws:
DOMException
-
hasAttributes
public boolean hasAttributes()Returns true if element has attributes, and false otherwise.- Specified by:
hasAttributesin interfaceNode- Returns:
- a boolean.
-
htmlEncodeChildText
htmlEncodeChildText.
- Overrides:
htmlEncodeChildTextin classNodeImpl- Parameters:
text- aStringobject.- Returns:
- a
Stringobject.
-
setDir
setDir.
- Parameters:
dir- aStringobject.
-
setId
setId.
-
setInnerText
setInnerText.
- Parameters:
newText- aStringobject.
-
setLang
setLang.
- Parameters:
lang- aStringobject.
-
setNodeValue
setNodeValue.
- Specified by:
setNodeValuein interfaceNode- Specified by:
setNodeValuein classNodeImpl- Parameters:
nodeValue- aStringobject.
-
setTitle
setTitle.
- Parameters:
title- aStringobject.
-
setInnerHTML
setInnerHTML.
- Specified by:
setInnerHTMLin interfaceInnerHTML- Parameters:
newHtml- aStringobject.
-
getClassList
Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.- Specified by:
getClassListin interfaceElement- Returns:
- a
DOMTokenListobject.
-
getClassName
Returns the value of element's class content attribute. Can be set to change it.- Specified by:
getClassNamein interfaceElement- Returns:
- a
Stringobject.
-
setClassName
setClassName.
- Specified by:
setClassNamein interfaceElement- Parameters:
className- aStringobject.
-
getClientHeight
public int getClientHeight()getClientHeight.
- Specified by:
getClientHeightin interfaceElement- Returns:
- a
Integerobject.
-
getClientLeft
public int getClientLeft()getClientLeft.
- Specified by:
getClientLeftin interfaceElement- Returns:
- a
Integerobject.
-
getClientTop
public int getClientTop()getClientTop.
- Specified by:
getClientTopin interfaceElement- Returns:
- a
Integerobject.
-
getClientWidth
getClientWidth.
- Specified by:
getClientWidthin interfaceElement- Returns:
- a
Integerobject.
-
getInnerHTML
getInnerHTML.
- Specified by:
getInnerHTMLin interfaceElement- Specified by:
getInnerHTMLin interfaceInnerHTML- Returns:
- a
Stringobject.
-
getInnerText
getInnerText.
- Specified by:
getInnerTextin interfaceElement- Returns:
- a
Stringobject.
-
getOuterHTML
getOuterHTML.
- Specified by:
getOuterHTMLin interfaceElement- Returns:
- a
Stringobject.
-
setOuterHTML
setOuterHTML.
- Specified by:
setOuterHTMLin interfaceElement- Parameters:
newHtml- aStringobject.
-
getSlot
Returns the value of element's slot content attribute. Can be set to change it. -
setSlot
setSlot.
-
closest
Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise. -
getAttributeNames
Returns the qualified names of all element's attributes. Can contain duplicates.- Specified by:
getAttributeNamesin interfaceElement- Returns:
- an array of
Stringobjects.
-
hasPointerCapture
public boolean hasPointerCapture(int pointerId) hasPointerCapture.
- Specified by:
hasPointerCapturein interfaceElement- Parameters:
pointerId- aIntegerobject.- Returns:
- a boolean.
-
matches
Returns true if matching selectors against element's root yields element, and false otherwise. -
releasePointerCapture
public void releasePointerCapture(int pointerId) releasePointerCapture.
- Specified by:
releasePointerCapturein interfaceElement- Parameters:
pointerId- aIntegerobject.
-
requestPointerLock
public void requestPointerLock()requestPointerLock.
- Specified by:
requestPointerLockin interfaceElement
-
scroll
public void scroll(int x, int y) scroll.
-
scrollBy
public void scrollBy(int x, int y) scrollBy.
-
scrollIntoView
public void scrollIntoView(boolean arg) scrollIntoView.
- Specified by:
scrollIntoViewin interfaceElement- Parameters:
arg- a boolean.
-
scrollIntoView
public void scrollIntoView()scrollIntoView.
- Specified by:
scrollIntoViewin interfaceElement
-
scrollTo
public void scrollTo(int x, int y) scrollTo.
-
getScrollHeight
public double getScrollHeight()getScrollHeight.
- Specified by:
getScrollHeightin interfaceElement- Returns:
- a double.
-
getScrollLeft
public double getScrollLeft()getScrollLeft.
- Specified by:
getScrollLeftin interfaceElement- Returns:
- a double.
-
setScrollLeft
public void setScrollLeft(double left) setScrollLeft.
- Specified by:
setScrollLeftin interfaceElement- Parameters:
left- aIntegerobject.
-
getScrollTop
public double getScrollTop()getScrollTop.
- Specified by:
getScrollTopin interfaceElement- Returns:
- a double.
-
setScrollTop
public void setScrollTop(double scroll) setScrollTop.
- Specified by:
setScrollTopin interfaceElement- Parameters:
scroll- aIntegerobject.
-
getScrollWidth
public double getScrollWidth()getScrollWidth.
- Specified by:
getScrollWidthin interfaceElement- Returns:
- a double.
-
setPointerCapture
public void setPointerCapture(int pointerId) setPointerCapture.
- Specified by:
setPointerCapturein interfaceElement- Parameters:
pointerId- aIntegerobject.
-
toggleAttribute
If force is not given, "toggles" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.Returns true if qualifiedName is now present, and false otherwise.
- Specified by:
toggleAttributein interfaceElement- Parameters:
qualifiedName- aStringobject.force- a boolean.- Returns:
- a boolean.
-
toggleAttribute
toggleAttribute.
- Specified by:
toggleAttributein interfaceElement- Parameters:
qualifiedName- aStringobject.- Returns:
- a boolean.
-
insertAdjacentElement
Description copied from interface:ElementinsertAdjacentElement.
- Specified by:
insertAdjacentElementin interfaceElement- Parameters:
where- aStringobject.insertedElement-Nodeobject.- Returns:
- a
Nodeobject.
-
insertAdjacentHTML
Description copied from interface:ElementinsertAdjacentHTML.
- Specified by:
insertAdjacentHTMLin interfaceElement- Parameters:
position- aStringobject.text- aStringobject.
-
getBoundingClientRect
getBoundingClientRect.
- Specified by:
getBoundingClientRectin interfaceElement- Returns:
- a
DOMRectobject.
-
getClientRects
getClientRects.
- Specified by:
getClientRectsin interfaceElement- Returns:
- a
DOMRectListobject.
-
getSchemaTypeInfo
getSchemaTypeInfo.
- Specified by:
getSchemaTypeInfoin interfaceElement- Returns:
- a
TypeInfoobject.
-
getElementsByClassName
Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.- Specified by:
getElementsByClassNamein interfaceElement- Parameters:
classNames- aStringobject.- Returns:
- a
HTMLCollectionobject.
-
getElementsByTagName
getElementsByTagName.
- Specified by:
getElementsByTagNamein interfaceElement- Parameters:
tagname- aStringobject.- Returns:
- a
HTMLCollectionobject.
-
getElementsByTagNameNS
getElementsByTagNameNS.
- Specified by:
getElementsByTagNameNSin interfaceElement- Parameters:
namespaceURI- aStringobject.localName- aStringobject.- Returns:
- a
HTMLCollectionobject.
-
getFirstElementChild
Returns the first child that is an element, and null otherwise.- Specified by:
getFirstElementChildin interfaceParentNode- Returns:
- a
Elementobject.
-
getLastElementChild
Returns the last child that is an element, and null otherwise.- Specified by:
getLastElementChildin interfaceParentNode- Returns:
- a
Elementobject.
-
getChildElementCount
public int getChildElementCount()getChildElementCount.
- Specified by:
getChildElementCountin interfaceParentNode- Returns:
- a
Integerobject.
-
querySelector
Returns the first element that is a descendant of node that matches selectors.- Specified by:
querySelectorin interfaceParentNode- Parameters:
selectors- aStringobject.- Returns:
- a
Elementobject.
-
querySelectorAll
Returns all element descendants of node that match selectors.- Specified by:
querySelectorAllin interfaceParentNode- Parameters:
selector- aStringobject.- Returns:
- a
NodeListobject.
-
assignAttributeField
-
isEqualNode
Description copied from class:NodeImplReturns whether node and otherNode have the same properties.- Specified by:
isEqualNodein interfaceNode- Overrides:
isEqualNodein classNodeImpl- Parameters:
arg- aNodeobject.- Returns:
- a boolean.
-
appendOuterHTMLImpl
appendOuterHTMLImpl.
- Parameters:
buffer- aStringBuilderobject.
-
calculateWidth
public int calculateWidth(boolean isBorder, boolean isPadding, boolean isClient) -
calculateHeight
public int calculateHeight(boolean isBorder, boolean isPadding, boolean isClient)
-