Package su.onno.metadata
Record Class PageWidgetDescriptor
java.lang.Object
java.lang.Record
su.onno.metadata.PageWidgetDescriptor
public record PageWidgetDescriptor(String title, String widgetType, int order, String width, String entityType, String entityName, int maxItems, String dateField, String titleField, Map<String,String> extraConfig, String hint, boolean rowBreak)
extends Record
A resolved page widget.
rowBreak forces this widget to start a new layout row
even when the previous row still has room (see UiLayoutBuilder.WidgetBuilder#rowBreak()).-
Constructor Summary
ConstructorsConstructorDescriptionPageWidgetDescriptor(String title, String widgetType, int order, String width, String entityType, String entityName, int maxItems, String dateField, String titleField, Map<String, String> extraConfig, String hint) Pre-rowBreak shape — kept so existing constructions default to flowing layout.PageWidgetDescriptor(String title, String widgetType, int order, String width, String entityType, String entityName, int maxItems, String dateField, String titleField, Map<String, String> extraConfig, String hint, boolean rowBreak) Creates an instance of aPageWidgetDescriptorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedateFieldrecord component.Returns the value of theentityNamerecord component.Returns the value of theentityTyperecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theextraConfigrecord component.final inthashCode()Returns a hash code value for this object.hint()Returns the value of thehintrecord component.intmaxItems()Returns the value of themaxItemsrecord component.intorder()Returns the value of theorderrecord component.booleanrowBreak()Returns the value of therowBreakrecord component.title()Returns the value of thetitlerecord component.Returns the value of thetitleFieldrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewidgetTyperecord component.width()Returns the value of thewidthrecord component.
-
Constructor Details
-
PageWidgetDescriptor
public PageWidgetDescriptor(String title, String widgetType, int order, String width, String entityType, String entityName, int maxItems, String dateField, String titleField, Map<String, String> extraConfig, String hint) Pre-rowBreak shape — kept so existing constructions default to flowing layout. -
PageWidgetDescriptor
public PageWidgetDescriptor(String title, String widgetType, int order, String width, String entityType, String entityName, int maxItems, String dateField, String titleField, Map<String, String> extraConfig, String hint, boolean rowBreak) Creates an instance of aPageWidgetDescriptorrecord class.- Parameters:
title- the value for thetitlerecord componentwidgetType- the value for thewidgetTyperecord componentorder- the value for theorderrecord componentwidth- the value for thewidthrecord componententityType- the value for theentityTyperecord componententityName- the value for theentityNamerecord componentmaxItems- the value for themaxItemsrecord componentdateField- the value for thedateFieldrecord componenttitleField- the value for thetitleFieldrecord componentextraConfig- the value for theextraConfigrecord componenthint- the value for thehintrecord componentrowBreak- the value for therowBreakrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
widgetType
Returns the value of thewidgetTyperecord component.- Returns:
- the value of the
widgetTyperecord component
-
order
public int order()Returns the value of theorderrecord component.- Returns:
- the value of the
orderrecord component
-
width
Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
entityType
Returns the value of theentityTyperecord component.- Returns:
- the value of the
entityTyperecord component
-
entityName
Returns the value of theentityNamerecord component.- Returns:
- the value of the
entityNamerecord component
-
maxItems
public int maxItems()Returns the value of themaxItemsrecord component.- Returns:
- the value of the
maxItemsrecord component
-
dateField
Returns the value of thedateFieldrecord component.- Returns:
- the value of the
dateFieldrecord component
-
titleField
Returns the value of thetitleFieldrecord component.- Returns:
- the value of the
titleFieldrecord component
-
extraConfig
Returns the value of theextraConfigrecord component.- Returns:
- the value of the
extraConfigrecord component
-
hint
Returns the value of thehintrecord component.- Returns:
- the value of the
hintrecord component
-
rowBreak
public boolean rowBreak()Returns the value of therowBreakrecord component.- Returns:
- the value of the
rowBreakrecord component
-