-
Notifications
You must be signed in to change notification settings - Fork 105
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 #95 from sialcasa/#92_formatter
#92 formatter
- Loading branch information
Showing
122 changed files
with
4,472 additions
and
3,824 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
51 changes: 26 additions & 25 deletions
51
examples/mvvmfx-cdi-starter/src/main/java/de/saxsys/jfx/Starter.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,41 @@ | ||
package de.saxsys.jfx; | ||
|
||
import de.saxsys.jfx.exampleapplication.view.maincontainer.MainContainerView; | ||
import de.saxsys.jfx.exampleapplication.viewmodel.maincontainer.MainContainerViewModel; | ||
import de.saxsys.jfx.mvvm.cdi.MvvmfxCdiApplication; | ||
import de.saxsys.jfx.mvvm.viewloader.ViewLoader; | ||
import de.saxsys.jfx.mvvm.viewloader.ViewTuple; | ||
import javafx.scene.Parent; | ||
import javafx.scene.Scene; | ||
import javafx.stage.Stage; | ||
|
||
import javax.inject.Inject; | ||
|
||
import de.saxsys.jfx.exampleapplication.view.maincontainer.MainContainerView; | ||
import de.saxsys.jfx.exampleapplication.viewmodel.maincontainer.MainContainerViewModel; | ||
import de.saxsys.jfx.mvvm.cdi.MvvmfxCdiApplication; | ||
import de.saxsys.jfx.mvvm.viewloader.ViewLoader; | ||
import de.saxsys.jfx.mvvm.viewloader.ViewTuple; | ||
|
||
/** | ||
* The application entry point. | ||
* | ||
* @author manuel.mauky | ||
*/ | ||
public class Starter extends MvvmfxCdiApplication { | ||
|
||
public static void main(String... args) { | ||
launch(args); | ||
} | ||
|
||
@Inject | ||
private ViewLoader viewLoader; | ||
|
||
@Override | ||
public void start(Stage stage) { | ||
ViewTuple<MainContainerView, MainContainerViewModel> tuple = | ||
viewLoader | ||
.loadViewTuple(MainContainerView.class); | ||
|
||
Parent view = tuple.getView(); | ||
|
||
final Scene scene = new Scene(view); | ||
stage.setScene(scene); | ||
stage.show(); | ||
} | ||
public static void main(String... args) { | ||
launch(args); | ||
} | ||
@Inject | ||
private ViewLoader viewLoader; | ||
@Override | ||
public void start(Stage stage) { | ||
ViewTuple<MainContainerView, MainContainerViewModel> tuple = | ||
viewLoader | ||
.loadViewTuple(MainContainerView.class); | ||
Parent view = tuple.getView(); | ||
final Scene scene = new Scene(view); | ||
stage.setScene(scene); | ||
stage.show(); | ||
} | ||
} |
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 |
---|---|---|
|
@@ -17,5 +17,4 @@ | |
<beans xmlns="http://xmlns.jcp.org/xml/ns/javaee"> | ||
|
||
|
||
|
||
</beans> |
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.