Package com.onec.ui
Record Class UiLayoutBuilder.WidgetConfig
java.lang.Object
java.lang.Record
com.onec.ui.UiLayoutBuilder.WidgetConfig
- Enclosing class:
UiLayoutBuilder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedateFieldrecord component.Class<?> Returns the value of theentityClassrecord 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.title()Returns the value of thetitlerecord component.Returns the value of thetitleFieldrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.width()Returns the value of thewidthrecord component.
-
Constructor Details
-
WidgetConfig
public WidgetConfig(String title, String type, int order, String width, Class<?> entityClass, String entityType, int maxItems, String dateField, String titleField, Map<String, String> extraConfig, String hint) Creates an instance of aWidgetConfigrecord class.- Parameters:
title- the value for thetitlerecord componenttype- the value for thetyperecord componentorder- the value for theorderrecord componentwidth- the value for thewidthrecord componententityClass- the value for theentityClassrecord componententityType- the value for theentityTyperecord 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 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
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord 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
-
entityClass
Returns the value of theentityClassrecord component.- Returns:
- the value of the
entityClassrecord component
-
entityType
Returns the value of theentityTyperecord component.- Returns:
- the value of the
entityTyperecord 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
-