Package org.zkoss.zul

Examples of org.zkoss.zul.Tab.addEventListener()


    tabs.getChildren().clear();

    List<String> names = getDesktopWorkbenchContext().getWorkbookCtrl().getSheetNames();
    for (String name : names) {
      final Tab tab = new Tab(name);
      tab.addEventListener(org.zkoss.zk.ui.event.Events.ON_RIGHT_CLICK, new EventListener() {
      public void onEvent(Event event) throws Exception {           
        if (tabbox.getSelectedTab().getLabel() != tab.getLabel())
          setSelectedTab(tab);
 
        protectSheet.setChecked(getDesktopWorkbenchContext().getWorkbookCtrl().isSheetProtect());
View Full Code Here


        Tab tab = new Tab(name);
        tab.setId(id);
        if (id.equals(tabSelected)) {
            tab.setSelected(true);
        }
        tab.addEventListener("onClick", new EventListener() {

            @Override
            public void onEvent(Event event) throws Exception {
                selectTab(id);
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.