#NEWLINE# def __init__( self , calendar ) : #NEWLINE# #INDENT# Composite . __init__ ( self ) #NEWLINE# self . calendar = calendar #NEWLINE# self . dayCheckBoxListener = DayCheckBoxListener ( calendar ) #NEWLINE# self . outer = VerticalPanel ( ) #NEWLINE# self . initWidget ( self . outer ) #NEWLINE# self . setStyleName ( 'DynaTable-DayFilterWidget' ) #NEWLINE# self . outer . add ( DayCheckBox ( self , 'Sunday' , 0 ) ) #NEWLINE# self . outer . add ( DayCheckBox ( self , 'Monday' , 1 ) ) #NEWLINE# self . outer . add ( DayCheckBox ( self , 'Tuesday' , 2 ) ) #NEWLINE# self . outer . add ( DayCheckBox ( self , 'Wednesday' , 3 ) ) #NEWLINE# self . outer . add ( DayCheckBox ( self , 'Thursday' , 4 ) ) #NEWLINE# self . outer . add ( DayCheckBox ( self , 'Friday' , 5 ) ) #NEWLINE# self . outer . add ( DayCheckBox ( self , 'Saturday' , 6 ) ) #NEWLINE# self . buttonAll = Button ( 'All' , self ) #NEWLINE# self . buttonNone = Button ( 'None' , self ) #NEWLINE# hp = HorizontalPanel ( ) #NEWLINE# hp . setHorizontalAlignment ( HasAlignment . ALIGN_CENTER ) #NEWLINE# hp . add ( self . buttonAll ) #NEWLINE# hp . add ( self . buttonNone ) #NEWLINE# self . outer . add ( hp ) #NEWLINE# self . outer . setCellVerticalAlignment ( hp , HasAlignment . ALIGN_BOTTOM ) #NEWLINE# self . outer . setCellHorizontalAlignment ( hp , HasAlignment . ALIGN_CENTER )