changeset 2152:907061acb223

Modena test app added section.
author "Jasper Potts"
date Sun, 06 Jan 2013 13:25:55 -0800
parents 3f1a87f8b460
children f9854bbcd1cb
files apps/experiments/Modena/src/modena/SamplePage.java
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/apps/experiments/Modena/src/modena/SamplePage.java	Fri Jan 04 22:06:19 2013 -0800
+++ b/apps/experiments/Modena/src/modena/SamplePage.java	Sun Jan 06 13:25:55 2013 -0800
@@ -59,6 +59,7 @@
 import javafx.scene.control.Separator;
 import javafx.scene.control.SeparatorBuilder;
 import javafx.scene.control.Slider;
+import javafx.scene.control.SliderBuilder;
 import javafx.scene.control.TextArea;
 import javafx.scene.control.TextAreaBuilder;
 import javafx.scene.control.TextField;
@@ -275,6 +276,11 @@
                 withState(new Slider(0,100,50), "focused"),
                 withState(new Slider(0,100,50), "focused", ".thumb", "hover"),
                 withState(new Slider(0,100,50), "focused", ".thumb", "hover, pressed"));
+        newSection("Slider (V):", 
+                SliderBuilder.create().min(0).max(100).value(50).orientation(Orientation.VERTICAL).build(),
+                withState(SliderBuilder.create().min(0).max(100).value(50).orientation(Orientation.VERTICAL).build(), null, ".thumb", "hover"),
+                withState(SliderBuilder.create().min(0).max(100).value(50).orientation(Orientation.VERTICAL).build(), null, ".thumb", "hover, pressed"),
+                withState(SliderBuilder.create().min(0).max(100).value(50).orientation(Orientation.VERTICAL).build(), "disabled"));
         newDetailedSection(
                 new String[] {"Scrollbar - H: ", "normal", "small", "big thumb"}, 
                 new ScrollBar(),
@@ -315,7 +321,7 @@
                 withState(new ProgressIndicator(0.5), "disabled")
                 );
         newDetailedSection(
-                new String[] {"ProgressIndicator Indeterminate: ", "normal", "small", "large", "disabled"}, 
+                new String[] {"ProgressIndicator\nIndeterminate: ", "normal", "small", "large", "disabled"}, 
                 ProgressIndicatorBuilder.create().progress(-1).maxWidth(USE_PREF_SIZE).maxHeight(USE_PREF_SIZE).build(),
                 ProgressIndicatorBuilder.create().progress(-1).prefWidth(30).prefHeight(30).build(),
                 ProgressIndicatorBuilder.create().progress(-1).prefWidth(60).prefHeight(60).build(),