io.webfolder.ui4j.api.dom.Document Maven / Gradle / Ivy
package io.webfolder.ui4j.api.dom;
import java.util.List;
import java.util.Optional;
import io.webfolder.ui4j.api.event.EventHandler;
public interface Document {
Optional query(String selector);
List queryAll(String selector);
Element createElement(String tagName);
void bind(String event, EventHandler handler);
void unbind(String event);
void unbind();
Element getBody();
Element getHead();
void setTitle(String title);
Optional getTitle();
List parseHTML(String html);
void trigger(String eventType, Element element);
Optional getElementFromPoint(int x, int y);
}