diff --git a/source/Ox.UI/js/List/Ox.IconList.js b/source/Ox.UI/js/List/Ox.IconList.js index a9fcedcd..741ea28b 100644 --- a/source/Ox.UI/js/List/Ox.IconList.js +++ b/source/Ox.UI/js/List/Ox.IconList.js @@ -155,6 +155,20 @@ Ox.IconList = function(options, self) { return that; }; + that.gainFocus = function() { + that.$element.gainFocus(); + return that; + }; + + that.hasFocus = function() { + return that.$element.hasFocus(); + }; + + that.loseFocus = function() { + that.$element.loseFocus(); + return that; + }; + /*@ paste paste into list () -> the list diff --git a/source/Ox.UI/js/List/Ox.InfoList.js b/source/Ox.UI/js/List/Ox.InfoList.js index 540a1612..f77862a3 100644 --- a/source/Ox.UI/js/List/Ox.InfoList.js +++ b/source/Ox.UI/js/List/Ox.InfoList.js @@ -176,9 +176,19 @@ Ox.InfoList = function(options, self) { return that; }; - that.infoOptions = function(id, options) { - // ... - } + that.gainFocus = function() { + that.$element.gainFocus(); + return that; + }; + + that.hasFocus = function() { + return that.$element.hasFocus(); + }; + + that.loseFocus = function() { + that.$element.loseFocus(); + return that; + }; that.paste = function(data) { that.$element.paste(data); diff --git a/source/Ox.UI/js/List/Ox.TextList.js b/source/Ox.UI/js/List/Ox.TextList.js index 86f3498c..2157660a 100644 --- a/source/Ox.UI/js/List/Ox.TextList.js +++ b/source/Ox.UI/js/List/Ox.TextList.js @@ -899,6 +899,10 @@ Ox.TextList = function(options, self) { return that; }; + that.hasFocus = function() { + return that.$body.hasFocus(); + }; + that.loseFocus = function() { that.$body.loseFocus(); return that; @@ -925,7 +929,6 @@ Ox.TextList = function(options, self) { } that.size = function() { - Ox.Log('List', 'SIZE FUNCTION CALLED') setWidth(); that.$body.size(); } diff --git a/source/Ox.UI/js/List/Ox.TreeList.js b/source/Ox.UI/js/List/Ox.TreeList.js index b6e0c5f7..5ce11861 100644 --- a/source/Ox.UI/js/List/Ox.TreeList.js +++ b/source/Ox.UI/js/List/Ox.TreeList.js @@ -259,6 +259,20 @@ Ox.TreeList = function(options, self) { } }; + that.gainFocus = function() { + self.$list.gainFocus(); + return that; + }; + + that.hasFocus = function() { + return self.$list.hasFocus(); + }; + + that.loseFocus = function() { + self.$list.loseFocus(); + return that; + }; + return that; };