Class AbstractAjaxBehavior

    • Method Detail

      • bind

        public final void bind​(Component hostComponent)
        Bind this handler to the given component.
        Overrides:
        bind in class Behavior
        Parameters:
        hostComponent - the component to bind to
      • getCallbackUrl

        public CharSequence getCallbackUrl()
        Gets the url that references this handler.
        Returns:
        the url that references this handler
      • onComponentTag

        public final 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
      • afterRender

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

        protected final Component getComponent()
        Gets the component that this handler is bound to.
        Returns:
        the component that this handler is bound to
      • onComponentTag

        protected void onComponentTag​(ComponentTag tag)
        Called any time a component that has this handler registered is rendering the component tag. Use this method e.g. to bind to javascript event handlers of the tag
        Parameters:
        tag - the tag that is rendered
      • onBind

        protected void onBind()
        Called when the component was bound to it's host component. You can get the bound host component by calling getComponent.
      • onComponentRendered

        protected void onComponentRendered()
        Called to indicate that the component that has this handler registered has been rendered. Use this method to do any cleaning up of temporary state
      • unbind

        public final 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
      • onUnbind

        protected void onUnbind()
        Called when the behavior is removed from its component. The bound host component is still available through getComponent(). The relation to it will be removed right after the finish of the execution of this method.