import "nsINavHistoryService.idl";
Inherits nsINavHistoryResultViewer.

Public Member Functions | |
| nsINavHistoryResultNode | nodeForTreeIndex (in unsigned long aIndex) |
| unsigned long | treeIndexForNode (in nsINavHistoryResultNode aNode) |
Public Attributes | |
| const unsigned long | INDEX_INVISIBLE = 0xffffffff |
Definition at line 544 of file nsINavHistoryService.idl.
| nsINavHistoryResultNode nsINavHistoryResultTreeViewer::nodeForTreeIndex | ( | in unsigned long | aIndex | ) |
This allows you to get at the real node for a given row index. This is only valid when a tree is attached.
| unsigned long nsINavHistoryResultTreeViewer::treeIndexForNode | ( | in nsINavHistoryResultNode | aNode | ) |
| const unsigned long nsINavHistoryResultTreeViewer::INDEX_INVISIBLE = 0xffffffff |
Reverse of nodeForFlatIndex, returns the row index for a given result node. Returns INDEX_INVISIBLE if the item is not visible (for example, its parent is collapsed). This is only valid when a tree is attached. The the result will always be INDEX_INVISIBLE if not.
Note: This sounds sort of obvious, but it got me: aNode must be a node retrieved from the same result that this viewer is for. If you execute another query and get a node from a _different_ result, this function will always return the index of that node in the tree that is attached to that result.
Definition at line 564 of file nsINavHistoryService.idl.
1.5.8