
de.lessvoid.nifty.controls.ListBoxSelectionChangedEvent Maven / Gradle / Ivy
package de.lessvoid.nifty.controls;
import de.lessvoid.nifty.NiftyEvent;
import javax.annotation.Nonnull;
import java.util.List;
/**
* Nifty generates this event when the selection of the ListBox changes.
*
* @author void
*/
public class ListBoxSelectionChangedEvent implements NiftyEvent {
@Nonnull
private final ListBox listBox;
@Nonnull
private final List selection;
@Nonnull
private final List selectionIndices;
public ListBoxSelectionChangedEvent(
@Nonnull final ListBox listBox,
@Nonnull final List selection,
@Nonnull final List selectionIndices) {
this.listBox = listBox;
this.selection = selection;
this.selectionIndices = selectionIndices;
}
@Nonnull
public ListBox getListBox() {
return listBox;
}
@Nonnull
public List getSelection() {
return selection;
}
@Nonnull
public List getSelectionIndices() {
return selectionIndices;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy