Documentation/Source/eric5.Helpviewer.Bookmarks.BookmarkNode.html

changeset 58
37f0444c3479
parent 21
b88a0e6268bd
child 409
0ea528e80202
equal deleted inserted replaced
57:81326a94fdca 58:37f0444c3479
20 </style> 20 </style>
21 </head> 21 </head>
22 <body><a NAME="top" ID="top"></a> 22 <body><a NAME="top" ID="top"></a>
23 <h1>eric5.Helpviewer.Bookmarks.BookmarkNode</h1> 23 <h1>eric5.Helpviewer.Bookmarks.BookmarkNode</h1>
24 <p> 24 <p>
25 &#77;&#111;&#100;&#117;&#108;&#101; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#98;&#111;&#111;&#107;&#109;&#97;&#114;&#107; &#110;&#111;&#100;&#101;. 25 Module implementing the bookmark node.
26 </p> 26 </p>
27 <h3>Global Attributes</h3> 27 <h3>Global Attributes</h3>
28 <table> 28 <table>
29 <tr><td>None</td></tr> 29 <tr><td>None</td></tr>
30 </table> 30 </table>
31 <h3>Classes</h3> 31 <h3>Classes</h3>
32 <table> 32 <table>
33 <tr> 33 <tr>
34 <td><a href="#BookmarkNode">BookmarkNode</a></td> 34 <td><a href="#BookmarkNode">BookmarkNode</a></td>
35 <td>&#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#98;&#111;&#111;&#107;&#109;&#97;&#114;&#107; &#110;&#111;&#100;&#101; &#116;y&#112;&#101;.</td> 35 <td>Class implementing the bookmark node type.</td>
36 </tr> 36 </tr>
37 </table> 37 </table>
38 <h3>Functions</h3> 38 <h3>Functions</h3>
39 <table> 39 <table>
40 <tr><td>None</td></tr> 40 <tr><td>None</td></tr>
41 </table> 41 </table>
42 <hr /><hr /> 42 <hr /><hr />
43 <a NAME="BookmarkNode" ID="BookmarkNode"></a> 43 <a NAME="BookmarkNode" ID="BookmarkNode"></a>
44 <h2>BookmarkNode</h2> 44 <h2>BookmarkNode</h2>
45 <p> 45 <p>
46 &#67;&#108;&#97;&#115;&#115; &#105;&#109;&#112;&#108;&#101;&#109;&#101;&#110;&#116;&#105;&#110;&#103; &#116;&#104;&#101; &#98;&#111;&#111;&#107;&#109;&#97;&#114;&#107; &#110;&#111;&#100;&#101; &#116;y&#112;&#101;. 46 Class implementing the bookmark node type.
47 </p> 47 </p>
48 <h3>Derived from</h3> 48 <h3>Derived from</h3>
49 object 49 object
50 <h3>Class Attributes</h3> 50 <h3>Class Attributes</h3>
51 <table> 51 <table>
53 </table> 53 </table>
54 <h3>Methods</h3> 54 <h3>Methods</h3>
55 <table> 55 <table>
56 <tr> 56 <tr>
57 <td><a href="#BookmarkNode.__init__">BookmarkNode</a></td> 57 <td><a href="#BookmarkNode.__init__">BookmarkNode</a></td>
58 <td>&#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114;</td> 58 <td>Constructor</td>
59 </tr><tr> 59 </tr><tr>
60 <td><a href="#BookmarkNode.add">add</a></td> 60 <td><a href="#BookmarkNode.add">add</a></td>
61 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#100;/&#105;&#110;&#115;&#101;&#114;&#116; &#97; &#99;&#104;&#105;&#108;&#100; &#110;&#111;&#100;&#101;.</td> 61 <td>Public method to add/insert a child node.</td>
62 </tr><tr> 62 </tr><tr>
63 <td><a href="#BookmarkNode.children">children</a></td> 63 <td><a href="#BookmarkNode.children">children</a></td>
64 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#108;&#105;&#115;&#116; &#111;&#102; &#99;&#104;&#105;&#108;&#100; &#110;&#111;&#100;&#101;&#115;.</td> 64 <td>Public method to get the list of child nodes.</td>
65 </tr><tr> 65 </tr><tr>
66 <td><a href="#BookmarkNode.parent">parent</a></td> 66 <td><a href="#BookmarkNode.parent">parent</a></td>
67 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#97; &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; &#110;&#111;&#100;&#101;.</td> 67 <td>Public method to get a reference to the parent node.</td>
68 </tr><tr> 68 </tr><tr>
69 <td><a href="#BookmarkNode.remove">remove</a></td> 69 <td><a href="#BookmarkNode.remove">remove</a></td>
70 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; &#97; &#99;&#104;&#105;&#108;&#100; &#110;&#111;&#100;&#101;.</td> 70 <td>Public method to remove a child node.</td>
71 </tr><tr> 71 </tr><tr>
72 <td><a href="#BookmarkNode.setType">setType</a></td> 72 <td><a href="#BookmarkNode.setType">setType</a></td>
73 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#98;&#111;&#111;&#107;&#109;&#97;&#114;&#107;'&#115; &#116;y&#112;&#101;.</td> 73 <td>Public method to set the bookmark's type.</td>
74 </tr><tr> 74 </tr><tr>
75 <td><a href="#BookmarkNode.type">type</a></td> 75 <td><a href="#BookmarkNode.type">type</a></td>
76 <td>&#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#98;&#111;&#111;&#107;&#109;&#97;&#114;&#107;'&#115; &#116;y&#112;&#101;.</td> 76 <td>Public method to get the bookmark's type.</td>
77 </tr> 77 </tr>
78 </table> 78 </table>
79 <a NAME="BookmarkNode.__init__" ID="BookmarkNode.__init__"></a> 79 <a NAME="BookmarkNode.__init__" ID="BookmarkNode.__init__"></a>
80 <h4>BookmarkNode (Constructor)</h4> 80 <h4>BookmarkNode (Constructor)</h4>
81 <b>BookmarkNode</b>(<i>type_ = Root, parent = None</i>) 81 <b>BookmarkNode</b>(<i>type_ = Root, parent = None</i>)
82 <p> 82 <p>
83 &#67;&#111;&#110;&#115;&#116;&#114;&#117;&#99;&#116;&#111;&#114; 83 Constructor
84 </p><dl> 84 </p><dl>
85 <dt><i>type_</i></dt> 85 <dt><i>type_</i></dt>
86 <dd> 86 <dd>
87 &#116;y&#112;&#101; &#111;&#102; &#116;&#104;&#101; &#98;&#111;&#111;&#107;&#109;&#97;&#114;&#107; &#110;&#111;&#100;&#101; (&#66;&#111;&#111;&#107;&#109;&#97;&#114;&#107;&#78;&#111;&#100;&#101;.&#84;y&#112;&#101;) 87 type of the bookmark node (BookmarkNode.Type)
88 </dd><dt><i>parent</i></dt> 88 </dd><dt><i>parent</i></dt>
89 <dd> 89 <dd>
90 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; &#110;&#111;&#100;&#101; (&#66;&#111;&#111;&#107;&#109;&#97;&#114;&#107;&#78;&#111;&#100;&#101;) 90 reference to the parent node (BookmarkNode)
91 </dd> 91 </dd>
92 </dl><a NAME="BookmarkNode.add" ID="BookmarkNode.add"></a> 92 </dl><a NAME="BookmarkNode.add" ID="BookmarkNode.add"></a>
93 <h4>BookmarkNode.add</h4> 93 <h4>BookmarkNode.add</h4>
94 <b>add</b>(<i>child, offset = -1</i>) 94 <b>add</b>(<i>child, offset = -1</i>)
95 <p> 95 <p>
96 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#97;&#100;&#100;/&#105;&#110;&#115;&#101;&#114;&#116; &#97; &#99;&#104;&#105;&#108;&#100; &#110;&#111;&#100;&#101;. 96 Public method to add/insert a child node.
97 </p><dl> 97 </p><dl>
98 <dt><i>child</i></dt> 98 <dt><i>child</i></dt>
99 <dd> 99 <dd>
100 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#110;&#111;&#100;&#101; &#116;&#111; &#97;&#100;&#100; (&#66;&#111;&#111;&#107;&#109;&#97;&#114;&#107;&#78;&#111;&#100;&#101;) 100 reference to the node to add (BookmarkNode)
101 </dd><dt><i>offset</i></dt> 101 </dd><dt><i>offset</i></dt>
102 <dd> 102 <dd>
103 &#112;&#111;&#115;&#105;&#116;&#105;&#111;&#110; w&#104;&#101;&#114;&#101; &#116;&#111; &#105;&#110;&#115;&#101;&#114;&#116; &#99;&#104;&#105;&#108;&#100; (&#105;&#110;&#116;&#101;&#103;&#101;&#114;, -&#49; &#61; &#97;&#112;&#112;&#101;&#110;&#100;) 103 position where to insert child (integer, -1 = append)
104 </dd> 104 </dd>
105 </dl><a NAME="BookmarkNode.children" ID="BookmarkNode.children"></a> 105 </dl><a NAME="BookmarkNode.children" ID="BookmarkNode.children"></a>
106 <h4>BookmarkNode.children</h4> 106 <h4>BookmarkNode.children</h4>
107 <b>children</b>(<i></i>) 107 <b>children</b>(<i></i>)
108 <p> 108 <p>
109 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#108;&#105;&#115;&#116; &#111;&#102; &#99;&#104;&#105;&#108;&#100; &#110;&#111;&#100;&#101;&#115;. 109 Public method to get the list of child nodes.
110 </p><dl> 110 </p><dl>
111 <dt>Returns:</dt> 111 <dt>Returns:</dt>
112 <dd> 112 <dd>
113 &#108;&#105;&#115;&#116; &#111;&#102; &#97;&#108;&#108; &#99;&#104;&#105;&#108;&#100; &#110;&#111;&#100;&#101;&#115; (&#108;&#105;&#115;&#116; &#111;&#102; &#66;&#111;&#111;&#107;&#109;&#97;&#114;&#107;&#78;&#111;&#100;&#101;) 113 list of all child nodes (list of BookmarkNode)
114 </dd> 114 </dd>
115 </dl><a NAME="BookmarkNode.parent" ID="BookmarkNode.parent"></a> 115 </dl><a NAME="BookmarkNode.parent" ID="BookmarkNode.parent"></a>
116 <h4>BookmarkNode.parent</h4> 116 <h4>BookmarkNode.parent</h4>
117 <b>parent</b>(<i></i>) 117 <b>parent</b>(<i></i>)
118 <p> 118 <p>
119 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#97; &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; &#110;&#111;&#100;&#101;. 119 Public method to get a reference to the parent node.
120 </p><dl> 120 </p><dl>
121 <dt>Returns:</dt> 121 <dt>Returns:</dt>
122 <dd> 122 <dd>
123 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#112;&#97;&#114;&#101;&#110;&#116; &#110;&#111;&#100;&#101; (&#66;&#111;&#111;&#107;&#109;&#97;&#114;&#107;&#78;&#111;&#100;&#101;) 123 reference to the parent node (BookmarkNode)
124 </dd> 124 </dd>
125 </dl><a NAME="BookmarkNode.remove" ID="BookmarkNode.remove"></a> 125 </dl><a NAME="BookmarkNode.remove" ID="BookmarkNode.remove"></a>
126 <h4>BookmarkNode.remove</h4> 126 <h4>BookmarkNode.remove</h4>
127 <b>remove</b>(<i>child</i>) 127 <b>remove</b>(<i>child</i>)
128 <p> 128 <p>
129 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#114;&#101;&#109;&#111;v&#101; &#97; &#99;&#104;&#105;&#108;&#100; &#110;&#111;&#100;&#101;. 129 Public method to remove a child node.
130 </p><dl> 130 </p><dl>
131 <dt><i>child</i></dt> 131 <dt><i>child</i></dt>
132 <dd> 132 <dd>
133 &#114;&#101;&#102;&#101;&#114;&#101;&#110;&#99;&#101; &#116;&#111; &#116;&#104;&#101; &#99;&#104;&#105;&#108;&#100; &#110;&#111;&#100;&#101; (&#66;&#111;&#111;&#107;&#109;&#97;&#114;&#107;&#78;&#111;&#100;&#101;) 133 reference to the child node (BookmarkNode)
134 </dd> 134 </dd>
135 </dl><a NAME="BookmarkNode.setType" ID="BookmarkNode.setType"></a> 135 </dl><a NAME="BookmarkNode.setType" ID="BookmarkNode.setType"></a>
136 <h4>BookmarkNode.setType</h4> 136 <h4>BookmarkNode.setType</h4>
137 <b>setType</b>(<i>type_</i>) 137 <b>setType</b>(<i>type_</i>)
138 <p> 138 <p>
139 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#115;&#101;&#116; &#116;&#104;&#101; &#98;&#111;&#111;&#107;&#109;&#97;&#114;&#107;'&#115; &#116;y&#112;&#101;. 139 Public method to set the bookmark's type.
140 </p><dl> 140 </p><dl>
141 <dt><i>type_</i></dt> 141 <dt><i>type_</i></dt>
142 <dd> 142 <dd>
143 &#116;y&#112;&#101; &#111;&#102; &#116;&#104;&#101; &#98;&#111;&#111;&#107;&#109;&#97;&#114;&#107; &#110;&#111;&#100;&#101; (&#66;&#111;&#111;&#107;&#109;&#97;&#114;&#107;&#78;&#111;&#100;&#101;.&#84;y&#112;&#101;) 143 type of the bookmark node (BookmarkNode.Type)
144 </dd> 144 </dd>
145 </dl><a NAME="BookmarkNode.type" ID="BookmarkNode.type"></a> 145 </dl><a NAME="BookmarkNode.type" ID="BookmarkNode.type"></a>
146 <h4>BookmarkNode.type</h4> 146 <h4>BookmarkNode.type</h4>
147 <b>type</b>(<i></i>) 147 <b>type</b>(<i></i>)
148 <p> 148 <p>
149 &#80;&#117;&#98;&#108;&#105;&#99; &#109;&#101;&#116;&#104;&#111;&#100; &#116;&#111; &#103;&#101;&#116; &#116;&#104;&#101; &#98;&#111;&#111;&#107;&#109;&#97;&#114;&#107;'&#115; &#116;y&#112;&#101;. 149 Public method to get the bookmark's type.
150 </p><dl> 150 </p><dl>
151 <dt>Returns:</dt> 151 <dt>Returns:</dt>
152 <dd> 152 <dd>
153 &#98;&#111;&#111;&#107;&#109;&#97;&#114;&#107; &#116;y&#112;&#101; (&#66;&#111;&#111;&#107;&#109;&#97;&#114;&#107;&#78;&#111;&#100;&#101;.&#84;y&#112;&#101;) 153 bookmark type (BookmarkNode.Type)
154 </dd> 154 </dd>
155 </dl> 155 </dl>
156 <div align="right"><a href="#top">Up</a></div> 156 <div align="right"><a href="#top">Up</a></div>
157 <hr /> 157 <hr />
158 </body></html> 158 </body></html>

eric ide

mercurial