Package su.onno.ui
Record Class FieldHint
java.lang.Object
java.lang.Record
su.onno.ui.FieldHint
public record FieldHint(Boolean visibleInList, Boolean visibleInForm, Boolean visibleInDetail, Integer order, String group, String width, String widget, String placeholder, String format, String hint, String label, String refSecondary, String refFilter, String refOptionDecorator, Boolean uniqueWithinSection)
extends Record
UI hints for a single field, configured via
UiLayoutBuilder.
All fields are nullable so callers can distinguish "not set" from
"explicitly set to the default value". When merged with the descriptor
produced by MetadataScanner, only non-null fields override the
scanner defaults.
-
Constructor Summary
ConstructorsConstructorDescriptionFieldHint(Boolean visibleInList, Boolean visibleInForm, Boolean visibleInDetail, Integer order, String group, String width, String widget, String placeholder, String format, String hint, String label, String refSecondary, String refFilter, String refOptionDecorator, Boolean uniqueWithinSection) Creates an instance of aFieldHintrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic FieldHintempty()final booleanIndicates whether some other object is "equal to" this one.format()Returns the value of theformatrecord component.group()Returns the value of thegrouprecord component.final inthashCode()Returns a hash code value for this object.hint()Returns the value of thehintrecord component.label()Returns the value of thelabelrecord component.order()Returns the value of theorderrecord component.Returns the value of theplaceholderrecord component.Returns the value of therefFilterrecord component.Returns the value of therefOptionDecoratorrecord component.Returns the value of therefSecondaryrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuniqueWithinSectionrecord component.Returns the value of thevisibleInDetailrecord component.Returns the value of thevisibleInFormrecord component.Returns the value of thevisibleInListrecord component.widget()Returns the value of thewidgetrecord component.width()Returns the value of thewidthrecord component.
-
Constructor Details
-
FieldHint
public FieldHint(Boolean visibleInList, Boolean visibleInForm, Boolean visibleInDetail, Integer order, String group, String width, String widget, String placeholder, String format, String hint, String label, String refSecondary, String refFilter, String refOptionDecorator, Boolean uniqueWithinSection) Creates an instance of aFieldHintrecord class.- Parameters:
visibleInList- the value for thevisibleInListrecord componentvisibleInForm- the value for thevisibleInFormrecord componentvisibleInDetail- the value for thevisibleInDetailrecord componentorder- the value for theorderrecord componentgroup- the value for thegrouprecord componentwidth- the value for thewidthrecord componentwidget- the value for thewidgetrecord componentplaceholder- the value for theplaceholderrecord componentformat- the value for theformatrecord componenthint- the value for thehintrecord componentlabel- the value for thelabelrecord componentrefSecondary- the value for therefSecondaryrecord componentrefFilter- the value for therefFilterrecord componentrefOptionDecorator- the value for therefOptionDecoratorrecord componentuniqueWithinSection- the value for theuniqueWithinSectionrecord component
-
-
Method Details
-
empty
-
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). -
visibleInList
Returns the value of thevisibleInListrecord component.- Returns:
- the value of the
visibleInListrecord component
-
visibleInForm
Returns the value of thevisibleInFormrecord component.- Returns:
- the value of the
visibleInFormrecord component
-
visibleInDetail
Returns the value of thevisibleInDetailrecord component.- Returns:
- the value of the
visibleInDetailrecord component
-
order
Returns the value of theorderrecord component.- Returns:
- the value of the
orderrecord component
-
group
Returns the value of thegrouprecord component.- Returns:
- the value of the
grouprecord component
-
width
Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
widget
Returns the value of thewidgetrecord component.- Returns:
- the value of the
widgetrecord component
-
placeholder
Returns the value of theplaceholderrecord component.- Returns:
- the value of the
placeholderrecord component
-
format
Returns the value of theformatrecord component.- Returns:
- the value of the
formatrecord component
-
hint
Returns the value of thehintrecord component.- Returns:
- the value of the
hintrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
refSecondary
Returns the value of therefSecondaryrecord component.- Returns:
- the value of the
refSecondaryrecord component
-
refFilter
Returns the value of therefFilterrecord component.- Returns:
- the value of the
refFilterrecord component
-
refOptionDecorator
Returns the value of therefOptionDecoratorrecord component.- Returns:
- the value of the
refOptionDecoratorrecord component
-
uniqueWithinSection
Returns the value of theuniqueWithinSectionrecord component.- Returns:
- the value of the
uniqueWithinSectionrecord component
-