Class ShowMaskWrapper

  • All Implemented Interfaces:
    ISupportMask

    public class ShowMaskWrapper
    extends Object
    implements ISupportMask
    Helper class for any component want implement ISupportMask Just make a instance of this class and let it do everything
    Author:
    hieplq
    • Constructor Detail

      • ShowMaskWrapper

        public ShowMaskWrapper​(org.zkoss.zk.ui.Component comp)
        comp is component want implement this interface
        Parameters:
        comp -
      • ShowMaskWrapper

        public ShowMaskWrapper​(UIPart uiPart)
        this mask will show over component from UIPart.getComponent()
        Parameters:
        uiPart -
    • Method Detail

      • 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 key ISupportMask.READY_SHOW_MASK_FLAG at scope Component.REQUEST_SCOPE in attribute by call LayoutUtils if exists flag, don't hidden mask
        Specified by:
        hideMask in interface ISupportMask
      • getMaskObj

        public Mask getMaskObj()
        return cache object or make new object and return return new Mask when mask is not yet create
        Specified by:
        getMaskObj in interface ISupportMask
        Returns:
      • setFlagShowMask

        public static void setFlagShowMask​(org.zkoss.zk.ui.Component comp)
        Set flag ISupportMask.READY_SHOW_MASK_FLAG to Component.REQUEST_SCOPE
        Parameters:
        comp -
      • hasFlagShowMask

        public static boolean hasFlagShowMask​(org.zkoss.zk.ui.Component comp)
        check flag ISupportMask.READY_SHOW_MASK_FLAG ready in scope Component.REQUEST_SCOPE
        Parameters:
        comp -
        Returns: