Class FeedbackCollector


  • public class FeedbackCollector
    extends Object
    Collects feedback messages from all the places where they can be stored.
    Author:
    igor
    • Constructor Detail

      • FeedbackCollector

        public FeedbackCollector​(Component component)
        Constructs a collector that will collect messages from the specified container
        Parameters:
        component - root component from which feedback will be collected
      • FeedbackCollector

        public FeedbackCollector​(Component component,
                                 boolean includeSession)
        Constructs a collector that will collect messages from Session and specified container
        Parameters:
        component - root component from which feedback will be collected
        includeSession - controls whether or not feedback from the Session will be collected
    • Method Detail

      • setRecursive

        public final FeedbackCollector setRecursive​(boolean value)
        Controls whether or not feedback will be collected recursively from the descendants of the specified component.
        Parameters:
        value -
        Returns:
        this for chaining
      • shouldRecurseInto

        protected boolean shouldRecurseInto​(Component component)
        Determines whether or not recursive message collection should continue into the specified component. If returning false feedback messages from the specified component nor any of its children will be included.
        Parameters:
        component -
        Returns: