aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarko Grönroos <magi@vaadin.com>2012-11-23 12:41:26 +0000
committerVaadin Code Review <review@vaadin.com>2012-11-23 12:41:26 +0000
commitf4f0531c76af9a9cdabb82ec4d90c10a0243cf5c (patch)
treefc3ac81a85a0b4ff055aef22e23cd4cca144b003
parentdf17c6dec3f6ab3111d51db74a32752804a8abad (diff)
parent34872992c0fb78d71a1c279d69ae7bc4443e3ee0 (diff)
downloadvaadin-framework-f4f0531c76af9a9cdabb82ec4d90c10a0243cf5c.tar.gz
vaadin-framework-f4f0531c76af9a9cdabb82ec4d90c10a0243cf5c.zip
Merge "Removed outdated code example from javadoc"
-rw-r--r--server/src/com/vaadin/ui/Slider.java31
1 files changed, 0 insertions, 31 deletions
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: <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> {