<s> """<STR_LIT>""" <EOL> from pyjamas . ui . BuilderWidget import BuilderWidget <EOL> class BuilderPanel ( BuilderWidget ) : <EOL> def __init__ ( self , ** kwargs ) : <EOL> self . panel_instance_name = None <EOL> BuilderWidget . __init__ ( self , ** kwargs ) <EOL> def add ( self , child_instance_name , * args , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> widget = self . b . createInstance ( child_instance_name , self . event_receiver ) <EOL> self . getPanel ( ) . add ( widget , * args , ** kwargs ) <EOL> return widget <EOL> def insert ( self , child_instance_name , * args , ** kwargs ) : <EOL> widget = self . b . createInstance ( child_instance_name , self . event_receiver ) <EOL> self . getPanel ( ) . insert ( widget , * args , ** kwargs ) <EOL> return widget <EOL> def remove ( self , widget , * args , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> self . getPanel ( ) . remove ( widget , * args , ** kwargs ) <EOL> def __iter__ ( self ) : <EOL> return self . b . __iter__ ( ) <EOL> def getChildren ( self ) : <EOL> return self . b . getChildren ( ) <EOL> def setPanelInstanceName ( self , panel_instance_name ) : <EOL> self . panel_instance_name = panel_instance_name <EOL> def getPanel ( self ) : <EOL> if self . panel_instance_name is None : <EOL> return self . widget <EOL> wids = self . b . widget_instances [ self . instance_name ] <EOL> return wids [ self . panel_instance_name ] <EOL> def addIndexedItem ( self , index , instance_name ) : <EOL> widget = self . b . createInstance ( child_instance_name , self . event_receiver ) <EOL> self . getPanel ( ) . addIndexedItem ( index , widget ) <EOL> def getIndexedChild ( self , index ) : <EOL> return self . getPanel ( ) . getIndexedChild ( index ) <EOL> def getWidgetIndex ( self , widget ) : <EOL> return self . getPanel ( ) . getWidgetIndex ( widget ) <EOL> def getWidget ( self , * args ) : <EOL> return self . getPanel ( ) . getWidget ( * args ) <EOL> def getWidgetCount ( self ) : <EOL> return self . getPanel ( ) . getWidgetCount ( ) <EOL> def setWidgetPosition ( self , * args ) : <EOL> return self . getPanel ( ) . setWidgetPosition ( * args ) </s>
