Class Link

All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, ActionControl, Component, Control, InputFocusableComponent, LabelComponent, LabelDisplayableComponent, LinkControl, ActionListenable, ActionModel, Displayable, Enableable, InfoModel, LabelModel, Model, PresentationModel, DepictedObject

public class Link extends AbstractLinkControl
Control with an action model rendered as a link.
Author:
Garret Wilson
  • Constructor Details

    • Link

      public Link()
      Default constructor.
    • Link

      public Link(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:
      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:
      NullPointerException - if the given info model, action model, and/or enableable object is null.
    • Link

      public Link(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:
      NullPointerException - if the given navigation path is null.
    • Link

      public Link(String label, 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:
      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:
      NullPointerException - if the given prototype is null.