|
From: Thyamad c. <th...@us...> - 2005-12-22 03:39:46
|
Update of /cvsroot/thyapi/thyapi/thywidgets In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31440/thywidgets Modified Files: thylistbox.js Log Message: Commiting file additions and modification from SVN revision 2486 to 2487... Changes made by vinicius on 2005-12-22 05:32:24 +0100 (Thu, 22 Dec 2005) corresponding to SVN revision 2487 with message: function added in listbox Index: thylistbox.js =================================================================== RCS file: /cvsroot/thyapi/thyapi/thywidgets/thylistbox.js,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** thylistbox.js 8 Sep 2005 14:59:41 -0000 1.6 --- thylistbox.js 22 Dec 2005 03:39:38 -0000 1.7 *************** *** 163,166 **** --- 163,186 ---- /** + * Method: getSelectedValues + * + * Returns an array with the names (captions) of the selected rows + * + */ + p.getSelectedNames = function() + { + var selRows = this.getSelectedRows(); + var i,nRows = selRows.length(); + var selectedNames = []; + + for (i=0; i<nRows; i++) + { + selectedNames[i] = selRows.i(i).i(1); + } + + return selectedNames; + } + + /** * Method: getSelectedIndexes * |