Search in sources :

Example 1 with DeckPanel

use of com.google.gwt.user.client.ui.DeckPanel in project pentaho-platform by pentaho.

the class PerspectiveManager method showOpenedPerspective.

private void showOpenedPerspective(boolean browserChecked, boolean schedulesChecked) {
    DeckPanel contentDeck = MantleApplication.getInstance().getContentDeck();
    if (MantleApplication.getInstance().getContentDeck().getWidgetIndex(SolutionBrowserPanel.getInstance()) == -1) {
        contentDeck.add(SolutionBrowserPanel.getInstance());
    }
    // show stuff we've created/configured
    contentDeck.showWidget(contentDeck.getWidgetIndex(SolutionBrowserPanel.getInstance()));
    SolutionBrowserPanel.getInstance().setNavigatorShowing(SolutionBrowserPanel.getInstance().isNavigatorShowing());
    setCheckMMenuItem(browserChecked, schedulesChecked);
}
Also used : DeckPanel(com.google.gwt.user.client.ui.DeckPanel)

Example 2 with DeckPanel

use of com.google.gwt.user.client.ui.DeckPanel in project pentaho-platform by pentaho.

the class PerspectiveManager method showAdminPerspective.

private void showAdminPerspective(boolean browserChecked, boolean schedulesChecked) {
    DeckPanel contentDeck = MantleApplication.getInstance().getContentDeck();
    if (MantleApplication.getInstance().getContentDeck().getWidgetIndex(MantleXul.getInstance().getAdminPerspective()) == -1) {
        contentDeck.add(MantleXul.getInstance().getAdminPerspective());
    }
    contentDeck.showWidget(contentDeck.getWidgetIndex(MantleXul.getInstance().getAdminPerspective()));
    MantleXul.getInstance().customizeAdminStyle();
    MantleXul.getInstance().configureAdminCatTree();
    // disable Browser and schedules menuItem
    setCheckMMenuItem(browserChecked, schedulesChecked);
}
Also used : DeckPanel(com.google.gwt.user.client.ui.DeckPanel)

Example 3 with DeckPanel

use of com.google.gwt.user.client.ui.DeckPanel in project pentaho-platform by pentaho.

the class PerspectiveManager method showSchedulesPerspective.

private void showSchedulesPerspective() {
    GWT.runAsync(new RunAsyncCallback() {

        public void onSuccess() {
            DeckPanel contentDeck = MantleApplication.getInstance().getContentDeck();
            if (MantleApplication.getInstance().getContentDeck().getWidgetIndex(SchedulesPerspectivePanel.getInstance()) == -1) {
                contentDeck.add(SchedulesPerspectivePanel.getInstance());
            } else {
                SchedulesPerspectivePanel.getInstance().refresh();
            }
            contentDeck.showWidget(contentDeck.getWidgetIndex(SchedulesPerspectivePanel.getInstance()));
        }

        public void onFailure(Throwable reason) {
        }
    });
    setCheckMMenuItem(false, true);
}
Also used : DeckPanel(com.google.gwt.user.client.ui.DeckPanel) RunAsyncCallback(com.google.gwt.core.client.RunAsyncCallback)

Aggregations

DeckPanel (com.google.gwt.user.client.ui.DeckPanel)3 RunAsyncCallback (com.google.gwt.core.client.RunAsyncCallback)1