#NEWLINE# def __init__( self ) : #NEWLINE# #INDENT# super ( AccordionDisabledExample , self ) . __init__ ( ) #NEWLINE# self . setSpacing ( True ) #NEWLINE# self . _l1 = Label ( 'There are no previously saved actions.' ) #NEWLINE# self . _l2 = Label ( 'There are no saved notes.' ) #NEWLINE# self . _l3 = Label ( 'There are currently no issues.' ) #NEWLINE# self . _a = Accordion ( ) #NEWLINE# self . _a . setHeight ( '300px' ) #NEWLINE# self . _a . setWidth ( '400px' ) #NEWLINE# self . _t1 = self . _a . addTab ( self . _l1 , 'Saved actions' , self . _icon1 ) #NEWLINE# self . _t2 = self . _a . addTab ( self . _l2 , 'Notes' , self . _icon2 ) #NEWLINE# self . _t3 = self . _a . addTab ( self . _l3 , 'Issues' , self . _icon3 ) #NEWLINE# self . _a . addListener ( self , tab_sheet . ISelectedTabChangeListener ) #NEWLINE# self . _b1 = Button ( "Disable 'Notes' tab" ) #NEWLINE# self . _b2 = Button ( "Hide 'Issues' tab" ) #NEWLINE# self . _b1 . addListener ( self , button . IClickListener ) #NEWLINE# self . _b2 . addListener ( self , button . IClickListener ) #NEWLINE# hl = HorizontalLayout ( ) #NEWLINE# hl . setSpacing ( True ) #NEWLINE# hl . addComponent ( self . _b1 ) #NEWLINE# hl . addComponent ( self . _b2 ) #NEWLINE# self . addComponent ( self . _a ) #NEWLINE# self . addComponent ( hl )