name
StandAloneElement
import prohtml.*;

StandAloneElement standAlone;

void setup(){
  standAlone = new StandAloneElement("img",null);
  standAlone.addAttribute("scr","images/getAttribute");
  println(standAlone.getAttribute("scr"));
}
description
Object for keeping a standaloneelement of the HTML document.
constructors
StandAloneElement(kindOfElement, attributes, parent);
StandAloneElement(kindOfElement, parent);
LetterElement(kindOfElement);
parameters
kindOfElement
String, the kind of the element
attributes
HashMap, holds the attributes as key value pairs
parent
HtmlElement, the parent element
kindOfElement
String
kindOfElement
String, the letter for the element
fields
String holding the kind of the Element. For a LetterElement it keeps a single letter.
methods
Use this method to add an attribute to the element.
Method for counting the descendants of the element.
Use this method to get the value of a given attribute of an element.
Use this method to get the keys of all available attributes of an 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.
Use this method to see if an element has a given attribute.
Use this method to see if an element has attributes.
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