19 package org.turro.assistant;
21 import java.util.Collections;
22 import java.util.List;
24 import java.util.function.BiConsumer;
25 import java.util.function.Consumer;
26 import org.turro.i18n.I_;
27 import org.turro.ws.WsServer;
28 import org.turro.ws.service.ServerAdapter;
29 import org.turro.ws.service.member.Servers;
30 import org.turro.zkoss.dialog.Dialogs;
39 public static void load(Consumer<AssistantSet> consumer) {
44 "servers", Collections.EMPTY_LIST))
55 List<ServerAdapter> servers = Servers.getServers().stream().map(s -> ServerAdapter.from(s)).toList();
62 consumer.accept(as, servers.stream().filter(sa -> sa.isSelected()).map(sa -> sa.getServer()).toList());
static void load(Consumer< AssistantSet > consumer)
static void loadWithServers(BiConsumer< AssistantSet, List< WsServer >> consumer)
static String get(String msg)
Dialogs width(String width)
Dialogs height(String height)
Dialogs onOk(Consumer< Dialogs > onOk)
static Dialogs title(String title)
Dialogs addComponent(HtmlBasedComponent component)