• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Slider bar - Slider from both ends

 
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which slider bar did you use?
 
Suhas Bilaye
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using com.google.gwt.gen2.picker.client.SliderBar.
 
Maneesh Godbole
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
File size: 768 Kbytes
 
Maneesh Godbole
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry no idea. Personally I find it a very confusing user control and I would not recommend it.
 
Bartender
Posts: 2911
150
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.



 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
reply
    Bookmark Topic Watch Topic
  • New Topic