PageRenderTime 95ms CodeModel.GetById 90ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/pyjs/tests/test005.js

http://pyjamas.googlecode.com/
JavaScript | 39 lines | 39 code | 0 blank | 0 comment | 0 complexity | 886ccb5db6971491487b505bbab2c5e2 MD5 | raw file
 1__ui_UIObject.prototype.__class__ = "ui_UIObject";
 2function ui_UIObject() {
 3    return new __ui_UIObject();
 4}
 5function __ui_UIObject() {
 6}
 7__ui_UIObject.prototype.getElement = function() {
 8    return this.element;
 9};
10__ui_UIObject.prototype.setElement = function(element) {
11    this.element = element;
12};
13pyjs_extend(__ui_Widget, __ui_UIObject);
14__ui_Widget.prototype.__class__ = "ui_Widget";
15function ui_Widget() {
16    return new __ui_Widget();
17}
18function __ui_Widget() {
19    __ui_UIObject.call(this);
20}
21pyjs_extend(__ui_FocusWidget, __ui_Widget);
22__ui_FocusWidget.prototype.__class__ = "ui_FocusWidget";
23function ui_FocusWidget(element) {
24    return new __ui_FocusWidget(element);
25}
26function __ui_FocusWidget(element) {
27    this.setElement(element);
28}
29pyjs_extend(__ui_ButtonBase, __ui_FocusWidget);
30__ui_ButtonBase.prototype.__class__ = "ui_ButtonBase";
31function ui_ButtonBase(element) {
32    return new __ui_ButtonBase(element);
33}
34function __ui_ButtonBase(element) {
35    __ui_FocusWidget.call(this, element);
36}
37__ui_ButtonBase.prototype.setHTML = function(html) {
38    DOM_setInnerHTML(this.getElement(), html);
39};