Package org.loboevolution.html.node
Interface ParentNode
- All Superinterfaces:
EventTarget
,Node
- All Known Subinterfaces:
Document
,Element
,HTMLAnchorElement
,HTMLAppletElement
,HTMLAreaElement
,HTMLBaseElement
,HTMLBaseFontElement
,HTMLBodyElement
,HTMLBRElement
,HTMLButtonElement
,HTMLCanvasElement
,HTMLDataElement
,HTMLDataListElement
,HTMLDetailsElement
,HTMLDialogElement
,HTMLDirectoryElement
,HTMLDivElement
,HTMLDListElement
,HTMLDocument
,HTMLElement
,HTMLEmbedElement
,HTMLFieldSetElement
,HTMLFontElement
,HTMLFormElement
,HTMLHeadElement
,HTMLHeadingElement
,HTMLHRElement
,HTMLHtmlElement
,HTMLIFrameElement
,HTMLImageElement
,HTMLInputElement
,HTMLLabelElement
,HTMLLegendElement
,HTMLLIElement
,HTMLLinkElement
,HTMLMapElement
,HTMLMarqueeElement
,HTMLMenuElement
,HTMLMetaElement
,HTMLMeterElement
,HTMLModElement
,HTMLObjectElement
,HTMLOListElement
,HTMLOptGroupElement
,HTMLOptionElement
,HTMLOutputElement
,HTMLParagraphElement
,HTMLParamElement
,HTMLPictureElement
,HTMLPreElement
,HTMLProgressElement
,HTMLQuoteElement
,HTMLScriptElement
,HTMLSelectElement
,HTMLSlotElement
,HTMLSourceElement
,HTMLSpanElement
,HTMLStyleElement
,HTMLTableCaptionElement
,HTMLTableCellElement
,HTMLTableColElement
,HTMLTableDataCellElement
,HTMLTableElement
,HTMLTableHeaderCellElement
,HTMLTableRowElement
,HTMLTableSectionElement
,HTMLTextAreaElement
,HTMLTimeElement
,HTMLTitleElement
,HTMLUListElement
,HTMLUnknownElement
,HTMLVideoElement
,SMILAnimateColorElement
,SMILAnimateElement
,SMILAnimateMotionElement
,SMILAnimation
,SMILDocument
,SMILElement
,SMILLayoutElement
,SMILMediaElement
,SMILRefElement
,SMILRegionElement
,SMILRootLayoutElement
,SMILSetElement
,SMILSwitchElement
,SMILTopLayoutElement
,SVGAElement
,SVGAltGlyphDefElement
,SVGAltGlyphElement
,SVGAltGlyphItemElement
,SVGAnimateElement
,SVGAnimateMotionElement
,SVGAnimateTransformElement
,SVGAnimationElement
,SVGCircleElement
,SVGClipPathElement
,SVGColorProfileElement
,SVGComponentTransferFunctionElement
,SVGCursorElement
,SVGDefinitionSrcElement
,SVGDefsElement
,SVGDescElement
,SVGElement
,SVGEllipseElement
,SVGFEBlendElement
,SVGFEColorMatrixElement
,SVGFEComponentTransferElement
,SVGFECompositeElement
,SVGFEConvolveMatrixElement
,SVGFEDiffuseLightingElement
,SVGFEDisplacementMapElement
,SVGFEDistantLightElement
,SVGFEFloodElement
,SVGFEFuncAElement
,SVGFEFuncBElement
,SVGFEFuncGElement
,SVGFEFuncRElement
,SVGFEGaussianBlurElement
,SVGFEImageElement
,SVGFEMergeElement
,SVGFEMergeNodeElement
,SVGFEMorphologyElement
,SVGFEOffsetElement
,SVGFEPointLightElement
,SVGFESpecularLightingElement
,SVGFESpotLightElement
,SVGFETileElement
,SVGFETurbulenceElement
,SVGFilterElement
,SVGFontElement
,SVGFontFaceElement
,SVGFontFaceFormatElement
,SVGFontFaceNameElement
,SVGFontFaceSrcElement
,SVGFontFaceUriElement
,SVGForeignObjectElement
,SVGGElement
,SVGGlyphElement
,SVGGlyphRefElement
,SVGGradientElement
,SVGHKernElement
,SVGImageElement
,SVGLinearGradientElement
,SVGLineElement
,SVGMarkerElement
,SVGMaskElement
,SVGMetadataElement
,SVGMissingGlyphElement
,SVGMPathElement
,SVGPathElement
,SVGPatternElement
,SVGPolygonElement
,SVGPolylineElement
,SVGRadialGradientElement
,SVGRectElement
,SVGScriptElement
,SVGSetElement
,SVGStopElement
,SVGSVGElement
,SVGSwitchElement
,SVGSymbolElement
,SVGTextContentElement
,SVGTextElement
,SVGTextPathElement
,SVGTextPositioningElement
,SVGTitleElement
,SVGTRefElement
,SVGTSpanElement
,SVGUseElement
,SVGViewElement
,SVGVKernElement
- All Known Implementing Classes:
DocumentImpl
,DTMNodeProxy
,ElementImpl
,HTMLAnchorElementImpl
,HTMLBaseElementImpl
,HTMLBasicInputElement
,HTMLBodyElementImpl
,HTMLBRElementImpl
,HTMLButtonElementImpl
,HTMLCanvasElementImpl
,HTMLCenterElementImpl
,HTMLDDElementImpl
,HTMLDetailsElementImpl
,HTMLDialogElementImpl
,HTMLDirectoryElementImpl
,HTMLDivElementImpl
,HTMLDListElementImpl
,HTMLDocumentImpl
,HTMLElementImpl
,HTMLEmElementImpl
,HTMLFieldsetElementImpl
,HTMLFigureElementImpl
,HTMLFormElementImpl
,HTMLGenericMarkupElement
,HTMLHeadElementImpl
,HTMLHeadingElementImpl
,HTMLHRElementImpl
,HTMLHtmlElementImpl
,HTMLIFrameElementImpl
,HTMLImageElementImpl
,HTMLInputElementImpl
,HTMLLabelElementImpl
,HTMLLegendElementImpl
,HTMLLIElementImpl
,HTMLLinkElementImpl
,HTMLMarqueeElementImpl
,HTMLMeterElementImpl
,HTMLMonospacedElementImpl
,HTMLNonStandardElement
,HTMLNoScriptElementImpl
,HTMLObjectElementImpl
,HTMLOListElementImpl
,HTMLOptGroupElementImpl
,HTMLOptionElementImpl
,HTMLPElementImpl
,HTMLPreElementImpl
,HTMLProcessingInstruction
,HTMLProgressElementImpl
,HTMLQuoteElementImpl
,HTMLScriptElementImpl
,HTMLSelectElementImpl
,HTMLSmallElementImpl
,HTMLSpanElementImpl
,HTMLStrikeElementImpl
,HTMLStrongElementImpl
,HTMLStyleElementImpl
,HTMLSuperscriptElementImpl
,HTMLTableCaptionElementImpl
,HTMLTableCellElementImpl
,HTMLTableColElementImpl
,HTMLTableColGroupElementImpl
,HTMLTableElementImpl
,HTMLTableRowElementImpl
,HTMLTableSectionElementImpl
,HTMLTextAreaElementImpl
,HTMLTitleElementImpl
,HTMLUListElementImpl
,HTMLUnderlineElementImpl
,HTMLVideoElementImpl
,RSSChanelElementImpl
,RSSDescriptionElementImpl
,RSSElement
,RSSElementImpl
,RSSItemElementImpl
,RSSTitleElementImpl
,SVGAElementImpl
,SVGAnimateElementImpl
,SVGAnimateTransformElementImpl
,SVGAnimationElementImpl
,SVGAnimationImpl
,SVGCircleElementImpl
,SVGClipPathElementImpl
,SVGDefsElementImpl
,SVGElementImpl
,SVGEllipseElementImpl
,SVGFontElementImpl
,SVGFontFaceElementImpl
,SVGGElementImpl
,SVGGradientElementImpl
,SVGGraphic
,SVGImageElementImpl
,SVGLinearGradientElementImpl
,SVGLineElementImpl
,SVGLocatableImpl
,SVGPathElementImpl
,SVGPolygonElementImpl
,SVGPolylineElementImpl
,SVGRadialGradientElementImpl
,SVGRectElementImpl
,SVGStopElementImpl
,SVGStylableImpl
,SVGSVGElementImpl
,SVGSymbolElementImpl
,SVGTextElementImpl
,SVGTransformableImpl
,SVGUseElementImpl
,XMLDocument
ParentNode interface.
-
Field Summary
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionint
getChildElementCount.Returns the child elements.Returns the first child that is an element, and null otherwise.Returns the last child that is an element, and null otherwise.querySelector
(String selectors) Returns the first element that is a descendant of node that matches selectors.querySelectorAll
(String selectors) Returns all element descendants of node that match selectors.Methods inherited from interface org.loboevolution.events.EventTarget
addEventListener, addEventListener, dispatchEvent, dispatchEvent, removeEventListener, removeEventListener
Methods inherited from interface org.loboevolution.html.node.Node
appendChild, cloneNode, cloneNode, compareDocumentPosition, contains, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, getRootNode, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isIsConnected, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, prepend, prependChild, removeChild, replaceChild, setNodeValue, setOwnerDocument, setPrefix, setTextContent, setUserData
-
Method Details
-
getChildElementCount
int getChildElementCount()getChildElementCount.
- Returns:
- a
Integer
object.
-
getChildren
HTMLCollection getChildren()Returns the child elements.- Returns:
- a
HTMLCollection
object.
-
getFirstElementChild
Element getFirstElementChild()Returns the first child that is an element, and null otherwise.- Returns:
- a
Element
object.
-
getLastElementChild
Element getLastElementChild()Returns the last child that is an element, and null otherwise.- Returns:
- a
Element
object.
-
querySelector
Returns the first element that is a descendant of node that matches selectors. -
querySelectorAll
Returns all element descendants of node that match selectors.
-