|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zk.ui.event.Event org.zkoss.zk.ui.event.VisibilityChangeEvent
public class VisibilityChangeEvent
The VisibilityChangeEvent is used to notify current page/tab's visibility state. Only worked if the browser support HTML 5 Page Visibility API.
This event is sent if and only if it is registered to a root component.
Constructor Summary | |
---|---|
VisibilityChangeEvent(java.lang.String name,
boolean hidden,
java.lang.String visibleState)
Constructs an event to hold the current page's visibility state. |
Method Summary | |
---|---|
static VisibilityChangeEvent |
getVisibilityChangeEvent(AuRequest request)
Converts an AU request to a visibility change event. |
java.lang.String |
getVisibilityState()
Return the current page's visibility state. |
boolean |
isHidden()
Return the current page is hidden or not. |
Methods inherited from class org.zkoss.zk.ui.event.Event |
---|
getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VisibilityChangeEvent(java.lang.String name, boolean hidden, java.lang.String visibleState)
Note: Event.getTarget()
will return null. It means it is a broadcast
event.
Method Detail |
---|
public static final VisibilityChangeEvent getVisibilityChangeEvent(AuRequest request)
public java.lang.String getVisibilityState()
Refer to HTML 5 Page Visibility API for more information.
public boolean isHidden()
Refer to HTML 5 Page Visibility API for more information.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |