How to create a column that is a checkBox

hello
I want to create a temporary column that is a checkBox to select data in a table.
Now I have used this code

@Install(to = "tableGeneratedColumn.isEmail", subject = "columnGenerator")
private Component tableGeneratedColumnIsEmailColumnGenerator(Customer customer) {
    CheckBox isEmail = uiComponents.create(CheckBox.class);
    isEmail.setValue(customer.getEmail() != null);
    return isEmail;
}
<table id="tableGeneratedColumn"
       width="100%"
       dataContainer="customersDc">
    <columns>
        <column id="age"/>
        <column id="firstName"/>
        <column id="lastName"/>
        <column id="fullName" caption="Full name"/>
        <column id="email"/>
        <column id="isEmail" caption="Is email"/>
    </columns>
</table>

So it can create the checkboxes I want. But when I edit the value in the checkBox I can’t get that modified value to work.
What function do I need? Run values in checkBox

To get the value from the checkbox, you should add a value change listener:

    CheckBox isEmail = uiComponents.create(CheckBox.class);
    isEmail.setValue(customer.getEmail() != null);
    isEmail.addValueChangeListener(e -> {
        Boolean newValue = e.getValue();
        //...
    });