<s> """<STR_LIT>""" <EOL> from muntjac . ui . component import IComponent , Event <EOL> class IComponentContainer ( IComponent ) : <EOL> """<STR_LIT>""" <EOL> def addComponent ( self , c ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError <EOL> def removeComponent ( self , c ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError <EOL> def removeAllComponents ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError <EOL> def replaceComponent ( self , oldComponent , newComponent ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError <EOL> def getComponentIterator ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError <EOL> def requestRepaintAll ( self ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError <EOL> def moveComponentsFrom ( self , source ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError <EOL> def addListener ( self , listener , iface = None ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError <EOL> def addCallback ( self , callback , eventType = None , * args ) : <EOL> raise NotImplementedError <EOL> def removeListener ( self , listener , iface = None ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError <EOL> def removeCallback ( self , callback , eventType = None ) : <EOL> raise NotImplementedError <EOL> class IComponentAttachListener ( object ) : <EOL> """<STR_LIT>""" <EOL> def componentAttachedToContainer ( self , event ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError <EOL> class IComponentDetachListener ( object ) : <EOL> """<STR_LIT>""" <EOL> def componentDetachedFromContainer ( self , event ) : <EOL> """<STR_LIT>""" <EOL> raise NotImplementedError <EOL> class ComponentAttachEvent ( Event ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , container , attachedComponent ) : <EOL> """<STR_LIT>""" <EOL> super ( ComponentAttachEvent , self ) . __init__ ( container ) <EOL> self . _component = attachedComponent <EOL> def getContainer ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . getSource ( ) <EOL> def getAttachedComponent ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _component <EOL> class ComponentDetachEvent ( Event ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , container , detachedComponent ) : <EOL> """<STR_LIT>""" <EOL> super ( ComponentDetachEvent , self ) . __init__ ( container ) <EOL> self . _component = detachedComponent <EOL> def getContainer ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . getSource ( ) <EOL> def getDetachedComponent ( self ) : <EOL> """<STR_LIT>""" <EOL> return self . _component </s>
