Class AbstractLink

    • Constructor Detail

      • AbstractLink

        public AbstractLink​(String id)
        Construct.
        Parameters:
        id -
      • AbstractLink

        public AbstractLink​(String id,
                            IModel<?> model)
        Construct.
        Parameters:
        id - the component id
        model - the link's model
    • Method Detail

      • getBody

        public IModel<?> getBody()
        Returns:
        the link's body model
      • setBody

        public AbstractLink setBody​(IModel<?> bodyModel)
        Sets the link's body model
        Parameters:
        bodyModel -
        Returns:
        this for method chaining
      • onDetach

        protected void onDetach()
        Description copied from class: Component
        Called to allow a component to detach resources after use. Overrides of this method MUST call the super implementation, the most logical place to do this is the last line of the override method.
        Overrides:
        onDetach in class MarkupContainer