Class Label

All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, Component, LabelComponent, Displayable, InfoModel, LabelModel, Model, PresentationModel, DepictedObject
Direct Known Subclasses:
SelectableLabel

public class Label extends AbstractLabel
A label component. This component installs a default export strategy supporting export of the following content types:
  • The label content type.
Author:
Garret Wilson
  • Constructor Details

    • Label

      public Label()
      Default constructor with a default info model.
    • Label

      public Label(String label)
      Label constructor.
      Parameters:
      label - The text of the label, or null if there should be no label.
    • Label

      public Label(String label, URI icon)
      Label and icon constructor.
      Parameters:
      label - The text of the label, or null if there should be no label.
      icon - The icon URI, which may be a resource URI, or null if there is no icon URI.
    • Label

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

      public Label(LabelPrototype labelPrototype)
      Prototype constructor.
      Parameters:
      labelPrototype - The prototype on which this component should be based.
      Throws:
      NullPointerException - if the given prototype is null.