org.dominokit.domino.ui.utils.Selectable Maven / Gradle / Ivy
package org.dominokit.domino.ui.utils;
public interface Selectable {
T select();
T deselect();
T select(boolean silent);
T deselect(boolean silent);
boolean isSelected();
default void addSelectionHandler(SelectionHandler selectionHandler){}
@FunctionalInterface
interface SelectionHandler{
void onSelectionChanged(Selectable selectable);
}
}