Search in sources :

Example 1 with ServiceViewCask

use of eu.ggnet.dwoss.redtapext.ui.cao.document.position.ServiceViewCask in project dwoss by gg-net.

the class ServiceViewCaskTryout method main.

public static void main(String[] args) {
    Dl.local().add(RemoteLookup.class, new RemoteLookup() {

        @Override
        public <T> boolean contains(Class<T> clazz) {
            return false;
        }

        @Override
        public <T> T lookup(Class<T> clazz) {
            return null;
        }
    });
    UiCore.startSwing(() -> new JLabel("Main Applikation"));
    // () -> Position.builder().type(PositionType.SERVICE).price(30.).build()
    Ui.build().swing().eval(() -> OkCancelWrap.consumerVetoResult(new ServiceViewCask(GENERAL_SALES_TAX_DE_SINCE_2007))).opt().ifPresent(System.out::println);
}
Also used : RemoteLookup(eu.ggnet.saft.core.cap.RemoteLookup) JLabel(javax.swing.JLabel) ServiceViewCask(eu.ggnet.dwoss.redtapext.ui.cao.document.position.ServiceViewCask)

Aggregations

ServiceViewCask (eu.ggnet.dwoss.redtapext.ui.cao.document.position.ServiceViewCask)1 RemoteLookup (eu.ggnet.saft.core.cap.RemoteLookup)1 JLabel (javax.swing.JLabel)1