本文整理匯總了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);
}