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
UI part for AD_Window
Version:
$Revision: 0.10 $
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()
      Returns:
      title of window
    • getMImage

      public MImage getMImage()
      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()
      Returns:
      Component
    • getADWindowContent

      public ADWindowContent getADWindowContent()
      Returns:
      ADWindowContent
    • getTabToolbarRestrictList

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

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

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

      public int getAD_Window_ID()
      Returns:
      AD_Window_ID
    • getAD_Window_UU

      public String getAD_Window_UU()
      Returns:
      AD_Window_UU
    • get

      public static ADWindow get(int windowNo)
      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