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

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


            view.getHistory().setHistoryCheckpoint();
          }
        });
      }
    });
    addTabTitleChangedHandler(new TabTitleChangedHandler() {
      @Override
      public void onTabTitleChanged(TabTitleChangedEvent event) {
        Settings settings = view.getSettings();
        int tabIndex = getTabNumber(event.getTab().getID());
        //Don't use selected one. Title may change by context menu, when other tab is selected
View Full Code Here


        tabSet.addTab(tab1);
        tabSet.addTab(tab2);
        tabSet.addTab(validatedTab);
        tabSet.addTab(uneditableTab);

        tabSet.addTabTitleChangedHandler(new TabTitleChangedHandler() {
            @Override
            public void onTabTitleChanged(TabTitleChangedEvent event) {
                Tab tab = event.getTab();
                if (tab.equals(validatedTab) && (event.getNewTitle() == null || !event.getNewTitle().substring(0, 4).equals("123-"))) {
                    SC.warn("Tab title must start with the prefix \"123-\"");
View Full Code Here

TOP

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

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.