I searched, but did not find any components of type JSlider, only in GWT. Is there one, and if not, how can you write such a slider yourself?
1 answer
There is no standard component, however, there is a ready one on the incubator.
http://code.google.com/p/google-web-toolkit-incubator/wiki/SliderBar
In addition, extjs also has such a component. Here is an example:
http://www.java2s.com/Code/Java/GWT/VerticalHorizontalSliderExtGWT.htm
On extjs there is also a demo page showing different controls that they have. You might be interested in:
- Do I understand correctly that in the 2nd and 3rd case you have to drag the whole library for only one slider? - Nicolas Chabanovsky ♦
- Yeah, right. Only in the first library - and there is a slider. In the second case, you have to pull the whole library with a whole bunch. - cy6erGn0m
- The first option is more or less suitable. And how do you think: is it worth it to write your own slider completely, so as not to depend on anything? But large libraries are definitely useless; they are so slow! - Nicolas Chabanovsky ♦
- It all depends on your needs and capabilities. If you have plenty of time and fighting spirit, you can write your own to increase your qualifications and experience. If time is short, use ready. In addition, there is always the likelihood that your own can be in some way inferior to that ready. It should be remembered that other people are supported and tested by other people, and you support and test your component (I hope so) you and only you. - cy6erGn0m
|