Module component :: Class SmartContainer
[hide private]
[frames] | no frames]

Class SmartContainer

source code

object --+        
         |        
 Component --+    
             |    
     Container --+
                 |
                SmartContainer

Base class for containers with implicit nodes.

Instance Methods [hide private]
 
__init__(self, klass, groups, attributes, **kargs)
Construct a new Component object.
source code
 
getTreeNode(self, node)
Some containers may hide some internal elements.
source code
 
getTreeOrImplicitNode(self, node)
Return topmost child (implicit if exists).
source code
 
appendChild(self, parentNode, node)
Append child node.
source code
 
insertBefore(self, parentNode, node, nextNode)
Insert node before nextNode.
source code
 
insertAfter(self, parentNode, node, prevNode)
Insert node after prevNode.
source code
 
removeChild(self, parentNode, node)
Remove node and the implicit node (if present).
source code
 
replaceChild(self, parentNode, newNode, oldNode)
Replace oldNode by newNode keeping relevant attributes.
source code
 
requireImplicit(self, node)
If there are implicit nodes for this particular node.
source code
 
setImplicitParamClass(self, attrName, paramClass)
Set special Param class.
source code

Inherited from Container: canHaveChild, copyObjects, getChildObject, isSizer

Inherited from Component: __cmp__, __repr__, addAttribute, addEvents, addExStyles, addStyles, canBeReplaced, copyAttributes, getAttribute, getRect, getTreeImageId, getTreeText, isContainer, makeTestWin, setParamClass, setSpecial

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

Class Variables [hide private]
  implicitRenameDict = {}

Inherited from Component: genericEvents, genericExStyles, genericStyles, hasName, isTopLevel, renameDict, windowAttributes

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, klass, groups, attributes, **kargs)
(Constructor)

source code 
Construct a new Component object.
Overrides: Component.__init__
(inherited documentation)

getTreeNode(self, node)

source code 
Some containers may hide some internal elements.
Overrides: Container.getTreeNode
(inherited documentation)

getTreeOrImplicitNode(self, node)

source code 
Return topmost child (implicit if exists).
Overrides: Container.getTreeOrImplicitNode

appendChild(self, parentNode, node)

source code 
Append child node. Can be overriden to create implicit nodes.
Overrides: Container.appendChild
(inherited documentation)

insertBefore(self, parentNode, node, nextNode)

source code 
Insert node before nextNode. Can be overriden to create implicit nodes.
Overrides: Container.insertBefore
(inherited documentation)

insertAfter(self, parentNode, node, prevNode)

source code 
Insert node after prevNode. Can be overriden to create implicit nodes.
Overrides: Container.insertAfter
(inherited documentation)

removeChild(self, parentNode, node)

source code 
Remove node and the implicit node (if present). Return top-level removed child.
Overrides: Container.removeChild
(inherited documentation)

replaceChild(self, parentNode, newNode, oldNode)

source code 
Replace oldNode by newNode keeping relevant attributes.
Overrides: Container.replaceChild
(inherited documentation)

requireImplicit(self, node)

source code 
If there are implicit nodes for this particular node.
Overrides: Container.requireImplicit
(inherited documentation)