1 package org.dolphinemu.dolphinemu.features.settings.model.view;
2 
3 import org.dolphinemu.dolphinemu.features.settings.model.AbstractIntSetting;
4 import org.dolphinemu.dolphinemu.features.settings.model.AbstractSetting;
5 import org.dolphinemu.dolphinemu.features.settings.model.Settings;
6 
7 public final class IntSliderSetting extends SliderSetting
8 {
9   private AbstractIntSetting mSetting;
10 
IntSliderSetting(AbstractIntSetting setting, int titleId, int descriptionId, int min, int max, String units)11   public IntSliderSetting(AbstractIntSetting setting, int titleId, int descriptionId, int min,
12           int max, String units)
13   {
14     super(titleId, descriptionId, min, max, units);
15     mSetting = setting;
16   }
17 
getSelectedValue(Settings settings)18   public int getSelectedValue(Settings settings)
19   {
20     return mSetting.getInt(settings);
21   }
22 
setSelectedValue(Settings settings, int selection)23   public void setSelectedValue(Settings settings, int selection)
24   {
25     mSetting.setInt(settings, selection);
26   }
27 
28   @Override
getSetting()29   public AbstractSetting getSetting()
30   {
31     return mSetting;
32   }
33 }
34