PageRenderTime 46ms CodeModel.GetById 23ms RepoModel.GetById 0ms 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
Possible License(s): LGPL-2.1, Apache-2.0
  1. __ui_UIObject.prototype.__class__ = "ui_UIObject";
  2. function ui_UIObject() {
  3. return new __ui_UIObject();
  4. }
  5. function __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. };
  13. pyjs_extend(__ui_Widget, __ui_UIObject);
  14. __ui_Widget.prototype.__class__ = "ui_Widget";
  15. function ui_Widget() {
  16. return new __ui_Widget();
  17. }
  18. function __ui_Widget() {
  19. __ui_UIObject.call(this);
  20. }
  21. pyjs_extend(__ui_FocusWidget, __ui_Widget);
  22. __ui_FocusWidget.prototype.__class__ = "ui_FocusWidget";
  23. function ui_FocusWidget(element) {
  24. return new __ui_FocusWidget(element);
  25. }
  26. function __ui_FocusWidget(element) {
  27. this.setElement(element);
  28. }
  29. pyjs_extend(__ui_ButtonBase, __ui_FocusWidget);
  30. __ui_ButtonBase.prototype.__class__ = "ui_ButtonBase";
  31. function ui_ButtonBase(element) {
  32. return new __ui_ButtonBase(element);
  33. }
  34. function __ui_ButtonBase(element) {
  35. __ui_FocusWidget.call(this, element);
  36. }
  37. __ui_ButtonBase.prototype.setHTML = function(html) {
  38. DOM_setInnerHTML(this.getElement(), html);
  39. };