Skip to content

Method: JavaFXApplicationPresentationDelegate()

1: /*
2: * #%L
3: * *********************************************************************************************************************
4: *
5: * NorthernWind - lightweight CMS
6: * http://northernwind.tidalwave.it - git clone git@bitbucket.org:tidalwave/northernwind-rca-src.git
7: * %%
8: * Copyright (C) 2013 - 2021 Tidalwave s.a.s. (http://tidalwave.it)
9: * %%
10: * *********************************************************************************************************************
11: *
12: * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
13: * the License. You may obtain a copy of the License at
14: *
15: * http://www.apache.org/licenses/LICENSE-2.0
16: *
17: * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
18: * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
19: * specific language governing permissions and limitations under the License.
20: *
21: * *********************************************************************************************************************
22: *
23: *
24: * *********************************************************************************************************************
25: * #L%
26: */
27: package it.tidalwave.northernwind.rca.ui.impl.javafx;
28:
29: import javax.annotation.Nonnull;
30: import javafx.fxml.FXML;
31: import javafx.scene.Node;
32: import javafx.scene.control.SplitPane;
33: import javafx.scene.control.MenuItem;
34: import javafx.scene.control.Button;
35: import javafx.scene.layout.StackPane;
36: import lombok.Getter;
37:
38: /***********************************************************************************************************************
39: *
40: * The JavaFX delegate for the main GUI of the application. It assembles together all the pieces of the UI.
41: *
42: * @author Fabrizio Giudici
43: *
44: **********************************************************************************************************************/
45: public class JavaFXApplicationPresentationDelegate
46: {
47: @FXML @Getter
48: private StackPane stackPane;
49:
50: @FXML
51: private SplitPane pnVerticalSplit;
52:
53: // Those below aren't used here, but replicated in JavaFXSiteOpenerPresentation
54: @FXML
55: private Button btOpen;
56:
57: @FXML
58: private MenuItem openSiteMenu;
59:
60: public void setLeftVerticalSplitContents (@Nonnull final Node ... nodes)
61: {
62: pnVerticalSplit.getItems().setAll(nodes);
63: }
64: }