//@DependsOn(values = { "rangeseekbar" })
@Version(1.00f)
@ShortName("RangeSeekBar")
@BA.Events(values={"Change"})
public class RangeSeekBarWrapper<T extends Number> extends ViewWrapper<RangeSeekBar<T>> implements DesignerCustomView
{
// Throw away variable to communicate between Initialize2() and _initialize()
boolean singleThumb = false;
/**
* Initialize the RangeSeekBar widget with AbsoluteMinValue = 0 and AbsoluteMaxValue = 100.
* @param EventName set to a non-null string to enable Change event.
*/
public void Initialize(final BA ba, String EventName) {
_initialize(ba, null, EventName);
}
/**
* Initialize the widget as a SeekBar - i.e. with one thumb only.
* Defaults: AbsoluteMinValue = 0 and AbsoluteMaxValue = 100.
* @param eventName set to a non-null string to enable Change event.
*/
public void InitializeAsSingleThumb(final BA ba, String eventName) {
this.singleThumb = true;
_initialize(ba, null, eventName);
}
/**
* Initialize the RangeSeekBar widget with AbsoluteMinValue = min and AbsoluteMaxValue = max.
*If singleThumb is set to true, then a simple SeekBar is initialized.
*
* @param min Absolute minimnum value
* @param max Absolute maximum value
* @param singleThumb set to true, a SeekBar is initialized, instead of a RangeSeekBar
* @param eventName set to a non-null string to enable Change event.
*/
public void Initialize2(final BA ba, T min, T max, boolean singleThumb, String eventName) {
this.singleThumb = singleThumb;
_initialize(ba, null, eventName);
getObject().setRangeValues(min, max);
}