| Package | Description |
|---|---|
| com.codename1.processing |
XPath based expression language designed to assist in JSON/XML parsing/generating
|
| com.codename1.properties |
High level property objects that allow us to replace getters/setters in business objects with more convenient
storage/parsing mappings while retaining type safety.
|
| com.codename1.ui |
Main widget package containing the component/container "composite" similar
both in terminology and design to Swing/AWT.
|
| com.codename1.ui.html |
This package is deprecated and used only for legacy support, use the WebBrowser component
from the components package.
|
| com.codename1.xml |
The XML package allows parsing XML documents into DOM objects.
|
| Modifier and Type | Method and Description |
|---|---|
static Result |
Result.fromContent(Element content)
Create an evaluator object from a parsed XML DOM.
|
| Modifier and Type | Method and Description |
|---|---|
Element |
PropertyIndex.asElement()
Returns an element object mapping to the current object hierarchy similar
to the map object
|
| Modifier and Type | Method and Description |
|---|---|
void |
PropertyIndex.fromXml(Element e)
Converts the XML element to this object hierarchy
|
| Modifier and Type | Method and Description |
|---|---|
Component |
UIFragment.ComponentFactory.newComponent(Element el)
Creates a new component given its XML description.
|
Component |
UIFragment.DefaultComponentFactory.newComponent(Element el) |
Object |
UIFragment.ComponentFactory.newConstraint(Container parent,
Element parentEl,
Component child,
Element childEl)
Creates a layout constraint for adding a child component to a parent component.
|
Object |
UIFragment.DefaultComponentFactory.newConstraint(Container parent,
Element parentEl,
Component child,
Element childEl) |
| Modifier and Type | Class and Description |
|---|---|
class |
HTMLElement
The HTMLElement class defines a single HTML element with its attributes and children.
|
| Modifier and Type | Method and Description |
|---|---|
protected Element |
HTMLParser.createNewElement(String name)
Overrides XMLParser.createNewElement to return an HTMLElement instance
|
protected Element |
HTMLParser.createNewTextElement(String text)
Overrides XMLParser.createNewTextElement to return an HTMLElement instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
HTMLElement.addChild(Element childElement) |
protected boolean |
HTMLParser.isSupported(Element element)
Overrides the Element.isSupported to let the parser know which tags are supported in XHTML-MP 1.0
|
protected void |
HTMLParser.parseTagContent(Element element,
Reader is)
Overrides XMLParser.parseTagContent to enable embedded CSS segments (Style tags)
|
protected boolean |
HTMLParser.shouldEvaluate(Element element)
Overrides the Element.shouldEvaluate method to return false on the script tag.
|
| Modifier and Type | Method and Description |
|---|---|
protected Element |
XMLParser.createNewElement(String name)
Creates a new element.
|
protected Element |
XMLParser.createNewTextElement(String text)
Creates a new text element.
|
Element |
Element.getChildAt(int index)
Returns the Element's child positioned at the specified index
|
Element |
Element.getElementById(String id)
Returns the element with the specified ID
|
Element |
Element.getFirstChildByTagName(String name)
Returns an Element's child by a tag name
|
Element |
Element.getParent()
Returns this Element's parent
|
Element |
XMLParser.parse(Reader is)
This is the entry point for parsing a document and the only non-private member method in this class
|
protected Element |
XMLParser.parseCommentOrXMLDeclaration(Reader is,
String endTag)
This utility method is used to parse comments and XML declarations in the XML.
|
protected Element |
XMLParser.parseTag(Reader is)
This method collects the tag name and all of its attributes.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<Element> |
Element.iterator()
Iterable for children of this entry making tree walking easier, this makes for(Element child : base) {} possible
|
| Modifier and Type | Method and Description |
|---|---|
void |
Element.addChild(Element childElement)
Adds the specified Element as a child to this element.
|
boolean |
Element.contains(Element element)
Returns true if the specified element is contained in this element's hierarchy (meaning it is one of its descendants)
|
int |
Element.getChildIndex(Element child)
Returns the child index
|
void |
Element.insertChildAt(Element child,
int index)
Inserts the given child at the specified index
|
protected boolean |
XMLParser.isSupported(Element element)
Returns true if this element is supported, false otherwise
In XMLParser this always returns true, but subclasses can determine if an element is supported in their context according to its name etc.
|
protected void |
XMLParser.parseTagContent(Element element,
Reader is)
Parses tags content, accumulating text and child elements .
|
void |
Element.replaceChild(Element oldChild,
Element newChild)
Replaces one child with another
|
protected void |
Element.setParent(Element parent)
Sets this element parent, done interanlly in addChild
|
protected boolean |
XMLParser.shouldEvaluate(Element element)
Checks if this element should be evaluated by the parser
This can be overriden by subclasses to skip certain elements
|
String |
XMLWriter.toXML(Element element)
returns the XML as a String
|
void |
XMLWriter.writeXML(Writer writer,
Element element)
Writes the XML of an Element to a Writer.
|
Copyright © 2021. All rights reserved.