GUI.metamodel 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  1. {
  2. "types": {
  3. "VisualElement": [
  4. {
  5. "name": "code",
  6. "type": "code",
  7. "default": "/* IF THIS ATTRIBUTE IS NOT *EMPTY*, IT'S VALUE WILL BE USED *//*newline*/class ExecuteCode/*newline*/{/*newline*/ /* Complete this for a coded List *//*newline*/ public java.util.ArrayList<String> executeCode()/*newline*/ {/*newline*/ return new java.util.ArrayList<String>();/*newline*/ }/*newline*//*newline*/ /* Complete this for a coded Input, Label or Button *//*newline*/ public String executeCode()/*newline*/ {/*newline*/ return \"\";/*newline*/ }/*newline*/}"
  8. },
  9. {
  10. "name": "size",
  11. "type": "ENUM(wrapContent,fitContainer)",
  12. "default": "fitContainer"
  13. },
  14. {
  15. "name": "position",
  16. "type": "list<int>",
  17. "default": [
  18. 0,
  19. 0
  20. ]
  21. },
  22. {
  23. "name": "id",
  24. "type": "string",
  25. "default": ""
  26. }
  27. ],
  28. "Input": [
  29. {
  30. "name": "text",
  31. "type": "string",
  32. "default": ""
  33. },
  34. {
  35. "name": "code",
  36. "type": "code",
  37. "default": "/* IF THIS ATTRIBUTE IS NOT *EMPTY*, IT'S VALUE WILL BE USED *//*newline*/class ExecuteCode/*newline*/{/*newline*/ /* Complete this for a coded List *//*newline*/ public java.util.ArrayList<String> executeCode()/*newline*/ {/*newline*/ return new java.util.ArrayList<String>();/*newline*/ }/*newline*//*newline*/ /* Complete this for a coded Input, Label or Button *//*newline*/ public String executeCode()/*newline*/ {/*newline*/ return \"\";/*newline*/ }/*newline*/}"
  38. },
  39. {
  40. "name": "size",
  41. "type": "ENUM(wrapContent,fitContainer)",
  42. "default": "fitContainer"
  43. },
  44. {
  45. "name": "position",
  46. "type": "list<int>",
  47. "default": [
  48. 0,
  49. 0
  50. ]
  51. },
  52. {
  53. "name": "id",
  54. "type": "string",
  55. "default": ""
  56. }
  57. ],
  58. "List": [
  59. {
  60. "name": "choices",
  61. "type": "list<string>",
  62. "default": []
  63. },
  64. {
  65. "name": "clickable",
  66. "type": "boolean",
  67. "default": true
  68. },
  69. {
  70. "name": "code",
  71. "type": "code",
  72. "default": "/* IF THIS ATTRIBUTE IS NOT *EMPTY*, IT'S VALUE WILL BE USED *//*newline*/class ExecuteCode/*newline*/{/*newline*/ /* Complete this for a coded List *//*newline*/ public java.util.ArrayList<String> executeCode()/*newline*/ {/*newline*/ return new java.util.ArrayList<String>();/*newline*/ }/*newline*//*newline*/ /* Complete this for a coded Input, Label or Button *//*newline*/ public String executeCode()/*newline*/ {/*newline*/ return \"\";/*newline*/ }/*newline*/}"
  73. },
  74. {
  75. "name": "size",
  76. "type": "ENUM(wrapContent,fitContainer)",
  77. "default": "fitContainer"
  78. },
  79. {
  80. "name": "position",
  81. "type": "list<int>",
  82. "default": [
  83. 0,
  84. 0
  85. ]
  86. },
  87. {
  88. "name": "id",
  89. "type": "string",
  90. "default": ""
  91. }
  92. ],
  93. "Label": [
  94. {
  95. "name": "text",
  96. "type": "string",
  97. "default": ""
  98. },
  99. {
  100. "name": "code",
  101. "type": "code",
  102. "default": "/* IF THIS ATTRIBUTE IS NOT *EMPTY*, IT'S VALUE WILL BE USED *//*newline*/class ExecuteCode/*newline*/{/*newline*/ /* Complete this for a coded List *//*newline*/ public java.util.ArrayList<String> executeCode()/*newline*/ {/*newline*/ return new java.util.ArrayList<String>();/*newline*/ }/*newline*//*newline*/ /* Complete this for a coded Input, Label or Button *//*newline*/ public String executeCode()/*newline*/ {/*newline*/ return \"\";/*newline*/ }/*newline*/}"
  103. },
  104. {
  105. "name": "size",
  106. "type": "ENUM(wrapContent,fitContainer)",
  107. "default": "fitContainer"
  108. },
  109. {
  110. "name": "position",
  111. "type": "list<int>",
  112. "default": [
  113. 0,
  114. 0
  115. ]
  116. },
  117. {
  118. "name": "id",
  119. "type": "string",
  120. "default": ""
  121. }
  122. ],
  123. "Container": [
  124. {
  125. "name": "layout",
  126. "type": "ENUM('linear','absolute','relative','table')",
  127. "default": "linear"
  128. },
  129. {
  130. "name": "orientation",
  131. "type": "ENUM('vertical','horizontal')",
  132. "default": "vertical"
  133. },
  134. {
  135. "name": "code",
  136. "type": "code",
  137. "default": "/* IF THIS ATTRIBUTE IS NOT *EMPTY*, IT'S VALUE WILL BE USED *//*newline*/class ExecuteCode/*newline*/{/*newline*/ /* Complete this for a coded List *//*newline*/ public java.util.ArrayList<String> executeCode()/*newline*/ {/*newline*/ return new java.util.ArrayList<String>();/*newline*/ }/*newline*//*newline*/ /* Complete this for a coded Input, Label or Button *//*newline*/ public String executeCode()/*newline*/ {/*newline*/ return \"\";/*newline*/ }/*newline*/}"
  138. },
  139. {
  140. "name": "size",
  141. "type": "ENUM(wrapContent,fitContainer)",
  142. "default": "fitContainer"
  143. },
  144. {
  145. "name": "position",
  146. "type": "list<int>",
  147. "default": [
  148. 0,
  149. 0
  150. ]
  151. },
  152. {
  153. "name": "id",
  154. "type": "string",
  155. "default": ""
  156. }
  157. ],
  158. "Button": [
  159. {
  160. "name": "text",
  161. "type": "string",
  162. "default": ""
  163. },
  164. {
  165. "name": "code",
  166. "type": "code",
  167. "default": "/* IF THIS ATTRIBUTE IS NOT *EMPTY*, IT'S VALUE WILL BE USED *//*newline*/class ExecuteCode/*newline*/{/*newline*/ /* Complete this for a coded List *//*newline*/ public java.util.ArrayList<String> executeCode()/*newline*/ {/*newline*/ return new java.util.ArrayList<String>();/*newline*/ }/*newline*//*newline*/ /* Complete this for a coded Input, Label or Button *//*newline*/ public String executeCode()/*newline*/ {/*newline*/ return \"\";/*newline*/ }/*newline*/}"
  168. },
  169. {
  170. "name": "size",
  171. "type": "ENUM(wrapContent,fitContainer)",
  172. "default": "fitContainer"
  173. },
  174. {
  175. "name": "position",
  176. "type": "list<int>",
  177. "default": [
  178. 0,
  179. 0
  180. ]
  181. },
  182. {
  183. "name": "id",
  184. "type": "string",
  185. "default": ""
  186. }
  187. ],
  188. "Contain": [],
  189. "Canvas": [],
  190. "CanvasContents": []
  191. },
  192. "constraints": [
  193. {
  194. "name": "noAbstractInstances",
  195. "event": "pre-create",
  196. "code": "false",
  197. "targetType": "VisualElement"
  198. }
  199. ],
  200. "actions": [],
  201. "cardinalities": {
  202. "VisualElement": [
  203. {
  204. "dir": "in",
  205. "type": "Contain",
  206. "min": "0",
  207. "max": "Infinity"
  208. },
  209. {
  210. "dir": "in",
  211. "type": "CanvasContents",
  212. "min": "0",
  213. "max": "Infinity"
  214. }
  215. ],
  216. "Input": [
  217. {
  218. "dir": "in",
  219. "type": "Contain",
  220. "min": "0",
  221. "max": "Infinity"
  222. },
  223. {
  224. "dir": "in",
  225. "type": "CanvasContents",
  226. "min": "0",
  227. "max": "Infinity"
  228. }
  229. ],
  230. "List": [
  231. {
  232. "dir": "in",
  233. "type": "Contain",
  234. "min": "0",
  235. "max": "Infinity"
  236. },
  237. {
  238. "dir": "in",
  239. "type": "CanvasContents",
  240. "min": "0",
  241. "max": "Infinity"
  242. }
  243. ],
  244. "Label": [
  245. {
  246. "dir": "in",
  247. "type": "Contain",
  248. "min": "0",
  249. "max": "Infinity"
  250. },
  251. {
  252. "dir": "in",
  253. "type": "CanvasContents",
  254. "min": "0",
  255. "max": "Infinity"
  256. }
  257. ],
  258. "Container": [
  259. {
  260. "dir": "out",
  261. "type": "Contain",
  262. "min": "0",
  263. "max": "Infinity"
  264. },
  265. {
  266. "dir": "in",
  267. "type": "Contain",
  268. "min": "0",
  269. "max": "Infinity"
  270. },
  271. {
  272. "dir": "in",
  273. "type": "CanvasContents",
  274. "min": "0",
  275. "max": "Infinity"
  276. }
  277. ],
  278. "Button": [
  279. {
  280. "dir": "in",
  281. "type": "Contain",
  282. "min": "0",
  283. "max": "Infinity"
  284. },
  285. {
  286. "dir": "in",
  287. "type": "CanvasContents",
  288. "min": "0",
  289. "max": "Infinity"
  290. }
  291. ],
  292. "Contain": [
  293. {
  294. "dir": "in",
  295. "type": "Container",
  296. "min": "0",
  297. "max": "1"
  298. },
  299. {
  300. "dir": "out",
  301. "type": "VisualElement",
  302. "min": "0",
  303. "max": "1"
  304. },
  305. {
  306. "dir": "out",
  307. "type": "Input",
  308. "min": "0",
  309. "max": "1"
  310. },
  311. {
  312. "dir": "out",
  313. "type": "List",
  314. "min": "0",
  315. "max": "1"
  316. },
  317. {
  318. "dir": "out",
  319. "type": "Label",
  320. "min": "0",
  321. "max": "1"
  322. },
  323. {
  324. "dir": "out",
  325. "type": "Container",
  326. "min": "0",
  327. "max": "1"
  328. },
  329. {
  330. "dir": "out",
  331. "type": "Button",
  332. "min": "0",
  333. "max": "1"
  334. }
  335. ],
  336. "Canvas": [
  337. {
  338. "dir": "out",
  339. "type": "CanvasContents",
  340. "min": "0",
  341. "max": "Infinity"
  342. }
  343. ],
  344. "CanvasContents": [
  345. {
  346. "dir": "in",
  347. "type": "Canvas",
  348. "min": "0",
  349. "max": "1"
  350. },
  351. {
  352. "dir": "out",
  353. "type": "VisualElement",
  354. "min": "0",
  355. "max": "1"
  356. },
  357. {
  358. "dir": "out",
  359. "type": "Input",
  360. "min": "0",
  361. "max": "1"
  362. },
  363. {
  364. "dir": "out",
  365. "type": "List",
  366. "min": "0",
  367. "max": "1"
  368. },
  369. {
  370. "dir": "out",
  371. "type": "Label",
  372. "min": "0",
  373. "max": "1"
  374. },
  375. {
  376. "dir": "out",
  377. "type": "Container",
  378. "min": "0",
  379. "max": "1"
  380. },
  381. {
  382. "dir": "out",
  383. "type": "Button",
  384. "min": "0",
  385. "max": "1"
  386. }
  387. ]
  388. },
  389. "legalConnections": {
  390. "Container": {
  391. "VisualElement": [
  392. "Contain"
  393. ],
  394. "Input": [
  395. "Contain"
  396. ],
  397. "List": [
  398. "Contain"
  399. ],
  400. "Label": [
  401. "Contain"
  402. ],
  403. "Container": [
  404. "Contain"
  405. ],
  406. "Button": [
  407. "Contain"
  408. ]
  409. },
  410. "Canvas": {
  411. "VisualElement": [
  412. "CanvasContents"
  413. ],
  414. "Input": [
  415. "CanvasContents"
  416. ],
  417. "List": [
  418. "CanvasContents"
  419. ],
  420. "Label": [
  421. "CanvasContents"
  422. ],
  423. "Container": [
  424. "CanvasContents"
  425. ],
  426. "Button": [
  427. "CanvasContents"
  428. ]
  429. }
  430. },
  431. "connectorTypes": {
  432. "Contain": "containment",
  433. "CanvasContents": "containment"
  434. },
  435. "types2parentTypes": {
  436. "VisualElement": [],
  437. "Input": [
  438. "VisualElement"
  439. ],
  440. "List": [
  441. "VisualElement"
  442. ],
  443. "Label": [
  444. "VisualElement"
  445. ],
  446. "Container": [
  447. "VisualElement"
  448. ],
  449. "Button": [
  450. "VisualElement"
  451. ],
  452. "Contain": [],
  453. "Canvas": [],
  454. "CanvasContents": []
  455. }
  456. }