Τhanks a lot! It worked like a charm!:) xxx
On Sep 2, 4:16 pm, gregor <[EMAIL PROTECTED]> wrote: > Hi Eleni, > > In the simplest possible form: > > a) Use a HorizontalPanel putting your tree in cell 0 and your message > in cell 1 > b) Have your main module class implement the TreeListener interface > c) Register your main module class as a listener with your Tree > c) In the onTreeItemSelected(TreeItem) method, you can set the message > in the rightpanelfrom the selected TreeItem passed > > In a more complex application you might usetwoComposite panels, one > for navigation (which might have more than one navigation widget in > it, frequently a StackPanel full of them etc), and the other for > displaying data associated with the selection. In this case it you > might: > > - Put them either side in a HorizontalSplitPanel > - Have the navigationpanelimplement TreeListener to listen for Tree > events, plus any others navigation/selection type widgets present > - Have the navigationpanelconsolidate such events internally and > broadcast a ChangeEvent (i.e. have it implement SourcesChangeEvents) > - Have the datapanelimplement ChangeListener > - Register the datapanelas a ChangeListener with the navigationpanel > > This way the navigation and data display parts of the application are > very loosely coupled: and their code does not interfere with each > other, they can be easily swapped in and out as development proceeds > and there is a clear separation of concerns. > > regards > gregor > > On Sep 1, 7:23 pm, eleni <[EMAIL PROTECTED]> wrote: > > > Hi all! > > > First of all I would like to mention that I just started dealing with > > GWT so please be patient:) > > > What I wanna ask is how I could create apanel, where on the left side > > will be a tree and when you click on a tree-item, something (a message > > for instance) will appear on the right side. > > > I am familiar with, trees and Panels (:P) > > > I don't need any code! Just the steps and I will be ok!!! > > > Thanks all in advance! > > > Eleni --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
