]> source.dussan.org Git - vaadin-framework.git/commitdiff
Removed outdated code example from javadoc 49/349/1
authorArtur Signell <artur@vaadin.com>
Thu, 22 Nov 2012 14:16:02 +0000 (16:16 +0200)
committerArtur Signell <artur@vaadin.com>
Thu, 22 Nov 2012 14:16:02 +0000 (16:16 +0200)
Change-Id: Ifa4d405a86b635af12c5e6dc693d742c1a8ac68f

server/src/com/vaadin/ui/Slider.java

index 4c829a7cb46ef2703a4a79d5be7e6d63b30ac577..3154e2e9ed77b6ee4e9acbcaf5dc5015467c110a 100644 (file)
@@ -23,37 +23,6 @@ import com.vaadin.shared.ui.slider.SliderState;
 /**
  * A component for selecting a numerical value within a range.
  * 
- * Example code: <code>
- *     class MyPlayer extends CustomComponent implements ValueChangeListener {
- * 
- *             Label volumeIndicator = new Label();
- *             Slider slider;
- * 
- *             public MyPlayer() {
- *                     VerticalLayout vl = new VerticalLayout();
- *                     setCompositionRoot(vl);
- *                     slider = new Slider("Volume", 0, 100);
- *                     slider.setImmediate(true);
- *                      slider.setValue(new Double(50));
- *                     vl.addComponent(slider);
- *                     vl.addComponent(volumeIndicator);
- *                     volumeIndicator.setValue("Current volume:" + 50.0);
- *                     slider.addListener(this);
- * 
- *             }
- * 
- *             public void setVolume(double d) {
- *                     volumeIndicator.setValue("Current volume: " + d);
- *             }
- * 
- *             public void valueChange(ValueChangeEvent event) {
- *                     Double d = (Double) event.getProperty().getValue();
- *                     setVolume(d.doubleValue());
- *             }
- *     }
- * 
- * </code>
- * 
  * @author Vaadin Ltd.
  */
 public class Slider extends AbstractField<Double> {