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

翻訳前ページへ


Interface XTreeControl
Language

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

API

SDK

Tips ‘n’ Tricks

Miscellaneous


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

interface XTreeControl
Base Interfaces
XTreeControl
┗ ::com::sun::星/主役にする::見解(をとる)::XMultiSelectionSupplier
   ┗ ::com::sun::星/主役にする::見解(をとる)::XSelectionSupplier

::com::sun::星/主役にする::見解(をとる)::XMultiSelectionSupplier
Description
This interfaces 供給するs 接近 to the 選択 of tree nodes for this 支配(する)/統制する.

valid 選択 values for this interface are XTreeNode or sequence<XTreeNode>.

XSelectionSupplier::getSelection() returns an emtpy any for no 選択, an any with XTreeNode for a 選び出す/独身 選択 and a sequence<XTreeNode> for a multiselection.
Description
An interface to a 支配(する)/統制する that 陳列する,発揮するs a 始める,決める of hierarchical data as an 輪郭(を描く).
See also
TreeControl

Methods' 要約
isNodeExpanded Returns true if Node is 現在/一般に 拡大するd.  
isNodeCollapsed Returns true if Node is 現在/一般に 崩壊(する)d.  
makeNodeVisible 確実にするs that Node is 現在/一般に 明白な.  
isNodeVisible Returns true if Node is 現在/一般に 明白な.  
expandNode 確実にするs that Node is 拡大するd and 明白な.  
collapseNode 確実にするs that Node is 崩壊(する)d.  
addTreeExpansionListener 追加するs a listener for ::TreeExpansion events.  
removeTreeExpansionListener 除去するs a listener for ::TreeExpansion events.  
getNodeForLocation Returns the node at the 明示するd 場所.  
getClosestNodeForLocation Returns the node that is closest to x,y.  
getNodeRect returns the rectangle 占領するd by the visual 代表 of the given node  
isEditing Returns true if one of tree's nodes is 存在 現在/一般に edited.  
stopEditing Ends the 現在の editing 開会/開廷/会期.  
cancelEditing 取り消すs the 現在の editing 開会/開廷/会期.  
startEditingAtNode Selects Node and 始めるs editing.  
addTreeEditListener 追加するs a XTreeEditListener.  
removeTreeEditListener 除去するs a XTreeEditListener.  
せいにするs' 要約
DefaultExpandedGraphicURL If the given URL points to a loadable graphic, the graphic is (判決などを)下すd before 拡大するd 非,不,無 leaf nodes.  
DefaultCollapsedGraphicURL If the given URL points to a loadable graphic, the graphic is (判決などを)下すd before 崩壊(する)d 非,不,無 leaf nodes.  
Methods' 詳細(に述べる)s
isNodeExpanded
boolean
isNodeExpanded( [in] XTreeNode  Node )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException );

Description
Returns true if Node is 現在/一般に 拡大するd.
Parameter Node
the XTreeNode 明示するing the node to check.
Returns
誤った if Node or at least one of its parent nodes are 崩壊(する)d, true if Node and all of its parent nodes are 拡大するd.
Throws
::com::sun::星/主役にする::lang::IllegalArgumentException if Node is not a valid node of the corresponding XTreeDataModel.
isNodeCollapsed
boolean
isNodeCollapsed( [in] XTreeNode  Node )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException );

Description
Returns true if Node is 現在/一般に 崩壊(する)d.
Parameter Node
the XTreeNode 明示するing the node to check
Returns
true if Node or at least one of its parent nodes are 崩壊(する)d, 誤った if Node and all of its parent nodes are 拡大するd
Throws
::com::sun::星/主役にする::lang::IllegalArgumentException if Node is not a valid node of the corresponding XTreeDataModel.
makeNodeVisible
無効の
makeNodeVisible( [in] XTreeNode  Node )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException,
ExpandVetoException );

Description
確実にするs that Node is 現在/一般に 明白な.

This 含むs 拡大するing all parent nodes and scroll the 支配(する)/統制する so this node is 明白な in the 支配(する)/統制するs 陳列する,発揮する area.

Parameter Node
the XTreeNode 明示するing the node to make 明白な.
Throws
::com::sun::星/主役にする::lang::IllegalArgumentException if Node is not a valid node of the corresponding XTreeDataModel.
Throws
ExpandVetoException if Nodecan't be made 明白な since at least one of the parent nodes are 崩壊(する)d and 拡大するing failed because at least one of the 登録(する)d XTreeExpansionListener raised a ExpandVetoException.
isNodeVisible
boolean
isNodeVisible( [in] XTreeNode  Node )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException );

Description
Returns true if Node is 現在/一般に 明白な.

明白な means it is either the root or all of its parents are 拡大するd.

Returns
true if Node is 明白な, さもなければ 誤った
Throws
::com::sun::星/主役にする::lang::IllegalArgumentException if Node is not a valid node of the corresponding XTreeDataModel.
expandNode
無効の
expandNode( [in] XTreeNode  Node )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException,
ExpandVetoException );

Description
確実にするs that Node is 拡大するd and 明白な.

If Node is a leaf node, this will have no 影響.

Parameter Node
the XTreeNode identifying a node.
Throws
::com::sun::星/主役にする::lang::IllegalArgumentException if Node is not a valid node of the corresponding XTreeDataModel.
Throws
ExpandVetoException if 拡大するing Node failed because at least one of the 登録(する)d XTreeExpansionListener raised a ExpandVetoException.
collapseNode
無効の
collapseNode( [in] XTreeNode  Node )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException,
ExpandVetoException );

Description
確実にするs that Node is 崩壊(する)d.
Parameter Node
the XTreeNode identifying a node
Throws
::com::sun::星/主役にする::lang::IllegalArgumentException if Node is not a valid node of the corresponding XTreeDataModel.
Throws
ExpandVetoException if 崩壊(する)ing Node failed because at least one of the 登録(する)d XTreeExpansionListener raised a ExpandVetoException.
addTreeExpansionListener
無効の
addTreeExpansionListener( [in] XTreeExpansionListener  Listener );

Description
追加するs a listener for ::TreeExpansion events.
Parameter Listener
a XTreeExpansionListener that will be 通知するd when a tree node is 拡大するd or 崩壊(する)d.
removeTreeExpansionListener
無効の
removeTreeExpansionListener( [in] XTreeExpansionListener  Listener );

Description
除去するs a listener for ::TreeExpansion events.
Parameter Listener
the XTreeExpansionListener to 除去する.
getNodeForLocation
XTreeNode
getNodeForLocation( [in] long  x,
[in] long  y );

Description
Returns the node at the 明示するd 場所.
Parameter x
an integer giving the number of pixels horizontally from the left 辛勝する/優位 of the 支配(する)/統制するs 陳列する,発揮する area
Parameter y
an integer giving the number of pixels vertically from the 最高の,を越す 辛勝する/優位 of the 支配(する)/統制するs 陳列する,発揮する area
Returns
the XTreeNode for the node at that 場所, or 0 if there is no node at the given position
getClosestNodeForLocation
XTreeNode
getClosestNodeForLocation( [in] long  x,
[in] long  y );

Description
Returns the node that is closest to x,y.

If no nodes are 現在/一般に viewable, or there is no model, returns null, さもなければ it always returns a valid node. To 実験(する) if the node is 正確に/まさに at x, y, use getNodeForLocation().

Parameter x
an integer giving the number of pixels horizontally from the left 辛勝する/優位 of the 支配(する)/統制するs 陳列する,発揮する area @para y an integer giving the number of pixels vertically from the 最高の,を越す 辛勝する/優位 of the 支配(する)/統制するs 陳列する,発揮する area
Returns
the XTreeNode for the node closest to that 場所, null if nothing is viewable or there is no model
getNodeRect
::com::sun::星/主役にする::awt::Rectangle
getNodeRect( [in] XTreeNode  Node )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException );

Description
returns the rectangle 占領するd by the visual 代表 of the given node
Parameter Node
the node whose geometry should be 得るd
Throws
::com::sun::星/主役にする::lang::IllegalArgumentException if the given node is NULL, or does not belong to the tree's data model
isEditing
boolean
isEditing();

Description
Returns true if one of tree's nodes is 存在 現在/一般に edited.

The node that is 存在 edited can be 得るd using XSelectionSupplier::getSelection().

Returns
true if the 使用者 is 現在/一般に editing a node
stopEditing
boolean
stopEditing();

Description
Ends the 現在の editing 開会/開廷/会期.

All 登録(する)d XTreeEditListener are 通知するd if an editing 開会/開廷/会期 was in 進歩

Has no 影響 if the tree isn't 存在 edited.

Returns
true if editing was in 進歩 and is now stopped, 誤った if editing was not in 進歩
cancelEditing
無効の
cancelEditing();

Description
取り消すs the 現在の editing 開会/開廷/会期.

Has no 影響 if the tree isn't 存在 edited.

startEditingAtNode
無効の
startEditingAtNode( [in] XTreeNode  Node )
raises( ::com::sun::星/主役にする::lang::IllegalArgumentException );

Description
Selects Node and 始めるs editing.

If TreeControlModel::Editable is 誤った or if there are no 登録(する)d XTreeEditListener, this call has no 影響.

Calling this method also 確実にするs that Node will become 明白な.

Parameter Node
the XTreeNode identifying a node.
Throws
::com::sun::星/主役にする::lang::IllegalArgumentException if Node is not a valid node of the corresponding XTreeDataModel.
addTreeEditListener
無効の
addTreeEditListener( [in] XTreeEditListener  Listener );

Description
追加するs a XTreeEditListener.
Parameter xListener
a XTreeEditListener that will be 通知するd before and after a tree node is edited.
removeTreeEditListener
無効の
removeTreeEditListener( [in] XTreeEditListener  Listener );

Description
除去するs a XTreeEditListener.
Parameter xListener
the XTreeEditListener to 除去する
せいにするs' 詳細(に述べる)s
DefaultExpandedGraphicURL
string DefaultExpandedGraphicURL;
Description
If the given URL points to a loadable graphic, the graphic is (判決などを)下すd before 拡大するd 非,不,無 leaf nodes.

This can be overriden for individual nodes by XTreeNode::getExpandedGraphicURL()

DefaultCollapsedGraphicURL
string DefaultCollapsedGraphicURL;
Description
If the given URL points to a loadable graphic, the graphic is (判決などを)下すd before 崩壊(する)d 非,不,無 leaf nodes.

This can be overriden for individual nodes by XTreeNode::getCollapsedGraphicURL()

最高の,を越す 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.