|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
org.gwtbootstrap3.extras.slider.client.ui.base.SliderBase<T>
T - slider value typepublic abstract class SliderBase<T>
https://github.com/seiyria/bootstrap-slider| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Fields inherited from interface org.gwtbootstrap3.extras.slider.client.ui.base.event.HasAllSlideHandlers |
|---|
SLIDE_CHANGE_EVENT, SLIDE_DISABLED_EVENT, SLIDE_ENABLED_EVENT, SLIDE_EVENT, SLIDE_START_EVENT, SLIDE_STOP_EVENT |
| Constructor Summary | |
|---|---|
protected |
SliderBase()
|
| Method Summary | |
|---|---|
HandlerRegistration |
addSlideDisabledHandler(SlideDisabledHandler handler)
Adds a SlideDisabledEvent handler. |
HandlerRegistration |
addSlideEnabledHandler(SlideEnabledHandler handler)
Adds a SlideEnabledEvent handler. |
HandlerRegistration |
addSlideHandler(SlideHandler<T> handler)
Adds a SlideEvent handler. |
HandlerRegistration |
addSlideStartHandler(SlideStartHandler<T> handler)
Adds a SlideStartEvent handler. |
HandlerRegistration |
addSlideStopHandler(SlideStopHandler<T> handler)
Adds a SlideStopEvent handler. |
HandlerRegistration |
addValueChangeHandler(ValueChangeHandler<T> handler)
|
LeafValueEditor<T> |
asEditor()
|
protected abstract T |
convertValue(String value)
Converts the value of the SliderOption.VALUE attribute to the
slider value. |
protected void |
fireChangeEvent(T value)
Fires a ValueChangeEvent event. |
protected void |
fireSlideEvent(T value)
Fires a SlideEvent event. |
protected void |
fireSlideStartEvent(T value)
Fires a SlideStartEvent event. |
protected void |
fireSlideStopEvent(T value)
Fires a SlideStopEvent event. |
HandleType |
getHandle()
|
String |
getId()
|
double |
getMax()
|
double |
getMin()
|
OrientationType |
getOrientation()
|
double |
getPrecision()
|
ScaleType |
getScale()
|
SelectionType |
getSelection()
|
double |
getStep()
|
List<Double> |
getTicks()
|
List<String> |
getTicksLabels()
|
double |
getTicksSnapBounds()
|
TooltipType |
getTooltip()
|
T |
getValue()
|
protected abstract T |
getValue(Element e)
Returns the value by invoking the JSNI getValue command. |
boolean |
isEnabled()
|
boolean |
isNaturalArrowKeys()
|
protected boolean |
isRange()
|
boolean |
isReversed()
|
boolean |
isTooltipSplit()
|
boolean |
isVisible()
|
protected void |
onLoad()
|
protected abstract void |
onSlide(Event event)
Called when a SlideEvent is fired. |
protected abstract void |
onSlideChange(Event event)
Called when a ValueChangeEvent is fired. |
protected abstract void |
onSlideStart(Event event)
Called when a SlideStartEvent is fired. |
protected abstract void |
onSlideStop(Event event)
Called when a SlideStopEvent is fired. |
protected void |
onUnload()
|
void |
refresh()
Refreshes the current slider. |
void |
relayout()
Renders the tool-tip again, after initialization. |
void |
setEnabled(boolean enabled)
|
void |
setFormatter(FormatterCallback formatterCallback)
Sets the formatter callback. |
void |
setHandle(HandleType handle)
Sets the handle shape. |
void |
setHiddenOn(org.gwtbootstrap3.client.ui.constants.DeviceSize deviceSize)
|
void |
setId(String id)
Sets the id of the slider element when it's created. |
void |
setMax(double max)
Sets the maximum possible value. |
void |
setMin(double min)
Sets the minimum possible value. |
void |
setNaturalArrowKeys(boolean naturalArrowKeys)
The natural order is used for the arrow keys. |
void |
setOrientation(OrientationType orientation)
Sets the orientation. |
void |
setPrecision(double precision)
Sets the number of digits shown after the decimal. Defaults to the number of digits after the decimal of step value. |
protected void |
setRange(boolean range)
Make range slider if set to true. |
void |
setReversed(boolean reversed)
Sets whether or not the slider should be reversed. |
void |
setScale(ScaleType scale)
Sets the slider scale type. |
void |
setSelection(SelectionType selection)
Sets the selection type. |
void |
setStep(double step)
Sets the increment step. |
void |
setTicks(List<Double> ticks)
Sets the values of ticks. |
void |
setTicksLabels(List<String> ticksLabels)
Sets the labels below the tick marks. Accepts HTML input. |
void |
setTicksSnapBounds(double ticksSnapBounds)
Sets the snap bounds of a tick. |
void |
setTooltip(TooltipType tooltip)
Sets the tool-tip type. |
void |
setTooltipSplit(boolean tooltipSplit)
Show one too-tip if set to false, otherwise
show two tool-tips one for each handler. |
protected abstract void |
setValue(Element e,
T value)
Sets the given value to the slider. |
void |
setValue(T value)
|
void |
setValue(T value,
boolean fireEvents)
|
void |
setVisible(boolean visible)
|
void |
setVisibleOn(org.gwtbootstrap3.client.ui.constants.DeviceSize deviceSize)
|
void |
toggle()
Toggles the slider between enabled and disabled. |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isAttached, isOrWasAttached, onAttach, onBrowserEvent, onDetach, removeFromParent, setLayoutData, sinkEvents, unsinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, resolvePotentialElement, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setWidth, sinkBitlessEvent, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.google.gwt.event.shared.HasHandlers |
|---|
fireEvent |
| Constructor Detail |
|---|
protected SliderBase()
| Method Detail |
|---|
protected void onLoad()
onLoad in class Widgetprotected void onUnload()
onUnload in class Widgetpublic void setId(String id)
setId in interface org.gwtbootstrap3.client.ui.base.HasIdpublic String getId()
getId in interface org.gwtbootstrap3.client.ui.base.HasIdpublic double getMin()
public void setMin(double min)
min - public double getMax()
public void setMax(double max)
max - public double getStep()
public void setStep(double step)
step - public double getPrecision()
public void setPrecision(double precision)
precision - public OrientationType getOrientation()
public void setOrientation(OrientationType orientation)
orientation - OrientationTypeprotected boolean isRange()
protected void setRange(boolean range)
true. If initial value is scalar,
max will be used for second value.
range - public SelectionType getSelection()
public void setSelection(SelectionType selection)
selection - SelectionTypepublic TooltipType getTooltip()
public void setTooltip(TooltipType tooltip)
tooltip - TooltipTypepublic boolean isTooltipSplit()
public void setTooltipSplit(boolean tooltipSplit)
false, otherwise
show two tool-tips one for each handler.
tooltipSplit - public HandleType getHandle()
public void setHandle(HandleType handle)
handle - HandleTypepublic boolean isReversed()
public void setReversed(boolean reversed)
reversed - public boolean isEnabled()
isEnabled in interface HasEnabledpublic void setEnabled(boolean enabled)
setEnabled in interface HasEnabledpublic void setFormatter(FormatterCallback formatterCallback)
formatterCallback - public boolean isNaturalArrowKeys()
public void setNaturalArrowKeys(boolean naturalArrowKeys)
naturalArrowKeys - public List<Double> getTicks()
public void setTicks(List<Double> ticks)
ticks - public List<String> getTicksLabels()
public void setTicksLabels(List<String> ticksLabels)
ticksLabels - public double getTicksSnapBounds()
public void setTicksSnapBounds(double ticksSnapBounds)
ticksSnapBounds - public ScaleType getScale()
public void setScale(ScaleType scale)
scale - ScaleTypepublic void setVisible(boolean visible)
setVisible in interface HasVisibilitysetVisible in class UIObjectpublic boolean isVisible()
isVisible in interface HasVisibilityisVisible in class UIObjectpublic void setVisibleOn(org.gwtbootstrap3.client.ui.constants.DeviceSize deviceSize)
setVisibleOn in interface org.gwtbootstrap3.client.ui.base.HasResponsivenesspublic void setHiddenOn(org.gwtbootstrap3.client.ui.constants.DeviceSize deviceSize)
setHiddenOn in interface org.gwtbootstrap3.client.ui.base.HasResponsivenesspublic void setValue(T value)
setValue in interface TakesValue<T>setValue in interface HasValue<T>
public void setValue(T value,
boolean fireEvents)
setValue in interface HasValue<T>
protected abstract void setValue(Element e,
T value)
e - value - public T getValue()
getValue in interface TakesValue<T>getValue in interface HasValue<T>protected abstract T getValue(Element e)
e -
protected abstract T convertValue(String value)
SliderOption.VALUE attribute to the
slider value.
value -
public void toggle()
public void refresh()
public void relayout()
public LeafValueEditor<T> asEditor()
asEditor in interface IsEditor<LeafValueEditor<T>>public HandlerRegistration addValueChangeHandler(ValueChangeHandler<T> handler)
addValueChangeHandler in interface HasValueChangeHandlers<T>public HandlerRegistration addSlideHandler(SlideHandler<T> handler)
HasSlideHandlersSlideEvent handler.
addSlideHandler in interface HasSlideHandlers<T>handler - the handler
public HandlerRegistration addSlideStartHandler(SlideStartHandler<T> handler)
HasSlideStartHandlersSlideStartEvent handler.
addSlideStartHandler in interface HasSlideStartHandlers<T>handler - the handler
public HandlerRegistration addSlideStopHandler(SlideStopHandler<T> handler)
HasSlideStopHandlersSlideStopEvent handler.
addSlideStopHandler in interface HasSlideStopHandlers<T>handler - the handler
public HandlerRegistration addSlideEnabledHandler(SlideEnabledHandler handler)
HasSlideEnabledHandlersSlideEnabledEvent handler.
addSlideEnabledHandler in interface HasSlideEnabledHandlershandler - the handler
public HandlerRegistration addSlideDisabledHandler(SlideDisabledHandler handler)
HasSlideDisabledHandlersSlideDisabledEvent handler.
addSlideDisabledHandler in interface HasSlideDisabledHandlershandler - the handler
protected abstract void onSlide(Event event)
SlideEvent is fired.
event - the native eventprotected void fireSlideEvent(T value)
SlideEvent event.
value - the new slide valueprotected abstract void onSlideStart(Event event)
SlideStartEvent is fired.
event - the native eventprotected void fireSlideStartEvent(T value)
SlideStartEvent event.
value - the new slide valueprotected abstract void onSlideStop(Event event)
SlideStopEvent is fired.
event - the native eventprotected void fireSlideStopEvent(T value)
SlideStopEvent event.
value - the new slide valueprotected abstract void onSlideChange(Event event)
ValueChangeEvent is fired.
event - the native eventprotected void fireChangeEvent(T value)
ValueChangeEvent event.
value - the new slide value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||