This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git


The following commit(s) were added to refs/heads/master by this push:
     new 3e55dc1861 ISIS-3049: Demo: adds diagram for ActionAssociateWithVm 
(svg)
3e55dc1861 is described below

commit 3e55dc18615fc4038f116f982de897d68e65e6cd
Author: andi-huber <[email protected]>
AuthorDate: Fri Jul 8 11:59:05 2022 +0200

    ISIS-3049: Demo: adds diagram for ActionAssociateWithVm (svg)
---
 .../ActionAssociateWithVm-description.adoc         |  9 ++----
 .../actions/Action/associateWith/overview.svg      | 34 ++++++++++++++++++++++
 2 files changed, 37 insertions(+), 6 deletions(-)

diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/actions/Action/associateWith/ActionAssociateWithVm-description.adoc
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/actions/Action/associateWith/ActionAssociateWithVm-description.adoc
index 1697c967f7..4b32f94043 100644
--- 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/actions/Action/associateWith/ActionAssociateWithVm-description.adoc
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/actions/Action/associateWith/ActionAssociateWithVm-description.adoc
@@ -11,11 +11,10 @@ This can of course be overridden using `@ActionLayout` or 
the layout file
 However, it is also used at a deeper level, because the action may have a 
collection parameter which is the same type as the collection elements.
 In the Wicket viewer, the collection is rendered with checkboxes; those 
selected objects are used as defaults for the action collection parameter.
 
+++++
+include::overview.svg[]
+++++
 ////
-!!!requires kroki integration, which we don't have yet for the demo
-[plantuml,ActionChoicesFrom,svg]
-----
-@startuml(id=ActionChoicesFrom)
 caption Demo Classes
 
 class "ActionAssociateWithVm" as PARENT
@@ -33,8 +32,6 @@ CHILD : String value
 
 PARENT --> CHILD : "children\n(0..n)"
 PARENT --> CHILD : "favorites\n(0..n)"
-@enduml
-----
 ////
 
 == Associated with Properties
diff --git 
a/examples/demo/domain/src/main/java/demoapp/dom/domain/actions/Action/associateWith/overview.svg
 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/actions/Action/associateWith/overview.svg
new file mode 100644
index 0000000000..232af2e2f5
--- /dev/null
+++ 
b/examples/demo/domain/src/main/java/demoapp/dom/domain/actions/Action/associateWith/overview.svg
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg xmlns="http://www.w3.org/2000/svg"; 
xmlns:xlink="http://www.w3.org/1999/xlink"; contentStyleType="text/css" 
height="363px" preserveAspectRatio="none" 
style="width:521px;height:363px;background:#FFFFFF;" version="1.1" viewBox="0 0 
521 363" width="521px" 
zoomAndPan="magnify"><defs/><g><!--MD5=[72d98c177ab61db9e7c8297223ca59d5]
+class PARENT--><g id="elem_PARENT"><rect codeLine="3" fill="#F1F1F1" 
height="165.5995" id="PARENT" rx="2.5" ry="2.5" 
style="stroke:#181818;stroke-width:0.5;" width="507" x="7" y="7"/><ellipse 
cx="183.75" cy="23" fill="#ADD1B2" rx="11" ry="11" 
style="stroke:#181818;stroke-width:1.0;"/><path d="M183.1094,26.7813 
Q183.9063,26.7813 184.4688,26.5938 Q185.0469,26.3906 185.2813,26.1719 
Q185.5313,25.9375 185.7656,25.75 Q186.0156,25.5469 186.2344,25.5469 
Q186.5781,25.5469 186.8281,25.8125 Q187.09 [...]
+class CHILD--><g id="elem_CHILD"><rect codeLine="4" fill="#F1F1F1" 
height="64.7999" id="CHILD" rx="2.5" ry="2.5" 
style="stroke:#181818;stroke-width:0.5;" width="209" x="156" y="266"/><ellipse 
cx="171" cy="282" fill="#ADD1B2" rx="11" ry="11" 
style="stroke:#181818;stroke-width:1.0;"/><path d="M170.3594,285.7813 
Q171.1563,285.7813 171.7188,285.5938 Q172.2969,285.3906 172.5313,285.1719 
Q172.7813,284.9375 173.0156,284.75 Q173.2656,284.5469 173.4844,284.5469 
Q173.8281,284.5469 174.0781,284.812 [...]
+link PARENT to CHILD--><g id="link_PARENT_CHILD"><path codeLine="16" 
d="M215.94,173.18 C209.87,193.73 207.75,215.7 214.5,236 C217.48,244.97 
222.34,253.68 227.8,261.6 " fill="none" id="PARENT-to-CHILD" 
style="stroke:#181818;stroke-width:1.0;"/><polygon fill="#181818" 
points="230.89,265.91,228.8881,256.2667,227.973,261.8491,222.3907,260.9339,230.89,265.91"
 style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" 
font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLengt [...]
+link PARENT to CHILD--><g id="link_PARENT_CHILD"><path codeLine="17" 
d="M265.47,173.06 C266.13,193.61 266.33,215.61 265.5,236 C265.17,244.07 
264.6,252.71 263.97,260.9 " fill="none" id="PARENT-to-CHILD-1" 
style="stroke:#181818;stroke-width:1.0;"/><polygon fill="#181818" 
points="263.56,265.93,268.2669,257.2787,263.9599,260.946,260.2926,256.6389,263.56,265.93"
 style="stroke:#181818;stroke-width:1.0;"/><text fill="#000000" 
font-family="sans-serif" font-size="13" lengthAdjust="spacing" textLe [...]
+@startuml
+caption Demo Classes
+
+class "ActionAssociateWithVm" as PARENT
+class "ActionAssociateWithChildVm" as CHILD
+
+PARENT : addChild(..) // factory, associate with 'children'
+PARENT : removeChild(..) // single choice from 'children', associate with 
'children'
+PARENT : removeChildren(..) // multiple choices from 'children', associate 
with 'children'
+PARENT : makeFavorite(..) // single choice from 'children', associate with 
'favorites'
+PARENT : noLongerFavorite(..) // single choice from 'favorites', associate 
with 'favorites'
+PARENT : noLongerFavorites(..) // multiple choices from 'favorites', associate 
with 'favorites'
+PARENT : String text
+
+CHILD : String value
+
+PARENT - -> CHILD : "children\n(0..n)"
+PARENT - -> CHILD : "favorites\n(0..n)"
+@enduml
+
+PlantUML version 1.2022.5(Sat Apr 30 10:55:52 GMT 2022)
+(GPL source distribution)
+Java Runtime: OpenJDK Runtime Environment
+JVM: OpenJDK 64-Bit Server VM
+Default Encoding: UTF-8
+Language: en
+Country: US
+--></g></svg>
\ No newline at end of file

Reply via email to