Class HeadingLink

    • Constructor Detail

      • HeadingLink

        public HeadingLink()
        Default constructor.
      • HeadingLink

        public HeadingLink​(java.lang.String label)
        Label convenience constructor.
        Parameters:
        label - The label to use in the link, or null if there should be no label.
      • HeadingLink

        public HeadingLink​(InfoModel infoModel)
        Info model constructor.
        Parameters:
        infoModel - The component info model.
        Throws:
        java.lang.NullPointerException - if the given info model is null.
      • HeadingLink

        public HeadingLink​(InfoModel infoModel,
                           ActionModel actionModel,
                           Enableable enableable)
        Info model, action model, and enableable object constructor.
        Parameters:
        infoModel - The component info model.
        actionModel - The component action model.
        enableable - The enableable object in which to store enabled status.
        Throws:
        java.lang.NullPointerException - if the given info model, action model, and/or enableable object is null.
      • HeadingLink

        public HeadingLink​(java.lang.String label,
                           com.globalmentor.net.URIPath navigationPath)
        Label and navigation path convenience constructor. A NavigateActionListener will be installed to navigate to the provided navigation path.
        Parameters:
        label - The label to use in the link, or null if there should be no label.
        navigationPath - The destination path that will be used for navigation when the link is selected.
        Throws:
        java.lang.NullPointerException - if the given navigation path is null.
      • HeadingLink

        public HeadingLink​(java.lang.String label,
                           java.net.URI navigationURI)
        Label and navigation URI convenience constructor. A NavigateActionListener will be installed to navigate to the provided navigation URI.
        Parameters:
        label - The label to use in the link, or null if there should be no label.
        navigationURI - The destination URI that will be used for navigation when the link is selected.
        Throws:
        java.lang.NullPointerException - if the given navigation URI is null.
      • HeadingLink

        public HeadingLink​(ActionPrototype actionPrototype)
        Prototype constructor.
        Parameters:
        actionPrototype - The prototype on which this component should be based.
        Throws:
        java.lang.NullPointerException - if the given prototype is null.
      • HeadingLink

        public HeadingLink​(int level)
        Heading level constructor.
        Parameters:
        level - The zero-based level of the heading, or HeadingComponent.NO_HEADING_LEVEL if no level is specified.
      • HeadingLink

        public HeadingLink​(java.lang.String label,
                           int level)
        Label convenience constructor.
        Parameters:
        label - The label to use in the link, or null if there should be no label.
        level - The zero-based level of the heading, or HeadingComponent.NO_HEADING_LEVEL if no level is specified.
      • HeadingLink

        public HeadingLink​(InfoModel labelModel,
                           int level)
        Info model constructor.
        Parameters:
        labelModel - The component info model.
        level - The zero-based level of the heading, or HeadingComponent.NO_HEADING_LEVEL if no level is specified.
        Throws:
        java.lang.NullPointerException - if the given info model is null.
      • HeadingLink

        public HeadingLink​(InfoModel labelModel,
                           ActionModel actionModel,
                           Enableable enableable,
                           int level)
        Info model, action model, and enableable object constructor.
        Parameters:
        labelModel - The component info model.
        actionModel - The component action model.
        enableable - The enableable object in which to store enabled status.
        level - The zero-based level of the heading, or HeadingComponent.NO_HEADING_LEVEL if no level is specified.
        Throws:
        java.lang.NullPointerException - if the given info model, action model, and/or enableable object is null.
      • HeadingLink

        public HeadingLink​(java.lang.String label,
                           int level,
                           com.globalmentor.net.URIPath navigationPath)
        Label and navigation path convenience constructor. A NavigateActionListener will be installed to navigate to the provided navigation path.
        Parameters:
        label - The label to use in the link, or null if there should be no label.
        level - The zero-based level of the heading, or HeadingComponent.NO_HEADING_LEVEL if no level is specified.
        navigationPath - The destination path that will be used for navigation when the link is selected.
        Throws:
        java.lang.NullPointerException - if the given navigation path is null.
      • HeadingLink

        public HeadingLink​(java.lang.String label,
                           int level,
                           java.net.URI navigationURI)
        Label and navigation URI convenience constructor. A NavigateActionListener will be installed to navigate to the provided navigation URI.
        Parameters:
        label - The label to use in the link, or null if there should be no label.
        level - The zero-based level of the heading, or HeadingComponent.NO_HEADING_LEVEL if no level is specified.
        navigationURI - The destination URI that will be used for navigation when the link is selected.
        Throws:
        java.lang.NullPointerException - if the given navigation URI is null.
      • HeadingLink

        public HeadingLink​(ActionPrototype actionPrototype,
                           int level)
        Prototype constructor.
        Parameters:
        actionPrototype - The prototype on which this component should be based.
        level - The zero-based level of the heading, or HeadingComponent.NO_HEADING_LEVEL if no level is specified.
        Throws:
        java.lang.NullPointerException - if the given prototype is null.