$activate *
|
Void |
Activates element by dispatching DOMActivate event to the element. |
Sytaxis:
object.$activate()
|
$getContainer *
|
HTMLElement |
UI element definition API. Returns a pointer to a (pseudo-) element in the shadow content. |
Sytaxis:
object.$getContainer([pseudoElement]) Arguments:
Name |
Type |
O/R |
Description |
pseudoElement |
String |
Optional |
Name of pseudo-element. |
|
$getTagClose *
|
String |
UI element definition API. Provide your function to return shadow content to be inserted after element children. |
Sytaxis:
object.$getTagClose()
|
$getTagOpen *
|
String |
UI element definition API. Provide your function to return shadow content to be inserted before element children. |
Sytaxis:
object.$getTagOpen()
|
$isAccessible *
|
Boolean |
UI element definition API. Indicates wether element can be focused. |
Sytaxis:
object.$isAccessible()
|
$mapAttribute *
|
Void |
UI element definition API. Provide your function to map attribute value to shadow tree. Not called for id, class and style attributes. |
Sytaxis:
object.$mapAttribute(name, value) Arguments:
Name |
Type |
O/R |
Description |
name |
String |
Required |
Attribute name |
value |
String |
Required |
Attribute value. null if attribute is being removed. |
|
$setPseudoClass *
|
Void |
UI element definition API. Applies the pseudo class to an element. |
Sytaxis:
object.$setPseudoClass(name, state, [pseudoElement]) Arguments:
Name |
Type |
O/R |
Description |
name |
String |
Required |
Name of CSS pseudoclass |
state |
Boolean |
Required |
Flag indicating wether pseudoclass should be set or reset. |
pseudoElement |
String |
Optional |
Name of pseudo-element. |
|
acceptDialog
|
Void |
Accepts the dialog and closes it, similar to pressing the OK button. |
Sytaxis:
object.acceptDialog()
|
addEventListener *
|
Void |
This method allows the registration of an event listener in the default group and, depending on the useCapture parameter, on the capture phase of the DOM event flow or its target and bubbling phases. |
Sytaxis:
object.addEventListener(type, listener, useCapture) Arguments:
Name |
Type |
O/R |
Description |
type |
String |
Required |
Specifies the Event.type associated with the event for which the user is registering. |
listener |
Function |
Required |
Function to be called when the event occurs. |
useCapture |
Boolean |
Required |
If true, user wishes to add the event listener for the capture phase only, if false - for target and bubbling phases. |
|
appendChild *
|
Node
|
Appends a child element to the object. |
Sytaxis:
object.appendChild(node) Arguments:
Name |
Type |
O/R |
Description |
node |
Node
|
Required |
The node to add. |
|
blur *
|
Void |
Removes focus from the element. |
Sytaxis:
object.blur()
|
canDispatch *
|
Void |
Tests wether event of the specified namespace and type can be dispatched. |
Sytaxis:
object.canDispatch(namespaceURI, type) Arguments:
Name |
Type |
O/R |
Description |
namespaceURI |
String |
Required |
NamespaceURI of the event to be tested. |
type |
String |
Required |
Event type. |
|
cancelDialog
|
Void |
Cancels the dialog and closes it, similar to pressing the Cancel button. |
Sytaxis:
object.cancelDialog()
|
centerWindowOnScreen
|
Void |
Centers the dialog on the screen. |
Sytaxis:
object.centerWindowOnScreen()
|
cloneNode *
|
Node
|
Creates a copy of node and returns it. |
Sytaxis:
object.cloneNode(deep) Arguments:
Name |
Type |
O/R |
Description |
deep |
Boolean |
Required |
Indicates wether the childnodes are also to be cloned. |
|
compareDocumentPosition *
|
Number |
Compares the reference node, i.e. the node on which this method is being called, with a node, i.e. the one passed as a parameter, with regard to their position in the document and according to the document order. |
Sytaxis:
object.compareDocumentPosition(node) Arguments:
Name |
Type |
O/R |
Description |
node |
Node
|
Required |
The node to compare against the reference node. |
|
dispatchEvent *
|
Boolean |
This method allows the dispatch of events into the implementation's event model. Return value indicates whether any of the listeners which handled the event called preventDefault method on Event object. |
Sytaxis:
object.dispatchEvent(event) Arguments:
Name |
Type |
O/R |
Description |
event |
Event
|
Required |
The event to be dispatched. |
|
focus *
|
Void |
Moves focus to the element. |
Sytaxis:
object.focus()
|
getAttribute *
|
String |
Retrieves the value of the specified attribute. |
Sytaxis:
object.getAttribute(name) Arguments:
Name |
Type |
O/R |
Description |
name |
String |
Required |
Attribute name |
|
getAttributeNS *
|
String |
Retrieves the value of the specified attribute from the specified namespace. |
Sytaxis:
object.getAttributeNS(namespaceURI, localName) Arguments:
Name |
Type |
O/R |
Description |
namespaceURI |
String |
Required |
Namespace URI |
localName |
String |
Required |
Attribute name |
|
getBoundingClientRect *
|
TextRectangle
|
Returns an object with top, right, bottom, left members keeping the absolute coordinates of the object in the screen. |
Sytaxis:
object.getBoundingClientRect()
|
getElementsByTagName *
|
NodeList
|
Retrieves a NodeList collection of Element objects based on the specified element name.
|
Sytaxis:
object.getElementsByTagName(name) Arguments:
Name |
Type |
O/R |
Description |
name |
String |
Required |
Element name. |
|
getElementsByTagNameNS *
|
NodeList
|
Retrieves a NodeList collection of Element objects based on the specified element name from the given namespace.
|
Sytaxis:
object.getElementsByTagNameNS(namespaceURI, localName) Arguments:
Name |
Type |
O/R |
Description |
namespaceURI |
String |
Required |
Namespace URI. URI пространства имен элемента. |
localName |
String |
Required |
Element name. |
|
hasAttribute *
|
Boolean |
Returns a value that indicates whether the object has specified attribute. |
Sytaxis:
object.hasAttribute(name) Arguments:
Name |
Type |
O/R |
Description |
name |
String |
Required |
Attribute name. |
|
hasAttributeNS *
|
Boolean |
Returns a value that indicates whether the object has specified attribute from the given namespace. |
Sytaxis:
object.hasAttributeNS(namespaceURI, localName) Arguments:
Name |
Type |
O/R |
Description |
namespaceURI |
String |
Required |
Namespace URI. |
localName |
String |
Required |
Attribute name. |
|
hasAttributes *
|
Boolean |
Retrieves true if the node has any attributes. |
Sytaxis:
object.hasAttributes()
|
hasChildNodes *
|
Boolean |
Returns a value that indicates whether the object has children. |
Sytaxis:
object.hasChildNodes()
|
hide *
|
Void |
Hides the window. |
Sytaxis:
object.hide()
|
insertBefore *
|
Node
|
Inserts a chlid element after the specifyed element to the object. |
Sytaxis:
object.insertBefore(node, before) Arguments:
Name |
Type |
O/R |
Description |
node |
Node
|
Required |
The node to insert. |
before |
Node
|
Required |
The reference node, i.e., the node before which the new node must be inserted. |
|
isDefaultNamespace *
|
String |
This method checks if the specified namespaceURI is the default namespace or not. |
Sytaxis:
object.isDefaultNamespace(namespaceURI) Arguments:
Name |
Type |
O/R |
Description |
namespaceURI |
String |
Required |
The namespace URI to look for. |
|
lookupNamespaceURI *
|
String |
Look up the namespace URI associated to the given prefix, starting from this node. |
Sytaxis:
object.lookupNamespaceURI(prefix) Arguments:
Name |
Type |
O/R |
Description |
prefix |
String |
Required |
The prefix to look for. If this parameter is null, the method will return the default namespace URI if any. |
|
lookupPrefix *
|
String |
Look up the prefix associated to the given namespace URI, starting from this node. |
Sytaxis:
object.lookupPrefix(namespaceURI) Arguments:
Name |
Type |
O/R |
Description |
namespaceURI |
String |
Required |
The namespace URI to look for. |
|
normalize *
|
Void |
Puts all Text nodes in the full depth of the sub-tree underneath this Node, including attribute nodes, into a "normal" form |
Sytaxis:
object.normalize()
|
querySelector *
|
Element
|
Returns Element that matches CSS query.
|
Sytaxis:
object.querySelector(selector, [NSResolver]) Arguments:
Name |
Type |
O/R |
Description |
selector |
String |
Required |
CSS query. |
NSResolver |
Function |
Optional |
Resolver function used to resolve namespace prefixes used in query. |
|
querySelectorAll *
|
NodeList
|
Returns NodeList of Element that match CSS query.
|
Sytaxis:
object.querySelectorAll(selector, [NSResolver]) Arguments:
Name |
Type |
O/R |
Description |
selector |
String |
Required |
CSS query. |
NSResolver |
Function |
Optional |
Resolver function used to resolve namespace prefixes used in query. |
|
releaseCapture *
|
Void |
Removes mouse capture from the object in the current document. |
Sytaxis:
object.releaseCapture()
|
removeAttribute *
|
Void |
Removes the given attribute from the element. |
Sytaxis:
object.removeAttribute(name) Arguments:
Name |
Type |
O/R |
Description |
name |
String |
Required |
Attribute name. |
|
removeAttributeNS *
|
Void |
Removes the given attribute from the given namespace from the element. |
Sytaxis:
object.removeAttributeNS(namespaceURI, name) Arguments:
Name |
Type |
O/R |
Description |
namespaceURI |
String |
Required |
Namespace URI. |
name |
String |
Required |
Attribute name. |
|
removeChild *
|
Node
|
Removes a child node from the object. |
Sytaxis:
object.removeChild(child) Arguments:
Name |
Type |
O/R |
Description |
child |
Node
|
Required |
The node being removed. |
|
removeEventListener *
|
Void |
This method allows the removal of event listeners from the default group. |
Sytaxis:
object.removeEventListener(type, listener, useCapture) Arguments:
Name |
Type |
O/R |
Description |
type |
String |
Required |
Specifies the Event.type for which the user registered the event listener. |
listener |
Function |
Required |
Listener to be removed. |
useCapture |
Boolean |
Required |
Specifies whether the EventListener being removed was registered for the capture phase or not. |
|
replaceChild *
|
Node
|
Replaces the given child node by another node. |
Sytaxis:
object.replaceChild(new, child) Arguments:
Name |
Type |
O/R |
Description |
new |
Node
|
Required |
The new node to put in the child list. |
child |
Node
|
Required |
The node being replaced in the list. |
|
scrollIntoView *
|
Void |
Causes the object to scroll into view, aligning it either at the top or bottom of the window. |
Sytaxis:
object.scrollIntoView(top) Arguments:
Name |
Type |
O/R |
Description |
top |
Boolean |
Required |
If value is true, scrolls the object so that top of the object is visible at the top of the window. |
|
setAttribute *
|
Void |
Sets the value of the specified attribute. |
Sytaxis:
object.setAttribute(name, value) Arguments:
Name |
Type |
O/R |
Description |
name |
String |
Required |
Attribute name |
value |
String |
Required |
Attribute value |
|
setAttributeNS *
|
Void |
Sets the value of the specified attribute from the given namespace. |
Sytaxis:
object.setAttributeNS(namespaceURI, name, value) Arguments:
Name |
Type |
O/R |
Description |
namespaceURI |
String |
Required |
Namespace URI |
name |
String |
Required |
Attribute name |
value |
String |
Required |
Attribute value |
|
setCapture *
|
Void |
Sets the mouse capture to the object that belongs to the current document. |
Sytaxis:
object.setCapture([containerCapture]) Arguments:
Name |
Type |
O/R |
Description |
containerCapture |
Boolean |
Optional |
A Boolean that specifies capture mode. |
|
show *
|
Void |
Shows the window at a specific screen position specified by x and y. |
Sytaxis:
object.show([x, y]) Arguments:
Name |
Type |
O/R |
Description |
x |
Number |
Optional |
screenX position. |
y |
Number |
Optional |
screenY position. |
|
showModal *
|
Void |
Shows the window at a specific screen position specified by x and y in a modal state. |
Sytaxis:
object.showModal([x, y]) Arguments:
Name |
Type |
O/R |
Description |
x |
Number |
Optional |
screenX position. |
y |
Number |
Optional |
screenY position. |
|
toXML *
|
String |
Serializes Node to string. |
Sytaxis:
object.toXML()
|