Record Class ButtonElement.ButtonAction
java.lang.Object
java.lang.Record
com.juliewoolie.dom.ButtonElement.ButtonAction
- Record Components:
type
- Action typecommand
- Action command
- Enclosing interface:
ButtonElement
public static record ButtonElement.ButtonAction(ButtonElement.ButtonActionType type, String command)
extends Record
Button action.
Note that in the case of a ButtonElement.ButtonActionType.CLOSE
, any
provided command will be ignored.
Placeholder | Description | Example |
---|---|---|
%player% |
Player name | JulieWoolie |
-
Constructor Summary
ConstructorsConstructorDescriptionButtonAction
(ButtonElement.ButtonActionType type, String command) Creates an instance of aButtonAction
record class. -
Method Summary
Modifier and TypeMethodDescriptioncommand()
Returns the value of thecommand
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.type()
Returns the value of thetype
record component.
-
Constructor Details
-
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)
. -
type
-
command
-