Class Link

    • Constructor Detail

      • Link

        public Link()
        Default constructor.
      • Link

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

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

        public Link​(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.
      • Link

        public Link​(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.
      • Link

        public Link​(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.
      • Link

        public Link​(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.