96 <p> |
96 <p> |
97 Constructor |
97 Constructor |
98 </p> |
98 </p> |
99 <dl> |
99 <dl> |
100 |
100 |
101 <dt><i>type_</i></dt> |
101 <dt><i>type_</i> (BookmarkNode.Type)</dt> |
102 <dd> |
102 <dd> |
103 type of the bookmark node (BookmarkNode.Type) |
103 type of the bookmark node |
104 </dd> |
104 </dd> |
105 <dt><i>parent</i></dt> |
105 <dt><i>parent</i> (BookmarkNode)</dt> |
106 <dd> |
106 <dd> |
107 reference to the parent node (BookmarkNode) |
107 reference to the parent node |
108 </dd> |
108 </dd> |
109 </dl> |
109 </dl> |
110 <a NAME="BookmarkNode.add" ID="BookmarkNode.add"></a> |
110 <a NAME="BookmarkNode.add" ID="BookmarkNode.add"></a> |
111 <h4>BookmarkNode.add</h4> |
111 <h4>BookmarkNode.add</h4> |
112 <b>add</b>(<i>child, offset=-1</i>) |
112 <b>add</b>(<i>child, offset=-1</i>) |
114 <p> |
114 <p> |
115 Public method to add/insert a child node. |
115 Public method to add/insert a child node. |
116 </p> |
116 </p> |
117 <dl> |
117 <dl> |
118 |
118 |
119 <dt><i>child</i></dt> |
119 <dt><i>child</i> (BookmarkNode)</dt> |
120 <dd> |
120 <dd> |
121 reference to the node to add (BookmarkNode) |
121 reference to the node to add |
122 </dd> |
122 </dd> |
123 <dt><i>offset</i></dt> |
123 <dt><i>offset</i> (int)</dt> |
124 <dd> |
124 <dd> |
125 position where to insert child (integer, -1 = append) |
125 position where to insert child (-1 = append) |
126 </dd> |
126 </dd> |
127 </dl> |
127 </dl> |
128 <a NAME="BookmarkNode.children" ID="BookmarkNode.children"></a> |
128 <a NAME="BookmarkNode.children" ID="BookmarkNode.children"></a> |
129 <h4>BookmarkNode.children</h4> |
129 <h4>BookmarkNode.children</h4> |
130 <b>children</b>(<i></i>) |
130 <b>children</b>(<i></i>) |
133 Public method to get the list of child nodes. |
133 Public method to get the list of child nodes. |
134 </p> |
134 </p> |
135 <dl> |
135 <dl> |
136 <dt>Return:</dt> |
136 <dt>Return:</dt> |
137 <dd> |
137 <dd> |
138 list of all child nodes (list of BookmarkNode) |
138 list of all child nodes |
|
139 </dd> |
|
140 </dl> |
|
141 <dl> |
|
142 <dt>Return Type:</dt> |
|
143 <dd> |
|
144 list of BookmarkNode |
139 </dd> |
145 </dd> |
140 </dl> |
146 </dl> |
141 <a NAME="BookmarkNode.parent" ID="BookmarkNode.parent"></a> |
147 <a NAME="BookmarkNode.parent" ID="BookmarkNode.parent"></a> |
142 <h4>BookmarkNode.parent</h4> |
148 <h4>BookmarkNode.parent</h4> |
143 <b>parent</b>(<i></i>) |
149 <b>parent</b>(<i></i>) |
146 Public method to get a reference to the parent node. |
152 Public method to get a reference to the parent node. |
147 </p> |
153 </p> |
148 <dl> |
154 <dl> |
149 <dt>Return:</dt> |
155 <dt>Return:</dt> |
150 <dd> |
156 <dd> |
151 reference to the parent node (BookmarkNode) |
157 reference to the parent node |
|
158 </dd> |
|
159 </dl> |
|
160 <dl> |
|
161 <dt>Return Type:</dt> |
|
162 <dd> |
|
163 BookmarkNode |
152 </dd> |
164 </dd> |
153 </dl> |
165 </dl> |
154 <a NAME="BookmarkNode.remove" ID="BookmarkNode.remove"></a> |
166 <a NAME="BookmarkNode.remove" ID="BookmarkNode.remove"></a> |
155 <h4>BookmarkNode.remove</h4> |
167 <h4>BookmarkNode.remove</h4> |
156 <b>remove</b>(<i>child</i>) |
168 <b>remove</b>(<i>child</i>) |
158 <p> |
170 <p> |
159 Public method to remove a child node. |
171 Public method to remove a child node. |
160 </p> |
172 </p> |
161 <dl> |
173 <dl> |
162 |
174 |
163 <dt><i>child</i></dt> |
175 <dt><i>child</i> (BookmarkNode)</dt> |
164 <dd> |
176 <dd> |
165 reference to the child node (BookmarkNode) |
177 reference to the child node |
166 </dd> |
178 </dd> |
167 </dl> |
179 </dl> |
168 <a NAME="BookmarkNode.setType" ID="BookmarkNode.setType"></a> |
180 <a NAME="BookmarkNode.setType" ID="BookmarkNode.setType"></a> |
169 <h4>BookmarkNode.setType</h4> |
181 <h4>BookmarkNode.setType</h4> |
170 <b>setType</b>(<i>type_</i>) |
182 <b>setType</b>(<i>type_</i>) |
172 <p> |
184 <p> |
173 Public method to set the bookmark's type. |
185 Public method to set the bookmark's type. |
174 </p> |
186 </p> |
175 <dl> |
187 <dl> |
176 |
188 |
177 <dt><i>type_</i></dt> |
189 <dt><i>type_</i> (BookmarkNode.Type)</dt> |
178 <dd> |
190 <dd> |
179 type of the bookmark node (BookmarkNode.Type) |
191 type of the bookmark node |
180 </dd> |
192 </dd> |
181 </dl> |
193 </dl> |
182 <a NAME="BookmarkNode.type" ID="BookmarkNode.type"></a> |
194 <a NAME="BookmarkNode.type" ID="BookmarkNode.type"></a> |
183 <h4>BookmarkNode.type</h4> |
195 <h4>BookmarkNode.type</h4> |
184 <b>type</b>(<i></i>) |
196 <b>type</b>(<i></i>) |