com.vaadin.v7.client.widget.grid.selection.HasSelectionHandlers Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vaadin-compatibility-client Show documentation
Show all versions of vaadin-compatibility-client Show documentation
Vaadin 7 compatibility package for Vaadin 8
/*
* Copyright (C) 2000-2023 Vaadin Ltd
*
* This program is available under Vaadin Commercial License and Service Terms.
*
* See for the full
* license.
*/
package com.vaadin.v7.client.widget.grid.selection;
import com.google.gwt.event.shared.HandlerRegistration;
/**
* Marker interface for widgets that fires selection events.
*
* @author Vaadin Ltd
* @since 7.4
*/
public interface HasSelectionHandlers {
/**
* Register a selection change handler.
*
* This handler is called whenever a
* {@link com.vaadin.ui.components.grid.selection.SelectionModel
* SelectionModel} detects a change in selection state.
*
* @param handler
* a {@link SelectionHandler}
* @return a handler registration object, which can be used to remove the
* handler.
*/
public HandlerRegistration addSelectionHandler(SelectionHandler handler);
}