Skip to content

Package: JavaFXStructureEditorPresentationDelegate

JavaFXStructureEditorPresentationDelegate

nameinstructionbranchcomplexitylinemethod
JavaFXStructureEditorPresentationDelegate(JavaFXBinder)
M: 13 C: 0
0%
M: 2 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
clear()
M: 10 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 3 C: 0
0%
M: 1 C: 0
0%
initialize()
M: 1 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%
populate(String)
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
populateProperties(PresentationModel)
M: 7 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
showUp()
M: 1 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 1 C: 0
0%
M: 1 C: 0
0%

Coverage

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.structureeditor;
28:
29: import javax.annotation.Nonnull;
30: import javafx.collections.FXCollections;
31: import javafx.fxml.FXML;
32: import javafx.scene.layout.Pane;
33: import javafx.scene.control.TableView;
34: import javafx.scene.web.WebView;
35: import it.tidalwave.role.ui.PresentationModel;
36: import it.tidalwave.role.ui.javafx.JavaFXBinder;
37: import it.tidalwave.northernwind.rca.ui.structureeditor.StructureEditorPresentation;
38: import lombok.RequiredArgsConstructor;
39:
40: /***********************************************************************************************************************
41: *
42: * @author Fabrizio Giudici
43: *
44: **********************************************************************************************************************/
45:•@RequiredArgsConstructor
46: public class JavaFXStructureEditorPresentationDelegate implements StructureEditorPresentation
47: {
48: @Nonnull
49: private final JavaFXBinder binder;
50:
51: @FXML
52: private Pane structureEditor;
53:
54: @FXML
55: private WebView structureWebView;
56:
57: @FXML
58: private TableView<PresentationModel> structureEditorProperties;
59:
60: public void initialize()
61: {
62: }
63:
64: @Override
65: public void showUp()
66: {
67: // never used
68: }
69:
70: @Override
71: public void clear()
72: {
73: structureWebView.getEngine().loadContent("");
74: structureEditorProperties.setItems(FXCollections.emptyObservableList());
75: }
76:
77: @Override
78: public void populate (@Nonnull final String text)
79: {
80: structureWebView.getEngine().loadContent(text);
81: }
82:
83: @Override
84: public void populateProperties (@Nonnull final PresentationModel pm)
85: {
86: binder.bind(structureEditorProperties, pm);
87: }
88: }