Package com.smartgwt.client.widgets.tab.events

Examples of com.smartgwt.client.widgets.tab.events.CloseClickHandler


    tabset = new TabSet();
    tabset.setWidth100();
    tabset.setHeight100();
    tabset.setOverflow(Overflow.HIDDEN);
    tabset.addCloseClickHandler(new CloseClickHandler() {

      public void onCloseClick(TabCloseClickEvent event) {
        setEmpty((tabset.getTabs().length == 1));
      }
    });
View Full Code Here


            if (dashboard.getName().equals(selectedTabName)) {
                tabSet.selectTab(tab);
            }
        }

        tabSet.addCloseClickHandler(new CloseClickHandler() {
            public void onCloseClick(final TabCloseClickEvent tabCloseClickEvent) {
                tabCloseClickEvent.cancel();
                final DashboardView dashboardView = (DashboardView) tabCloseClickEvent.getTab().getPane();

                SC.ask(MSG.view_dashboards_confirm1() + " [" + dashboardView.getStoredDashboard().getName() + "]?",
View Full Code Here

        //Don't use selected one. Title may change by context menu, when other tab is selected
        settings.getTabArray().get(tabIndex).setTabTitle(event.getNewTitle());
        LocalStorageHelper.storeSettings(settings);
      }
    });
    addCloseClickHandler(new CloseClickHandler() {
      @Override
      public void onCloseClick(TabCloseClickEvent event) {
        closePreProcess((QueryTab)event.getTab(), true);
        closePostProcess((QueryTab)event.getTab());
        view.getHistory().setHistoryCheckpoint();
View Full Code Here

TOP

Related Classes of com.smartgwt.client.widgets.tab.events.CloseClickHandler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.