Package com.onec.ui

Record Class UiLayoutBuilder.WidgetConfig

java.lang.Object
java.lang.Record
com.onec.ui.UiLayoutBuilder.WidgetConfig
Enclosing class:
UiLayoutBuilder

public static record UiLayoutBuilder.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) extends Record
  • 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 a WidgetConfig record class.
      Parameters:
      title - the value for the title record component
      type - the value for the type record component
      order - the value for the order record component
      width - the value for the width record component
      entityClass - the value for the entityClass record component
      entityType - the value for the entityType record component
      maxItems - the value for the maxItems record component
      dateField - the value for the dateField record component
      titleField - the value for the titleField record component
      extraConfig - the value for the extraConfig record component
      hint - the value for the hint record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • title

      public String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • type

      public String type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • order

      public int order()
      Returns the value of the order record component.
      Returns:
      the value of the order record component
    • width

      public String width()
      Returns the value of the width record component.
      Returns:
      the value of the width record component
    • entityClass

      public Class<?> entityClass()
      Returns the value of the entityClass record component.
      Returns:
      the value of the entityClass record component
    • entityType

      public String entityType()
      Returns the value of the entityType record component.
      Returns:
      the value of the entityType record component
    • maxItems

      public int maxItems()
      Returns the value of the maxItems record component.
      Returns:
      the value of the maxItems record component
    • dateField

      public String dateField()
      Returns the value of the dateField record component.
      Returns:
      the value of the dateField record component
    • titleField

      public String titleField()
      Returns the value of the titleField record component.
      Returns:
      the value of the titleField record component
    • extraConfig

      public Map<String,String> extraConfig()
      Returns the value of the extraConfig record component.
      Returns:
      the value of the extraConfig record component
    • hint

      public String hint()
      Returns the value of the hint record component.
      Returns:
      the value of the hint record component