Package io.jmix.dynmodel.meta
Record Class DynamicViewHandlerDefinition
java.lang.Object
java.lang.Record
io.jmix.dynmodel.meta.DynamicViewHandlerDefinition
- Record Components:
name- optional handler name, unique within the view; named handlers can be invoked as dialog follow-upsevent- trigger kind; a handler without an event is not wired to a trigger and must have a namecomponentId- component the handler is attached to; required forclickandvalueChange, rejected otherwiseexpression- sandboxed SpEL expression evaluated when the handler runs
public record DynamicViewHandlerDefinition(@Nullable String name, @Nullable DynamicViewHandlerEvent event, @Nullable String componentId, @Nullable String expression)
extends Record
Defines a behavior handler of a dynamic view.
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicViewHandlerDefinition(@Nullable String name, @Nullable DynamicViewHandlerEvent event, @Nullable String componentId, @Nullable String expression) Creates an instance of aDynamicViewHandlerDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of thecomponentIdrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable DynamicViewHandlerEventevent()Returns the value of theeventrecord component.@Nullable StringReturns the value of theexpressionrecord component.final inthashCode()Returns a hash code value for this object.@Nullable Stringname()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DynamicViewHandlerDefinition
public DynamicViewHandlerDefinition(@Nullable String name, @Nullable DynamicViewHandlerEvent event, @Nullable String componentId, @Nullable String expression) Creates an instance of aDynamicViewHandlerDefinitionrecord class.- Parameters:
name- the value for thenamerecord componentevent- the value for theeventrecord componentcomponentId- the value for thecomponentIdrecord componentexpression- the value for theexpressionrecord 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). -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
event
Returns the value of theeventrecord component.- Returns:
- the value of the
eventrecord component
-
componentId
Returns the value of thecomponentIdrecord component.- Returns:
- the value of the
componentIdrecord component
-
expression
Returns the value of theexpressionrecord component.- Returns:
- the value of the
expressionrecord component
-