Module FunctionDef arguments args defaults body Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index SubscriptLoad AttributeLoad NameLoad attr Index Str Index Num Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str ImportFrom alias Return Call NameLoad Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call NameLoad Str Expr Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Str For NameStore AttributeLoad NameLoad attr body If BinOpBitAnd NameLoad NameLoad body For NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num body Expr Call NameLoad Str orelse For NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad Index Num body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad If CompareGt Call NameLoad NameLoad Num body Assign NameStore SubscriptLoad NameLoad Index BinOpSub Call NameLoad NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot NameLoad body Expr Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Global identifier identifier If CompareEq NameLoad NameLoad body If CompareEq Call NameLoad NameLoad Str body Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore NameLoad decorator_list FunctionDef arguments args defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad Str Expr Call NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call NameLoad NameLoad Str NameLoad If CompareEq NameLoad Num body Expr Call NameLoad NameLoad NameLoad orelse Expr Call NameLoad NameLoad NameLoad NameLoad decorator_list
N/A init N/A N/A N/A N/A N/A mousewheel N/A N/A N/A Event eventbits N/A N/A N/A Event eventmap N/A mousewheel N/A 0 N/A N/A JS 
    // Set up capture event dispatchers.
    $wnd['__dispatchCapturedMouseEvent'] = function(evt) {
        if ($wnd['__dispatchCapturedEvent'](evt)) {
            var cap = @{{getCaptureElement}}();
            if (cap && cap['__listener']) {
                @{{dispatchEvent}}(evt, cap, cap['__listener']);
                evt['stopPropagation']();
            }
        }
    };

    $wnd['__dispatchCapturedEvent'] = function(evt) {
        if (!@{{previewEvent}}(evt)['valueOf']()) {
            evt['stopPropagation']();
            evt['preventDefault']();
            return false;
        }

        return true;
        };

    $wnd['addEventListener'](
        'mouseout',
        function(evt){
            var cap = @{{getCaptureElement}}();
            if (cap) {
                if (!evt['relatedTarget']) {
                    // When the mouse leaves the window during capture,
                    // release capture and synthesize an 'onlosecapture' event.
                    @{{sCaptureElem}} = null;
                    if (cap['__listener']) {
                        var lcEvent = $doc['createEvent']('UIEvent');
                        lcEvent['initUIEvent']('losecapture', false, false,
                                             $wnd, 0);
                        @{{dispatchEvent}}(lcEvent, cap, cap['__listener']);
                    }
                }
            }
        },
        true
    );

    var dcme = $wnd['__dispatchCapturedMouseEvent'];
    var dce = $wnd['__dispatchCapturedEvent'];

    $wnd['addEventListener']('click', dcme, true);
    $wnd['addEventListener']('dblclick', dcme, true);
    $wnd['addEventListener']('mousedown', dcme, true);
    $wnd['addEventListener']('mouseup', dcme, true);
    $wnd['addEventListener']('mousemove', dcme, true);
    $wnd['addEventListener']('keydown', dce, true);
    $wnd['addEventListener']('keyup', dce, true);
    $wnd['addEventListener']('keypress', dce, true);

    $wnd['__dispatchEvent'] = function(evt) {

        var listener, curElem = this;

        while (curElem && !(listener = curElem['__listener'])) {
            curElem = curElem['parentNode'];
        }
        if (curElem && curElem['nodeType'] != 1) {
            curElem = null;
        }

        if (listener) {
            @{{dispatchEvent}}(evt, curElem, listener);
        }
    };
    var dcme = $wnd['__dispatchCapturedMouseEvent'];
    $wnd['addEventListener'](@{{mousewheel}}, dcme, true);
     N/A addEventPreview N/A N/A preview N/A N/A N/A N/A N/A sEventPreviewStack append preview N/A buttonClick N/A N/A button N/A N/A N/A N/A JS 
    @{{button}}['click']();
     N/A compare N/A N/A elem1 elem2 N/A N/A N/A N/A JS 
    return (@{{elem1}} == @{{elem2}});
     N/A createElement N/A N/A tag N/A N/A N/A N/A JS 
    return $doc['createElement'](@{{tag}});
     N/A createInputElement N/A N/A elementType N/A N/A N/A N/A JS 
    var e = $doc['createElement']("INPUT");
    e['type'] = @{{elementType}};
    return e;
     N/A createInputRadio N/A N/A group N/A N/A N/A N/A JS 
    var elem = $doc['createElement']("INPUT");
    elem['type'] = 'radio';
    elem['name'] = @{{group}};
    return elem;
     N/A eventGetFromElement N/A N/A evt N/A N/A N/A N/A JS 
    return @{{evt}}['fromElement'] ? @{{evt}}['fromElement'] : null;
     N/A eventGetKeyCode N/A N/A evt N/A N/A N/A N/A JS 
    return @{{evt}}['which'] ? @{{evt}}['which'] :
            (@{{evt}}['keyCode'] ? @{{evt}}['keyCode'] : 0);
     N/A eventGetTarget N/A N/A event N/A N/A N/A N/A JS 
    return @{{event}}['target'] ? @{{event}}['target'] : null;
     N/A eventGetToElement N/A N/A evt N/A N/A N/A N/A JS 
    return @{{evt}}['relatedTarget'] ? @{{evt}}['relatedTarget'] : null;
     N/A eventToString N/A N/A evt N/A N/A N/A N/A JS 
    return @{{evt}}['toString']();
     N/A getAbsoluteLeft N/A N/A _elem N/A N/A N/A N/A JS 
    var elem = @{{_elem}};
    var left = 0;
    while (elem) {
      left += elem['offsetLeft'] - elem['scrollLeft'];
      elem = elem['offsetParent'];
    }
    return left + $doc['body']['scrollLeft'];
     N/A getAbsoluteTop N/A N/A _elem N/A N/A N/A N/A JS 
    var elem = @{{_elem}};
    var top = 0;
    while (elem) {
      top += elem['offsetTop'] - elem['scrollTop'];
      elem = elem['offsetParent'];
    }
    return top + $doc['body']['scrollTop'];
     N/A getAttribute N/A N/A elem attr N/A N/A N/A N/A JS 
    var ret = @{{elem}}[@{{attr}}];
    return (ret == null) ? null : String(ret);
     N/A getElemAttribute N/A N/A elem attr N/A N/A N/A N/A N/A elem getAttribute attr N/A getBooleanAttribute N/A N/A elem attr N/A N/A N/A N/A JS 
    return !!@{{elem}}[@{{attr}}];
     N/A getCaptureElement N/A N/A N/A N/A N/A sCaptureElem N/A getChild N/A N/A elem index N/A N/A N/A 
    Get a child of the DOM element by specifying an index.
     N/A N/A JS 
    var count = 0, child = @{{elem}}['firstChild'];
    while (child) {
      var next = child['nextSibling'];
      if (child['nodeType'] == 1) {
        if (@{{index}} == count)
          return child;
        ++count;
      }
      child = next;
    }

    return null;
     N/A getChildCount N/A N/A elem N/A N/A N/A 
    Calculate the number of children the given element has.  This loops
    over all the children of that element and counts them.
     N/A N/A JS 
    var count = 0, child = @{{elem}}['firstChild'];
    while (child) {
      if (child['nodeType'] == 1)
      ++count;
      child = child['nextSibling'];
    }
    return count;
     N/A getChildIndex N/A N/A parent toFind N/A N/A N/A 
    Return the index of the given child in the given parent.

    This performs a linear search.
     N/A N/A JS 
    var count = 0, child = @{{parent}}['firstChild'];
    while (child) {
        if (child == @{{toFind}})
            return count;
        if (child['nodeType'] == 1)
            ++count;
        child = child['nextSibling'];
    }

    return -1;
     N/A getElementById N/A N/A id N/A N/A N/A 
    Return the element in the document's DOM tree with the given id.
     N/A N/A JS 
    var elem = $doc['getElementById'](@{{id}});
    return elem ? elem : null;
     N/A getEventListener N/A N/A element N/A N/A N/A 
    See setEventListener for more information.
     N/A N/A JS 
    return @{{element}}['__listener'];
     N/A getEventsSunk N/A N/A element N/A N/A N/A 
    Return which events are currently "sunk" for a given DOM node.  See
    sinkEvents() for more information.
     __pyjamas__ INT N/A N/A INT N/A JS @{{element}}['__eventBits'] ? @{{element}}['__eventBits'] : 0 N/A getFirstChild N/A N/A elem N/A N/A N/A N/A JS 
    var child = @{{elem}}['firstChild'];
    while (child && child['nodeType'] != 1)
      child = child['nextSibling'];
    return child ? child : null;
     N/A getInnerHTML N/A N/A element N/A N/A N/A N/A JS 
    var ret = @{{element}}['innerHTML'];
    return (ret == null) ? null : ret;
     N/A getInnerText N/A N/A element N/A N/A N/A N/A JS 
    // To mimic IE's 'innerText' property in the W3C DOM, we need to recursively
    // concatenate all child text nodes (depth first).
    var text = '', child = @{{element}}['firstChild'];
    while (child) {
      if (child['nodeType'] == 1){ // 1 == Element node
        text += @{{getInnerText}}(child);
      } else if (child['nodeValue']) {
        text += child['nodeValue'];
      }
      child = child['nextSibling'];
    }
    return text;
     N/A getIntAttribute N/A N/A elem attr N/A N/A N/A N/A JS 
    var i = parseInt(@{{elem}}[@{{attr}}]);
    if (!i) {
        return 0;
    }
    return i;
     N/A getIntStyleAttribute N/A N/A elem attr N/A N/A N/A N/A JS 
    var i = parseInt(@{{elem}}['style'][@{{attr}}]);
    if (!i) {
        return 0;
    }
    return i;
     N/A getNextSibling N/A N/A elem N/A N/A N/A N/A JS 
    var sib = @{{elem}}['nextSibling'];
    while (sib && sib['nodeType'] != 1)
      sib = sib['nextSibling'];
    return sib ? sib : null;
     N/A getParent N/A N/A elem N/A N/A N/A N/A JS 
    var parent = @{{elem}}['parentNode'];
    if(parent == null) {
        return null;
    }
    if (parent['nodeType'] != 1)
        parent = null;
    return parent ? parent : null;
     N/A getStyleAttribute N/A N/A elem attr N/A N/A N/A N/A JS 
    var ret = @{{elem}}['style'][@{{attr}}];
    return (ret == null) ? null : ret;
     N/A insertChild N/A N/A parent toAdd index N/A N/A N/A N/A JS 
    var count = 0, child = @{{parent}}['firstChild'], before = null;
    while (child) {
      if (child['nodeType'] == 1) {
        if (count == @{{index}}) {
          before = child;
          break;
        }
        ++count;
      }
      child = child['nextSibling'];
    }

    @{{parent}}['insertBefore'](@{{toAdd}}, before);
     N/A iterChildren N/A N/A elem N/A N/A N/A 
    Returns an iterator over all the children of the given
    DOM node.
     N/A N/A JS 
    var parent = @{{elem}};
    var child = @{{elem}}['firstChild'];
    var lastChild = null;
    return {
        'next': function() {
            if (child == null) {
                throw @{{StopIteration}};
            }
            lastChild = child;
            child = @{{getNextSibling}}(child);
            return lastChild;
        },
        'remove': function() {
            parent['removeChild'](lastChild);
        },
        __iter__: function() {
            return this;
        }
    };
     N/A walkChildren N/A N/A elem N/A N/A N/A 
    Walk an entire subtree of the DOM.  This returns an
    iterator/iterable which performs a pre-order traversal
    of all the children of the given element.
     N/A N/A JS 
    var parent = @{{elem}};
    var child = @{{getFirstChild}}(@{{elem}});
    var lastChild = null;
    var stack = [];
    var parentStack = [];
    return {
        'next': function() {
            if (child == null) {
                throw @{{StopIteration}};
            }
            lastChild = child;
            var firstChild = @{{getFirstChild}}(child);
            var nextSibling = @{{getNextSibling}}(child);
            if(firstChild != null) {
               if(nextSibling != null) {
                   stack['push'](nextSibling);
                   parentStack['push'](parent);
                }
                parent = child;
                child = firstChild;
            } else if(nextSibling != null) {
                child = nextSibling;
            } else if(stack['length'] > 0) {
                child = stack['pop']();
                parent = parentStack['pop']();
            } else {
                child = null;
            }
            return lastChild;
        },
        'remove': function() {
            parent['removeChild'](lastChild);
        },
        __iter__: function() {
            return this;
        }
    };
     N/A removeEventPreview N/A N/A preview N/A N/A N/A N/A N/A sEventPreviewStack remove preview N/A scrollIntoView N/A N/A elem N/A N/A N/A N/A JS 
    var left = @{{elem}}['offsetLeft'], top = @{{elem}}['offsetTop'];
    var width = @{{elem}}['offsetWidth'], height = @{{elem}}['offsetHeight'];

    if (@{{elem}}['parentNode'] != @{{elem}}['offsetParent']) {
        left -= @{{elem}}['parentNode']['offsetLeft'];
        top -= @{{elem}}['parentNode']['offsetTop'];
    }

    var cur = @{{elem}}['parentNode'];
    while (cur && (cur['nodeType'] == 1)) {
        if ((cur['style']['overflow'] == 'auto') || (cur['style']['overflow'] == 'scroll')) {
            if (left < cur['scrollLeft']) {
                cur['scrollLeft'] = left;
            }
            if (left + width > cur['scrollLeft'] + cur['clientWidth']) {
                cur['scrollLeft'] = (left + width) - cur['clientWidth'];
            }
            if (top < cur['scrollTop']) {
                cur['scrollTop'] = top;
            }
            if (top + height > cur['scrollTop'] + cur['clientHeight']) {
                cur['scrollTop'] = (top + height) - cur['clientHeight'];
            }
        }

        var offsetLeft = cur['offsetLeft'], offsetTop = cur['offsetTop'];
        if (cur['parentNode'] != cur['offsetParent']) {
            offsetLeft -= cur['parentNode']['offsetLeft'];
            offsetTop -= cur['parentNode']['offsetTop'];
        }

        left += offsetLeft - cur['scrollLeft'];
        top += offsetTop - cur['scrollTop'];
        cur = cur['parentNode'];
    }
     N/A removeAttribute N/A N/A element attribute N/A N/A N/A N/A JS 
    delete @{{element}}[@{{attribute}}];
     N/A setAttribute N/A N/A element attribute value N/A N/A N/A N/A JS 
    @{{element}}[@{{attribute}}] = @{{value}};
     N/A setBooleanAttribute N/A N/A elem attr value N/A N/A N/A N/A JS 
    @{{elem}}[@{{attr}}] = @{{value}};
     N/A setEventListener N/A N/A element listener N/A N/A N/A 
    Register an object to receive event notifications for the given
    element.  The listener's onBrowserEvent() method will be called
    when a captured event occurs.  To set which events are captured,
    use sinkEvents().
     N/A N/A JS 
    @{{element}}['__listener'] = @{{listener}};
     N/A setInnerHTML N/A N/A element html N/A N/A N/A N/A JS @{{element}}['innerHTML'] = @{{html}} || ""; N/A setInnerText N/A N/A elem text N/A N/A N/A N/A JS 
    // Remove all children first.
    while (@{{elem}}['firstChild']) {
        @{{elem}}['removeChild'](@{{elem}}['firstChild']);
    }
    // Add a new text node.
    @{{elem}}['appendChild']($doc['createTextNode'](@{{text}}));
     N/A setIntAttribute N/A N/A elem attr value N/A N/A N/A N/A JS 
    @{{elem}}[@{{attr}}] = @{{value}}['valueOf']();
     N/A setIntStyleAttribute N/A N/A elem attr value N/A N/A N/A N/A JS 
    @{{elem}}['style'][@{{attr}}] = @{{value}}['valueOf']();
     N/A setOptionText N/A N/A select text index N/A N/A N/A option N/A N/A N/A select options item index N/A N/A option text text N/A setStyleAttribute N/A N/A element attr value N/A N/A N/A N/A JS 
    @{{element}}['style'][@{{attr}}] = @{{value}};
     N/A sinkEvents N/A N/A element bits N/A N/A N/A 
    Set which events should be captured on a given element and passed to the
    registered listener.  To set the listener, use setEventListener().

    @param bits: A combination of bits; see ui.Event for bit values
     N/A N/A JS @{{element}}['__eventBits'] = @{{bits}}; N/A N/A sinkEventsMozilla element bits N/A dispEvnt N/A JS $wnd['__dispatchEvent'] N/A bit N/A Event eventbits N/A N/A N/A bits bit N/A N/A event_name N/A N/A N/A Event eventbits N/A bit N/A 1 N/A N/A N/A JS @{{element}}['on'+@{{event_name}}] = @{{dispEvnt}} N/A N/A event_name N/A N/A N/A Event eventbits N/A bit N/A 1 N/A N/A N/A JS @{{element}}['on'+@{{event_name}}] = null N/A toString N/A N/A elem N/A N/A N/A N/A JS 
    var temp = @{{elem}}['cloneNode'](true);
    var tempDiv = $doc['createElement']("DIV");
    tempDiv['appendChild'](temp);
    var outer = tempDiv['innerHTML'];
    temp['innerHTML'] = "";
    return outer;
     N/A dispatchEvent N/A N/A event element listener N/A N/A N/A N/A dispatchEventImpl event element listener N/A previewEvent N/A N/A evt N/A N/A N/A ret True N/A N/A N/A len sEventPreviewStack 0 N/A N/A preview N/A sEventPreviewStack N/A N/A N/A len sEventPreviewStack 1 N/A ret N/A N/A preview onEventPreview evt N/A N/A ret N/A N/A N/A eventCancelBubble evt True N/A N/A eventPreventDefault evt N/A ret N/A dispatchEventAndCatch N/A N/A evt elem listener handler N/A N/A N/A N/A dispatchEventImpl N/A N/A event element listener N/A N/A N/A sCaptureElem currentEvent N/A N/A element sCaptureElem N/A N/A N/A N/A eventGetType event losecapture N/A N/A sCaptureElem None N/A prevCurrentEvent currentEvent N/A currentEvent event N/A N/A N/A listener onBrowserEvent event N/A currentEvent prevCurrentEvent N/A eventGetCurrentEvent N/A N/A N/A N/A N/A currentEvent N/A insertListItem N/A N/A select item value index N/A N/A N/A option N/A createElement OPTION N/A N/A setInnerText option item N/A N/A value None N/A N/A N/A setAttribute option value value N/A N/A index -1 N/A N/A N/A appendChild select option N/A N/A N/A insertChild select option index N/A