Test.js 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. /** @class This class represents a closabe UI window with changeable content. */
  2. Nem.Ui.Window = new Class(
  3. /** @lends Nem.Ui.Window# */
  4. {
  5. Implements: [Options, Events],
  6. /** The options that can be set. */
  7. options: {
  8. /**
  9. * Some description for caption.
  10. * @memberOf Nem.Ui.Window#
  11. * @type String
  12. */
  13. caption: "Ventana",
  14. /**
  15. * ...
  16. */
  17. icon: $empty,
  18. centered: true,
  19. id: $empty,
  20. width: $empty,
  21. height: $empty,
  22. modal: false,
  23. desktop: $empty,
  24. x: $empty,
  25. y: $empty,
  26. layout: $empty
  27. },
  28. /**
  29. * The constructor. Will be called automatically when a new instance of this class is created.
  30. *
  31. * @param {Object} options The options to set.
  32. */
  33. initialize: function(options)
  34. {
  35. this.setOptions(options);
  36. /* ... */
  37. },
  38. /**
  39. * Sets the HTML content of the window.
  40. *
  41. * @param {String} content The content to set.
  42. */
  43. setHtmlContents: function(content)
  44. {
  45. /* ... */
  46. },
  47. /**
  48. * Sets the inner text of the window.
  49. *
  50. * @param {String} text The text to set.
  51. */
  52. setText: function(text)
  53. {
  54. /* ... */
  55. },
  56. /**
  57. * Fired when the window is closed.
  58. *
  59. * @event
  60. * @param {Object} win The closed window.
  61. */
  62. close: function(win)
  63. {
  64. /* ... */
  65. },
  66. /* ... */
  67. });