src/eric7/Documentation/Source/eric7.WebBrowser.Bookmarks.BookmarkNode.html

Sat, 26 Apr 2025 12:34:32 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 26 Apr 2025 12:34:32 +0200
branch
eric7
changeset 11240
c48c615c04a3
parent 10493
f795d68d8e09
permissions
-rw-r--r--

MicroPython
- Added a configuration option to disable the support for the no longer produced Pimoroni Pico Wireless Pack.

<!DOCTYPE html>
<html><head>
<title>eric7.WebBrowser.Bookmarks.BookmarkNode</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="styles.css">
</head>
<body>
<a NAME="top" ID="top"></a>
<h1>eric7.WebBrowser.Bookmarks.BookmarkNode</h1>
<p>
Module implementing the bookmark node.
</p>

<h3>Global Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Classes</h3>
<table>
<tr>
<td><a href="#BookmarkNode">BookmarkNode</a></td>
<td>Class implementing the bookmark node type.</td>
</tr>
<tr>
<td><a href="#BookmarkNodeType">BookmarkNodeType</a></td>
<td>Class defining the bookmark node types.</td>
</tr>
<tr>
<td><a href="#BookmarkTimestampType">BookmarkTimestampType</a></td>
<td>Class defining the bookmark timestamp types.</td>
</tr>
</table>

<h3>Functions</h3>
<table>
<tr><td>None</td></tr>
</table>

<hr />
<hr />
<a NAME="BookmarkNode" ID="BookmarkNode"></a>
<h2>BookmarkNode</h2>
<p>
    Class implementing the bookmark node type.
</p>

<h3>Derived from</h3>
None
<h3>Class Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Class Methods</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Methods</h3>
<table>
<tr>
<td><a href="#BookmarkNode.__init__">BookmarkNode</a></td>
<td>Constructor</td>
</tr>
<tr>
<td><a href="#BookmarkNode.add">add</a></td>
<td>Public method to add/insert a child node.</td>
</tr>
<tr>
<td><a href="#BookmarkNode.children">children</a></td>
<td>Public method to get the list of child nodes.</td>
</tr>
<tr>
<td><a href="#BookmarkNode.parent">parent</a></td>
<td>Public method to get a reference to the parent node.</td>
</tr>
<tr>
<td><a href="#BookmarkNode.remove">remove</a></td>
<td>Public method to remove a child node.</td>
</tr>
<tr>
<td><a href="#BookmarkNode.setType">setType</a></td>
<td>Public method to set the bookmark's type.</td>
</tr>
<tr>
<td><a href="#BookmarkNode.type">type</a></td>
<td>Public method to get the bookmark's type.</td>
</tr>
</table>

<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>


<a NAME="BookmarkNode.__init__" ID="BookmarkNode.__init__"></a>
<h4>BookmarkNode (Constructor)</h4>
<b>BookmarkNode</b>(<i>type_=BookmarkNodeType.Root, parent=None</i>)
<p>
        Constructor
</p>

<dl>

<dt><i>type_</i> (BookmarkNode.Type)</dt>
<dd>
type of the bookmark node
</dd>
<dt><i>parent</i> (BookmarkNode)</dt>
<dd>
reference to the parent node
</dd>
</dl>
<a NAME="BookmarkNode.add" ID="BookmarkNode.add"></a>
<h4>BookmarkNode.add</h4>
<b>add</b>(<i>child, offset=-1</i>)
<p>
        Public method to add/insert a child node.
</p>

<dl>

<dt><i>child</i> (BookmarkNode)</dt>
<dd>
reference to the node to add
</dd>
<dt><i>offset</i> (int)</dt>
<dd>
position where to insert child (-1 = append)
</dd>
</dl>
<a NAME="BookmarkNode.children" ID="BookmarkNode.children"></a>
<h4>BookmarkNode.children</h4>
<b>children</b>(<i></i>)
<p>
        Public method to get the list of child nodes.
</p>

<dl>
<dt>Return:</dt>
<dd>
list of all child nodes
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
list of BookmarkNode
</dd>
</dl>
<a NAME="BookmarkNode.parent" ID="BookmarkNode.parent"></a>
<h4>BookmarkNode.parent</h4>
<b>parent</b>(<i></i>)
<p>
        Public method to get a reference to the parent node.
</p>

<dl>
<dt>Return:</dt>
<dd>
reference to the parent node
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
BookmarkNode
</dd>
</dl>
<a NAME="BookmarkNode.remove" ID="BookmarkNode.remove"></a>
<h4>BookmarkNode.remove</h4>
<b>remove</b>(<i>child</i>)
<p>
        Public method to remove a child node.
</p>

<dl>

<dt><i>child</i> (BookmarkNode)</dt>
<dd>
reference to the child node
</dd>
</dl>
<a NAME="BookmarkNode.setType" ID="BookmarkNode.setType"></a>
<h4>BookmarkNode.setType</h4>
<b>setType</b>(<i>type_</i>)
<p>
        Public method to set the bookmark's type.
</p>

<dl>

<dt><i>type_</i> (BookmarkNode.Type)</dt>
<dd>
type of the bookmark node
</dd>
</dl>
<a NAME="BookmarkNode.type" ID="BookmarkNode.type"></a>
<h4>BookmarkNode.type</h4>
<b>type</b>(<i></i>)
<p>
        Public method to get the bookmark's type.
</p>

<dl>
<dt>Return:</dt>
<dd>
bookmark type
</dd>
</dl>
<dl>
<dt>Return Type:</dt>
<dd>
BookmarkNode.Type
</dd>
</dl>
<div align="right"><a href="#top">Up</a></div>
<hr />
<hr />
<a NAME="BookmarkNodeType" ID="BookmarkNodeType"></a>
<h2>BookmarkNodeType</h2>
<p>
    Class defining the bookmark node types.
</p>

<h3>Derived from</h3>
enum.Enum
<h3>Class Attributes</h3>
<table>
<tr><td>Bookmark</td></tr>
<tr><td>Folder</td></tr>
<tr><td>Root</td></tr>
<tr><td>Separator</td></tr>
</table>

<h3>Class Methods</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Methods</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>


<div align="right"><a href="#top">Up</a></div>
<hr />
<hr />
<a NAME="BookmarkTimestampType" ID="BookmarkTimestampType"></a>
<h2>BookmarkTimestampType</h2>
<p>
    Class defining the bookmark timestamp types.
</p>

<h3>Derived from</h3>
enum.Enum
<h3>Class Attributes</h3>
<table>
<tr><td>Added</td></tr>
<tr><td>Modified</td></tr>
<tr><td>Visited</td></tr>
</table>

<h3>Class Methods</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Methods</h3>
<table>
<tr><td>None</td></tr>
</table>

<h3>Static Methods</h3>
<table>
<tr><td>None</td></tr>
</table>


<div align="right"><a href="#top">Up</a></div>
<hr />
</body></html>

eric ide

mercurial