Package su.onno.ui
Record Class PageColumn
java.lang.Object
java.lang.Record
su.onno.ui.PageColumn
One column of a
PageRow: a width and a PageBuilder region holding the
column's content (any block — widget, list, text, custom — plus further nested rows).
width controls the column's share of the row:
- a fraction —
"1/2","2/3","1/3","1/4"… — the column takes that proportion (the numerator is used as a flex weight, so2/3+1/3splits 2:1); "<n>px"— a fixed width in dp (e.g."300px"for a rail that never flexes);nullor"full"— an equal share of the remaining space.
-
Constructor Summary
ConstructorsConstructorDescriptionPageColumn(String width, PageBuilder region) Creates an instance of aPageColumnrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.region()Returns the value of theregionrecord component.final StringtoString()Returns a string representation of this record class.width()Returns the value of thewidthrecord component.
-
Constructor Details
-
PageColumn
Creates an instance of aPageColumnrecord class.- Parameters:
width- the value for thewidthrecord componentregion- the value for theregionrecord component
-
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
width
Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
region
Returns the value of theregionrecord component.- Returns:
- the value of the
regionrecord component
-