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()));
});
}
Aggregations