Package org.adempiere.webui.part
Class AbstractUIPart
- java.lang.Object
-
- org.adempiere.webui.part.AbstractUIPart
-
- All Implemented Interfaces:
ISupportMask,UIPart
- Direct Known Subclasses:
AbstractADTabbox,AbstractADWindowContent,AbstractDesktop,ADWindow,MultiTabPart,WindowContainer,WLogin
public abstract class AbstractUIPart extends Object implements UIPart, ISupportMask
- Author:
- Low Heng Sin
-
-
Field Summary
Fields Modifier and Type Field Description protected org.zkoss.zk.ui.Pagepageprotected ShowMaskWrappershowMaskWrapper-
Fields inherited from interface org.adempiere.webui.ISupportMask
READY_SHOW_MASK_FLAG
-
-
Constructor Summary
Constructors Constructor Description AbstractUIPart()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.zkoss.zk.ui.ComponentcreatePart(Object parent)protected abstract org.zkoss.zk.ui.ComponentdoCreatePart(org.zkoss.zk.ui.Component parent)org.zkoss.zk.ui.ComponentgetMaskComponent()return self if is a component or return component it manage ifAbstractUIPartis implement this interface, returnUIPart.getComponent()MaskgetMaskObj()return cache object or make new object and returnvoidhideMask()Hide mask. at code call showMask will hand reference to this object. and call this function in handle close event of window when override, remember check exists of keyISupportMask.READY_SHOW_MASK_FLAGat scopeComponent.REQUEST_SCOPEin attribute by callLayoutUtilsif exists flag, don't hidden maskvoidshowMask()show mask over this component when override, remember callComponent.setAttribute(String, Object, int)with key isISupportMask.READY_SHOW_MASK_FLAGvalue is Integer(1) and scope isComponent.REQUEST_SCOPEby callLayoutUtils-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.adempiere.webui.part.UIPart
getComponent
-
-
-
-
Field Detail
-
page
protected org.zkoss.zk.ui.Page page
-
showMaskWrapper
protected ShowMaskWrapper showMaskWrapper
-
-
Method Detail
-
createPart
public org.zkoss.zk.ui.Component createPart(Object parent)
- Specified by:
createPartin interfaceUIPart
-
doCreatePart
protected abstract org.zkoss.zk.ui.Component doCreatePart(org.zkoss.zk.ui.Component parent)
-
showMask
public void showMask()
show mask over this component when override, remember callComponent.setAttribute(String, Object, int)with key isISupportMask.READY_SHOW_MASK_FLAGvalue is Integer(1) and scope isComponent.REQUEST_SCOPEby callLayoutUtils- Specified by:
showMaskin interfaceISupportMask
-
hideMask
public void hideMask()
Hide mask. at code call showMask will hand reference to this object. and call this function in handle close event of window when override, remember check exists of keyISupportMask.READY_SHOW_MASK_FLAGat scopeComponent.REQUEST_SCOPEin attribute by callLayoutUtilsif exists flag, don't hidden mask- Specified by:
hideMaskin interfaceISupportMask
-
getMaskObj
public Mask getMaskObj()
return cache object or make new object and return- Specified by:
getMaskObjin interfaceISupportMask- Returns:
-
getMaskComponent
public org.zkoss.zk.ui.Component getMaskComponent()
return self if is a component or return component it manage ifAbstractUIPartis implement this interface, returnUIPart.getComponent()knowIssue: becauseIDesktop.getComponent()returnBorderLayout, don't append window to child list of it, in this case we must get parent of BorderLayout- Specified by:
getMaskComponentin interfaceISupportMask- Returns:
-
-