Auto-register a factory for a given widget. Instead of passing an input mapping and name, these are instead supplied in the Widget.autoXML field of the widget class. If it's null, an error is thrown.
The class to auto-register
Find the next unset parameter of a given mode.
The input mapping of the widget being built
A list containing which of the parameters in the input mapping are already set
The parameter mode to find
Returns the index of the next unset parameter of the wanted mode. If none are found, -1 is returned.
Parse a value in an attribute. The value will be deserialized according to its prefix. If there is no prefix, the value is treated as a string.
The value in the attribute, with the prefix included
The current parser context, which will be passed to a deserializer if the value is prefixed with a registered deserializer prefix
Parse an XML string. BaseXMLUIParser#parseFromXMLDocument will be called.
A string containing an XML document
Optional
config: XMLUIParserConfigThe configuration object to use for the parser
Returns a pair containing, respectively, a Map which maps a UI tree name to a widget, and the parser context after all UI trees are parsed
Parse an XML string from a URL. BaseXMLUIParser#parseFromString will be called.
The URL to download the XML from
Optional
config: XMLUIParserConfigThe configuration object to use for the parser
Optional
requestOptions: RequestInitOptions to use for the HTTP request
Returns a pair containing, respectively, a Map which maps a UI tree name to a widget, and the parser context after all UI trees are parsed. Returned asynchronously as a promise
Parse an XML document which can contain multiple
The XML document to parse
Optional
config: XMLUIParserConfigThe configuration object to use for the parser
Returns a pair containing, respectively, a Map which maps a UI tree name to a widget, and the parser context after all UI trees are parsed
Parse a
An XML UI parser.
Unlike BaseXMLUIParser:
<layer>
elements are treated as LayerInit parameters ("layer" parameter mode)lazy-widgets:options
namespace will be added to an options object and passed to a widget factorylazy-widgets:on
namespace will add event listeners to a widgetlazy-widgets:once
namespace will add event listeners to a widget, but withonce
set to true