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
Controller for AD_Window UI
- Author:
- Ashley G Ramdass
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringComponent attribute to hold reference to ancestor ADWindow instanceFields inherited from class org.adempiere.webui.part.AbstractUIPart
page, showMaskWrapperFields inherited from interface org.adempiere.webui.ISupportMask
READY_SHOW_MASK_FLAG -
Constructor Summary
ConstructorsConstructorDescriptionADWindow(Properties ctx, int adWindowId) ADWindow(Properties ctx, int adWindowId, MQuery query) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.zkoss.zk.ui.ComponentdoCreatePart(org.zkoss.zk.ui.Component parent) Create component for content part (ADWindowContent).static ADWindowfindADWindow(org.zkoss.zk.ui.Component comp) Find ADWindow instance that's the ancestor of compstatic ADWindowget(int windowNo) Get ADWindow instance by window numberintGet AD_Window_IDGet AD_Window_UUGet ADWindowContent instanceorg.zkoss.zk.ui.ComponentGet root component of UI blockGet image for window titlegetTabToolbarRestrictList(int AD_Tab_ID) Get list of toolbar button to exclude/restrict for current login rolegetTitle()Get window titleGet list of advance (IsAdvancedButton=Y) toolbar buttons for windowGet list of window toolbar button to exclude/restrict for current login roleMethods 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
Get window title- Returns:
- title of window
-
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:
doCreatePartin classAbstractUIPart- 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:UIPartGet root component of UI block- Returns:
- Component
-
getADWindowContent
Get ADWindowContent instance- Returns:
- ADWindowContent
-
getTabToolbarRestrictList
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
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
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
Get AD_Window_UU- Returns:
- AD_Window_UU
-
get
Get ADWindow instance by window number- Parameters:
windowNo-- Returns:
ADWindowinstance for windowNo ( if any )
-
findADWindow
Find ADWindow instance that's the ancestor of comp- Parameters:
comp-- Returns:
ADWindowinstance if found, null otherwise
-