What is best practice for responsive  design?
>
I mean how to create kind of correct base (which panels to use) for future 
> extension of the project.
>
In my project I am using activities and places MVC pattrern .
>
 http://www.gwtproject.org/doc/latest/DevGuideMvpActivitiesAndPlaces.html

--------------------------------------------------------------------------------------------------------------
 
         *private DockLayoutPanel container = new DockLayoutPanel(Unit.PX);*

private SimplePanel header1 = new SimplePanel();
private SimplePanel center  = new SimplePanel();

container.setSize("1024px","768px");
        container.addNorth(header1, 70);
        container.add(center);

        RootPanel.get("container").add(container);
-----------------------------
bind part :
private void bindLogic(){
//one instance per application
final ClientFactory clientFactory = GWT.create(ClientFactory.class);
//one instance per application
final EventBus eventBus = clientFactory.getEventBus();
Place place = new WelcomePlace();
 PlaceController placeController = clientFactory.getPlaceController();

*new Header1(clientFactory,this.header1);*
                *new Center(clientFactory,this.center);*
 // Start PlaceHistoryHandler with our PlaceHistoryMapper
        AppPlacesHistoryMapper historyMapper= 
GWT.create(AppPlacesHistoryMapper.class);
        PlaceHistoryHandler historyHandler = new 
PlaceHistoryHandler(historyMapper);
        historyHandler.register(placeController, 
clientFactory.getEventBus(), place);

        // Goes to the place represented on URL else default place
        historyHandler.handleCurrentHistory(); 
}
------------------------------------------------------------------------------------------------------------------
public *Center*(ClientFactory clientFactory,AcceptsOneWidget appWidget) 
{ 
this.clientFactory = clientFactory; 
this.eventBus = this.clientFactory.getEventBus();
        ActivityMapper activityMapper = new 
CenterActivityMapper(clientFactory);
        ActivityManager activityManager = new 
ActivityManager(activityMapper, eventBus);        
        activityManager.setDisplay(appWidget);
bind();
}
...
------------------------------------------------------------------------------------------------------------------

*my.html file*
<body>
.......................................
<div id="container" align="center"></div>

  </body>



Maybe somebody have example or  advice ? 
>
Thanks 

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to