#NEWLINE# def __init__( self , tabBar = None , **kwargs ) : #NEWLINE# #INDENT# self . children = [ ] #NEWLINE# self . tab_names = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . deck = kwargs . pop ( 'Deck' , None ) #NEWLINE# floatingtab = kwargs . pop ( 'FloatingTab' , False ) #NEWLINE# if ( self . deck is None ) : #NEWLINE# #INDENT# self . deck = DeckPanel ( StyleName = 'gwt-TabPanelBottom' ) #NEWLINE# #UNINDENT# if ( tabBar is None ) : #NEWLINE# #INDENT# self . tabBar = TabBar ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . tabBar = tabBar #NEWLINE# #UNINDENT# self . tabListeners = [ ] #NEWLINE# element = kwargs . pop ( 'Element' , None ) #NEWLINE# panel = VerticalPanel ( Element = self ) #NEWLINE# if ( not floatingtab ) : #NEWLINE# #INDENT# panel . add ( self . tabBar ) #NEWLINE# #UNINDENT# if ( self . deck . getParent ( ) is None ) : #NEWLINE# #INDENT# panel . add ( self . deck ) #NEWLINE# panel . setCellHeight ( self . deck , '100%' ) #NEWLINE# #UNINDENT# self . tabBar . setWidth ( '100%' ) #NEWLINE# self . tabBar . addTabListener ( self ) #NEWLINE# kwargs [ 'StyleName' ] = kwargs . get ( 'StyleName' , 'gwt-TabPanel' ) #NEWLINE# PanelBase . __init__ ( self ) #NEWLINE# Composite . __init__ ( self , panel , ** kwargs )