From: Artur Signell Date: Thu, 22 Nov 2012 14:16:02 +0000 (+0200) Subject: Removed outdated code example from javadoc X-Git-Tag: 7.0.0.beta10~22^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fchanges%2F49%2F349%2F1;p=vaadin-framework.git Removed outdated code example from javadoc Change-Id: Ifa4d405a86b635af12c5e6dc693d742c1a8ac68f --- diff --git a/server/src/com/vaadin/ui/Slider.java b/server/src/com/vaadin/ui/Slider.java index 4c829a7cb4..3154e2e9ed 100644 --- a/server/src/com/vaadin/ui/Slider.java +++ b/server/src/com/vaadin/ui/Slider.java @@ -23,37 +23,6 @@ import com.vaadin.shared.ui.slider.SliderState; /** * A component for selecting a numerical value within a range. * - * Example 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()); - * } - * } - * - * - * * @author Vaadin Ltd. */ public class Slider extends AbstractField {