BrightSide Workbench Full Report + Source Code
org.turro.assistant.AssistantDialog Class Reference

Static Public Member Functions

static void load (Consumer< AssistantSet > consumer)
 
static void loadWithServers (BiConsumer< AssistantSet, List< WsServer >> consumer)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 36 of file AssistantDialog.java.

Member Function Documentation

◆ load()

static void org.turro.assistant.AssistantDialog.load ( Consumer< AssistantSet consumer)
static

Definition at line 39 of file AssistantDialog.java.

39  {
40  AssistantSet as = new AssistantSet();
41  Dialogs.title(I_.get("Assistants"))
42  .addComponent("/commons/assistants.zul", Map.of(
43  "as", as,
44  "servers", Collections.EMPTY_LIST))
45  .width("60%").height("80%")
46  .onOk((include) -> {
47  consumer.accept(as);
48  })
49  .emptyCancel()
50  .show();
51  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ loadWithServers()

static void org.turro.assistant.AssistantDialog.loadWithServers ( BiConsumer< AssistantSet, List< WsServer >>  consumer)
static

Definition at line 53 of file AssistantDialog.java.

53  {
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(
58  "as", as,
59  "servers", servers))
60  .width("60%").height("80%")
61  .onOk((include) -> {
62  consumer.accept(as, servers.stream().filter(sa -> sa.isSelected()).map(sa -> sa.getServer()).toList());
63  })
64  .emptyCancel()
65  .show();
66  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: