Class CompositeADTabbox

    • Constructor Detail

      • CompositeADTabbox

        public CompositeADTabbox()
    • Method Detail

      • createDetailPane

        protected DetailPane createDetailPane()
      • onEditDetail

        protected void onEditDetail​(int row,
                                    boolean formView)
      • doCreatePart

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

        public IADTabpanel getSelectedTabpanel()
        Return the selected Tab Panel
        Returns:
        selected tab panel reference
      • getSelectedIndex

        public int getSelectedIndex()
        Returns:
        selected tab index
      • setSelectionEventListener

        public void setSelectionEventListener​(org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event> listener)
      • getComponent

        public org.zkoss.zk.ui.Component getComponent()
      • findADTabpanel

        public IADTabpanel findADTabpanel​(GridTab gTab)
        Returns:
        IADTabpanel or null if not found
      • onDetailRecord

        public void onDetailRecord()
        Description copied from interface: IADTabbox
        drill down to the current selected adtabpanel
      • isDetailActivated

        public boolean isDetailActivated()
      • isSortTab

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

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

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

        public void dataIgnore()
        Description copied from interface: IADTabbox
        ignore all pending changes
      • getSelectedGridTab

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

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

        public void setDetailPaneStatusMessage​(String status,
                                               boolean error)
      • getDirtyADTabpanel

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

        public void updateDetailPaneToolbar​(boolean changed,
                                            boolean readOnly)
      • isDetailPaneLoaded

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

        public void setDetailPaneSelectedTab​(int adTabNo,
                                             int currentRow)