Commits

shemnon committed 26a727c

Move Ensemble2 demo to use BSS

Comments (0)

Files changed (15)

Ensemble2/src/main/java/ensemble/Ensemble2.java

             //RT-13234
             scene.setCamera(new PerspectiveCamera());
         }
-        scene.getStylesheets().add(Ensemble2.class.getResource("ensemble2.css").toExternalForm());
+        scene.getStylesheets().add(Ensemble2.class.getResource("ensemble2.bss").toExternalForm());
         // create modal dimmer, to dim screen when showing modal dialogs
         modalDimmer = new StackPane();
         modalDimmer.setId("ModalDimmer");

Ensemble2/src/main/java/ensemble/pages/SamplePage.java

         if (shCoreJs == null) shCoreJs = Utils.loadFile(Ensemble2.class.getResource("syntaxhighlighter/shCore.js")) +";";
         if (shBrushJScript == null) shBrushJScript = Utils.loadFile(Ensemble2.class.getResource("syntaxhighlighter/shBrushJava.js"));
         if (shCoreDefaultCss == null) shCoreDefaultCss =
-                Utils.loadFile(Ensemble2.class.getResource("syntaxhighlighter/shCoreDefault.css")).replaceAll("!important","");
+                Utils.loadFile(Ensemble2.class.getResource("syntaxhighlighter/shCoreDefault.bss")).replaceAll("!important","");
         // load and convert source
         String source = SampleProjectBuilder.loadAndConvertSampleCode(sampleInfo.getSourceFileUrl());
         // store raw code

Ensemble2/src/main/java/ensemble/samples/charts/area/CurveFittedAreaChartSample.java

                 new XYChart.Data<Number, Number>(7500, 180),
                 new XYChart.Data<Number, Number>(10000, 100));
         chart.getData().add(series);
-        String curveFittedChartCss = CurveFittedAreaChartSample.class.getResource("CurveFittedChart.css").toExternalForm();
+        String curveFittedChartCss = CurveFittedAreaChartSample.class.getResource("CurveFittedChart.bss").toExternalForm();
         chart.getStylesheets().add(curveFittedChartCss);
         getChildren().add(chart);
     }

Ensemble2/src/main/java/ensemble/samples/charts/bar/ImageBarChartSample.java

 
     public ImageBarChartSample() {
 
-        String imageBarChartCss = ImageBarChartSample.class.getResource("ImageBarChart.css").toExternalForm();
+        String imageBarChartCss = ImageBarChartSample.class.getResource("ImageBarChart.bss").toExternalForm();
 
         BarChart barChart = new BarChart(new CategoryAxis(), new NumberAxis());
         barChart.setLegendVisible(false);
                 new XYChart.Data<String, Integer>("Van", 20))));
 
         Scene scene = new Scene(barChart, 350, 300);
-        scene.getStylesheets().add(ImageBarChartSample.class.getResource("ImageBarChart.css").toString());
+        scene.getStylesheets().add(ImageBarChartSample.class.getResource("ImageBarChart.bss").toString());
         getChildren().add(barChart);
     }
 }

Ensemble2/src/main/java/ensemble/samples/charts/pie/DrilldownPieChartSample.java

     PieChart.Data A, B, C, D;
 
     public DrilldownPieChartSample() {
-        String drilldownCss = DrilldownPieChartSample.class.getResource("DrilldownChart.css").toExternalForm();
+        String drilldownCss = DrilldownPieChartSample.class.getResource("DrilldownChart.bss").toExternalForm();
 
         PieChart pie = new PieChart(
                 FXCollections.observableArrayList(

Ensemble2/src/main/java/ensemble/samples/controls/buttons/InsetTextButtonSample.java

 
     public InsetTextButtonSample() {
 
-        String insetTextCss = InsetTextButtonSample.class.getResource("InsetTextButton.css").toExternalForm();
+        String insetTextCss = InsetTextButtonSample.class.getResource("InsetTextButton.bss").toExternalForm();
         VBox vbox = VBoxBuilder.create().id("insettextvbox").spacing(10).padding(new Insets(10)).children(
                 ButtonBuilder.create().text("Inset Text Button").id("button1").build(),
                 ButtonBuilder.create().text("Plain Text Button").id("button2").build()).build();

Ensemble2/src/main/java/ensemble/samples/controls/buttons/PillButtonSample.java

 
     public PillButtonSample() {
 
-        String pillButtonCss = PillButtonSample.class.getResource("PillButton.css").toExternalForm();
+        String pillButtonCss = PillButtonSample.class.getResource("PillButton.bss").toExternalForm();
 
         // create 3 toggle buttons and a toogle group for them
         ToggleButton tb1 = new ToggleButton("Left Button");

Ensemble2/src/main/java/ensemble/samples/controls/splitpane/HiddenSplitPaneSample.java

 public class HiddenSplitPaneSample extends Sample {
 
     public HiddenSplitPaneSample() {
-        String hidingSplitPaneCss = HiddenSplitPaneSample.class.getResource("HiddenSplitPane.css").toExternalForm();
+        String hidingSplitPaneCss = HiddenSplitPaneSample.class.getResource("HiddenSplitPane.bss").toExternalForm();
         final SplitPane splitPane = SplitPaneBuilder.create().id("hiddenSplitter").items(
                 RegionBuilder.create().styleClass("rounded").build(),
                 RegionBuilder.create().styleClass("rounded").build(),

Ensemble2/src/main/java/ensemble/samples/controls/text/InsetTextSample.java

 
     public InsetTextSample() {
 
-        String insetTextCss = InsetTextSample.class.getResource("InsetText.css").toExternalForm();
+        String insetTextCss = InsetTextSample.class.getResource("InsetText.bss").toExternalForm();
         Label label = LabelBuilder.create().text("Label styled as a bar").id("label1").build();
         label.getStylesheets().add(insetTextCss);
         getChildren().add(label);

Ensemble2/src/main/java/ensemble/samples/controls/text/SearchBoxSample.java

 public class SearchBoxSample extends Sample {
 
     public SearchBoxSample() {
-        String searchBoxCss = SearchBoxSample.class.getResource("SearchBox.css").toExternalForm();
+        String searchBoxCss = SearchBoxSample.class.getResource("SearchBox.bss").toExternalForm();
         VBox vbox = VBoxBuilder.create().build();
         vbox.getStylesheets().add(searchBoxCss);
         vbox.setPrefWidth(200);

Ensemble2/src/main/java/ensemble/samples/controls/text/TextValidatorSample.java

  */
 public class TextValidatorSample extends Sample {
     public TextValidatorSample() {
-        String validatorCss = TextValidatorSample.class.getResource("Validators.css").toExternalForm();
+        String validatorCss = TextValidatorSample.class.getResource("Validators.bss").toExternalForm();
         
         TextField dateField = new TextField();
         dateField.setPromptText("Enter a Large Number");

Ensemble2/src/main/java/ensemble/samples/controls/toolbar/StyledToolBarSample.java

     public StyledToolBarSample() {
         ToolBar standardToolbar = createToolBar("standard");
 
-        String styledToolBarCss = StyledToolBarSample.class.getResource("StyledToolBar.css").toExternalForm();
+        String styledToolBarCss = StyledToolBarSample.class.getResource("StyledToolBar.bss").toExternalForm();
         
         ToolBar darkToolbar = createToolBar("dark");        
         darkToolbar.getStylesheets().add(styledToolBarCss);

Ensemble2/src/main/java/ensemble/samples/media/AlphaMediaPlayer.java

         planetaryPlayerPane.setMinSize(480, 320);  
         planetaryPlayerPane.setPrefSize(480, 320);
         planetaryPlayerPane.setMaxSize(480, 320);
-        getStylesheets().add("ensemble/samples/media/OverlayMediaPlayer.css");
+        getStylesheets().add("ensemble/samples/media/OverlayMediaPlayer.bss");
         // REMOVE ME
         setControls(
                 new SimplePropertySheet.PropDesc("Arth Position", arthPos, -100d, 100d),

Ensemble2/src/main/java/ensemble/samples/media/OverlayMediaPlayer.java

         playerPane.setMinSize(mediaWidth, mediaHeight);  
         playerPane.setPrefSize(mediaWidth, mediaHeight);
         playerPane.setMaxSize(mediaWidth, mediaHeight);
-        getStylesheets().add("ensemble/samples/media/OverlayMediaPlayer.css");
+        getStylesheets().add("ensemble/samples/media/OverlayMediaPlayer.bss");
         getChildren().add(playerPane);
     }
 

Ensemble2/src/main/java/ensemble/samples/media/StreamingMediaPlayer.java

         playerPane.setMinSize(480, 360);  
         playerPane.setPrefSize(480, 360);
         playerPane.setMaxSize(480, 360);
-        getStylesheets().add("ensemble/samples/media/OverlayMediaPlayer.css");
+        getStylesheets().add("ensemble/samples/media/OverlayMediaPlayer.bss");
         getChildren().add(playerPane);
     }
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.