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