Package io.jmix.dynmodelflowui.impl
Record Class DynamicViewHandlerSuggestionProvider.EditorContext
java.lang.Object
java.lang.Record
io.jmix.dynmodelflowui.impl.DynamicViewHandlerSuggestionProvider.EditorContext
- Record Components:
components- the components declared in the view the handler belongs tohandlerNames- the names of the handlers declared in the same viewentity- the entity that owns the view,nullwhen unknown
- Enclosing class:
DynamicViewHandlerSuggestionProvider
public static record DynamicViewHandlerSuggestionProvider.EditorContext(List<DynamicViewComponentIdProvider.ComponentInfo> components, List<String> handlerNames, @Nullable DynamicEntityModel entity)
extends Record
What the editor knows about the handler being edited and cannot be derived from the expression.
-
Constructor Summary
ConstructorsConstructorDescriptionEditorContext(List<DynamicViewComponentIdProvider.ComponentInfo> components, List<String> handlerNames, @Nullable DynamicEntityModel entity) Creates an instance of aEditorContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponentsrecord component.@Nullable DynamicEntityModelentity()Returns the value of theentityrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thehandlerNamesrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EditorContext
public EditorContext(List<DynamicViewComponentIdProvider.ComponentInfo> components, List<String> handlerNames, @Nullable DynamicEntityModel entity) Creates an instance of aEditorContextrecord class.- Parameters:
components- the value for thecomponentsrecord componenthandlerNames- the value for thehandlerNamesrecord componententity- the value for theentityrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
components
Returns the value of thecomponentsrecord component.- Returns:
- the value of the
componentsrecord component
-
handlerNames
Returns the value of thehandlerNamesrecord component.- Returns:
- the value of the
handlerNamesrecord component
-
entity
Returns the value of theentityrecord component.- Returns:
- the value of the
entityrecord component
-