Record Class BackgroundBlock
java.lang.Object
java.lang.Record
io.meeds.layout.model.BackgroundBlock
public record BackgroundBlock(Boolean enabled, BackgroundMode mode, String color, String from, String to, Integer ratio, String direction, String scrollColor, String effect, BackgroundImageBlock image)
extends Record
mode is solid, linear, radial or angular; from, to, ratio and direction
carry a gradient; scrollColor the colour a sticky site container takes once
scrolled; effect is the stored CSS when it matches none of the editor's
gradient forms.
-
Constructor Summary
ConstructorsConstructorDescriptionBackgroundBlock(Boolean enabled, BackgroundMode mode, String color, String from, String to, Integer ratio, String direction, String scrollColor, String effect, BackgroundImageBlock image) Creates an instance of aBackgroundBlockrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncolor()Returns the value of thecolorrecord component.Returns the value of thedirectionrecord component.effect()Returns the value of theeffectrecord component.enabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.image()Returns the value of theimagerecord component.mode()Returns the value of themoderecord component.ratio()Returns the value of theratiorecord component.Returns the value of thescrollColorrecord component.to()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BackgroundBlock
public BackgroundBlock(Boolean enabled, BackgroundMode mode, String color, String from, String to, Integer ratio, String direction, String scrollColor, String effect, BackgroundImageBlock image) Creates an instance of aBackgroundBlockrecord class.- Parameters:
enabled- the value for theenabledrecord componentmode- the value for themoderecord componentcolor- the value for thecolorrecord componentfrom- the value for thefromrecord componentto- the value for thetorecord componentratio- the value for theratiorecord componentdirection- the value for thedirectionrecord componentscrollColor- the value for thescrollColorrecord componenteffect- the value for theeffectrecord componentimage- the value for theimagerecord 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). -
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
to
Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-
ratio
Returns the value of theratiorecord component.- Returns:
- the value of the
ratiorecord component
-
direction
Returns the value of thedirectionrecord component.- Returns:
- the value of the
directionrecord component
-
scrollColor
Returns the value of thescrollColorrecord component.- Returns:
- the value of the
scrollColorrecord component
-
effect
Returns the value of theeffectrecord component.- Returns:
- the value of the
effectrecord component
-
image
Returns the value of theimagerecord component.- Returns:
- the value of the
imagerecord component
-