On Fri, Jan 9, 2009 at 1:52 PM, A Friend Of Yours <[email protected]>wrote:
> > The same problem I was having a few days ago... > > Well gwt abstracts web applications not as a multiple interlinked > pages but as widgets and panels like a desktop GUI framework. You can > add widgets to panels, switch panels in frames etc... > > What I did in my case is somewhat like this > > 1. Create a class that implements EntryPoint(which you might already > have). Layout everything as you like and put a SimplePanel in the area > where you want the contents to change. > > Like this > ------------------------------------------------------------------------- > |Logo Application Title etc | > ------------------------------------------------------------------------- > | Navigation Button1 | | > | Navigation Button2 | SimplePanel | > | Navigation Button3 | | > | .... > | | > ------------------------------------------------------------------------- >> that means i require just a single EntryPoint class..! I am trying to create my web app's main menu using a MenuBar, and a major area below it will display the contents of each MenuItem. Can i use multiple RootPanel's in my web app..? i read somewhere that this is discouraged. > > > 2. Create on class for each content that you want to put in > SimplePanel. It should extend Composite. Also, it must initialize and > layout everything in one Grid or Panel or Table in the constructor. > The last line in constructor should be like this > > initWidget(thePanelThatContainsEveryThing); >> ok, i got wat you are saying over here. Why should these classes extend Composite? Can you use separate methods in the class to return the data. What is this last line doing? > > > 3. On add a clickListener to each navigation button and in that > function: > > contentSimplePanel.setWidget(new contentClass1()); > >> how do i add clickListener to MenuItems, i think i can only specify commands to perform. -- Sahil --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
