本文整理汇总了Java中org.gwtbootstrap3.extras.slider.client.ui.base.event.SlideStopEvent类的典型用法代码示例。如果您正苦于以下问题:Java SlideStopEvent类的具体用法?Java SlideStopEvent怎么用?Java SlideStopEvent使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
SlideStopEvent类属于org.gwtbootstrap3.extras.slider.client.ui.base.event包,在下文中一共展示了SlideStopEvent类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import org.gwtbootstrap3.extras.slider.client.ui.base.event.SlideStopEvent; //导入依赖的package包/类
@Override
public void init(final String title, final String units, final IsWidget enabledView, final ValueBoxEditor.View valueView) {
this.enabledView = enabledView;
this.valueView = valueView;
initWidget(Binder.BINDER.createAndBindUi(this));
this.units.setText(units);
this.units.setTitle(units);
this.title.setText(title);
slider.addSlideStopHandler(new SlideStopHandler<Double>() {
@Override
public void onSlideStop(final SlideStopEvent<Double> event) {
// NOTE: Parse double from string value to avoid https://github.com/gwtbootstrap3/gwtbootstrap3-extras/issues/169
final Object value = event.getValue();
final Double _v = Double.parseDouble(value.toString());
callback.onValueChange(_v);
}
});
}
示例2: addSlideStopHandler
import org.gwtbootstrap3.extras.slider.client.ui.base.event.SlideStopEvent; //导入依赖的package包/类
@Override
public HandlerRegistration addSlideStopHandler(final SlideStopHandler<T> handler) {
return addHandler(handler, SlideStopEvent.getType());
}
示例3: fireSlideStopEvent
import org.gwtbootstrap3.extras.slider.client.ui.base.event.SlideStopEvent; //导入依赖的package包/类
/**
* Fires a {@link SlideStopEvent} event.
*
* @param value the new slide value
*/
protected void fireSlideStopEvent(final T value) {
SlideStopEvent.fire(this, value);
}