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 Summary
ConstructorsConstructorDescriptionSiteColumnDescription(String columnId, Integer width, Boolean fitContent, Alignment hAlign, Alignment vAlign, List<ApplicationDescription> applications) Creates an instance of aSiteColumnDescriptionrecord class.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 oneSiteColumnDescription(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 -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapplicationsrecord component.columnId()Returns the value of thecolumnIdrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefitContentrecord component.hAlign()Returns the value of thehAlignrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.vAlign()Returns the value of thevAlignrecord component.width()Returns the value of thewidthrecord component.
-
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 aSiteColumnDescriptionrecord class.- Parameters:
columnId- the value for thecolumnIdrecord componentwidth- the value for thewidthrecord componentfitContent- the value for thefitContentrecord componenthAlign- the value for thehAlignrecord componentvAlign- the value for thevAlignrecord componentapplications- the value for theapplicationsrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object). -
columnId
Returns the value of thecolumnIdrecord component.- Returns:
- the value of the
columnIdrecord component
-
width
Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
fitContent
Returns the value of thefitContentrecord component.- Returns:
- the value of the
fitContentrecord component
-
hAlign
Returns the value of thehAlignrecord component.- Returns:
- the value of the
hAlignrecord component
-
vAlign
Returns the value of thevAlignrecord component.- Returns:
- the value of the
vAlignrecord component
-
applications
Returns the value of theapplicationsrecord component.- Returns:
- the value of the
applicationsrecord component
-