Package org.apache.wicket.feedback
Class FeedbackDelay
java.lang.Object
org.apache.wicket.feedback.FeedbackDelay
- All Implemented Interfaces:
Serializable
,AutoCloseable
Postpone calling
IFeedback.beforeRender()
after other components.
This gives other Component.beforeRender()
the possibility to report feedbacks,
which can then be collected by IFeedback
s afterwards.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Prepares all postponed feedbacks for render.void
close()
Close any delays.static Optional<FeedbackDelay>
get
(RequestCycle cycle) Get the current delay.PostponeComponent.beforeRender()
on the given feedback.
-
Constructor Details
-
FeedbackDelay
Delay all feedbacks for the given cycle.All postponed feedbacks will be prepared for render with
beforeRender()
.- Parameters:
cycle
- request cycle
-
-
Method Details
-
get
Get the current delay.- Parameters:
cycle
-- Returns:
- optional delay
-
postpone
PostponeComponent.beforeRender()
on the given feedback.- Parameters:
feedback
-- Returns:
-
beforeRender
Prepares all postponed feedbacks for render.- See Also:
-
close
Close any delays.This does not call
beforeRender()
on the delayed feedbacks.- Specified by:
close
in interfaceAutoCloseable
-