Record Class TextBackgroundValues
java.lang.Object
java.lang.Record
io.meeds.layout.model.TextBackgroundValues
public record TextBackgroundValues(String color, String effect, String padding, String radius, String image, boolean newImage, String size, String repeat, String position)
extends Record
What a text background block that is on writes: the colour, the effect, the
padding and the radius, then the image and its options; a null image clears
the stored one, a stored image repeated keeps its stored options, a new
image carries the options the call gave
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncolor()Returns the value of thecolorrecord component.effect()Returns the value of theeffectrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.image()Returns the value of theimagerecord component.booleannewImage()Returns the value of thenewImagerecord component.static TextBackgroundValuesoff()padding()Returns the value of thepaddingrecord component.position()Returns the value of thepositionrecord component.radius()Returns the value of theradiusrecord component.repeat()Returns the value of therepeatrecord component.size()Returns the value of thesizerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TextBackgroundValues
public TextBackgroundValues(String color, String effect, String padding, String radius, String image, boolean newImage, String size, String repeat, String position) Creates an instance of aTextBackgroundValuesrecord class.- Parameters:
color- the value for thecolorrecord componenteffect- the value for theeffectrecord componentpadding- the value for thepaddingrecord componentradius- the value for theradiusrecord componentimage- the value for theimagerecord componentnewImage- the value for thenewImagerecord componentsize- the value for thesizerecord componentrepeat- the value for therepeatrecord componentposition- the value for thepositionrecord component
-
-
Method Details
-
off
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
effect
Returns the value of theeffectrecord component.- Returns:
- the value of the
effectrecord component
-
padding
Returns the value of thepaddingrecord component.- Returns:
- the value of the
paddingrecord component
-
radius
Returns the value of theradiusrecord component.- Returns:
- the value of the
radiusrecord component
-
image
Returns the value of theimagerecord component.- Returns:
- the value of the
imagerecord component
-
newImage
public boolean newImage()Returns the value of thenewImagerecord component.- Returns:
- the value of the
newImagerecord component
-
size
Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
repeat
Returns the value of therepeatrecord component.- Returns:
- the value of the
repeatrecord component
-
position
Returns the value of thepositionrecord component.- Returns:
- the value of the
positionrecord component
-