Interface IADTabbox

    • Method Detail

      • getSelectedIndex

        int getSelectedIndex()
        Returns:
        selected tab index
      • setSelectedIndex

        void setSelectedIndex​(int i)
        Parameters:
        i - tab index
      • updateSelectedIndex

        boolean updateSelectedIndex​(int oldTabIndex,
                                    int newTabIndex)
        Parameters:
        oldTabIndex -
        newTabIndex -
        Returns:
      • getSelectedTabpanel

        IADTabpanel getSelectedTabpanel()
        Returns:
        selected tab panel reference
      • canNavigateTo

        boolean canNavigateTo​(int fromIndex,
                              int toIndex)
        Parameters:
        fromIndex -
        toIndex -
        Returns:
        boolean
      • isDisplay

        boolean isDisplay​(int index)
        Parameters:
        index -
        Returns:
        boolean
      • addTab

        void addTab​(GridTab tab,
                    IADTabpanel tabPanel)
        Parameters:
        tab -
        tabPanel -
      • getTabCount

        int getTabCount()
        Returns:
        Number of tab
      • getPath

        String getPath()
        Returns:
        path to the active tab
      • setSelectionEventListener

        void setSelectionEventListener​(org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> listener)
        Parameters:
        listener -
      • getADTabpanel

        IADTabpanel getADTabpanel​(int index)
        Parameters:
        index -
        Returns:
        IADTabpanel
      • findADTabpanel

        IADTabpanel findADTabpanel​(GridTab gTab)
        Parameters:
        gTab -
        Returns:
        IADTabpanel or null if not found
      • setADWindowPanel

        void setADWindowPanel​(AbstractADWindowContent abstractADWindowPanel)
        Parameters:
        abstractADWindowPanel -
      • onDetailRecord

        void onDetailRecord()
        drill down to the current selected adtabpanel
      • isSortTab

        boolean isSortTab()
        Returns:
        true if current header tab is a sort tab
      • needSave

        boolean needSave​(boolean rowChange,
                         boolean onlyRealChange)
        Parameters:
        rowChange -
        onlyRealChange -
        Returns:
        true if there are changes pending to be save
      • dataIgnore

        void dataIgnore()
        ignore all pending changes
      • getSelectedGridTab

        GridTab getSelectedGridTab()
        Returns:
        selected header grid tab
      • dataSave

        boolean dataSave​(boolean onSaveEvent)
        Parameters:
        onSaveEvent -
        Returns:
        true if save is successfull
      • setDetailPaneStatusMessage

        void setDetailPaneStatusMessage​(String status,
                                        boolean error)
        Parameters:
        status -
        error -
      • getSelectedDetailADTabpanel

        IADTabpanel getSelectedDetailADTabpanel()
        Returns:
        the currently selected detail adtabpanel
      • getDirtyADTabpanel

        IADTabpanel getDirtyADTabpanel()
        Returns:
        dirty adtabpanel that need save ( if any )
      • updateDetailPaneToolbar

        void updateDetailPaneToolbar​(boolean changed,
                                     boolean readOnly)
        Parameters:
        changed -
        readOnly -
      • setDetailPaneSelectedTab

        void setDetailPaneSelectedTab​(int tabIndex,
                                      int currentRow)
        Parameters:
        tabIndex -
        currentRow -
      • isDetailPaneLoaded

        boolean isDetailPaneLoaded()
        Returns:
        true if all the tabs of detail pane have been linked up with adtabpanel