Bug 574117 - Allow paging through the application and document results in the overlay

Add a display control that contains page numbers for the result
pages and is shown in the expanded results view. All of the page selection and
switching is handled by the GenericDisplay which exposes a displayControl
actor, which is then displayed by the Sideshow.
This commit is contained in:
Marina Zhurakhinskaya
2009-03-09 16:52:11 -04:00
parent 8b1f732228
commit 5af37f140e
4 changed files with 137 additions and 46 deletions

View File

@ -166,16 +166,15 @@ AppDisplay.prototype = {
// Sets the list of the displayed items based on the list of DEFAULT_APPLICATIONS.
_setDefaultList : function() {
this._removeAllDisplayItems();
let added = 0;
for (let i = 0; i < DEFAULT_APPLICATIONS.length && added < this._maxItems; i++) {
this._matchedItems = [];
for (let i = 0; i < DEFAULT_APPLICATIONS.length; i++) {
let appId = DEFAULT_APPLICATIONS[i];
let appInfo = this._allItems[appId];
if (appInfo) {
this._addDisplayItem(appId);
added += 1;
this._matchedItems.push(appId);
}
}
this._displayMatchedItems(true);
},
// Compares items associated with the item ids based on the alphabetical order