Class ADWindowContent

All Implemented Interfaces:
EventListener, ActionListener, ToolbarListener, ISupportMask, ITabOnSelectHandler, UIPart, DataStatusListener, org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>

public class ADWindowContent extends AbstractADWindowContent
Controller for ADWindow content.
Author:
Ashley G Ramdass, Low Heng Sin
  • Constructor Details

    • ADWindowContent

      public ADWindowContent(Properties ctx, int windowNo, int adWindowId)
      Parameters:
      ctx -
      windowNo -
      adWindowId -
  • Method Details

    • doCreatePart

      protected org.zkoss.zk.ui.Component doCreatePart(org.zkoss.zk.ui.Component parent)
      Layout UI.
      Vertical layout of toolbar, breadCrumb, statusBar and contentArea.
      Specified by:
      doCreatePart in class AbstractUIPart
      Parameters:
      parent - parent Component or null for root UI block
      Returns:
      Component
    • createADTab

      protected IADTabbox createADTab()
      Specified by:
      createADTab in class AbstractADWindowContent
      Returns:
      IADTabbox
    • getComponent

      public org.zkoss.zul.Vlayout getComponent()
      Get main layout component
      Returns:
      Vlayout
    • onEvent

      public void onEvent(org.zkoss.zk.ui.event.Event event)
      Specified by:
      onEvent in interface org.zkoss.zk.ui.event.EventListener<org.zkoss.zk.ui.event.Event>
      Overrides:
      onEvent in class AbstractADWindowContent
      See Also:
      • EventListener.onEvent(Event)
    • closeTab

      protected void closeTab(Tabpanel tabPanel)
      Close tab related to tabPanel
      Parameters:
      tabPanel - Tabpanel that represent AD_Window
    • switchEditStatus

      protected void switchEditStatus(boolean editStatus)
      Description copied from class: AbstractADWindowContent
      Handle switching of editing status.
      Override to set isEditting to true/false at widget side.
      Specified by:
      switchEditStatus in class AbstractADWindowContent
      Parameters:
      editStatus - true if editing (dirty)