Record Class DialogAction.Static
java.lang.Object
java.lang.Record
fr.fidorial.dialog.DialogAction.Static
- Record Components:
event- the click event performed on press
- All Implemented Interfaces:
DialogAction
- Enclosing interface:
DialogAction
public static record DialogAction.Static(ClickEvent<?> event)
extends Record
implements DialogAction
An action mirroring a text component click event.
- Since:
- 0.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface DialogAction
DialogAction.DynamicCustom, DialogAction.DynamicRunCommand, DialogAction.ShowDialog, DialogAction.Static -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.ClickEvent<?> event()Returns the value of theeventrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Static
Creates an instance of aStaticrecord class.- Parameters:
event- the value for theeventrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
event
-