Class Heading

All Implemented Interfaces:
com.globalmentor.beans.PropertyBindable, com.globalmentor.beans.PropertyConstrainable, Component, HeadingComponent, LabelComponent, Displayable, InfoModel, LabelModel, Model, PresentationModel, DepictedObject

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

    • Heading

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

      public Heading(int level)
      Heading level constructor with a default info model.
      Parameters:
      level - The zero-based level of the heading, or HeadingComponent.NO_HEADING_LEVEL if no level is specified.
    • Heading

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

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

      public Heading(String label, int level)
      Label and level constructor.
      Parameters:
      label - The text of the label, 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.
    • Heading

      public Heading(InfoModel infoModel, int level)
      Info model and level constructor.
      Parameters:
      infoModel - The component info model.
      level - The zero-based level of the heading, or HeadingComponent.NO_HEADING_LEVEL if no level is specified.
      Throws:
      NullPointerException - if the given session info model is null.
  • Method Details