| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- /** @class This class represents a closabe UI window with changeable content. */
- Nem.Ui.Window = new Class(
- /** @lends Nem.Ui.Window# */
- {
- Implements: [Options, Events],
- /** The options that can be set. */
- options: {
- /**
- * Some description for caption.
- * @memberOf Nem.Ui.Window#
- * @type String
- */
- caption: "Ventana",
- /**
- * ...
- */
- icon: $empty,
- centered: true,
- id: $empty,
- width: $empty,
- height: $empty,
- modal: false,
- desktop: $empty,
- x: $empty,
- y: $empty,
- layout: $empty
- },
- /**
- * The constructor. Will be called automatically when a new instance of this class is created.
- *
- * @param {Object} options The options to set.
- */
- initialize: function(options)
- {
- this.setOptions(options);
- /* ... */
- },
- /**
- * Sets the HTML content of the window.
- *
- * @param {String} content The content to set.
- */
- setHtmlContents: function(content)
- {
- /* ... */
- },
- /**
- * Sets the inner text of the window.
- *
- * @param {String} text The text to set.
- */
- setText: function(text)
- {
- /* ... */
- },
- /**
- * Fired when the window is closed.
- *
- * @event
- * @param {Object} win The closed window.
- */
- close: function(win)
- {
- /* ... */
- },
- /* ... */
- });
|