Class ADWindow

java.lang.Object
org.adempiere.webui.part.AbstractUIPart
org.adempiere.webui.adwindow.ADWindow
All Implemented Interfaces:
ISupportMask, UIPart

public class ADWindow extends AbstractUIPart
Controller for AD_Window UI
Author:
Ashley G Ramdass
  • Field Details

    • AD_WINDOW_ATTRIBUTE_KEY

      public static final String AD_WINDOW_ATTRIBUTE_KEY
      Component attribute to hold reference to ancestor ADWindow instance
      See Also:
  • Constructor Details

    • ADWindow

      public ADWindow(Properties ctx, int adWindowId)
      Parameters:
      ctx -
      adWindowId -
    • ADWindow

      public ADWindow(Properties ctx, int adWindowId, MQuery query)
      Parameters:
      ctx -
      adWindowId -
      query -
  • Method Details

    • getTitle

      public String getTitle()
      Get window title
      Returns:
      title of window
    • getMImage

      public MImage getMImage()
      Get image for window title
      Returns:
      image for window title
    • doCreatePart

      protected org.zkoss.zk.ui.Component doCreatePart(org.zkoss.zk.ui.Component parent)
      Create component for content part (ADWindowContent).
      Specified by:
      doCreatePart in class AbstractUIPart
      Parameters:
      parent - parent Component or null for root UI block
      Returns:
      Component
      See Also:
    • getComponent

      public org.zkoss.zk.ui.Component getComponent()
      Description copied from interface: UIPart
      Get root component of UI block
      Returns:
      Component
    • getADWindowContent

      public ADWindowContent getADWindowContent()
      Get ADWindowContent instance
      Returns:
      ADWindowContent
    • getTabToolbarRestrictList

      public List<String> getTabToolbarRestrictList(int AD_Tab_ID)
      Get list of toolbar button to exclude/restrict for current login role
      Parameters:
      AD_Tab_ID -
      Returns:
      list of toolbar button to exclude/restrict for current login role
    • getWindowToolbarRestrictList

      public List<String> getWindowToolbarRestrictList()
      Get list of window toolbar button to exclude/restrict for current login role
      Returns:
      list of window toolbar button to exclude/restrict for current login role
    • getWindowAdvancedButtonList

      public List<String> getWindowAdvancedButtonList()
      Get list of advance (IsAdvancedButton=Y) toolbar buttons for window
      Returns:
      list of advance (IsAdvancedButton=Y) toolbar buttons for window
    • getAD_Window_ID

      public int getAD_Window_ID()
      Get AD_Window_ID
      Returns:
      AD_Window_ID
    • getAD_Window_UU

      public String getAD_Window_UU()
      Get AD_Window_UU
      Returns:
      AD_Window_UU
    • get

      public static ADWindow get(int windowNo)
      Get ADWindow instance by window number
      Parameters:
      windowNo -
      Returns:
      ADWindow instance for windowNo ( if any )
    • findADWindow

      public static ADWindow findADWindow(org.zkoss.zk.ui.Component comp)
      Find ADWindow instance that's the ancestor of comp
      Parameters:
      comp -
      Returns:
      ADWindow instance if found, null otherwise