1 /*global $k*/ 2 3 /** 4 * @class Provides UI interaction in action scripts 5 **/ 6 $k.UI = function() { }; 7 8 /** 9 * Show a notification dialog 10 * 11 * @function 12 * @param {string} message 13 * @param {string} [windowTitle] 14 **/ 15 $k.UI.prototype.alert = function(message, windowTitle) { }; 16 17 /** 18 * Let the user choose an object from a list 19 * 20 * @function 21 * @param {object[]} objects 22 * @param {string} message 23 * @param {string} [windowTitle] 24 * @param {function} [stringFunction] Function that returns a string that should be displayed for an element 25 * @returns {object} 26 **/ 27 $k.UI.prototype.choose = function(objects, message, windowTitle, stringFunction) { }; 28 29 /** 30 * Show a confirmation dialog 31 * 32 * @function 33 * @param {string} message 34 * @param {string} [windowTitle] 35 * @returns {boolean} 36 **/ 37 $k.UI.prototype.confirm = function(message, windowTitle) { }; 38 39 /** 40 * Opens an editor on the element 41 * 42 * @function 43 * @param {$k.SemanticElement} topic 44 **/ 45 $k.UI.prototype.openEditor = function(topic) { }; 46 47 /** 48 * Let the user enter a string in a single-line input field 49 * 50 * @function 51 * @param {string} message 52 * @param {string} [windowTitle] 53 * @returns {string} 54 **/ 55 $k.UI.prototype.requestString = function(message, windowTitle) { }; 56 57