Class ExternalLink

    • Constructor Detail

      • ExternalLink

        public ExternalLink​(String id,
                            String href,
                            String label)
        Constructor.
        Parameters:
        id - See Component
        href - the href attribute to set
        label - the label (body)
      • ExternalLink

        public ExternalLink​(String id,
                            String href)
        Constructor.
        Parameters:
        id - The name of this component
        href - the href attribute to set
      • ExternalLink

        public ExternalLink​(String id,
                            IModel<String> href)
        Constructor.
        Parameters:
        id - The name of this component
        href - the href attribute to set
      • ExternalLink

        public ExternalLink​(String id,
                            IModel<String> href,
                            IModel<?> label)
        Constructor.
        Parameters:
        id - See Component
        href - the href attribute to set
        label - the label (body)
    • Method Detail

      • getPopupSettings

        public final PopupSettings getPopupSettings()
        Gets the popup specification. If not-null, a javascript on-click event handler will be generated that opens a new window using the popup properties.
        Returns:
        the popup specification.
      • setPopupSettings

        public final ExternalLink setPopupSettings​(PopupSettings popupSettings)
        Sets the popup specification. If not-null, a javascript on-click event handler will be generated that opens a new window using the popup properties.
        Parameters:
        popupSettings - the popup specification.
        Returns:
        This
      • isContextRelative

        public boolean isContextRelative()
        Returns:
        True if this link is automatically prepended with ../ to make it relative to the context root.
      • setContextRelative

        public ExternalLink setContextRelative​(boolean contextRelative)
        Set to true if this link should be automatically prepended with ../ to make it relative to the context root.
        Parameters:
        contextRelative -
        Returns:
        This for chaining