Package org.adempiere.webui.adwindow
Class ADWindow
java.lang.Object
org.adempiere.webui.part.AbstractUIPart
org.adempiere.webui.adwindow.ADWindow
- All Implemented Interfaces:
ISupportMask
,UIPart
UI part for AD_Window
- Version:
- $Revision: 0.10 $
- Author:
- Ashley G Ramdass
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Component attribute to hold reference to ancestor ADWindow instanceFields inherited from class org.adempiere.webui.part.AbstractUIPart
page, showMaskWrapper
Fields inherited from interface org.adempiere.webui.ISupportMask
READY_SHOW_MASK_FLAG
-
Constructor Summary
ConstructorDescriptionADWindow
(Properties ctx, int adWindowId) ADWindow
(Properties ctx, int adWindowId, MQuery query) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.zkoss.zk.ui.Component
doCreatePart
(org.zkoss.zk.ui.Component parent) Create component for content part (ADWindowContent).static ADWindow
findADWindow
(org.zkoss.zk.ui.Component comp) Find ADWindow instance that's the ancestor of compstatic ADWindow
get
(int windowNo) int
org.zkoss.zk.ui.Component
getTabToolbarRestrictList
(int AD_Tab_ID) getTitle()
Methods inherited from class org.adempiere.webui.part.AbstractUIPart
createPart, getMaskComponent, getMaskObj, hideMask, showMask
-
Field Details
-
AD_WINDOW_ATTRIBUTE_KEY
Component attribute to hold reference to ancestor ADWindow instance- See Also:
-
-
Constructor Details
-
ADWindow
- Parameters:
ctx
-adWindowId
-
-
ADWindow
- Parameters:
ctx
-adWindowId
-query
-
-
-
Method Details
-
getTitle
- Returns:
- title of window
-
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 classAbstractUIPart
- 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
- Returns:
- ADWindowContent
-
getTabToolbarRestrictList
- Parameters:
AD_Tab_ID
-- Returns:
- list of toolbar button to exclude/restrict for current login role
-
getWindowToolbarRestrictList
- Returns:
- list of window toolbar button to exclude/restrict for current login role
-
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
- Returns:
- AD_Window_UU
-
get
- Parameters:
windowNo
-- Returns:
ADWindow
instance for windowNo ( if any )
-
findADWindow
Find ADWindow instance that's the ancestor of comp- Parameters:
comp
-- Returns:
ADWindow
instance if found, null otherwise
-