Skip to content

Package: JavaFxHourlyReportPresentationDelegate

JavaFxHourlyReportPresentationDelegate

nameinstructionbranchcomplexitylinemethod
bind()
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(PresentationModel)
M: 11 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
showUp(UserNotificationWithFeedback)
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%

Coverage

1: /*
2: * *************************************************************************************************************************************************************
3: *
4: * blueHour: open source accounting
5: * http://tidalwave.it/projects/bluehour
6: *
7: * Copyright (C) 2013 - 2024 by Tidalwave s.a.s. (http://tidalwave.it)
8: *
9: * *************************************************************************************************************************************************************
10: *
11: * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
12: * You may obtain a copy of the License at
13: *
14: * http://www.apache.org/licenses/LICENSE-2.0
15: *
16: * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
17: * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
18: *
19: * *************************************************************************************************************************************************************
20: *
21: * git clone https://bitbucket.org/tidalwave/bluehour-src
22: * git clone https://github.com/tidalwave-it/bluehour-src
23: *
24: * *************************************************************************************************************************************************************
25: */
26: package it.tidalwave.accounting.ui.hourlyreport.impl.javafx;
27:
28: import javax.annotation.Nonnull;
29: import javafx.fxml.FXML;
30: import javafx.scene.control.TextArea;
31: import javafx.scene.layout.Pane;
32: import it.tidalwave.accounting.ui.hourlyreport.HourlyReportPresentation;
33: import it.tidalwave.util.ui.UserNotificationWithFeedback;
34: import it.tidalwave.role.ui.PresentationModel;
35: import it.tidalwave.role.ui.javafx.JavaFXBinder;
36: import lombok.RequiredArgsConstructor;
37: import static it.tidalwave.role.PlainTextRenderable._PlainTextRenderable_;
38:
39: /***************************************************************************************************************************************************************
40: *
41: * @author fritz
42: *
43: **************************************************************************************************************************************************************/
44: @RequiredArgsConstructor
45: public class JavaFxHourlyReportPresentationDelegate implements HourlyReportPresentation
46: {
47: @Nonnull
48: private final JavaFXBinder binder;
49:
50: @FXML
51: private Pane pnHourlyReport;
52:
53: @FXML
54: private TextArea taReport;
55:
56: @Override
57: public void bind()
58: {
59: }
60:
61: @Override
62: public void showUp (@Nonnull final UserNotificationWithFeedback notification)
63: {
64: binder.showInModalDialog(pnHourlyReport, notification);
65: }
66:
67: @Override
68: public void populate (@Nonnull final PresentationModel pm)
69: {
70: taReport.setText(pm.as(_PlainTextRenderable_).render());
71: }
72: }