Example usage for com.google.gwt.user.client.ui DeckPanel add

List of usage examples for com.google.gwt.user.client.ui DeckPanel add

Introduction

In this page you can find the example usage for com.google.gwt.user.client.ui DeckPanel add.

Prototype

@Override
    public void add(Widget w) 

Source Link

Usage

From source file:org.pentaho.mantle.client.ui.xul.MantleModel.java

License:Open Source License

@Bindable
public void loadSettingsPanel() {
    GWT.runAsync(new RunAsyncCallback() {
        public void onSuccess() {
            DeckPanel contentDeck = MantleXul.getInstance().getAdminContentDeck();
            if (contentDeck.getWidgetIndex(ContentCleanerPanel.getInstance()) == -1) {
                contentDeck.add(ContentCleanerPanel.getInstance());
            }//from  w  w  w . ja va2  s. co m
            contentDeck.showWidget(contentDeck.getWidgetIndex(ContentCleanerPanel.getInstance()));
        }

        public void onFailure(Throwable reason) {
        }
    });
}

From source file:org.pentaho.mantle.client.ui.xul.MantleModel.java

License:Open Source License

@Bindable
public void loadUserRolesAdminPanel() {
    GWT.runAsync(new RunAsyncCallback() {
        public void onSuccess() {
            DeckPanel contentDeck = MantleXul.getInstance().getAdminContentDeck();
            if (MantleApplication.getInstance().getContentDeck()
                    .getWidgetIndex(UserRolesAdminPanelController.getInstance()) == -1) {
                contentDeck.add(UserRolesAdminPanelController.getInstance());
            }//w w w  .j  ava  2 s.  c om
            contentDeck.showWidget(contentDeck.getWidgetIndex(UserRolesAdminPanelController.getInstance()));
        }

        public void onFailure(Throwable reason) {
        }
    });
}

From source file:org.pentaho.mantle.client.ui.xul.MantleModel.java

License:Open Source License

@Bindable
public void loadEmailAdminPanel() {
    GWT.runAsync(new RunAsyncCallback() {
        public void onSuccess() {
            DeckPanel contentDeck = MantleXul.getInstance().getAdminContentDeck();
            if (MantleApplication.getInstance().getContentDeck()
                    .getWidgetIndex(EmailAdminPanelController.getInstance()) == -1) {
                contentDeck.add(EmailAdminPanelController.getInstance());
            }// w ww  .j a v  a  2s  .co m
            contentDeck.showWidget(contentDeck.getWidgetIndex(EmailAdminPanelController.getInstance()));
        }

        public void onFailure(Throwable reason) {
        }
    });
}