nsINavHistoryResult instances notify Places views of changes in the results. Removed in Gecko 2.0 and replaced with the nsINavHistoryResultObserver interface, which is similar but allows multiple clients to observe the result at once.
nsISupports
Last changed in Gecko 1.9.2 (Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0) Obsolete since Gecko 2.0 (Firefox 4 / Thunderbird 3.3 / SeaMonkey 2.1)
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
Note: Most methods in this interface were renamed in Gecko 1.9.2, and others have slightly different parameter lists.
void containerClosed(in nsINavHistoryContainerResultNode aContainerNode); |
void containerOpened(in nsINavHistoryContainerResultNode aContainerNode); |
void invalidateContainer(in nsINavHistoryContainerResultNode aContainerNode); |
void nodeAnnotationChanged(in nsINavHistoryResultNode aNode, in AUTF8String aAnnoName); |
void nodeDateAddedChanged(in nsINavHistoryResultNode aNode, in PRTime aNewValue); |
void nodeLastAddedChanged(in nsINavHistoryResultNode aNode, in PRTime aNewValue); |
void nodeHistoryDetailsChanged(in nsINavHistoryResultNode aNode, in PRTime aNewVisitDate, in unsigned long aNewAccessCount); |
void nodeIconChanged(in nsINavHistoryResultNode aNode); |
void nodeKeywordChanged(in nsINavHistoryResultNode aNode, in AUTF8String aNewKeyword); |
void nodeMoved(in nsINavHistoryResultNode aNode, in nsINavHistoryContainerResultNode aOldParent, in unsigned long aOldIndex, in nsINavHistoryContainerResultNode aNewParent, in unsigned long aNewIndex); |
void nodeTitleChanged(in nsINavHistoryResultNode aNode, in AUTF8String aNewTitle); |
void nodeRemoved(in nsINavHistoryContainerResultNode aParent, in nsINavHistoryResultNode aNode, in unsigned long aOldIndex); |
void nodeTagsChanged(in nsINavHistoryResultNode aNode); |
void nodeURIChanged(in nsINavHistoryResultNode aNode, in AUTF8String aNewURI); |
void nodeReplaced(in nsINavHistoryContainerResultNode parent, in nsINavHistoryResultNode oldItem, in nsINavHistoryResultNode newItem, in unsigned long index); |
void nodeInserted(in nsINavHistoryContainerResultNode aParent, in nsINavHistoryResultNode aNode , in unsigned long aNewIndex); |
void sortingChanged(in unsigned short sortingMode); |
| Attribute | Type | Description |
result |
nsINavHistoryResult |
The nsINavHistoryResult this viewer monitors. Although this attribute is read-write, you should not alter it directly; instead, use the nsINavHistoryResult.viewer attribute to set the viewer. |
Called when a container node's state changes from closed to opened.
void containerClosed( in nsINavHistoryContainerResultNode aContainerNode );
aContainerNodeCalled when a container node's state changes from closed to opened.
void containerOpened( in nsINavHistoryContainerResultNode aContainerNode );
aContainerNodeCalled when something has happened that requires that the contents of a container be rebuilt.
void invalidateContainer( in nsINavHistoryContainerResultNode aContainerNode );
aContainerNodeCalled right after the annotation on a node has changed. This is called when the annotation is changed, set, or unset.
void nodeAnnotationChanged(
in nsINavHistoryResultNode aNode,
in AUTF8String aAnnoName
);
aNodeaAnnoNameCalled right after the date added property of a node has changed.
void nodeKeywordChanged(
in nsINavHistoryResultNode aNode,
in PRTime aNewValue
);
aNodeaNewValueCalled right after the last modified date property of a node has changed.
void nodeKeywordChanged(
in nsINavHistoryResultNode aNode,
in PRTime aNewValue
);
aNodeaNewValueCalled right after a node's last access time or access count has changed.
void nodeHistoryDetailsChanged(
in nsINavHistoryResultNode aNode,
in PRTime aNewVisitDate,
in unsigned long aNewAccessCount
);
aNodeaNewVisitDateaNewAccessCountCalled right after the icon of a node has changed.
void nodeIconChanged(
in nsINavHistoryResultNode aNode
);
aNodeCalled right after the keyword property of a node has changed.
void nodeKeywordChanged(
in nsINavHistoryResultNode aNode,
in AUTF8String aNewKeyword
);
aNodeaNewTitleCalled when a node is moved from aOldParent at aOldIndex to aNewParent at aNewIndex. The item may be a container or a leaf.
void itemMoved( in nsINavHistoryResultNode aNode, in nsINavHistoryContainerResultNode aOldParent, in unsigned long aOldIndex, in nsINavHistoryContainerResultNode aNewParent, in unsigned long aNewIndex );
aNodeaOldParentaOldIndexaNewParentaNewIndexAt the moment, this method is called only when an item is moved within the same container. When an item is moved between containers, a new node is created for the item, and the itemRemoved/itemAdded methods are used.
Called right after the title of a node has changed.
void nodeTitleChanged(
in nsINavHistoryResultNode aNode,
in AUTF8String aNewTitle
);
aNodeaNewTitleCalled right after the URI of a node has changed.
void nodeURIChanged(
in nsINavHistoryResultNode aNode,
in AUTF8String aNewURI
);
aNodeaNewURICalled when a node is removed from a container.
void itemRemoved( in nsINavHistoryContainerResultNode aParent, in nsINavHistoryResultNode aNode, in unsigned long aOldIndex );
parentitemoldIndexThis method is called after the item has been removed from the parent, but before any other action is taken (including zeroing out the item's parent reference).
Called right after a node's tags have changed.
void nodeTagsChanged(
in nsINavHistoryResultNode aNode
);
aNodeCalled when a node is being replaced with another node at the same location.
void nodeReplaced(in nsINavHistoryContainerResultNode aParentNode, in nsINavHistoryResultNode aOldNode, in nsINavHistoryResultNode aNewNode, in unsigned long aIndex );
aParentNodeaOldNodeaNewNodeaOldNode.aIndexCalled when an item is inserted into a container.
void nodeInserted( in nsINavHistoryContainerResultNode aParent, in nsINavHistoryResultNode aNode, in unsigned long aNewIndex );
aParentaNodeaNewIndexThe item previously at the specified index (if any) as well as everything below it, is shifted down by one.
Called when the sorting order is changed to a particular mode. For trees, this would update the column headers to reflect the altered sorting.
void sortingChanged( in unsigned short sortingMode );
sortingModensINavHistoryQueryOptions.SORT_BY_* constants, indicating the softing mode.This method is only called to update the sorting user interface. invalidateAll() is called as well if the sorting changes, in order to cause the contents to update properly.
nsINavHistoryResult, nsITreeView, Displaying Places information using views