{@inheritDoc}
(Stage primaryStage)
| 50 | |
| 51 | /** {@inheritDoc} */ |
| 52 | @Override public void start(Stage primaryStage) { |
| 53 | ServiceLoader<FXSamplerConfiguration> configurationServiceLoader = ServiceLoader.load(FXSamplerConfiguration.class); |
| 54 | |
| 55 | primaryStage.setTitle(getSampleName()); |
| 56 | |
| 57 | Scene scene = new Scene((Parent)buildSample(this, primaryStage), 800, 800); |
| 58 | scene.getStylesheets().add(SampleBase.class.getResource("fxsampler.css").toExternalForm()); |
| 59 | for (FXSamplerConfiguration fxsamplerConfiguration : configurationServiceLoader) { |
| 60 | String stylesheet = fxsamplerConfiguration.getSceneStylesheet(); |
| 61 | if (stylesheet != null) { |
| 62 | scene.getStylesheets().add(stylesheet); |
| 63 | } |
| 64 | } |
| 65 | primaryStage.setScene(scene); |
| 66 | primaryStage.show(); |
| 67 | } |
| 68 | |
| 69 | /** {@inheritDoc} */ |
| 70 | @Override public boolean isVisible() { |
nothing calls this directly
no test coverage detected