Package com.onec.ui
Record Class FieldHint
java.lang.Object
java.lang.Record
com.onec.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)
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
value derived from @UiHint (or its absence).
This is the configurer-side replacement for @UiHint. New code
should use the DSL rather than the annotation; the annotation remains as
a deprecated fallback for one release.
-
Constructor Summary
Constructors -
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.order()Returns the value of theorderrecord component.Returns the value of theplaceholderrecord component.final StringtoString()Returns a string representation of this record class.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) 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 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
-