Record Class SiteColumnDescription

java.lang.Object
java.lang.Record
io.meeds.layout.model.SiteColumnDescription

public record SiteColumnDescription(String columnId, Integer width, Boolean fitContent, Alignment hAlign, Alignment vAlign, List<ApplicationDescription> applications) extends Record
A column of a topbar or a bottom bar, as the site layout editor shows it: its width in pixels when it has one, or fit_content when it takes the width of its application, the last column taking the remaining width otherwise, where its application sits in it, horizontally and vertically, and the application it holds. A stored column holding several applications is read whole; a write places one application per column, and keeps a column as it is when each application given is sent back by its id from that same column.
  • Constructor Details

    • SiteColumnDescription

      public SiteColumnDescription(String columnId, Integer width, List<ApplicationDescription> applications)
      A column with a width in pixels, or sharing the remaining width, whose alignment is kept as stored, or left at the editor's default on a new one
    • SiteColumnDescription

      public SiteColumnDescription(String columnId, Integer width, Boolean fitContent, List<ApplicationDescription> applications)
      A column whose alignment is kept as stored, or left at the editor's default on a new one
    • SiteColumnDescription

      public SiteColumnDescription(String columnId, Integer width, Boolean fitContent, Alignment hAlign, Alignment vAlign, List<ApplicationDescription> applications)
      Creates an instance of a SiteColumnDescription record class.
      Parameters:
      columnId - the value for the columnId record component
      width - the value for the width record component
      fitContent - the value for the fitContent record component
      hAlign - the value for the hAlign record component
      vAlign - the value for the vAlign record component
      applications - the value for the applications record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • columnId

      public String columnId()
      Returns the value of the columnId record component.
      Returns:
      the value of the columnId record component
    • width

      public Integer width()
      Returns the value of the width record component.
      Returns:
      the value of the width record component
    • fitContent

      public Boolean fitContent()
      Returns the value of the fitContent record component.
      Returns:
      the value of the fitContent record component
    • hAlign

      public Alignment hAlign()
      Returns the value of the hAlign record component.
      Returns:
      the value of the hAlign record component
    • vAlign

      public Alignment vAlign()
      Returns the value of the vAlign record component.
      Returns:
      the value of the vAlign record component
    • applications

      public List<ApplicationDescription> applications()
      Returns the value of the applications record component.
      Returns:
      the value of the applications record component