public class FeedbackDelay extends Object implements Serializable, AutoCloseable
IFeedback.beforeRender() after other components.
This gives other Component.beforeRender() the possibility to report feedbacks,
which can then be collected by IFeedbacks afterwards.
| Constructor and Description |
|---|
FeedbackDelay(RequestCycle cycle)
Delay all feedbacks for the given cycle.
|
| Modifier and Type | Method and Description |
|---|---|
void |
beforeRender()
Prepares all postponed feedbacks for render.
|
void |
close()
Close any delays.
|
static Optional<FeedbackDelay> |
get(RequestCycle cycle)
Get the current delay.
|
FeedbackDelay |
postpone(IFeedback feedback)
Postpone
Component.beforeRender() on the given feedback. |
public FeedbackDelay(RequestCycle cycle)
All postponed feedbacks will be prepared for render with beforeRender().
cycle - request cyclepublic static Optional<FeedbackDelay> get(RequestCycle cycle)
cycle - public FeedbackDelay postpone(IFeedback feedback)
Component.beforeRender() on the given feedback.feedback - public void beforeRender()
IFeedback.beforeRender()public void close()
This does not call beforeRender() on the delayed feedbacks.
close in interface AutoCloseableCopyright © 2006–2018 Apache Software Foundation. All rights reserved.