Search in sources :

Example 6 with HtmlPane

use of eu.ggnet.dwoss.util.HtmlPane in project dwoss by gg-net.

the class HtmlPaneTryout method start.

@Override
public void start(Stage primaryStage) throws Exception {
    HtmlPane p = new HtmlPane();
    p.accept("<h1>Heading</h1><p>Hallo Welt</p>");
    primaryStage.setScene(new Scene(p));
    primaryStage.show();
}
Also used : HtmlPane(eu.ggnet.dwoss.util.HtmlPane) Scene(javafx.scene.Scene)

Example 7 with HtmlPane

use of eu.ggnet.dwoss.util.HtmlPane in project dwoss by gg-net.

the class ShowRightsAction method actionPerformed.

@Override
public void actionPerformed(ActionEvent e) {
    Ui.exec(() -> {
        Ui.build().fx().show(() -> {
            StringBuilder sb = new StringBuilder();
            Guardian accessCos = Dl.local().lookup(Guardian.class);
            sb.append("<html><body><u>Benutzer:</u> <b>").append(accessCos.getUsername()).append("</b><br /><u>Berechtigungen</u><ul>");
            for (Authorisation authorisation : accessCos.getRights()) {
                sb.append("<li>").append(authorisation.toName()).append("</li>");
            }
            sb.append("</ul></body></html>");
            return sb.toString();
        }, () -> new HtmlPane());
    });
}
Also used : Authorisation(eu.ggnet.saft.api.auth.Authorisation) Guardian(eu.ggnet.saft.core.auth.Guardian) HtmlPane(eu.ggnet.dwoss.util.HtmlPane)

Aggregations

HtmlPane (eu.ggnet.dwoss.util.HtmlPane)7 Css (eu.ggnet.dwoss.rules.Css)2 Dl (eu.ggnet.saft.Dl)2 Ui (eu.ggnet.saft.Ui)2 Reply (eu.ggnet.saft.api.Reply)2 Guardian (eu.ggnet.saft.core.auth.Guardian)2 ReplyUtil (eu.ggnet.dwoss.common.ReplyUtil)1 CustomerAgent (eu.ggnet.dwoss.customer.ee.CustomerAgent)1 Customer (eu.ggnet.dwoss.customer.ee.entity.Customer)1 SearchField (eu.ggnet.dwoss.customer.ee.entity.Customer.SearchField)1 PicoCustomer (eu.ggnet.dwoss.customer.ee.entity.projection.PicoCustomer)1 CustomerTaskService (eu.ggnet.dwoss.customer.ui.CustomerTaskService)1 CustomerContinue (eu.ggnet.dwoss.customer.ui.neo.CustomerSimpleController.CustomerContinue)1 PriceEngineResultFormater (eu.ggnet.dwoss.price.engine.support.PriceEngineResultFormater)1 CREATE_ONE_PRICE (eu.ggnet.dwoss.rights.api.AtomicRight.CREATE_ONE_PRICE)1 UnitShard (eu.ggnet.dwoss.uniqueunit.api.UnitShard)1 Authorisation (eu.ggnet.saft.api.auth.Authorisation)1 eu.ggnet.saft.api.ui (eu.ggnet.saft.api.ui)1 AccessableAction (eu.ggnet.saft.core.auth.AccessableAction)1 AlertType (eu.ggnet.saft.core.ui.AlertType)1