-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from minifx/integrable-into-other-apps
Integrable into other apps
- Loading branch information
Showing
26 changed files
with
392 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package org.minifx.fxcommons; | ||
|
||
import java.util.List; | ||
|
||
import org.minifx.workbench.components.MainPane; | ||
import org.springframework.context.ApplicationContext; | ||
|
||
import javafx.scene.Parent; | ||
import javafx.scene.Scene; | ||
|
||
public class MiniFxWorkbench { | ||
|
||
private final MiniFxSceneBuilder sceneBuilder; | ||
private final MainPane mainPane; | ||
private final ApplicationContext springContext; | ||
|
||
public MiniFxWorkbench(MiniFxSceneBuilder sceneBuilder, MainPane mainPane, ApplicationContext springContext) { | ||
this.sceneBuilder = sceneBuilder; | ||
this.mainPane = mainPane; | ||
this.springContext = springContext; | ||
} | ||
|
||
public Parent mainPane() { | ||
return mainPane; | ||
} | ||
|
||
public Scene createScene() { | ||
return sceneBuilder.withRoot(mainPane).build(); | ||
} | ||
|
||
public List<String> cssLocations() { | ||
return sceneBuilder.cssLocations(); | ||
} | ||
|
||
public ApplicationContext springContext() { | ||
return springContext; | ||
} | ||
|
||
} |
13 changes: 7 additions & 6 deletions
13
src/main/java/org/minifx/fxcommons/service/AgingService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.