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);
}
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);
}
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);
}
Aggregations