Class WindowContainer

  • All Implemented Interfaces:
    ISupportMask, UIPart, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>

    public class WindowContainer
    extends AbstractUIPart
    implements org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
    Author:
    Low Heng Sin
    • Constructor Detail

      • WindowContainer

        public WindowContainer()
    • Method Detail

      • createFrom

        public static WindowContainer createFrom​(Tabbox tb)
        Parameters:
        tb -
        Returns:
        WindowContainer
      • doCreatePart

        protected org.zkoss.zk.ui.Component doCreatePart​(org.zkoss.zk.ui.Component parent)
        Specified by:
        doCreatePart in class AbstractUIPart
      • addWindow

        public Tab addWindow​(org.zkoss.zk.ui.Component comp,
                             String title,
                             boolean closeable,
                             Tab.DecorateInfo decorateInfo)
        Parameters:
        comp -
        title -
        closeable -
      • addWindow

        public Tab addWindow​(org.zkoss.zk.ui.Component comp,
                             String title,
                             boolean closeable,
                             boolean enable,
                             Tab.DecorateInfo decorateInfo)
        Parameters:
        comp -
        title -
        closeable -
        enable -
      • insertBefore

        public Tab insertBefore​(Tab refTab,
                                org.zkoss.zk.ui.Component comp,
                                String title,
                                boolean closeable,
                                boolean enable,
                                Tab.DecorateInfo decorateInfo)
        Parameters:
        refTab -
        comp -
        title -
        closeable -
        enable -
      • closeTabs

        protected void closeTabs​(Tab tab,
                                 int start,
                                 int end,
                                 int focus)
      • setTabTitle

        public void setTabTitle​(String title,
                                int windowNo)
      • setTabTitle

        public void setTabTitle​(String title,
                                org.zkoss.zul.Tab tab)
      • insertAfter

        public Tab insertAfter​(Tab refTab,
                               org.zkoss.zk.ui.Component comp,
                               String title,
                               boolean closeable,
                               boolean enable,
                               Tab.DecorateInfo decorateInfo)
        Parameters:
        refTab -
        comp -
        title -
        closeable -
        enable -
      • setSelectedTab

        public void setSelectedTab​(org.zkoss.zul.Tab tab)
        Parameters:
        tab -
      • closeActiveWindow

        public boolean closeActiveWindow()
        Returns:
        true if successfully close the active window
      • getSelectedTab

        public Tab getSelectedTab()
        Returns:
        Tab
      • setTabTitle

        public void setTabTitle​(int tabNo,
                                String title,
                                String tooltip)
        Parameters:
        tabNo -
        title -
        tooltip -
      • getToobar

        public ToolBar getToobar()
        Returns:
        toolbar
      • onEvent

        public void onEvent​(org.zkoss.zk.ui.event.Event event)
                     throws Exception
        Specified by:
        onEvent in interface org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
        Throws:
        Exception