java.lang.Object
java.util.EventObject
jakarta.faces.event.FacesEvent
org.omnifaces.event.LazyPanelEvent
- All Implemented Interfaces:
Serializable
This event is passed as optional method argument of <o:lazyPanel listener>. It has convenient FacesEvent.getComponent() and
getClientId() methods.
public void listener(LazyPanelEvent event) {
String clientId = event.getClientId();
// ...
}
- Since:
- 5.3
- Author:
- Bauke Scholtz
- See Also:
-
Field Summary
Fields inherited from class java.util.EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionLazyPanelEvent(FacesContext context, LazyPanel lazyPanel) Constructs a new lazy panel event. -
Method Summary
Modifier and TypeMethodDescriptionReturns the client id of the lazy panel component.booleanisAppropriateListener(FacesListener listener) voidprocessListener(FacesListener listener) Methods inherited from class jakarta.faces.event.FacesEvent
getComponent, getFacesContext, getPhaseId, queue, setPhaseIdMethods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
LazyPanelEvent
Constructs a new lazy panel event.- Parameters:
context- The involved faces context.lazyPanel- The involved lazy panel component.
-
-
Method Details
-
getClientId
Returns the client id of the lazy panel component.- Returns:
- The client id of the lazy panel component.
-
isAppropriateListener
- Specified by:
isAppropriateListenerin classFacesEvent
-
processListener
- Specified by:
processListenerin classFacesEvent
-