Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Slider bar - Slider from both ends

 
Suhas Bilaye
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which slider bar did you use?
 
Suhas Bilaye
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using com.google.gwt.gen2.picker.client.SliderBar.
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No idea sorry. I haven't seen such a slider bar ever.
 
Suhas Bilaye
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check this image. This is what I want to achieve.

Thanks and Regards,
Suhas
Filename: slider bar screen shot.bmp
Description:
File size: 750 Kbytes
[Download slider bar screen shot.bmp] Download Attachment
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry no idea. Personally I find it a very confusing user control and I would not recommend it.
 
salvin francis
Bartender
Posts: 1268
10
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.



 
Dave McCann
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic