1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | package Torello.Browser; import Torello.Java.JSON.BaseType; /** * All events fired by the headless-browser extend this abstract class. */ public abstract class BrowserEvent extends BaseType implements java.io.Serializable { /** <EMBED CLASS=external-html DATA-FILE-ID=SVUID> */ protected static final long serialVersionUID = 1; /** * It was decided by somebody other than I that there are to be two API's of the browser * Remote-Debug-Port interface. The two API's were decided to be the {@code JavaScript} * API, and the {@code Browser} API. These two do not have a lot of distinction or meaning. * * <BR /><BR />Each API has several categories of methods, and these are called * {@cod Domain's}. */ public final String domain; /** * The event has a name, and this name happens to be the exact same name as the * event-{@code class} itself. */ public final String name; /** This is the number of fields in this class. It is like a reflection-field. */ public final int numFields; /** Constructor for this {@code abstract-class} */ protected BrowserEvent(String domain, String name, int numFields) { this.domain = domain; this.name = name; this.numFields = numFields; } } |