public class VisibilityChangeEvent extends Event
This event is sent if and only if it is registered to a root component.
Constructor and Description |
---|
VisibilityChangeEvent(java.lang.String name,
boolean hidden,
java.lang.String visibleState)
Constructs an event to hold the current page's visibility state.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString
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.
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.
Copyright © 2005-2021 Potix Corporation. All Rights Reserved.