#NEWLINE# def __init__( self , owner ) : #NEWLINE# #INDENT# Composite . __init__ ( self ) #NEWLINE# self . owner = owner #NEWLINE# self . bar = DockPanel ( ) #NEWLINE# self . gotoFirst = Button ( '&lt;&lt;' , self ) #NEWLINE# self . gotoNext = Button ( '&gt;' , self ) #NEWLINE# self . gotoPrev = Button ( '&lt;' , owner ) #NEWLINE# self . status = HTML ( ) #NEWLINE# self . initWidget ( self . bar ) #NEWLINE# self . bar . setStyleName ( 'navbar' ) #NEWLINE# self . status . setStyleName ( 'status' ) #NEWLINE# buttons = HorizontalPanel ( ) #NEWLINE# buttons . add ( self . gotoFirst ) #NEWLINE# buttons . add ( self . gotoPrev ) #NEWLINE# buttons . add ( self . gotoNext ) #NEWLINE# self . bar . add ( buttons , DockPanel . EAST ) #NEWLINE# self . bar . setCellHorizontalAlignment ( buttons , HasAlignment . ALIGN_RIGHT ) #NEWLINE# self . bar . add ( self . status , DockPanel . CENTER ) #NEWLINE# self . bar . setVerticalAlignment ( HasAlignment . ALIGN_MIDDLE ) #NEWLINE# self . bar . setCellHorizontalAlignment ( self . status , HasAlignment . ALIGN_RIGHT ) #NEWLINE# self . bar . setCellVerticalAlignment ( self . status , HasAlignment . ALIGN_MIDDLE ) #NEWLINE# self . bar . setCellWidth ( self . status , '100%' ) #NEWLINE# self . gotoPrev . setEnabled ( False ) #NEWLINE# self . gotoFirst . setEnabled ( False )