◆ load()
static void org.turro.assistant.AssistantDialog.load |
( |
Consumer< AssistantSet > |
consumer | ) |
|
|
static |
Definition at line 39 of file AssistantDialog.java.
40 AssistantSet as =
new AssistantSet();
41 Dialogs.title(I_.get(
"Assistants"))
42 .addComponent(
"/commons/assistants.zul", Map.of(
44 "servers", Collections.EMPTY_LIST))
45 .width(
"60%").height(
"80%")
◆ loadWithServers()
static void org.turro.assistant.AssistantDialog.loadWithServers |
( |
BiConsumer< AssistantSet, List< WsServer >> |
consumer | ) |
|
|
static |
Definition at line 53 of file AssistantDialog.java.
54 AssistantSet as =
new AssistantSet();
55 List<ServerAdapter> servers = Servers.getServers().stream().map(s -> ServerAdapter.from(s)).toList();
56 Dialogs.title(I_.get(
"Assistants"))
57 .addComponent(
"/commons/assistants.zul", Map.of(
60 .width(
"60%").height(
"80%")
62 consumer.accept(as, servers.stream().filter(sa -> sa.isSelected()).map(sa -> sa.getServer()).toList());
The documentation for this class was generated from the following file: