Win a copy of Machine Learning for Business: Using Amazon SageMaker and JupyterE this week in the Jython/Python forum
or Object Design Style Guide in the Object-Oriented programming forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Slider bar - Slider from both ends

 
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
 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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
File size: 768 Kbytes
 
Maneesh Godbole
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • 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.
 
Bartender
Posts: 2481
108
Google Web Toolkit Eclipse IDE 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.



 
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?
 
Look! I laid an egg! Why does it smell like that? Tiny ad, does this smell weird to you?
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!