Record Class StylingDescription
java.lang.Object
java.lang.Record
io.meeds.layout.model.StylingDescription
public record StylingDescription(MarginsBlock margins, BorderBlock border, CornersBlock corners, BackgroundBlock background, TextBlock text, HeightBlock height)
extends Record
The block form of the editor's styling inputs: a block is on when its
enabled flag is true, as the inputs read a block as on when its leading
field is set.
-
Constructor Summary
ConstructorsConstructorDescriptionStylingDescription(MarginsBlock margins, BorderBlock border, CornersBlock corners, BackgroundBlock background, TextBlock text, HeightBlock height) Creates an instance of aStylingDescriptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebackgroundrecord component.border()Returns the value of theborderrecord component.corners()Returns the value of thecornersrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.height()Returns the value of theheightrecord component.margins()Returns the value of themarginsrecord component.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StylingDescription
public StylingDescription(MarginsBlock margins, BorderBlock border, CornersBlock corners, BackgroundBlock background, TextBlock text, HeightBlock height) Creates an instance of aStylingDescriptionrecord class.- Parameters:
margins- the value for themarginsrecord componentborder- the value for theborderrecord componentcorners- the value for thecornersrecord componentbackground- the value for thebackgroundrecord componenttext- the value for thetextrecord componentheight- the value for theheightrecord 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). -
margins
Returns the value of themarginsrecord component.- Returns:
- the value of the
marginsrecord component
-
border
Returns the value of theborderrecord component.- Returns:
- the value of the
borderrecord component
-
corners
Returns the value of thecornersrecord component.- Returns:
- the value of the
cornersrecord component
-
background
Returns the value of thebackgroundrecord component.- Returns:
- the value of the
backgroundrecord component
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord component
-
height
Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-