Skip to content
This repository has been archived by the owner on Oct 6, 2020. It is now read-only.

ApplicationArchitectureDesignNote

snommensen edited this page Apr 11, 2011 · 2 revisions

Design Note: Application Architecture

The Application is devided in two essential parts. The navigation and the content part. In the content part the application parts like testbed selection and reservation will be placed. Each of the two part has his own activity. Each activity manages his area in the GUI. See the EntryPoint for this.

    public void onModuleLoad() {
        final WiseUiView appWidget = injector.getAppWidget();

        injector.getNavigationActivityManager().setDisplay(
                appWidget.getNavigationPanel());

        // Start ActivityManager for the main widget with our ActivityMapper
        injector.getContentActivityManager().setDisplay(
                appWidget.getContentPanel());

        RootPanel.get().add(appWidget.asWidget());

        // Goes to place represented on URL or default place
        injector.getPlaceHistoryHandler().handleCurrentHistory();
    }

Keep in mind that there is only one Place instance at a time that will be handled by both activities. So the navigation view will adjust his selection based on the place. The activity for the content will then choose the apropriated content.

General each application part consists of the following modules:

  • Activities
  • Presenters
  • Views
  • GIN modules