Gda.TreeManager¶
- Subclasses:
Gda.TreeMgrColumns
,Gda.TreeMgrLabel
,Gda.TreeMgrSchemas
,Gda.TreeMgrSelect
,Gda.TreeMgrTables
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c |
Function called when building/updating of children |
||
r/w/c |
Recursive building/updating of children |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
object |
r |
Class Details¶
- class Gda.TreeManager(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- add_manager(sub)¶
- Parameters:
sub (
Gda.TreeManager
) – aGda.TreeManager
object to add
Adds a sub manager to self. Use this method to create the skeleton structure of a
Gda.Tree
. Note that a singleGda.TreeManager
can be used by severalGda.Tree
objects or several times in the sameGda.Tree
's structure.Please note that it’s possible for mgr and sub to be the same object, but beware of the possible infinite recursive behaviour in this case when creating children nodes (depending on the actual implementation of the
Gda.TreeManager
).New in version 4.2.
- add_new_node_attribute(attribute, value)¶
- Parameters:
attribute (
str
) – an attribute namevalue (
GObject.Value
orNone
) – the attribute’s value, orNone
Requests that for any new node managed (eg. created) by self, a new attribute will be set. This allows one to customize the attributes of new nodes created by an existing
Gda.TreeManager
.As a side effect, if value is
None
, then the corresponding attribute, if it was set, is unset.New in version 4.2.
- create_node(parent, name)¶
- Parameters:
- Returns:
a new
Gda.TreeNode
- Return type:
Requests that self creates a new
Gda.TreeNode
. The new node is not in any way linked to self yet, consider this method as aGda.TreeNode
factory.This method is usually used when implementing a #GdaTreeManagerNodesFunc function (to create nodes), or when subclassing the
Gda.TreeManager
.New in version 4.2.
- get_managers()¶
- Returns:
a list of #GdaTreeMenager which should not be modified.
- Return type:
Get the list of sub managers which have already been added using
Gda.TreeManager.add_manager
()New in version 4.2.
Property Details¶
- Gda.TreeManager.props.func¶
-
This property specifies the function which needs to be called when the list of
Gda.TreeNode
nodes managed has to be updated
- Gda.TreeManager.props.recursive¶
-
This property specifies if, when initially creating nodes or updating the list of nodes, the tree manager shoud also request that each node it has created or updated also initially create or update their children.
This property can typically set to
False
if the process of creating children nodes is lenghty and needs to be postponed while an event occurs.