All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.lessvoid.nifty.controls.SliderChangedEvent Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
package de.lessvoid.nifty.controls;

import de.lessvoid.nifty.NiftyEvent;

import javax.annotation.Nonnull;

/**
 * Nifty generates this event when a Slider value has been changed.
 *
 * @author void
 */
public class SliderChangedEvent implements NiftyEvent {
  @Nonnull
  private final Slider slider;
  private final float value;

  public SliderChangedEvent(@Nonnull final Slider slider, final float newValue) {
    this.slider = slider;
    this.value = newValue;
  }

  @Nonnull
  public Slider getSlider() {
    return slider;
  }

  public float getValue() {
    return value;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy