Package su.onno.ui.divkit
Record Class PageDivBuilder.Region
java.lang.Object
java.lang.Record
su.onno.ui.divkit.PageDivBuilder.Region
- Enclosing class:
PageDivBuilder
public static record PageDivBuilder.Region(List<PageWidgetDescriptor> widgets, int gridColumns, List<PageComponent> components, List<PageDivBuilder.Row> rows)
extends Record
A page region: a widget grid (
gridColumns wide), freeform components, then layout rows.-
Constructor Summary
ConstructorsConstructorDescriptionRegion(List<PageWidgetDescriptor> widgets, int gridColumns, List<PageComponent> components) A flat region with no nested rows (a widget grid + components).Region(List<PageWidgetDescriptor> widgets, int gridColumns, List<PageComponent> components, List<PageDivBuilder.Row> rows) Creates an instance of aRegionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponentsrecord component.final booleanIndicates whether some other object is "equal to" this one.intReturns the value of thegridColumnsrecord component.final inthashCode()Returns a hash code value for this object.rows()Returns the value of therowsrecord component.final StringtoString()Returns a string representation of this record class.widgets()Returns the value of thewidgetsrecord component.
-
Constructor Details
-
Region
public Region(List<PageWidgetDescriptor> widgets, int gridColumns, List<PageComponent> components, List<PageDivBuilder.Row> rows) Creates an instance of aRegionrecord class.- Parameters:
widgets- the value for thewidgetsrecord componentgridColumns- the value for thegridColumnsrecord componentcomponents- the value for thecomponentsrecord componentrows- the value for therowsrecord component
-
Region
A flat region with no nested rows (a widget grid + components).
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
widgets
Returns the value of thewidgetsrecord component.- Returns:
- the value of the
widgetsrecord component
-
gridColumns
public int gridColumns()Returns the value of thegridColumnsrecord component.- Returns:
- the value of the
gridColumnsrecord component
-
components
Returns the value of thecomponentsrecord component.- Returns:
- the value of the
componentsrecord component
-
rows
Returns the value of therowsrecord component.- Returns:
- the value of the
rowsrecord component
-