Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gluonhq/gluon-samples-sandbox
https://github.com/gluonhq/gluon-samples-sandbox
Last synced: about 22 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/gluonhq/gluon-samples-sandbox
- Owner: gluonhq
- Created: 2021-06-30T16:58:08.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-07-01T15:07:22.000Z (over 3 years ago)
- Last Synced: 2024-11-06T17:51:54.736Z (about 2 months ago)
- Language: Java
- Size: 952 KB
- Stars: 0
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gluon Samples
Sandbox repository to test API changes made to Glisten and Glisten-Afterburner.
## Changes in Glisten framework
* `MobileApplication` has been deprecated, use `MobileApplicationManager` instead.
* There is no need to extend from `MobileApplication`, extending from `Application` should be enough.
Make sure to instantiate `MobileApplicationManager` and call `MobileApplicationManager#start` from `Application#start`.```
public class GluonApp extends Application {private MobileApplicationManager app = MobileApplicationManager.initialize();
@Override
public void start(Stage primaryStage) throws Exception {
app.start(primaryStage);
}
...
}
```* To add and switch views, use methods from `MobileApplicationManager` instead:
```
MobileApplicationManager.getInstance().addViewFactory(HOME, GluonView::new)
MobileApplicationManager.getInstance().switchView(HOME);
```* To update get instances of AppBar and NavigationDrawer, use the following methods:
```
MobileApplicationManager.getInstance().getAppBar()
MobileApplicationManager.getInstance().getDrawer();
```## Changes in Glisten Afterburner framework
1. Presenter/Controller class no longer needs to extend `GluonPresenter`, which has been deprecated
2. `AppView#registerView` no longer needs an instance of `MobileApplication`## Build and run the samples
Visit each sample's README for further instructions.
## Issues and Contributions
Issues can be reported to the https://github.com/gluonhq/gluon-samples/issues[Issue tracker]
Contributions can be submitted via https://github.com/gluonhq/gluon-samples/pulls[Pull requests],
providing you have signed the https://cla.gluonhq.com[Gluon Individual Contributor License Agreement (CLA)].