fix: checkstyle violations
This commit is contained in:
parent
4b28d073b9
commit
d802d8627e
1 changed files with 7 additions and 4 deletions
|
|
@ -42,7 +42,8 @@ public class FoodpalApplicationCtrl implements LocaleAware {
|
||||||
private final LocaleManager localeManager;
|
private final LocaleManager localeManager;
|
||||||
private final IngredientListCtrl ingredientListCtrl;
|
private final IngredientListCtrl ingredientListCtrl;
|
||||||
private final RecipeStepListCtrl stepListCtrl;
|
private final RecipeStepListCtrl stepListCtrl;
|
||||||
private final SearchBarCtrl searchBarCtrl;
|
|
||||||
|
private SearchBarCtrl searchBarCtrl;
|
||||||
|
|
||||||
public VBox detailsScreen;
|
public VBox detailsScreen;
|
||||||
public HBox editableTitleArea;
|
public HBox editableTitleArea;
|
||||||
|
|
@ -100,7 +101,6 @@ public class FoodpalApplicationCtrl implements LocaleAware {
|
||||||
LocaleManager localeManager,
|
LocaleManager localeManager,
|
||||||
IngredientListCtrl ingredientListCtrl,
|
IngredientListCtrl ingredientListCtrl,
|
||||||
RecipeStepListCtrl stepListCtrl,
|
RecipeStepListCtrl stepListCtrl,
|
||||||
SearchBarCtrl searchBarCtrl,
|
|
||||||
ConfigService configService
|
ConfigService configService
|
||||||
) {
|
) {
|
||||||
this.server = server;
|
this.server = server;
|
||||||
|
|
@ -108,13 +108,17 @@ public class FoodpalApplicationCtrl implements LocaleAware {
|
||||||
this.localeManager = localeManager;
|
this.localeManager = localeManager;
|
||||||
this.ingredientListCtrl = ingredientListCtrl;
|
this.ingredientListCtrl = ingredientListCtrl;
|
||||||
this.stepListCtrl = stepListCtrl;
|
this.stepListCtrl = stepListCtrl;
|
||||||
this.searchBarCtrl = searchBarCtrl;
|
|
||||||
|
|
||||||
this.configService = configService;
|
this.configService = configService;
|
||||||
|
|
||||||
initializeWebSocket();
|
initializeWebSocket();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
void setSearchBarCtrl(SearchBarCtrl searchBarCtrl) {
|
||||||
|
this.searchBarCtrl = searchBarCtrl;
|
||||||
|
}
|
||||||
|
|
||||||
private void initializeSearchBar() {
|
private void initializeSearchBar() {
|
||||||
// Refresh on search bar change
|
// Refresh on search bar change
|
||||||
this.searchBarCtrl.setOnSearch(recipes -> {
|
this.searchBarCtrl.setOnSearch(recipes -> {
|
||||||
|
|
@ -220,7 +224,6 @@ public class FoodpalApplicationCtrl implements LocaleAware {
|
||||||
});
|
});
|
||||||
|
|
||||||
this.initializeSearchBar();
|
this.initializeSearchBar();
|
||||||
|
|
||||||
refresh();
|
refresh();
|
||||||
updateFavouriteButton(recipeList.getSelectionModel().getSelectedItem());
|
updateFavouriteButton(recipeList.getSelectionModel().getSelectedItem());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue