diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2007-11-26 16:09:20 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2007-11-26 16:09:20 +0000 |
commit | 0b9190482fc93952123202564ea655ba4ab5d2c6 (patch) | |
tree | e98a1255e1c25cbafd4d23018851eb0fdc8d6e1f /offapi/com/sun/star/awt/tree | |
parent | 52b5c28c0fee6a2b208155d64efc724b96f8bce2 (diff) |
INTEGRATION: CWS impress134 (1.2.110); FILE MERGED
2007/11/06 11:32:39 cl 1.2.110.1: #i81648# renamed wrong 'Childs' to 'Children'
Diffstat (limited to 'offapi/com/sun/star/awt/tree')
-rw-r--r-- | offapi/com/sun/star/awt/tree/TreeControl.idl | 12 | ||||
-rw-r--r-- | offapi/com/sun/star/awt/tree/XMutableTreeDataModel.idl | 10 | ||||
-rw-r--r-- | offapi/com/sun/star/awt/tree/XMutableTreeNode.idl | 10 | ||||
-rw-r--r-- | offapi/com/sun/star/awt/tree/XTreeExpansionListener.idl | 6 | ||||
-rw-r--r-- | offapi/com/sun/star/awt/tree/XTreeNode.idl | 8 |
5 files changed, 23 insertions, 23 deletions
diff --git a/offapi/com/sun/star/awt/tree/TreeControl.idl b/offapi/com/sun/star/awt/tree/TreeControl.idl index ca39c7d68cad..2d4ccb0b13ca 100644 --- a/offapi/com/sun/star/awt/tree/TreeControl.idl +++ b/offapi/com/sun/star/awt/tree/TreeControl.idl @@ -4,9 +4,9 @@ * * $RCSfile: TreeControl.idl,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: hr $ $Date: 2007-06-27 12:26:55 $ + * last change: $Author: ihi $ $Date: 2007-11-26 17:07:51 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -50,7 +50,7 @@ module com { module sun { module star { module awt { module tree { <p> <h4>The Data Model</h4> <p>A specific node in a tree is identified by a <type>XTreeNode</type>. - A leaf node is a node without any children and that returns <FALSE/> when calling <member>XTreeNode::hasChildsOnDemand()</member>. + A leaf node is a node without any children and that returns <FALSE/> when calling <member>XTreeNode::hasChildrenOnDemand()</member>. An expanded node is a non-leaf node that will displays its children when all its ancestors are expanded. A collapsed node is one which hides them. A node is visible when all parent nodes are expanded and the node itself is in the display area. @@ -81,15 +81,15 @@ module com { module sun { module star { module awt { module tree { <h4>Adding child nodes on demand</h4> <p>If you want to add child nodes to your tree on demand you can do the following. <ul> - <li>Make sure the parent node returns <TRUE/> for <member>XTreeNode::hasChildsOnDemand()</member> either + <li>Make sure the parent node returns <TRUE/> for <member>XTreeNode::hasChildrenOnDemand()</member> either by implementing <type>XTreeNode</type> yourself or if you use the <type>MutableTreeDataModel</type>, - use <member>XMutableTreeNode::setHasChildsOnDemand()</member>.</li> + use <member>XMutableTreeNode::setHasChildrenOnDemand()</member>.</li> <li>Implement a <type>XTreeExpansionListener</type> and add the instance with the method <member>XTreeControl::addTreeExpansionListener()</member>.</li> </ul> Now you get called when the node will become expanded or collapsed. So on <member>XTreeExpansionListener::treeExpanding()</member> you can - check the <type>TreeExpansionEvent</type> if the parent node with childs on demand is going to + check the <type>TreeExpansionEvent</type> if the parent node with children on demand is going to be expanded and in that case add the missing child nodes. You can also veto the expansion or collapsing of a parent node by using the <type>ExpandVetoException</type>. </p> diff --git a/offapi/com/sun/star/awt/tree/XMutableTreeDataModel.idl b/offapi/com/sun/star/awt/tree/XMutableTreeDataModel.idl index 5f24f9f32c54..3c8afe9b61ca 100644 --- a/offapi/com/sun/star/awt/tree/XMutableTreeDataModel.idl +++ b/offapi/com/sun/star/awt/tree/XMutableTreeDataModel.idl @@ -4,9 +4,9 @@ * * $RCSfile: XMutableTreeDataModel.idl,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: hr $ $Date: 2007-06-27 12:27:39 $ + * last change: $Author: ihi $ $Date: 2007-11-26 17:08:10 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -62,7 +62,7 @@ interface XMutableTreeDataModel : XTreeDataModel should be convertable to a string and is used by the <type>XTreeControl</type> as a textual represenation of the created node. - @param ChildsOnDemand + @param ChildrenOnDemand if <TRUE/> is used as a parameter, the created node will be treated as a non-leaf node by the <type>XTreeControl</type>, even when it has no child nodes. @@ -70,9 +70,9 @@ interface XMutableTreeDataModel : XTreeDataModel a new <type>XMutableTreeNode</type> that can be used for this model. @see XTreeNode::getDisplayValue() - @see XTreeNode::hasChildsOnDemand() + @see XTreeNode::hasChildrenOnDemand() */ - XMutableTreeNode createNode( [in] any DisplayValue, [in] boolean ChildsOnDemand ); + XMutableTreeNode createNode( [in] any DisplayValue, [in] boolean ChildrenOnDemand ); /** changes the root node of this model to <var>RootNode</var>. diff --git a/offapi/com/sun/star/awt/tree/XMutableTreeNode.idl b/offapi/com/sun/star/awt/tree/XMutableTreeNode.idl index 54b8a7384f22..d09bc3d39bae 100644 --- a/offapi/com/sun/star/awt/tree/XMutableTreeNode.idl +++ b/offapi/com/sun/star/awt/tree/XMutableTreeNode.idl @@ -4,9 +4,9 @@ * * $RCSfile: XMutableTreeNode.idl,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: hr $ $Date: 2007-06-27 12:27:50 $ + * last change: $Author: ihi $ $Date: 2007-11-26 17:08:37 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -91,11 +91,11 @@ interface XMutableTreeNode : XTreeNode void removeChildByIndex( [in] long Index ) raises( com::sun::star::lang::IndexOutOfBoundsException ); - /** Changes if the childs of this node are created on demand. + /** Changes if the children of this node are created on demand. - @see XTreeNode::hasChildsOnDemand() + @see XTreeNode::hasChildrenOnDemand() */ - void setHasChildsOnDemand( [in] boolean ChildsOnDemand ); + void setHasChildrenOnDemand( [in] boolean ChildrenOnDemand ); /** sets the display value of this node */ void setDisplayValue( [in] any Value ); diff --git a/offapi/com/sun/star/awt/tree/XTreeExpansionListener.idl b/offapi/com/sun/star/awt/tree/XTreeExpansionListener.idl index 4ecc553ef6ac..36f08c36af51 100644 --- a/offapi/com/sun/star/awt/tree/XTreeExpansionListener.idl +++ b/offapi/com/sun/star/awt/tree/XTreeExpansionListener.idl @@ -4,9 +4,9 @@ * * $RCSfile: XTreeExpansionListener.idl,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: hr $ $Date: 2007-06-27 12:28:50 $ + * last change: $Author: ihi $ $Date: 2007-11-26 17:08:58 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -61,7 +61,7 @@ module com { module sun { module star { module awt { module tree { */ interface XTreeExpansionListener: com::sun::star::lang::XEventListener { - /** Invoked when a node with childs on demand is about to be expanded. + /** Invoked when a node with children on demand is about to be expanded. <p>This event is invoked befor the <method>treeExpanding()</method> event.</p> diff --git a/offapi/com/sun/star/awt/tree/XTreeNode.idl b/offapi/com/sun/star/awt/tree/XTreeNode.idl index 9eedb7eebbfb..d5670d4b5656 100644 --- a/offapi/com/sun/star/awt/tree/XTreeNode.idl +++ b/offapi/com/sun/star/awt/tree/XTreeNode.idl @@ -4,9 +4,9 @@ * * $RCSfile: XTreeNode.idl,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: hr $ $Date: 2007-06-27 12:29:01 $ + * last change: $Author: ihi $ $Date: 2007-11-26 17:09:20 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -77,14 +77,14 @@ interface XTreeNode */ long getIndex( [in] XTreeNode Node); - /** Returns <TRUE/> if the childs of this node are created on demand. + /** Returns <TRUE/> if the children of this node are created on demand. <p>A <type>TreeControl</type> will handle a node that returns <TRUE/> always like a node that has child nodes, even if <member>getChildCount</member> returns 0.</p> @see TreeExpansionListener; */ - boolean hasChildsOnDemand(); + boolean hasChildrenOnDemand(); /** If not empty, the textual representation of this any is used as the text part of this node. */ |