#NEWLINE# def __init__( self , **kwargs ) : #NEWLINE# #INDENT# if ( not kwargs . has_key ( 'StyleName' ) ) : #NEWLINE# #INDENT# kwargs [ 'StyleName' ] = 'gwt-TabBar' #NEWLINE# #UNINDENT# element = None #NEWLINE# if kwargs . has_key ( 'Element' ) : #NEWLINE# #INDENT# element = kwargs . pop ( 'Element' ) #NEWLINE# #UNINDENT# self . panel = HorizontalPanel ( Element = element ) #NEWLINE# self . selectedTab = None #NEWLINE# self . tabListeners = [ ] #NEWLINE# self . panel . setVerticalAlignment ( HasAlignment . ALIGN_BOTTOM ) #NEWLINE# first = HTML ( '&nbsp;' , True ) #NEWLINE# rest = HTML ( '&nbsp;' , True ) #NEWLINE# first . setStyleName ( 'gwt-TabBarFirst' ) #NEWLINE# rest . setStyleName ( 'gwt-TabBarRest' ) #NEWLINE# first . setHeight ( '100%' ) #NEWLINE# rest . setHeight ( '100%' ) #NEWLINE# self . panel . add ( first ) #NEWLINE# self . panel . add ( rest ) #NEWLINE# first . setHeight ( '100%' ) #NEWLINE# self . panel . setCellHeight ( first , '100%' ) #NEWLINE# self . panel . setCellWidth ( rest , '100%' ) #NEWLINE# Composite . __init__ ( self , self . panel , ** kwargs ) #NEWLINE# self . sinkEvents ( Event . ONCLICK )