Record Class ElementLayout
java.lang.Object
java.lang.Record
net.ixdarklord.folios.internal.client.page.ElementLayout
public record ElementLayout(@Nullable ElementLayout.Overflow overflow, @Nullable ElementLayout.Height height, @Nullable ElementLayout.Height minHeight, @Nullable FoliosAlign alignment, @Nullable FoliosAlign titleAlignment, @Nullable ElementLayout.Anchor anchor)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final recordstatic enum -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionElementLayout(@Nullable ElementLayout.Overflow overflow, @Nullable ElementLayout.Height height, @Nullable ElementLayout.Height minHeight, @Nullable FoliosAlign alignment, @Nullable FoliosAlign titleAlignment, @Nullable ElementLayout.Anchor anchor) Creates an instance of aElementLayoutrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable FoliosAlignReturns the value of thealignmentrecord component.@Nullable ElementLayout.Anchoranchor()Returns the value of theanchorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable ElementLayout.Heightheight()Returns the value of theheightrecord component.intleastHeight(int full) @Nullable ElementLayout.HeightReturns the value of theminHeightrecord component.or(ElementLayout outer) @Nullable ElementLayout.Overflowoverflow()Returns the value of theoverflowrecord component.static ElementLayout@Nullable FoliosAlign@Nullable FoliosAlignReturns the value of thetitleAlignmentrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NONE
-
MIN_HEIGHT
public static final int MIN_HEIGHT- See Also:
-
-
Constructor Details
-
ElementLayout
public ElementLayout(@Nullable ElementLayout.Overflow overflow, @Nullable ElementLayout.Height height, @Nullable ElementLayout.Height minHeight, @Nullable FoliosAlign alignment, @Nullable FoliosAlign titleAlignment, @Nullable ElementLayout.Anchor anchor) Creates an instance of aElementLayoutrecord class.- Parameters:
overflow- the value for theoverflowrecord componentheight- the value for theheightrecord componentminHeight- the value for theminHeightrecord componentalignment- the value for thealignmentrecord componenttitleAlignment- the value for thetitleAlignmentrecord componentanchor- the value for theanchorrecord component
-
-
Method Details
-
read
-
or
-
leastHeight
public int leastHeight(int full) -
overflowOrFlow
-
titleAlign
-
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). -
overflow
Returns the value of theoverflowrecord component.- Returns:
- the value of the
overflowrecord component
-
height
Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
minHeight
Returns the value of theminHeightrecord component.- Returns:
- the value of the
minHeightrecord component
-
alignment
Returns the value of thealignmentrecord component.- Returns:
- the value of the
alignmentrecord component
-
titleAlignment
Returns the value of thetitleAlignmentrecord component.- Returns:
- the value of the
titleAlignmentrecord component
-
anchor
Returns the value of theanchorrecord component.- Returns:
- the value of the
anchorrecord component
-