Bug 965210 - Port changes to jsTreeView and the chatLogTree from bug 407956 to Instantbird. r=florian
This commit is contained in:
Родитель
89c21ba01a
Коммит
bbd9318993
|
@ -13,8 +13,7 @@
|
|||
* attribute boolean open - whether or not this item's children are exposed
|
||||
* string getText(aColName) - return the text to display for this row in the
|
||||
* specified column
|
||||
* void getProperties(aProps) - set the css-selectors on aProps when this is
|
||||
* called
|
||||
* string getProperties() - return the css-selectors
|
||||
* attribute array children - return an array of child-objects also meeting this
|
||||
* interface
|
||||
*/
|
||||
|
@ -34,8 +33,8 @@ PROTO_TREE_VIEW.prototype = {
|
|||
* CSS files will cue off of these. Note that we reach into the rowMap's
|
||||
* items so that custom data-displays can define their own properties
|
||||
*/
|
||||
getCellProperties: function jstv_getCellProperties(aRow, aCol, aProps) {
|
||||
this._rowMap[aRow].getProperties(aProps, aCol);
|
||||
getCellProperties: function jstv_getCellProperties(aRow, aCol) {
|
||||
return this._rowMap[aRow].getProperties(aCol);
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -64,8 +63,8 @@ PROTO_TREE_VIEW.prototype = {
|
|||
* This is duplicative for our normal jstv views, but custom data-displays may
|
||||
* want to do something special here
|
||||
*/
|
||||
getRowProperties: function jstv_getRowProperties(aIndex, aProps) {
|
||||
this._rowMap[aIndex].getProperties(aProps);
|
||||
getRowProperties: function jstv_getRowProperties(aRow) {
|
||||
return this._rowMap[aRow].getProperties();
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -199,7 +198,7 @@ PROTO_TREE_VIEW.prototype = {
|
|||
setCellText: function jstv_setCellText(aRow, aCol, aValue) {},
|
||||
setCellValue: function jstv_setCellValue(aRow, aCol, aValue) {},
|
||||
getCellValue: function jstv_getCellValue(aRow, aCol) {},
|
||||
getColumnProperties: function jstv_getColumnProperties(aCol, aProps) {},
|
||||
getColumnProperties: function jstv_getColumnProperties(aCol) { return ""; },
|
||||
getImageSrc: function jstv_getImageSrc(aRow, aCol) {},
|
||||
getProgressMode: function jstv_getProgressMode(aRow, aCol) {},
|
||||
cycleCell: function jstv_cycleCell(aRow, aCol) {},
|
||||
|
|
|
@ -194,7 +194,7 @@ chatLogTreeGroupItem.prototype = {
|
|||
get level() 0,
|
||||
get _parent() null,
|
||||
get children() this._children,
|
||||
getProperties: function(aProps) {}
|
||||
getProperties: function() ""
|
||||
};
|
||||
|
||||
function chatLogTreeLogItem(aLog, aText, aLevel) {
|
||||
|
@ -208,7 +208,7 @@ chatLogTreeLogItem.prototype = {
|
|||
get open() false,
|
||||
get level() this._level,
|
||||
get children() [],
|
||||
getProperties: function(aProps) {}
|
||||
getProperties: function() ""
|
||||
};
|
||||
|
||||
function chatLogTreeView(aTree, aLogs) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче