Record Class ConfirmationOption<T extends Describable>
java.lang.Object
java.lang.Record
com.evolveum.midpoint.web.component.dialog.ConfirmationOption<T>
- All Implemented Interfaces:
Serializable
public record ConfirmationOption<T extends Describable>(org.apache.wicket.model.IModel<Boolean> selected, T extends Describable option, SerializableBiConsumer<ConfirmationOption<T extends Describable>,org.apache.wicket.ajax.AjaxRequestTarget> onClick)
extends Record
implements Serializable
Represents a single confirmation option entry with selection state, and optional click handler.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConfirmationOption(org.apache.wicket.model.IModel<Boolean> selected, T option, SerializableBiConsumer<ConfirmationOption<T>, org.apache.wicket.ajax.AjaxRequestTarget> onClick) Creates an instance of aConfirmationOptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull List<ConfirmationOption<DataAccessPermission>>static List<ConfirmationOption<DataAccessPermission>>org.apache.wicket.model.IModel<String>final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanstatic @NotNull List<ConfirmationOption<DataAccessPermission>>SerializableBiConsumer<ConfirmationOption<T>,org.apache.wicket.ajax.AjaxRequestTarget> onClick()Returns the value of theonClickrecord component.option()Returns the value of theoptionrecord component.org.apache.wicket.model.IModel<Boolean>selected()Returns the value of theselectedrecord component.static <T extends Describable>
ConfirmationOption<T>selectedOf(T option) voidsetSelected(boolean selected) org.apache.wicket.model.IModel<String>title()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConfirmationOption
public ConfirmationOption(org.apache.wicket.model.IModel<Boolean> selected, T option, SerializableBiConsumer<ConfirmationOption<T>, org.apache.wicket.ajax.AjaxRequestTarget> onClick) Creates an instance of aConfirmationOptionrecord class.- Parameters:
selected- the value for theselectedrecord componentoption- the value for theoptionrecord componentonClick- the value for theonClickrecord component
-
-
Method Details
-
delineationPermissionsOptions
-
correlationPermissionsOptions
@NotNull public static @NotNull List<ConfirmationOption<DataAccessPermission>> correlationPermissionsOptions() -
mappingPermissionsOptions
@NotNull public static @NotNull List<ConfirmationOption<DataAccessPermission>> mappingPermissionsOptions() -
selectedOf
-
isSelected
public boolean isSelected() -
setSelected
public void setSelected(boolean selected) -
title
-
description
-
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). -
selected
Returns the value of theselectedrecord component.- Returns:
- the value of the
selectedrecord component
-
option
Returns the value of theoptionrecord component.- Returns:
- the value of the
optionrecord component
-
onClick
public SerializableBiConsumer<ConfirmationOption<T>,org.apache.wicket.ajax.AjaxRequestTarget> onClick()Returns the value of theonClickrecord component.- Returns:
- the value of the
onClickrecord component
-