execute
This method will get called when a button in this button group gets clicked by the user
Parameters
data
list of data of all currently active buttons (maybe empty)
selected Button Data
data of the button that was clicked if it was selected (null if button was deselected)
deselected Button Data
data of the button that was clicked if it was deselected (null if button was selected)
Example implementation:
@Override
public void execute(@NotNull List<?> data, @Nullable Object selectedButtonData, @Nullable Object unselectedButtonData) {
Global.getLogger(this.getClass()).info("A button in the button group was clicked. Button group data:");
Global.getLogger(this.getClass()).info(data);
}
Content copied to clipboard