nsISupports
Last changed in Gecko 11.0 (Firefox 11.0 / Thunderbird 11.0 / SeaMonkey 2.8)nsINavHistoryResultViewer
interface, which only allowed one client at a time.void batching(in boolean aToggleMode); |
void containerClosed(in nsINavHistoryContainerResultNode aContainerNode); Deprecated since Gecko 2.0 Obsolete since Gecko 11.0 |
void containerOpened(in nsINavHistoryContainerResultNode aContainerNode); Deprecated since Gecko 2.0 Obsolete since Gecko 11.0 |
void containerStateChanged(in nsINavHistoryContainerResultNode aContainerNode, in unsigned long aOldState, in unsigned long aNewState); |
void invalidateContainer(in nsINavHistoryContainerResultNode aContainerNode); |
void nodeAnnotationChanged(in nsINavHistoryResultNode aNode, in AUTF8String aAnnoName); |
void nodeDateAddedChanged(in nsINavHistoryResultNode aNode, in PRTime aNewValue); |
void nodeHistoryDetailsChanged(in nsINavHistoryResultNode aNode, in PRTime aNewVisitDate, in unsigned long aNewAccessCount); |
void nodeIconChanged(in nsINavHistoryResultNode aNode); |
void nodeInserted(in nsINavHistoryContainerResultNode aParent, in nsINavHistoryResultNode aNode, in unsigned long aNewIndex); |
void nodeKeywordChanged(in nsINavHistoryResultNode aNode, in AUTF8String aNewKeyword); |
void nodeLastModifiedChanged(in nsINavHistoryResultNode aNode, in PRTime aNewValue); |
void nodeMoved(in nsINavHistoryResultNode aNode, in nsINavHistoryContainerResultNode aOldParent, in unsigned long aOldIndex, in nsINavHistoryContainerResultNode aNewParent, in unsigned long aNewIndex); |
void nodeRemoved(in nsINavHistoryContainerResultNode aParent, in nsINavHistoryResultNode aItem, in unsigned long aOldIndex); |
void nodeReplaced(in nsINavHistoryContainerResultNode aParentNode, in nsINavHistoryResultNode aOldNode, in nsINavHistoryResultNode aNewNode, in unsigned long aIndex); |
void nodeTagsChanged(in nsINavHistoryResultNode aNode); |
void nodeTitleChanged(in nsINavHistoryResultNode aNode, in AUTF8String aNewTitle); |
void nodeURIChanged(in nsINavHistoryResultNode aNode, in AUTF8String aNewURI); |
void sortingChanged(in unsigned short sortingMode); |
Attribute | Type | Description |
result | nsINavHistoryResult | The nsINavHistoryResult this observer monitors. Although this attribute is read-write, you should not alter it directly; instead, call nsINavHistoryResult.addObserver() to add an observer to a result. |
Lets the observer know when a batch operation in Places is about to start or end. The observer can then pause updates or events until the batch is completed, so that it won't handle the large number of updates that are about to be notified. This is especially useful when updating user interfaces, to avoid flicker or continuous selection changes, which may result in performance degradation (for example, if updating a view for each update).
void batching( in boolean aToggleMode );
aToggleMode
true
to start batch mode or false
to finish the batch.Called when a container node's state changes from opened to closed.
containerStateChanged()
method instead.void containerClosed( in nsINavHistoryContainerResultNode aContainerNode );
aContainerNode
Called when a container node's state changes from closed to opened.
containerStateChanged()
method instead.void containerOpened( in nsINavHistoryContainerResultNode aContainerNode );
aContainerNode
Called when a container node's state changes.
void containerStateChanged( in nsINavHistoryContainerResultNode aContainerNode, in unsigned long aOldState, in unsigned long aNewState );
aContainerNode
aOldState
nsINavHistoryContainerResultNode.State constants
.aNewState
nsINavHistoryContainerResultNode.State constants
.Called when something has happened that requires that the contents of a container be rebuilt.
void invalidateContainer( in nsINavHistoryContainerResultNode aContainerNode );
aContainerNode
Called 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 );
aNode
aAnnoName
Called right after the dateAdded property property of a node has changed.
void nodeDateAddedChanged( in nsINavHistoryResultNode aNode, in PRTime aNewValue );
aNode
aNewValue
Called right after a node's time property or accessCount property, or both, have changed.
void nodeHistoryDetailsChanged( in nsINavHistoryResultNode aNode, in PRTime aNewVisitDate, in unsigned long aNewAccessCount );
aNode
aNewVisitDate
aNewAccessCount
Called right after a node's icon property has changed.
void nodeIconChanged( in nsINavHistoryResultNode aNode );
aNode
Called when an item is inserted into a container. The item previously at the specified index (if any) and everything below it is shifted down by one.
void nodeInserted( in nsINavHistoryContainerResultNode aParent, in nsINavHistoryResultNode aNode, in unsigned long aNewIndex );
aParent
aNode
aNewIndex
Called right after the a node's keyword property has changed.
void nodeKeywordChanged( in nsINavHistoryResultNode aNode, in AUTF8String aNewKeyword );
aNode
aNewKeyword
Called right after a node's dateModified property has changed.
void nodeLastModifiedChanged( in nsINavHistoryResultNode aNode, in PRTime aNewValue );
aNode
aNewValue
Called when a node is moved from aOldParent
at aOldIndex
to aNewParent
at aNewIndex
. The item may be a container or a leaf.
At 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.
void nodeMoved( in nsINavHistoryResultNode aNode, in nsINavHistoryContainerResultNode aOldParent, in unsigned long aOldIndex, in nsINavHistoryContainerResultNode aNewParent, in unsigned long aNewIndex );
aNode
aOldParent
aOldIndex
aNewParent
aNewIndex
Called when a item is removed from a container. The item may be a container or a leaf.
This 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).
void nodeRemoved( in nsINavHistoryContainerResultNode aParent, in nsINavHistoryResultNode aItem, in unsigned long aOldIndex );
aParent
aItem
aOldIndex
Called 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 );
aParentNode
aOldNode
aNewNode
aOldNode
.aIndex
Called right after a node's tags have changed.
void nodeTagsChanged( in nsINavHistoryResultNode aNode );
aNode
Called right after a node's title has changed.
void nodeTitleChanged( in nsINavHistoryResultNode aNode, in AUTF8String aNewTitle );
aNode
aNewTitle
Called right after the URI of a node has changed.
void nodeURIChanged( in nsINavHistoryResultNode aNode, in AUTF8String aNewURI );
aNode
aNewURI
This is called to indicate to the UI that the sort has changed to the given mode. For trees, for example, this would update the column headers to reflect the sorting. For many other types of views, this will not be applicable.
void sortingChanged( in unsigned short sortingMode );
sortingMode
nsINavHistoryQueryOptions.Sorting methods
, indicating the new sorting mode.