このページはEtoJ逐語翻訳フィルタによって翻訳生成されました。

翻訳前ページへ


Service TreeControl
Language

The 解放する/自由な and Open 生産性 控訴
解放(する)d: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: 星/主役にする :: awt :: tree ::

unpublished service TreeControl
Supported Interface
XTreeControl
Usage 制限s
not published
Description
A 支配(する)/統制する that 陳列する,発揮するs a 始める,決める of hierarchical data as an 輪郭(を描く).

The Data Model

A 明確な/細部 node in a tree is identified by a XTreeNode. A leaf node is a node without any children and that returns 誤った when calling XTreeNode::hasChildrenOnDemand(). An 拡大するd node is a 非,不,無-leaf node that will 陳列する,発揮するs its children when all its ancestors are 拡大するd. A 崩壊(する)d node is one which hides them. A node is 明白な when all parent nodes are 拡大するd and the node itself is in the 陳列する,発揮する area.

The nodes are retrieved from a XTreeDataModel. You can 器具/実施する it yourself or use the MutableTreeDataModel which uses XMutableTreeNode and XMutableTreeDataModel for a simple and mutable data model.

The data model must be 始める,決める at the TreeControlModel::TreeDataModel 所有物/資産/財産.

選択

If you are 利益/興味d in knowing when the 選択 changes 器具/実施する a ::com::sun::星/主役にする::見解(をとる)::XSelectionChangeListener and 追加する the instance with the method ::com::sun::星/主役にする::見解(をとる)::XSelectionSupplier::addSelectionChangeListener(). You than will be 通知するd for any 選択 change.

If you are 利益/興味d in (悪事,秘密などを)発見するing either 二塁打-click events or when a 使用者 clicks on a node, 関わりなく whether or not it was selected, you can get the ::com::sun::星/主役にする::awt::XWindow and 追加する yourself as a ::com::sun::星/主役にする::awt::XMouseClickHandler. You can use the method XTreeControl::getNodeForLocation() to retrieve the node that was under the mouse at the time the event was 解雇する/砲火/射撃d.

追加するing child nodes on 需要・要求する

If you want to 追加する child nodes to your tree on 需要・要求する you can do the に引き続いて.

Now you get called when the node will become 拡大するd or 崩壊(する)d. So on XTreeExpansionListener::treeExpanding() you can check the TreeExpansionEvent if the parent node with children on 需要・要求する is going to be 拡大するd and in that 事例/患者 追加する the 行方不明の child nodes. You can also 拒否権 the 拡大 or 崩壊(する)ing of a parent node by using the ExpandVetoException.




 最高の,を越す of Page

Apache Software Foundation

Copyright & License | Privacy | 接触する Us | 寄付する | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are 登録(する)d trademarks of The Apache ソフトウェア 創立/基礎. The Apache feather logo is a trademark of The Apache ソフトウェア 創立/基礎. Other 指名するs appearing on the 場所/位置 may be trademarks of their 各々の owners.