Search in sources :

Example 1 with CreateNewReportView

use of eu.ggnet.dwoss.report.ui.cap.support.CreateNewReportView in project dwoss by gg-net.

the class CreateNewReportViewTryout method main.

public static void main(String[] args) {
    Mandators mandators = mock(Mandators.class);
    when(mandators.loadContractors()).thenReturn(new Contractors(EnumSet.allOf(TradeName.class), EnumSet.allOf(TradeName.class)));
    Dl.remote().add(Mandators.class, mandators);
    Ui.exec(() -> {
        UiCore.startSwing(() -> new JLabel("Application"));
        Ui.build().swing().eval(() -> OkCancelWrap.vetoResult(new CreateNewReportView())).opt().ifPresent(v -> System.out.println(v.getPayload().getParameter()));
    });
}
Also used : Mandators(eu.ggnet.dwoss.mandator.Mandators) Contractors(eu.ggnet.dwoss.mandator.api.value.Contractors) JLabel(javax.swing.JLabel) CreateNewReportView(eu.ggnet.dwoss.report.ui.cap.support.CreateNewReportView)

Aggregations

Mandators (eu.ggnet.dwoss.mandator.Mandators)1 Contractors (eu.ggnet.dwoss.mandator.api.value.Contractors)1 CreateNewReportView (eu.ggnet.dwoss.report.ui.cap.support.CreateNewReportView)1 JLabel (javax.swing.JLabel)1