Package org.zkoss.stateless.action.data
Class VisibilityChangeData
java.lang.Object
org.zkoss.stateless.action.data.VisibilityChangeData
The VisibilityChangeAction is used to notify current page/tab's visibility
state. Only worked if the browser support HTML 5 Page Visibility API.
This action is sent if and only if it is registered to a root component.
- Author:
- jumperchen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn the current page's visibility state.booleanisHidden()Return the current page is hidden or not.
-
Constructor Details
-
VisibilityChangeData
public VisibilityChangeData()
-
-
Method Details
-
getVisibilityState
Return the current page's visibility state.Refer to HTML 5 Page Visibility API for more information.
-
isHidden
public boolean isHidden()Return the current page is hidden or not.Refer to HTML 5 Page Visibility API for more information.
-