nsITreeColumn 编辑

The nsITreeColumn interface represents a tree column.

layout/xul/base/src/tree/public/nsITreeColumns.idlScriptable Please add a summary to this article.   Last changed in Gecko 1.9 (Firefox 3)

Inherits from: nsISupports

Method overview

void getIdConst([shared] out wstring idConst); Native code only!
nsITreeColumn getNext();
nsITreeColumn getPrevious();
void invalidate();

Attributes

AttributeTypeDescription
atomnsIAtomThe atom attribute of nsITreeColumn which returns an nsIAtom for the column, making it fast to do comparisons. Read only. Native code only!
columnsnsITreeColumnsThe nsITreeColumns containing this column. Read only.
cyclerbooleanIf true, then the column is a cycler column. If the cycler attribute is not set, the column cells are regular text cells. Read only.
editablebooleanIf true the nsITreeColumn content is editable. If the editable attribute is not set, the column cells are not editable. Read only.
elementnsIDOMElementThe treecol element. Read only.
idAStringThe id attribute of the nsITreeColumn. Read only.
indexlongThe index of the nsITreeColumn in displayed order. Read only.
primarybooleanIf true the nsITreeColumn is the primary column. If the primary attribute is not set, the column is not the primary column. Read only.
selectablebooleanIf true the nsITreeColumn is able to be selected. If the selectable attribute is not set, the column cells are not selectable. Read only.
typeshortThe type of the column, see constants. Read only.
widthlongThe width of nsITreeColumn. Read only.
xlongThe X position in the tree of the left edge of the nsITreeColumn. Read only.

Constants

ConstantValueDescription
TYPE_TEXT1Text column type.
TYPE_CHECKBOX2Checkbox column type.
TYPE_PROGRESSMETER3Progress meter column type.

Methods

Native code only!

getIdConst

void getIdConst(
  [shared] out wstring idConst
);
Parameters
idConst

getNext()

Get the next column in the nsITreeColumns.

nsITreeColumn getNext();
Parameters

None.

Return value

The next nsITreeColumn in the nsITreeColumns.

getPrevious()

Get the previous column in the nsITreeColumn.

nsITreeColumn getPrevious();
Parameters

None.

Return value

The previous nsITreeColumn in the nsITreeColumns.

invalidate()

void invalidate();
Parameters

None.

See also

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

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

发布评论

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

词条统计

浏览:49 次

字数:7112

最后编辑:7年前

编辑次数:0 次

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