Class CompoundValidator<T>

    • Method Detail

      • add

        public final CompoundValidator<Tadd​(IValidator<T> validator)
        Adds an IValidator to the chain of validators.
        Parameters:
        validator - an IValidator to be added
        Returns:
        this ValidationError for chaining purposes
      • beforeRender

        public void beforeRender​(Component component)
        Description copied from class: Behavior
        Called when a component is about to render.
        Overrides:
        beforeRender in class Behavior
        Parameters:
        component - the component that has this behavior coupled
      • afterRender

        public void afterRender​(Component component)
        Description copied from class: Behavior
        Called when a component that has this behavior coupled was rendered.
        Overrides:
        afterRender in class Behavior
        Parameters:
        component - the component that has this behavior coupled
      • bind

        public void bind​(Component component)
        Description copied from class: Behavior
        Bind this handler to the given component. This method is called by the host component immediately after this behavior is added to it. This method is useful if you need to do initialization based on the component it is attached and you can't wait to do it at render time. Keep in mind that if you decide to keep a reference to the host component, it is not thread safe anymore, and should thus only be used in situations where you do not reuse the behavior for multiple components.
        Overrides:
        bind in class Behavior
        Parameters:
        component - the component to bind to
      • unbind

        public void unbind​(Component component)
        Description copied from class: Behavior
        Notifies the behavior it is removed from the specified component
        Overrides:
        unbind in class Behavior
        Parameters:
        component - the component this behavior is unbound from
      • detach

        public void detach​(Component component)
        Description copied from class: Behavior
        Allows the behavior to detach any state it has attached during request processing.
        Overrides:
        detach in class Behavior
        Parameters:
        component - the component that initiates the detachment of this behavior
      • getStatelessHint

        public boolean getStatelessHint​(Component component)
        Description copied from class: Behavior
        This method returns false if the behavior generates a callback url (for example ajax behaviors)
        Overrides:
        getStatelessHint in class Behavior
        Parameters:
        component - the component that has this behavior coupled.
        Returns:
        boolean true or false.
      • onComponentTag

        public void onComponentTag​(Component component,
                                   ComponentTag tag)
        Description copied from class: Behavior
        Called any time a component that has this behavior registered is rendering the component tag.
        Overrides:
        onComponentTag in class Behavior
        Parameters:
        component - the component that renders this tag currently
        tag - the tag that is rendered
      • renderHead

        public void renderHead​(Component component,
                               IHeaderResponse response)
        Description copied from class: Behavior
        Render to the web response whatever the component wants to contribute to the head section.
        Specified by:
        renderHead in interface IComponentAwareHeaderContributor
        Overrides:
        renderHead in class Behavior
        Parameters:
        component - component which is contributing to the response. This parameter is here to give the component as the context for component-awares implementing this interface
        response - Response object
      • onConfigure

        public void onConfigure​(Component component)
        Description copied from class: Behavior
        Called immediately after the onConfigure method in a component. Since this is before the rendering cycle has begun, the behavior can modify the configuration of the component (i.e. setVisible(false))
        Overrides:
        onConfigure in class Behavior
        Parameters:
        component - the component being configured
      • onRemove

        public void onRemove​(Component component)
        Description copied from class: Behavior
        Called to notify that the component is being removed from its parent
        Overrides:
        onRemove in class Behavior
        Parameters:
        component - the removed component