nsITreeColumns 编辑
The nsITreeColumns
interface represents the tree columns.
layout/xul/base/src/tree/public/nsITreeColumns.idl
Scriptable Please add a summary to this article. Last changed in Gecko 1.9 (Firefox 3)Inherits from: nsISupports
Method overview
nsITreeColumn getColumnAt(in long index); |
nsITreeColumn getColumnFor(in nsIDOMElement element); |
nsITreeColumn getFirstColumn(); |
nsITreeColumn getKeyColumn(); |
nsITreeColumn getLastColumn(); |
nsITreeColumn getNamedColumn(in AString id); |
nsITreeColumn getPrimaryColumn(); |
nsITreeColumn getSortedColumn(); |
void invalidateColumns(); |
void restoreNaturalOrder(); |
Attributes
Attribute | Type | Description |
count | long | The number of columns. Read only. |
length | long | An alias for count (for the benefit of scripts which treat this as an array). Read only. |
tree |
| The tree widget for these columns. Read only. |
Methods
getColumnAt()
Get the column for a given index.
nsITreeColumn getColumnAt( in long index );
Parameters
index
- Index of the column
Return value
A nsITreeColumn
for this index.
getColumnFor()
Get the column for a given element.
nsITreeColumn getColumnFor( in nsIDOMElement element );
Parameters
element
- A DOM element
Return value
A nsITreeColumn
for this element.
getFirstColumn()
Get the first column.
nsITreeColumn getFirstColumn();
Parameters
None.
Return value
The first nsITreeColumn
.
getKeyColumn()
Get the key column.
nsITreeColumn getKeyColumn();
Parameters
None.
Return value
The key nsITreeColumn
.
getLastColumn()
Get the last column.
nsITreeColumn getLastColumn();
Parameters
None.
Return value
The last nsITreeColumn
.
getNamedColumn()
Get a column for a given name.
nsITreeColumn getNamedColumn( in AString id );
Parameters
id
- A column id
Return value
The nsITreeColumn
for this id.
getPrimaryColumn()
Get the primary column.
nsITreeColumn getPrimaryColumn();
Parameters
None.
Return value
The primary nsITreeColumn
.
getSortedColumn()
nsITreeColumn getSortedColumn();
Parameters
None.
Return value
invalidateColumns()
This method is called whenever a treecol
is added or removed and the column cache needs to be rebuilt.
void invalidateColumns();
Parameters
None.
restoreNaturalOrder()
Restore the original order of the columns before the user moved them.
void restoreNaturalOrder();
Parameters
None.
See also
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论