org.gwtbootstrap3.extras.slider.client.ui
Class Range

java.lang.Object
  extended by org.gwtbootstrap3.extras.slider.client.ui.Range

public class Range
extends Object

Slider range with a min value and a max value.


Constructor Summary
protected Range()
           
  Range(double minValue, double maxValue)
          Create a slider range with a min value and a max value.
  Range(JsArrayNumber array)
          Creates a slider range with a JavaScritp number array.
 
Method Summary
static Range fromString(String value)
          Converts the given string to a range instance.

Useful when using UiBinder.
 double getMaxValue()
          Returns the max value.
 double getMinValue()
          Returns the min value.
 JsArrayNumber toJsArray()
          Converts the range to a JavaScript number array.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Range

protected Range()

Range

public Range(double minValue,
             double maxValue)
Create a slider range with a min value and a max value.

Parameters:
minValue -
maxValue -

Range

public Range(JsArrayNumber array)
Creates a slider range with a JavaScritp number array.

This constructor is useful in JSNI calls.

Parameters:
array -
Method Detail

getMinValue

public double getMinValue()
Returns the min value.

Returns:
the min value

getMaxValue

public double getMaxValue()
Returns the max value.

Returns:
the max value

toJsArray

public JsArrayNumber toJsArray()
Converts the range to a JavaScript number array.

Returns:
a JavaScript number array

fromString

public static Range fromString(String value)
Converts the given string to a range instance.

Useful when using UiBinder.

Parameters:
value -
Returns:

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015. All rights reserved.