name
TextElement
import prohtml.*;

TextElement text;

void setup(){
  text = new TextElement("proHTML",null);
  
  println("countAllChildren:.."+text.countAllChildren());
  println("getChildren:......."+text.getChildren());
  println("getDepth:.........."+text.getDepth());
  println("hasChildren:......."+text.hasChildren());
  text.printElementTree("");println();
  println("toString:.........."+text.toString());
  println("type:.............."+text.type());
}
description
Object for keeping a single word of a text of the HTML document.
constructors
TextElement(kindOfElement, parent);
LetterElement(kindOfElement);
parameters
kindOfElement
String, the word for this textelement
parent
HtmlElement, the parent Element
kindOfElement
String, the letter for the element
fields
String holding the kind of the Element. For a LetterElement it keeps a single letter.
methods
Method for counting the descendants of the element.
Method for getting the children of an element.
Method for getting the maximum depth of an Element
Gives back the parent of this Element.
This method looks if the element has Children
This method prints the treestrucure of this element and its decendents.
Method for counting the descendants of the element.
Method for counting the descendants of the element.
usage
Web & Application
related