jeremia.morling
22 Oct 2008, 3:19 AM
Hi!
I just switched from ext-gwt to GWT Ext and noticed that there were several differences in how the layout worked.
I am trying to use a tree as a left side menu. This is what I wrote:
menuTreePanel = new Tree();
administrationRootNode = menuTreePanel.getRootItem();
organizationsAndUsersNode = new TreeItem( LocaleSettings.INSTANCE.organizationsAndUsers() );
administrationRootNode.add( organizationsAndUsersNode );
locationsAndCarsNode = new TreeItem( LocaleSettings.INSTANCE.locationsAndCars() );
administrationRootNode.add( locationsAndCarsNode );
settingsNode = new TreeItem( LocaleSettings.INSTANCE.settings() );
administrationRootNode.add( settingsNode );
The result can be seen in the attached screenshot.
The tree elements are just plain text and can not be selected (and can therefore not be used as a menu in a good way). What am I doing wrong?:-?
Any hint is highly appreciated!
/ Jeremia
I just switched from ext-gwt to GWT Ext and noticed that there were several differences in how the layout worked.
I am trying to use a tree as a left side menu. This is what I wrote:
menuTreePanel = new Tree();
administrationRootNode = menuTreePanel.getRootItem();
organizationsAndUsersNode = new TreeItem( LocaleSettings.INSTANCE.organizationsAndUsers() );
administrationRootNode.add( organizationsAndUsersNode );
locationsAndCarsNode = new TreeItem( LocaleSettings.INSTANCE.locationsAndCars() );
administrationRootNode.add( locationsAndCarsNode );
settingsNode = new TreeItem( LocaleSettings.INSTANCE.settings() );
administrationRootNode.add( settingsNode );
The result can be seen in the attached screenshot.
The tree elements are just plain text and can not be selected (and can therefore not be used as a menu in a good way). What am I doing wrong?:-?
Any hint is highly appreciated!
/ Jeremia