nsIAccessibleTreeCache 编辑

Obsolete since Gecko 1.9.2 (Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0)
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.

A private interface to operate with tree accessible.

accessible/public/nsIAccessibleTreeCache.idlNot scriptable Please add a summary to this article.   Last changed in Gecko 1.9.1 (Firefox 3.5 / Thunderbird 3.0 / SeaMonkey 2.0)

Inherits from: nsISupports

Method overview

nsIAccessible getCachedTreeitemAccessible(in long aRow, in nsITreeColumn aColumn);
void invalidateCache(in long aRow, in long aCount);
void treeViewChanged();
void treeViewInvalidated(in long aStartRow, in long aEndRow, in long aStartCol, in long aEndCol);

Methods

getCachedTreeitemAccessible()

Returns the tree item from the cache for the cell in the specified row and column; the nsIAccessible is created if it doesn't already exist in the cache.

nsIAccessible getCachedTreeitemAccessible(
  in long aRow,
  in nsITreeColumn aColumn
);
Parameters
aRow
The row index.
aColumn
The column object. If is is null then the primary column is used. It makes sense for ATK only.
Return value

The nsIAccessible corresponding to the specified tree cell.

invalidateCache()

Invalidates the number of cached treeitem accessibles.

void invalidateCache(
  in long aRow,
  in long aCount
);
Parameters
aRow
Row index the invalidation starts from.
aCount
The number of treeitem accessibles to invalidate, the number sign specifies whether rows have been inserted (plus) or removed (minus)

treeViewChanged()

Invalidates children created for the previous tree view.

void treeViewChanged();
Parameters

None.

treeViewInvalidated()

Fires name change events for invalidated area of tree.

void treeViewInvalidated(
  in long aStartRow,
  in long aEndRow,
  in long aStartCol,
  in long aEndCol
);
Parameters
aStartRow
Row index invalidation starts from.
aEndRow
Row index invalidation ends, -1 means the last row index.
aStartCol
Column index invalidation starts from.
aEndCol
Column index invalidation ends, -1 means the last column index.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:50 次

字数:4318

最后编辑:7 年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文