aspose file tools*
The moose likes GWT and the fly likes Slider bar - Slider from both ends Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Slider bar - Slider from both ends" Watch "Slider bar - Slider from both ends" New topic
Author

Slider bar - Slider from both ends

Suhas Bilaye
Ranch Hand

Joined: Sep 10, 2009
Posts: 80
Hi,

I wanted to have a slider bar for selecting a range of values between minimum and maximum. For example if min value is 1 and max is 100 I should be able to select range from 72 to 91. For this purpose a I tried to use a slider bar but since it provides only one value and not a range of values, it doesn't serve the purpose.

Does anyone know of any Slider bar in GWT or any other external library support for this dual ended slider bar?

Regards,
Suhas


Thanks and Regards,
Suhas
http://www.xplore-java.blogspot.com/
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10360
    
    8

Which slider bar did you use?


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Suhas Bilaye
Ranch Hand

Joined: Sep 10, 2009
Posts: 80
I am using com.google.gwt.gen2.picker.client.SliderBar.
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10360
    
    8

Check out http://google-web-toolkit-incubator.googlecode.com/svn/trunk/demo/SliderBar/index.html
I havent used it myself, but from the example it looks like you can define the min/max values
Suhas Bilaye
Ranch Hand

Joined: Sep 10, 2009
Posts: 80
Hey thanks for the reply,

Actually if you see in the link the sliding pointer is only one so you can select only one value. I want to have a selection of range of values.
For example, I am supposed to display set of medicines for different age groups say 12 - 30 and 30 - 50 the min age is 5 and max is 105
The slider bar should have sliding facility at both endpoints i.e user should be able to select any range of values and not a single value.

Regards,
Suhas
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10360
    
    8

No idea sorry. I haven't seen such a slider bar ever.
Suhas Bilaye
Ranch Hand

Joined: Sep 10, 2009
Posts: 80
Check this image. This is what I want to achieve.

Thanks and Regards,
Suhas


[Download slider bar screen shot.bmp] Download

Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10360
    
    8

Sorry no idea. Personally I find it a very confusing user control and I would not recommend it.
salvin francis
Ranch Hand

Joined: Jan 12, 2009
Posts: 928

just a suggestion:
you could also use the native scrollbar as a slider component:

This is what i had done some time ago with an instance variable :msg which is a Label.




My Website: [Salvin.in] Cool your mind:[Salvin.in/painting] My Sally:[Salvin.in/sally]
Dave McCann
Greenhorn

Joined: Aug 05, 2011
Posts: 1
Suhas Bilaye wrote:Check this image. This is what I want to achieve.

Thanks and Regards,
Suhas


That looks great. Do you have the Source code that you used?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Slider bar - Slider from both ends