#NEWLINE# def __init__( self ) : #NEWLINE# #INDENT# super ( ApplicationLayoutWindow , self ) . __init__ ( ) #NEWLINE# main = HorizontalLayout ( ) #NEWLINE# main . setSizeFull ( ) #NEWLINE# self . setContent ( main ) #NEWLINE# treePanel = Panel ( ) #NEWLINE# treePanel . setStyleName ( Reindeer . PANEL_LIGHT ) #NEWLINE# treePanel . setHeight ( '100%' ) #NEWLINE# treePanel . setWidth ( None ) #NEWLINE# treePanel . getContent ( ) . setSizeUndefined ( ) #NEWLINE# self . addComponent ( text ) #NEWLINE# tree = Tree ( ) #NEWLINE# tree . setContainerDataSource ( ExampleUtil . getHardwareContainer ( ) ) #NEWLINE# tree . setItemCaptionPropertyId ( ExampleUtil . hw_PROPERTY_NAME ) #NEWLINE# for idd in tree . rootItemIds ( ) : #NEWLINE# #INDENT# tree . expandItemsRecursively ( idd ) #NEWLINE# #UNINDENT# treePanel . addComponent ( tree ) #NEWLINE# left = VerticalLayout ( ) #NEWLINE# left . setSizeFull ( ) #NEWLINE# self . addComponent ( left ) #NEWLINE# main . setExpandRatio ( left , 1.0 ) #NEWLINE# tbl = Table ( ) #NEWLINE# tbl . setWidth ( '100%' ) #NEWLINE# tbl . setContainerDataSource ( ExampleUtil . getISO3166Container ( ) ) #NEWLINE# tbl . setSortDisabled ( True ) #NEWLINE# tbl . setPageLength ( 7 ) #NEWLINE# left . addComponent ( tbl ) #NEWLINE# textPanel = Panel ( ) #NEWLINE# textPanel . setStyleName ( Reindeer . PANEL_LIGHT ) #NEWLINE# textPanel . setSizeFull ( ) #NEWLINE# left . addComponent ( textPanel ) #NEWLINE# left . setExpandRatio ( textPanel , 1.0 ) #NEWLINE# text = Label ( ExampleUtil . lorem , Label . CONTENT_XHTML ) #NEWLINE# text . setWidth ( '500px' ) #NEWLINE# textPanel . addComponent ( text )