Trapped-Processors.js 54 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378
  1. define("gh_herby_trapped/Trapped-Processors", ["amber_vm/smalltalk", "amber_vm/nil", "amber_vm/_st", "gh_herby_trapped/Trapped-Frontend"], function(smalltalk,nil,_st){
  2. smalltalk.addPackage('Trapped-Processors');
  3. smalltalk.packages["Trapped-Processors"].transport = {"type":"amd","amdNamespace":"gh_herby_trapped"};
  4. smalltalk.addClass('TrappedProcessorAttribute', smalltalk.TrappedDataExpectingProcessor, ['attrName'], 'Trapped-Processors');
  5. smalltalk.TrappedProcessorAttribute.comment="I set the data into an attribute speciried when creating me.\x0aNo observing and sending back, atm.";
  6. smalltalk.addMethod(
  7. smalltalk.method({
  8. selector: "attrName:",
  9. category: 'accessing',
  10. fn: function (aString){
  11. var self=this;
  12. return smalltalk.withContext(function($ctx1) {
  13. self["@attrName"]=aString;
  14. return self}, function($ctx1) {$ctx1.fill(self,"attrName:",{aString:aString},smalltalk.TrappedProcessorAttribute)})},
  15. args: ["aString"],
  16. source: "attrName: aString\x0a\x09attrName := aString",
  17. messageSends: [],
  18. referencedClasses: []
  19. }),
  20. smalltalk.TrappedProcessorAttribute);
  21. smalltalk.addMethod(
  22. smalltalk.method({
  23. selector: "toView:",
  24. category: 'data transformation',
  25. fn: function (aDataCarrier){
  26. var self=this;
  27. return smalltalk.withContext(function($ctx1) {
  28. _st(aDataCarrier)._toTargetAttr_(self["@attrName"]);
  29. return self}, function($ctx1) {$ctx1.fill(self,"toView:",{aDataCarrier:aDataCarrier},smalltalk.TrappedProcessorAttribute)})},
  30. args: ["aDataCarrier"],
  31. source: "toView: aDataCarrier\x0a\x09aDataCarrier toTargetAttr: attrName",
  32. messageSends: ["toTargetAttr:"],
  33. referencedClasses: []
  34. }),
  35. smalltalk.TrappedProcessorAttribute);
  36. smalltalk.addMethod(
  37. smalltalk.method({
  38. selector: "new:",
  39. category: 'instance creation',
  40. fn: function (aString){
  41. var self=this;
  42. return smalltalk.withContext(function($ctx1) {
  43. var $2,$3,$1;
  44. $2=self._new();
  45. _st($2)._attrName_(aString);
  46. $3=_st($2)._yourself();
  47. $1=$3;
  48. return $1;
  49. }, function($ctx1) {$ctx1.fill(self,"new:",{aString:aString},smalltalk.TrappedProcessorAttribute.klass)})},
  50. args: ["aString"],
  51. source: "new: aString\x0a\x09^self new\x0a\x09\x09attrName: aString;\x0a\x09\x09yourself",
  52. messageSends: ["attrName:", "new", "yourself"],
  53. referencedClasses: []
  54. }),
  55. smalltalk.TrappedProcessorAttribute.klass);
  56. smalltalk.addClass('TrappedProcessorDataAdhoc', smalltalk.TrappedDataExpectingProcessor, ['toViewBlock'], 'Trapped-Processors');
  57. smalltalk.TrappedProcessorDataAdhoc.comment="I put data into target via contents: in toView:";
  58. smalltalk.addMethod(
  59. smalltalk.method({
  60. selector: "toView:",
  61. category: 'data transformation',
  62. fn: function (aDataCarrier){
  63. var self=this;
  64. return smalltalk.withContext(function($ctx1) {
  65. _st(self["@toViewBlock"])._value_(aDataCarrier);
  66. return self}, function($ctx1) {$ctx1.fill(self,"toView:",{aDataCarrier:aDataCarrier},smalltalk.TrappedProcessorDataAdhoc)})},
  67. args: ["aDataCarrier"],
  68. source: "toView: aDataCarrier\x0a\x09toViewBlock value: aDataCarrier",
  69. messageSends: ["value:"],
  70. referencedClasses: []
  71. }),
  72. smalltalk.TrappedProcessorDataAdhoc);
  73. smalltalk.addMethod(
  74. smalltalk.method({
  75. selector: "toViewBlock:",
  76. category: 'accessing',
  77. fn: function (aBlock){
  78. var self=this;
  79. return smalltalk.withContext(function($ctx1) {
  80. self["@toViewBlock"]=aBlock;
  81. return self}, function($ctx1) {$ctx1.fill(self,"toViewBlock:",{aBlock:aBlock},smalltalk.TrappedProcessorDataAdhoc)})},
  82. args: ["aBlock"],
  83. source: "toViewBlock: aBlock\x0a\x09toViewBlock := aBlock",
  84. messageSends: [],
  85. referencedClasses: []
  86. }),
  87. smalltalk.TrappedProcessorDataAdhoc);
  88. smalltalk.addMethod(
  89. smalltalk.method({
  90. selector: "newToView:",
  91. category: 'instance creation',
  92. fn: function (aBlock){
  93. var self=this;
  94. return smalltalk.withContext(function($ctx1) {
  95. var $2,$3,$1;
  96. $2=self._new();
  97. _st($2)._toViewBlock_(aBlock);
  98. $3=_st($2)._yourself();
  99. $1=$3;
  100. return $1;
  101. }, function($ctx1) {$ctx1.fill(self,"newToView:",{aBlock:aBlock},smalltalk.TrappedProcessorDataAdhoc.klass)})},
  102. args: ["aBlock"],
  103. source: "newToView: aBlock\x0a\x09^self new\x0a\x09\x09toViewBlock: aBlock;\x0a\x09\x09yourself",
  104. messageSends: ["toViewBlock:", "new", "yourself"],
  105. referencedClasses: []
  106. }),
  107. smalltalk.TrappedProcessorDataAdhoc.klass);
  108. smalltalk.addClass('TrappedProcessorDescend', smalltalk.TrappedProcessor, [], 'Trapped-Processors');
  109. smalltalk.TrappedProcessorDescend.comment="I intepret data-trap in descendants of my brush.";
  110. smalltalk.addMethod(
  111. smalltalk.method({
  112. selector: "toView:",
  113. category: 'data transformation',
  114. fn: function (aDataCarrier){
  115. var self=this;
  116. function $Trapped(){return smalltalk.Trapped||(typeof Trapped=="undefined"?nil:Trapped)}
  117. return smalltalk.withContext(function($ctx1) {
  118. _st(_st($Trapped())._current())._injectToChildren_(_st(_st(aDataCarrier)._target())._element());
  119. return self}, function($ctx1) {$ctx1.fill(self,"toView:",{aDataCarrier:aDataCarrier},smalltalk.TrappedProcessorDescend)})},
  120. args: ["aDataCarrier"],
  121. source: "toView: aDataCarrier\x0a\x09Trapped current injectToChildren: aDataCarrier target element",
  122. messageSends: ["injectToChildren:", "current", "element", "target"],
  123. referencedClasses: ["Trapped"]
  124. }),
  125. smalltalk.TrappedProcessorDescend);
  126. smalltalk.addClass('TrappedProcessorGuardBase', smalltalk.TrappedProcessor, ['guardPath'], 'Trapped-Processors');
  127. smalltalk.TrappedProcessorGuardBase.comment="I serve as base class for brush-guarding processors.\x0a\x0aI cover instantiation and subclasses have to provide\x0aimplementation of toVIew: that react appropriately to guard releasing.";
  128. smalltalk.addMethod(
  129. smalltalk.method({
  130. selector: "guardPath:",
  131. category: 'accessing',
  132. fn: function (anArray){
  133. var self=this;
  134. return smalltalk.withContext(function($ctx1) {
  135. self["@guardPath"]=anArray;
  136. return self}, function($ctx1) {$ctx1.fill(self,"guardPath:",{anArray:anArray},smalltalk.TrappedProcessorGuardBase)})},
  137. args: ["anArray"],
  138. source: "guardPath: anArray\x0a\x09guardPath := anArray",
  139. messageSends: [],
  140. referencedClasses: []
  141. }),
  142. smalltalk.TrappedProcessorGuardBase);
  143. smalltalk.addMethod(
  144. smalltalk.method({
  145. selector: "toModel:",
  146. category: 'data transformation',
  147. fn: function (aDataCarrier){
  148. var self=this;
  149. return smalltalk.withContext(function($ctx1) {
  150. return self}, function($ctx1) {$ctx1.fill(self,"toModel:",{aDataCarrier:aDataCarrier},smalltalk.TrappedProcessorGuardBase)})},
  151. args: ["aDataCarrier"],
  152. source: "toModel: aDataCarrier\x0a\x09\x22stop\x22",
  153. messageSends: [],
  154. referencedClasses: []
  155. }),
  156. smalltalk.TrappedProcessorGuardBase);
  157. smalltalk.addMethod(
  158. smalltalk.method({
  159. selector: "toView:",
  160. category: 'data transformation',
  161. fn: function (aDataCarrier){
  162. var self=this;
  163. return smalltalk.withContext(function($ctx1) {
  164. self._subclassResponsibility();
  165. return self}, function($ctx1) {$ctx1.fill(self,"toView:",{aDataCarrier:aDataCarrier},smalltalk.TrappedProcessorGuardBase)})},
  166. args: ["aDataCarrier"],
  167. source: "toView: aDataCarrier\x0a\x09self subclassResponsibility",
  168. messageSends: ["subclassResponsibility"],
  169. referencedClasses: []
  170. }),
  171. smalltalk.TrappedProcessorGuardBase);
  172. smalltalk.addMethod(
  173. smalltalk.method({
  174. selector: "new:",
  175. category: 'instance creation',
  176. fn: function (anArray){
  177. var self=this;
  178. return smalltalk.withContext(function($ctx1) {
  179. var $2,$3,$1;
  180. $2=self._new();
  181. _st($2)._guardPath_(anArray);
  182. $3=_st($2)._yourself();
  183. $1=$3;
  184. return $1;
  185. }, function($ctx1) {$ctx1.fill(self,"new:",{anArray:anArray},smalltalk.TrappedProcessorGuardBase.klass)})},
  186. args: ["anArray"],
  187. source: "new: anArray\x0a\x09^ self new\x0a\x09\x09guardPath: anArray;\x0a\x09\x09yourself",
  188. messageSends: ["guardPath:", "new", "yourself"],
  189. referencedClasses: []
  190. }),
  191. smalltalk.TrappedProcessorGuardBase.klass);
  192. smalltalk.addClass('TrappedProcessorGuardProc', smalltalk.TrappedProcessorGuardBase, [], 'Trapped-Processors');
  193. smalltalk.TrappedProcessorGuardProc.comment="I am used to guard contents filling process of the brush I am installed on.\x0a\x0aI observe guard expression in the model,\x0aand when it changes to nil or false, I delete the brush contents;\x0aon the other hand, when it changes to non-nil and non-false,\x0aI run the rest on the chain, which should be one-time\x0athat sets up the contents,";
  194. smalltalk.addMethod(
  195. smalltalk.method({
  196. selector: "toView:",
  197. category: 'data transformation',
  198. fn: function (aDataCarrier){
  199. var self=this;
  200. var frozen;
  201. return smalltalk.withContext(function($ctx1) {
  202. frozen=_st(aDataCarrier)._copy();
  203. $ctx1.sendIdx["copy"]=1;
  204. _st(_st(frozen)._target())._trapGuard_contents_(self["@guardPath"],(function(){
  205. return smalltalk.withContext(function($ctx2) {
  206. return _st(_st(frozen)._copy())._proceed();
  207. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}));
  208. return self}, function($ctx1) {$ctx1.fill(self,"toView:",{aDataCarrier:aDataCarrier,frozen:frozen},smalltalk.TrappedProcessorGuardProc)})},
  209. args: ["aDataCarrier"],
  210. source: "toView: aDataCarrier\x0a\x09| frozen |\x0a\x09frozen := aDataCarrier copy.\x0a\x09frozen target trapGuard: guardPath contents: [ frozen copy proceed ]",
  211. messageSends: ["copy", "trapGuard:contents:", "target", "proceed"],
  212. referencedClasses: []
  213. }),
  214. smalltalk.TrappedProcessorGuardProc);
  215. smalltalk.addClass('TrappedProcessorGuardXon', smalltalk.TrappedProcessorGuardBase, [], 'Trapped-Processors');
  216. smalltalk.TrappedProcessorGuardXon.comment="I am used to guard contents of the brush I am installed on.\x0a\x0aI save the brush contents, then I observe guard expression in the model,\x0aand when it changes to nil or false, I delete the brush contents;\x0aon the other hand, when it changes to non-nil and non-false,\x0aI restore it from remembered state and interpret all contained\x0adata-trap attributes inside.";
  217. smalltalk.addMethod(
  218. smalltalk.method({
  219. selector: "toView:",
  220. category: 'data transformation',
  221. fn: function (aDataCarrier){
  222. var self=this;
  223. var frozen,contents;
  224. function $Trapped(){return smalltalk.Trapped||(typeof Trapped=="undefined"?nil:Trapped)}
  225. return smalltalk.withContext(function($ctx1) {
  226. frozen=_st(aDataCarrier)._copy();
  227. contents=_st(frozen)._contents();
  228. _st(_st(frozen)._target())._trapGuard_contents_(self["@guardPath"],(function(html){
  229. return smalltalk.withContext(function($ctx2) {
  230. return _st(_st($Trapped())._current())._cloneAndInject_inPlaceOf_(contents,_st(html)._del());
  231. }, function($ctx2) {$ctx2.fillBlock({html:html},$ctx1,1)})}));
  232. return self}, function($ctx1) {$ctx1.fill(self,"toView:",{aDataCarrier:aDataCarrier,frozen:frozen,contents:contents},smalltalk.TrappedProcessorGuardXon)})},
  233. args: ["aDataCarrier"],
  234. source: "toView: aDataCarrier\x0a\x09| frozen contents |\x0a\x09frozen := aDataCarrier copy.\x0a\x09contents := frozen contents.\x0a\x09frozen target trapGuard: guardPath contents: [ :html |\x0a\x09\x09Trapped current cloneAndInject: contents inPlaceOf: html del ]",
  235. messageSends: ["copy", "contents", "trapGuard:contents:", "target", "cloneAndInject:inPlaceOf:", "current", "del"],
  236. referencedClasses: ["Trapped"]
  237. }),
  238. smalltalk.TrappedProcessorGuardXon);
  239. smalltalk.addClass('TrappedProcessorInputChecked', smalltalk.TrappedDataExpectingProcessor, [], 'Trapped-Processors');
  240. smalltalk.TrappedProcessorInputChecked.comment="I bind to checkbox checked state.";
  241. smalltalk.addMethod(
  242. smalltalk.method({
  243. selector: "installToView:toModel:",
  244. category: 'installation',
  245. fn: function (aDataCarrier,anotherDataCarrier){
  246. var self=this;
  247. var brush;
  248. return smalltalk.withContext(function($ctx1) {
  249. var $1,$2;
  250. brush=_st(aDataCarrier)._target();
  251. _st(brush)._onChange_((function(){
  252. return smalltalk.withContext(function($ctx2) {
  253. $1=_st(anotherDataCarrier)._copy();
  254. _st($1)._value_(_st(_st(brush)._asJQuery())._prop_("checked"));
  255. $2=_st($1)._proceed();
  256. return $2;
  257. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}));
  258. return self}, function($ctx1) {$ctx1.fill(self,"installToView:toModel:",{aDataCarrier:aDataCarrier,anotherDataCarrier:anotherDataCarrier,brush:brush},smalltalk.TrappedProcessorInputChecked)})},
  259. args: ["aDataCarrier", "anotherDataCarrier"],
  260. source: "installToView: aDataCarrier toModel: anotherDataCarrier\x0a\x09| brush |\x0a\x09brush := aDataCarrier target.\x0a\x09brush onChange: [ anotherDataCarrier copy value: (brush asJQuery prop: 'checked'); proceed ]",
  261. messageSends: ["target", "onChange:", "value:", "copy", "prop:", "asJQuery", "proceed"],
  262. referencedClasses: []
  263. }),
  264. smalltalk.TrappedProcessorInputChecked);
  265. smalltalk.addMethod(
  266. smalltalk.method({
  267. selector: "toView:",
  268. category: 'data transformation',
  269. fn: function (aDataCarrier){
  270. var self=this;
  271. return smalltalk.withContext(function($ctx1) {
  272. _st(aDataCarrier)._toTargetProp_("checked");
  273. return self}, function($ctx1) {$ctx1.fill(self,"toView:",{aDataCarrier:aDataCarrier},smalltalk.TrappedProcessorInputChecked)})},
  274. args: ["aDataCarrier"],
  275. source: "toView: aDataCarrier\x0a\x09aDataCarrier toTargetProp: 'checked'",
  276. messageSends: ["toTargetProp:"],
  277. referencedClasses: []
  278. }),
  279. smalltalk.TrappedProcessorInputChecked);
  280. smalltalk.addClass('TrappedProcessorInputSelected', smalltalk.TrappedDataExpectingProcessor, [], 'Trapped-Processors');
  281. smalltalk.TrappedProcessorInputSelected.comment="I bind to option selected state.";
  282. smalltalk.addMethod(
  283. smalltalk.method({
  284. selector: "installToView:toModel:",
  285. category: 'installation',
  286. fn: function (aDataCarrier,anotherDataCarrier){
  287. var self=this;
  288. var brush;
  289. return smalltalk.withContext(function($ctx1) {
  290. var $1,$2;
  291. brush=_st(aDataCarrier)._target();
  292. _st(brush)._onChange_((function(){
  293. return smalltalk.withContext(function($ctx2) {
  294. $1=_st(anotherDataCarrier)._copy();
  295. _st($1)._value_(_st(_st(brush)._asJQuery())._prop_("selected"));
  296. $2=_st($1)._proceed();
  297. return $2;
  298. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}));
  299. return self}, function($ctx1) {$ctx1.fill(self,"installToView:toModel:",{aDataCarrier:aDataCarrier,anotherDataCarrier:anotherDataCarrier,brush:brush},smalltalk.TrappedProcessorInputSelected)})},
  300. args: ["aDataCarrier", "anotherDataCarrier"],
  301. source: "installToView: aDataCarrier toModel: anotherDataCarrier\x0a\x09| brush |\x0a\x09brush := aDataCarrier target.\x0a\x09brush onChange: [ anotherDataCarrier copy value: (brush asJQuery prop: 'selected'); proceed ]",
  302. messageSends: ["target", "onChange:", "value:", "copy", "prop:", "asJQuery", "proceed"],
  303. referencedClasses: []
  304. }),
  305. smalltalk.TrappedProcessorInputSelected);
  306. smalltalk.addMethod(
  307. smalltalk.method({
  308. selector: "toView:",
  309. category: 'data transformation',
  310. fn: function (aDataCarrier){
  311. var self=this;
  312. return smalltalk.withContext(function($ctx1) {
  313. _st(aDataCarrier)._toTargetProp_("selected");
  314. return self}, function($ctx1) {$ctx1.fill(self,"toView:",{aDataCarrier:aDataCarrier},smalltalk.TrappedProcessorInputSelected)})},
  315. args: ["aDataCarrier"],
  316. source: "toView: aDataCarrier\x0a\x09aDataCarrier toTargetProp: 'selected'",
  317. messageSends: ["toTargetProp:"],
  318. referencedClasses: []
  319. }),
  320. smalltalk.TrappedProcessorInputSelected);
  321. smalltalk.addClass('TrappedProcessorInputValue', smalltalk.TrappedDataExpectingProcessor, [], 'Trapped-Processors');
  322. smalltalk.TrappedProcessorInputValue.comment="I bind to input value.";
  323. smalltalk.addMethod(
  324. smalltalk.method({
  325. selector: "installToView:toModel:",
  326. category: 'installation',
  327. fn: function (aDataCarrier,anotherDataCarrier){
  328. var self=this;
  329. var brush;
  330. return smalltalk.withContext(function($ctx1) {
  331. var $1,$2;
  332. brush=_st(aDataCarrier)._target();
  333. _st(brush)._onChange_((function(){
  334. return smalltalk.withContext(function($ctx2) {
  335. $1=_st(anotherDataCarrier)._copy();
  336. _st($1)._value_(_st(_st(brush)._asJQuery())._val());
  337. $2=_st($1)._proceed();
  338. return $2;
  339. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}));
  340. return self}, function($ctx1) {$ctx1.fill(self,"installToView:toModel:",{aDataCarrier:aDataCarrier,anotherDataCarrier:anotherDataCarrier,brush:brush},smalltalk.TrappedProcessorInputValue)})},
  341. args: ["aDataCarrier", "anotherDataCarrier"],
  342. source: "installToView: aDataCarrier toModel: anotherDataCarrier\x0a\x09| brush |\x0a\x09brush := aDataCarrier target.\x0a\x09brush onChange: [ anotherDataCarrier copy value: brush asJQuery val; proceed ]",
  343. messageSends: ["target", "onChange:", "value:", "copy", "val", "asJQuery", "proceed"],
  344. referencedClasses: []
  345. }),
  346. smalltalk.TrappedProcessorInputValue);
  347. smalltalk.addMethod(
  348. smalltalk.method({
  349. selector: "toView:",
  350. category: 'data transformation',
  351. fn: function (aDataCarrier){
  352. var self=this;
  353. return smalltalk.withContext(function($ctx1) {
  354. _st(aDataCarrier)._toTargetValue();
  355. return self}, function($ctx1) {$ctx1.fill(self,"toView:",{aDataCarrier:aDataCarrier},smalltalk.TrappedProcessorInputValue)})},
  356. args: ["aDataCarrier"],
  357. source: "toView: aDataCarrier\x0a\x09aDataCarrier toTargetValue",
  358. messageSends: ["toTargetValue"],
  359. referencedClasses: []
  360. }),
  361. smalltalk.TrappedProcessorInputValue);
  362. smalltalk.addClass('TrappedProcessorLoopBase', smalltalk.TrappedProcessor, [], 'Trapped-Processors');
  363. smalltalk.TrappedProcessorLoopBase.comment="I serve as base class for looping processors.\x0a\x0aI cover instantiation and subclasses have to provide\x0aimplementation of toVIew: that loops appropriately.";
  364. smalltalk.addMethod(
  365. smalltalk.method({
  366. selector: "toModel:",
  367. category: 'data transformation',
  368. fn: function (aDataCarrier){
  369. var self=this;
  370. return smalltalk.withContext(function($ctx1) {
  371. return self}, function($ctx1) {$ctx1.fill(self,"toModel:",{aDataCarrier:aDataCarrier},smalltalk.TrappedProcessorLoopBase)})},
  372. args: ["aDataCarrier"],
  373. source: "toModel: aDataCarrier\x0a\x09\x22stop\x22",
  374. messageSends: [],
  375. referencedClasses: []
  376. }),
  377. smalltalk.TrappedProcessorLoopBase);
  378. smalltalk.addMethod(
  379. smalltalk.method({
  380. selector: "toView:",
  381. category: 'data transformation',
  382. fn: function (aDataCarrier){
  383. var self=this;
  384. return smalltalk.withContext(function($ctx1) {
  385. self._subclassResponsibility();
  386. return self}, function($ctx1) {$ctx1.fill(self,"toView:",{aDataCarrier:aDataCarrier},smalltalk.TrappedProcessorLoopBase)})},
  387. args: ["aDataCarrier"],
  388. source: "toView: aDataCarrier\x0a\x09self subclassResponsibility",
  389. messageSends: ["subclassResponsibility"],
  390. referencedClasses: []
  391. }),
  392. smalltalk.TrappedProcessorLoopBase);
  393. smalltalk.addClass('TrappedProcessorLoopProcZ', smalltalk.TrappedProcessorLoopBase, [], 'Trapped-Processors');
  394. smalltalk.TrappedProcessorLoopProcZ.comment="I am used to loop over data and repeat the contents filling process\x0aof the brush I am installed on.\x0a\x0aI observe the data in the model,\x0aand when it changes, I loop over it\x0aand run the rest of the processing chain\x0afor each element, putting the result _after_ my brush.\x0a\x0aMy brush itself should be as least visible as possible,\x0aas it only serve as a position flag (use for example\x0anoscript, ins or del).";
  395. smalltalk.addMethod(
  396. smalltalk.method({
  397. selector: "toView:",
  398. category: 'data transformation',
  399. fn: function (aDataCarrier){
  400. var self=this;
  401. var frozen;
  402. return smalltalk.withContext(function($ctx1) {
  403. var $1,$2;
  404. frozen=_st(aDataCarrier)._copy();
  405. $ctx1.sendIdx["copy"]=1;
  406. _st(_st(frozen)._target())._trapIter_after_([],(function(html){
  407. return smalltalk.withContext(function($ctx2) {
  408. $1=_st(frozen)._copy();
  409. _st($1)._target_(_st(html)._root());
  410. $2=_st($1)._proceed();
  411. return $2;
  412. }, function($ctx2) {$ctx2.fillBlock({html:html},$ctx1,1)})}));
  413. return self}, function($ctx1) {$ctx1.fill(self,"toView:",{aDataCarrier:aDataCarrier,frozen:frozen},smalltalk.TrappedProcessorLoopProcZ)})},
  414. args: ["aDataCarrier"],
  415. source: "toView: aDataCarrier\x0a\x09| frozen |\x0a\x09frozen := aDataCarrier copy.\x0a\x09frozen target trapIter: #() after: [ :html | frozen copy target: html root; proceed ]",
  416. messageSends: ["copy", "trapIter:after:", "target", "target:", "root", "proceed"],
  417. referencedClasses: []
  418. }),
  419. smalltalk.TrappedProcessorLoopProcZ);
  420. smalltalk.addClass('TrappedProcessorLoopXonZ', smalltalk.TrappedProcessorLoopBase, [], 'Trapped-Processors');
  421. smalltalk.TrappedProcessorLoopXonZ.comment="I am used to loop over data and repeat the contents\x0aof the brush I am installed on.\x0a\x0aI save the brush contents, then I observe the data in the model,\x0aand when it changes, I loop over it\x0aand restore the contents from remembered state\x0aand interpret all contained data-trap attributes inside\x0afor each element, putting the result _after_ my brush.\x0a\x0aMy brush itself should be as least visible as possible,\x0aas it only serve as a position flag (use for example\x0anoscript, ins or del).";
  422. smalltalk.addMethod(
  423. smalltalk.method({
  424. selector: "toView:",
  425. category: 'data transformation',
  426. fn: function (aDataCarrier){
  427. var self=this;
  428. var frozen,contents;
  429. function $Trapped(){return smalltalk.Trapped||(typeof Trapped=="undefined"?nil:Trapped)}
  430. return smalltalk.withContext(function($ctx1) {
  431. frozen=_st(aDataCarrier)._copy();
  432. contents=_st(frozen)._contents();
  433. _st(_st(frozen)._target())._trapIter_after_([],(function(html){
  434. return smalltalk.withContext(function($ctx2) {
  435. return _st(_st($Trapped())._current())._cloneAndInject_inPlaceOf_(contents,_st(html)._del());
  436. }, function($ctx2) {$ctx2.fillBlock({html:html},$ctx1,1)})}));
  437. return self}, function($ctx1) {$ctx1.fill(self,"toView:",{aDataCarrier:aDataCarrier,frozen:frozen,contents:contents},smalltalk.TrappedProcessorLoopXonZ)})},
  438. args: ["aDataCarrier"],
  439. source: "toView: aDataCarrier\x0a\x09| frozen contents |\x0a\x09frozen := aDataCarrier copy.\x0a\x09contents := frozen contents.\x0a\x09frozen target trapIter: #() after: [ :html |\x0a\x09\x09Trapped current cloneAndInject: contents inPlaceOf: html del ]",
  440. messageSends: ["copy", "contents", "trapIter:after:", "target", "cloneAndInject:inPlaceOf:", "current", "del"],
  441. referencedClasses: ["Trapped"]
  442. }),
  443. smalltalk.TrappedProcessorLoopXonZ);
  444. smalltalk.addClass('TrappedProcessorReplace', smalltalk.TrappedProcessor, ['left', 'right'], 'Trapped-Processors');
  445. smalltalk.TrappedProcessorReplace.comment="I convert data to string representation and do a regex replace.\x0aI get two parameters, in toView:, first is replaced with second,\x0aand in toModel:, the second is replaced with first.\x0a\x0aI remove leading '^' and ending '$' from the string used as replacement,\x0aso it safe to replace ^to with ^To, for example.\x0a";
  446. smalltalk.addMethod(
  447. smalltalk.method({
  448. selector: "left:",
  449. category: 'accessing',
  450. fn: function (aString){
  451. var self=this;
  452. return smalltalk.withContext(function($ctx1) {
  453. self["@left"]=aString;
  454. return self}, function($ctx1) {$ctx1.fill(self,"left:",{aString:aString},smalltalk.TrappedProcessorReplace)})},
  455. args: ["aString"],
  456. source: "left: aString\x0a\x09left := aString",
  457. messageSends: [],
  458. referencedClasses: []
  459. }),
  460. smalltalk.TrappedProcessorReplace);
  461. smalltalk.addMethod(
  462. smalltalk.method({
  463. selector: "right:",
  464. category: 'accessing',
  465. fn: function (aString){
  466. var self=this;
  467. return smalltalk.withContext(function($ctx1) {
  468. self["@right"]=aString;
  469. return self}, function($ctx1) {$ctx1.fill(self,"right:",{aString:aString},smalltalk.TrappedProcessorReplace)})},
  470. args: ["aString"],
  471. source: "right: aString\x0a\x09right := aString",
  472. messageSends: [],
  473. referencedClasses: []
  474. }),
  475. smalltalk.TrappedProcessorReplace);
  476. smalltalk.addMethod(
  477. smalltalk.method({
  478. selector: "toModel:",
  479. category: 'data transformation',
  480. fn: function (aDataCarrier){
  481. var self=this;
  482. var replacement,old;
  483. return smalltalk.withContext(function($ctx1) {
  484. var $1,$2;
  485. $1=_st(self["@left"])._replace_with_("^\x5c^","");
  486. $ctx1.sendIdx["replace:with:"]=2;
  487. replacement=_st($1)._replace_with_("\x5c$$","");
  488. $ctx1.sendIdx["replace:with:"]=1;
  489. old=_st(_st(aDataCarrier)._value())._asString();
  490. _st(aDataCarrier)._value_whenDifferentFrom_(_st(old)._replace_with_(self["@right"],replacement),old);
  491. $2=_st(aDataCarrier)._proceed();
  492. return self}, function($ctx1) {$ctx1.fill(self,"toModel:",{aDataCarrier:aDataCarrier,replacement:replacement,old:old},smalltalk.TrappedProcessorReplace)})},
  493. args: ["aDataCarrier"],
  494. source: "toModel: aDataCarrier\x0a\x09| replacement old |\x0a\x09replacement := (left replace: '^\x5c^' with: '') replace: '\x5c$$' with: ''.\x0a\x09old := aDataCarrier value asString.\x0a\x09aDataCarrier\x0a\x09\x09value: (old replace: right with: replacement) whenDifferentFrom: old;\x0a\x09\x09proceed",
  495. messageSends: ["replace:with:", "asString", "value", "value:whenDifferentFrom:", "proceed"],
  496. referencedClasses: []
  497. }),
  498. smalltalk.TrappedProcessorReplace);
  499. smalltalk.addMethod(
  500. smalltalk.method({
  501. selector: "toView:",
  502. category: 'data transformation',
  503. fn: function (aDataCarrier){
  504. var self=this;
  505. var replacement,old;
  506. return smalltalk.withContext(function($ctx1) {
  507. var $1,$2;
  508. $1=_st(self["@right"])._replace_with_("^\x5c^","");
  509. $ctx1.sendIdx["replace:with:"]=2;
  510. replacement=_st($1)._replace_with_("\x5c$$","");
  511. $ctx1.sendIdx["replace:with:"]=1;
  512. old=_st(_st(aDataCarrier)._value())._asString();
  513. _st(aDataCarrier)._value_whenDifferentFrom_(_st(old)._replace_with_(self["@left"],replacement),old);
  514. $2=_st(aDataCarrier)._proceed();
  515. return self}, function($ctx1) {$ctx1.fill(self,"toView:",{aDataCarrier:aDataCarrier,replacement:replacement,old:old},smalltalk.TrappedProcessorReplace)})},
  516. args: ["aDataCarrier"],
  517. source: "toView: aDataCarrier\x0a\x09| replacement old |\x0a\x09replacement := (right replace: '^\x5c^' with: '') replace: '\x5c$$' with: ''.\x0a\x09old := aDataCarrier value asString.\x0a\x09aDataCarrier\x0a\x09\x09value: (old replace: left with: replacement) whenDifferentFrom: old;\x0a\x09\x09proceed",
  518. messageSends: ["replace:with:", "asString", "value", "value:whenDifferentFrom:", "proceed"],
  519. referencedClasses: []
  520. }),
  521. smalltalk.TrappedProcessorReplace);
  522. smalltalk.addMethod(
  523. smalltalk.method({
  524. selector: "new:with:",
  525. category: 'instance creation',
  526. fn: function (aString,anotherString){
  527. var self=this;
  528. return smalltalk.withContext(function($ctx1) {
  529. var $2,$3,$4,$5,$1;
  530. $2=self._new();
  531. $3=$2;
  532. $4=_st(aString)._asString();
  533. $ctx1.sendIdx["asString"]=1;
  534. _st($3)._left_($4);
  535. _st($2)._right_(_st(anotherString)._asString());
  536. $5=_st($2)._yourself();
  537. $1=$5;
  538. return $1;
  539. }, function($ctx1) {$ctx1.fill(self,"new:with:",{aString:aString,anotherString:anotherString},smalltalk.TrappedProcessorReplace.klass)})},
  540. args: ["aString", "anotherString"],
  541. source: "new: aString with: anotherString\x0a\x09^ self new\x0a\x09\x09left: aString asString;\x0a\x09\x09right: anotherString asString;\x0a\x09\x09yourself",
  542. messageSends: ["left:", "new", "asString", "right:", "yourself"],
  543. referencedClasses: []
  544. }),
  545. smalltalk.TrappedProcessorReplace.klass);
  546. smalltalk.addClass('TrappedProcessorSignal', smalltalk.TrappedProcessor, ['selector'], 'Trapped-Processors');
  547. smalltalk.TrappedProcessorSignal.comment="Instead of writing data directly to model,\x0aI instead modify it by sending a message specified when instantiating me.";
  548. smalltalk.addMethod(
  549. smalltalk.method({
  550. selector: "selector:",
  551. category: 'accessing',
  552. fn: function (aString){
  553. var self=this;
  554. return smalltalk.withContext(function($ctx1) {
  555. self["@selector"]=aString;
  556. return self}, function($ctx1) {$ctx1.fill(self,"selector:",{aString:aString},smalltalk.TrappedProcessorSignal)})},
  557. args: ["aString"],
  558. source: "selector: aString\x0a\x09selector := aString",
  559. messageSends: [],
  560. referencedClasses: []
  561. }),
  562. smalltalk.TrappedProcessorSignal);
  563. smalltalk.addMethod(
  564. smalltalk.method({
  565. selector: "toModel:",
  566. category: 'data transformation',
  567. fn: function (aDataCarrier){
  568. var self=this;
  569. return smalltalk.withContext(function($ctx1) {
  570. _st(aDataCarrier)._modifyTargetByPerforming_(self["@selector"]);
  571. return self}, function($ctx1) {$ctx1.fill(self,"toModel:",{aDataCarrier:aDataCarrier},smalltalk.TrappedProcessorSignal)})},
  572. args: ["aDataCarrier"],
  573. source: "toModel: aDataCarrier\x0a\x09aDataCarrier modifyTargetByPerforming: selector",
  574. messageSends: ["modifyTargetByPerforming:"],
  575. referencedClasses: []
  576. }),
  577. smalltalk.TrappedProcessorSignal);
  578. smalltalk.addMethod(
  579. smalltalk.method({
  580. selector: "toView:",
  581. category: 'data transformation',
  582. fn: function (aDataCarrier){
  583. var self=this;
  584. return smalltalk.withContext(function($ctx1) {
  585. return self}, function($ctx1) {$ctx1.fill(self,"toView:",{aDataCarrier:aDataCarrier},smalltalk.TrappedProcessorSignal)})},
  586. args: ["aDataCarrier"],
  587. source: "toView: aDataCarrier\x0a\x09\x22stop\x22",
  588. messageSends: [],
  589. referencedClasses: []
  590. }),
  591. smalltalk.TrappedProcessorSignal);
  592. smalltalk.addMethod(
  593. smalltalk.method({
  594. selector: "new:",
  595. category: 'instance creation',
  596. fn: function (aString){
  597. var self=this;
  598. return smalltalk.withContext(function($ctx1) {
  599. var $2,$3,$1;
  600. $2=self._new();
  601. _st($2)._selector_(aString);
  602. $3=_st($2)._yourself();
  603. $1=$3;
  604. return $1;
  605. }, function($ctx1) {$ctx1.fill(self,"new:",{aString:aString},smalltalk.TrappedProcessorSignal.klass)})},
  606. args: ["aString"],
  607. source: "new: aString\x0a\x09^self new\x0a\x09\x09selector: aString;\x0a\x09\x09yourself",
  608. messageSends: ["selector:", "new", "yourself"],
  609. referencedClasses: []
  610. }),
  611. smalltalk.TrappedProcessorSignal.klass);
  612. smalltalk.addClass('TrappedProcessorToBlackboard', smalltalk.TrappedDataExpectingProcessor, [], 'Trapped-Processors');
  613. smalltalk.TrappedProcessorToBlackboard.comment="I save the data to blackboard in toModel:, to position specified by path.";
  614. smalltalk.addMethod(
  615. smalltalk.method({
  616. selector: "toModel:",
  617. category: 'data transformation',
  618. fn: function (aDataCarrier){
  619. var self=this;
  620. return smalltalk.withContext(function($ctx1) {
  621. _st(_st(aDataCarrier)._target())._modify_((function(){
  622. return smalltalk.withContext(function($ctx2) {
  623. return _st(aDataCarrier)._value();
  624. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}));
  625. return self}, function($ctx1) {$ctx1.fill(self,"toModel:",{aDataCarrier:aDataCarrier},smalltalk.TrappedProcessorToBlackboard)})},
  626. args: ["aDataCarrier"],
  627. source: "toModel: aDataCarrier\x0a\x09aDataCarrier target modify: [ aDataCarrier value ]",
  628. messageSends: ["modify:", "target", "value"],
  629. referencedClasses: []
  630. }),
  631. smalltalk.TrappedProcessorToBlackboard);
  632. smalltalk.addClass('TrappedProcessorUriComponentDecode', smalltalk.TrappedProcessor, [], 'Trapped-Processors');
  633. smalltalk.TrappedProcessorUriComponentDecode.comment="I uriComponentDecode in toView:\x0aand encode in toModel:";
  634. smalltalk.addMethod(
  635. smalltalk.method({
  636. selector: "toModel:",
  637. category: 'data transformation',
  638. fn: function (aDataCarrier){
  639. var self=this;
  640. return smalltalk.withContext(function($ctx1) {
  641. var $1;
  642. _st(aDataCarrier)._value_(_st(_st(aDataCarrier)._value())._uriComponentEncoded());
  643. $1=_st(aDataCarrier)._proceed();
  644. return self}, function($ctx1) {$ctx1.fill(self,"toModel:",{aDataCarrier:aDataCarrier},smalltalk.TrappedProcessorUriComponentDecode)})},
  645. args: ["aDataCarrier"],
  646. source: "toModel: aDataCarrier\x0a\x09aDataCarrier\x0a\x09\x09value: aDataCarrier value uriComponentEncoded;\x0a\x09\x09proceed",
  647. messageSends: ["value:", "uriComponentEncoded", "value", "proceed"],
  648. referencedClasses: []
  649. }),
  650. smalltalk.TrappedProcessorUriComponentDecode);
  651. smalltalk.addMethod(
  652. smalltalk.method({
  653. selector: "toView:",
  654. category: 'data transformation',
  655. fn: function (aDataCarrier){
  656. var self=this;
  657. return smalltalk.withContext(function($ctx1) {
  658. var $1;
  659. _st(aDataCarrier)._value_(_st(_st(aDataCarrier)._value())._uriComponentDecoded());
  660. $1=_st(aDataCarrier)._proceed();
  661. return self}, function($ctx1) {$ctx1.fill(self,"toView:",{aDataCarrier:aDataCarrier},smalltalk.TrappedProcessorUriComponentDecode)})},
  662. args: ["aDataCarrier"],
  663. source: "toView: aDataCarrier\x0a\x09aDataCarrier\x0a\x09\x09value: aDataCarrier value uriComponentDecoded;\x0a\x09\x09proceed",
  664. messageSends: ["value:", "uriComponentDecoded", "value", "proceed"],
  665. referencedClasses: []
  666. }),
  667. smalltalk.TrappedProcessorUriComponentDecode);
  668. smalltalk.addClass('TrappedProcessorUriComponentEncode', smalltalk.TrappedProcessor, [], 'Trapped-Processors');
  669. smalltalk.TrappedProcessorUriComponentEncode.comment="I uriComponentEncode in toView:\x0aand decode in toModel:";
  670. smalltalk.addMethod(
  671. smalltalk.method({
  672. selector: "toModel:",
  673. category: 'data transformation',
  674. fn: function (aDataCarrier){
  675. var self=this;
  676. return smalltalk.withContext(function($ctx1) {
  677. var $1;
  678. _st(aDataCarrier)._value_(_st(_st(aDataCarrier)._value())._uriComponentDecoded());
  679. $1=_st(aDataCarrier)._proceed();
  680. return self}, function($ctx1) {$ctx1.fill(self,"toModel:",{aDataCarrier:aDataCarrier},smalltalk.TrappedProcessorUriComponentEncode)})},
  681. args: ["aDataCarrier"],
  682. source: "toModel: aDataCarrier\x0a\x09aDataCarrier\x0a\x09\x09value: aDataCarrier value uriComponentDecoded;\x0a\x09\x09proceed",
  683. messageSends: ["value:", "uriComponentDecoded", "value", "proceed"],
  684. referencedClasses: []
  685. }),
  686. smalltalk.TrappedProcessorUriComponentEncode);
  687. smalltalk.addMethod(
  688. smalltalk.method({
  689. selector: "toView:",
  690. category: 'data transformation',
  691. fn: function (aDataCarrier){
  692. var self=this;
  693. return smalltalk.withContext(function($ctx1) {
  694. var $1;
  695. _st(aDataCarrier)._value_(_st(_st(aDataCarrier)._value())._uriComponentEncoded());
  696. $1=_st(aDataCarrier)._proceed();
  697. return self}, function($ctx1) {$ctx1.fill(self,"toView:",{aDataCarrier:aDataCarrier},smalltalk.TrappedProcessorUriComponentEncode)})},
  698. args: ["aDataCarrier"],
  699. source: "toView: aDataCarrier\x0a\x09aDataCarrier\x0a\x09\x09value: aDataCarrier value uriComponentEncoded;\x0a\x09\x09proceed",
  700. messageSends: ["value:", "uriComponentEncoded", "value", "proceed"],
  701. referencedClasses: []
  702. }),
  703. smalltalk.TrappedProcessorUriComponentEncode);
  704. smalltalk.addClass('TrappedProcessorWhenClicked', smalltalk.TrappedProcessor, [], 'Trapped-Processors');
  705. smalltalk.TrappedProcessorWhenClicked.comment="I bind to an element and send true to blackboard when clicked.";
  706. smalltalk.addMethod(
  707. smalltalk.method({
  708. selector: "installToView:toModel:",
  709. category: 'installation',
  710. fn: function (aDataCarrier,anotherDataCarrier){
  711. var self=this;
  712. return smalltalk.withContext(function($ctx1) {
  713. _st(_st(aDataCarrier)._target())._onClick_((function(){
  714. return smalltalk.withContext(function($ctx2) {
  715. _st(_st(anotherDataCarrier)._copy())._proceed();
  716. return false;
  717. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}));
  718. return self}, function($ctx1) {$ctx1.fill(self,"installToView:toModel:",{aDataCarrier:aDataCarrier,anotherDataCarrier:anotherDataCarrier},smalltalk.TrappedProcessorWhenClicked)})},
  719. args: ["aDataCarrier", "anotherDataCarrier"],
  720. source: "installToView: aDataCarrier toModel: anotherDataCarrier\x0a\x09aDataCarrier target onClick: [ anotherDataCarrier copy proceed. false ]",
  721. messageSends: ["onClick:", "target", "proceed", "copy"],
  722. referencedClasses: []
  723. }),
  724. smalltalk.TrappedProcessorWhenClicked);
  725. smalltalk.addClass('TrappedProcessorWhenSubmitted', smalltalk.TrappedProcessor, [], 'Trapped-Processors');
  726. smalltalk.TrappedProcessorWhenSubmitted.comment="I bind to a form and send true to blackboard when submitted.";
  727. smalltalk.addMethod(
  728. smalltalk.method({
  729. selector: "installToView:toModel:",
  730. category: 'installation',
  731. fn: function (aDataCarrier,anotherDataCarrier){
  732. var self=this;
  733. return smalltalk.withContext(function($ctx1) {
  734. _st(_st(aDataCarrier)._target())._onSubmit_((function(){
  735. return smalltalk.withContext(function($ctx2) {
  736. _st(_st(anotherDataCarrier)._copy())._proceed();
  737. return false;
  738. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}));
  739. return self}, function($ctx1) {$ctx1.fill(self,"installToView:toModel:",{aDataCarrier:aDataCarrier,anotherDataCarrier:anotherDataCarrier},smalltalk.TrappedProcessorWhenSubmitted)})},
  740. args: ["aDataCarrier", "anotherDataCarrier"],
  741. source: "installToView: aDataCarrier toModel: anotherDataCarrier\x0a\x09aDataCarrier target onSubmit: [ anotherDataCarrier copy proceed. false ]",
  742. messageSends: ["onSubmit:", "target", "proceed", "copy"],
  743. referencedClasses: []
  744. }),
  745. smalltalk.TrappedProcessorWhenSubmitted);
  746. smalltalk.addClass('TrappedProcessorWidget', smalltalk.TrappedProcessor, ['viewName'], 'Trapped-Processors');
  747. smalltalk.TrappedProcessorWidget.comment="I insert a widget instance of the class specified when creating me.";
  748. smalltalk.addMethod(
  749. smalltalk.method({
  750. selector: "toView:",
  751. category: 'data transformation',
  752. fn: function (aDataCarrier){
  753. var self=this;
  754. function $Smalltalk(){return smalltalk.Smalltalk||(typeof Smalltalk=="undefined"?nil:Smalltalk)}
  755. return smalltalk.withContext(function($ctx1) {
  756. _st(_st(aDataCarrier)._target())._with_(_st(_st(_st($Smalltalk())._current())._at_(self["@viewName"]))._new());
  757. return self}, function($ctx1) {$ctx1.fill(self,"toView:",{aDataCarrier:aDataCarrier},smalltalk.TrappedProcessorWidget)})},
  758. args: ["aDataCarrier"],
  759. source: "toView: aDataCarrier\x0a\x09aDataCarrier target with: (Smalltalk current at: viewName) new",
  760. messageSends: ["with:", "target", "new", "at:", "current"],
  761. referencedClasses: ["Smalltalk"]
  762. }),
  763. smalltalk.TrappedProcessorWidget);
  764. smalltalk.addMethod(
  765. smalltalk.method({
  766. selector: "viewName:",
  767. category: 'accessing',
  768. fn: function (aString){
  769. var self=this;
  770. return smalltalk.withContext(function($ctx1) {
  771. self["@viewName"]=aString;
  772. return self}, function($ctx1) {$ctx1.fill(self,"viewName:",{aString:aString},smalltalk.TrappedProcessorWidget)})},
  773. args: ["aString"],
  774. source: "viewName: aString\x0a\x09viewName := aString",
  775. messageSends: [],
  776. referencedClasses: []
  777. }),
  778. smalltalk.TrappedProcessorWidget);
  779. smalltalk.addMethod(
  780. smalltalk.method({
  781. selector: "new:",
  782. category: 'instance creation',
  783. fn: function (aString){
  784. var self=this;
  785. return smalltalk.withContext(function($ctx1) {
  786. var $2,$3,$1;
  787. $2=self._new();
  788. _st($2)._viewName_(aString);
  789. $3=_st($2)._yourself();
  790. $1=$3;
  791. return $1;
  792. }, function($ctx1) {$ctx1.fill(self,"new:",{aString:aString},smalltalk.TrappedProcessorWidget.klass)})},
  793. args: ["aString"],
  794. source: "new: aString\x0a\x09^self new\x0a\x09\x09viewName: aString;\x0a\x09\x09yourself",
  795. messageSends: ["viewName:", "new", "yourself"],
  796. referencedClasses: []
  797. }),
  798. smalltalk.TrappedProcessorWidget.klass);
  799. smalltalk.addMethod(
  800. smalltalk.method({
  801. selector: "contents",
  802. category: '*Trapped-Processors',
  803. fn: function (){
  804. var self=this;
  805. return smalltalk.withContext(function($ctx1) {
  806. var $1;
  807. $1=_st(_st(self._target())._asJQuery())._xontent();
  808. return $1;
  809. }, function($ctx1) {$ctx1.fill(self,"contents",{},smalltalk.TrappedDataCarrier)})},
  810. args: [],
  811. source: "contents\x0a\x09^self target asJQuery xontent",
  812. messageSends: ["xontent", "asJQuery", "target"],
  813. referencedClasses: []
  814. }),
  815. smalltalk.TrappedDataCarrier);
  816. smalltalk.addMethod(
  817. smalltalk.method({
  818. selector: "modifyTarget",
  819. category: '*Trapped-Processors',
  820. fn: function (){
  821. var self=this;
  822. return smalltalk.withContext(function($ctx1) {
  823. _st(self._target())._modify_((function(){
  824. return smalltalk.withContext(function($ctx2) {
  825. return self._value();
  826. }, function($ctx2) {$ctx2.fillBlock({},$ctx1,1)})}));
  827. return self}, function($ctx1) {$ctx1.fill(self,"modifyTarget",{},smalltalk.TrappedDataCarrier)})},
  828. args: [],
  829. source: "modifyTarget\x0a\x09self target modify: [ self value ]",
  830. messageSends: ["modify:", "target", "value"],
  831. referencedClasses: []
  832. }),
  833. smalltalk.TrappedDataCarrier);
  834. smalltalk.addMethod(
  835. smalltalk.method({
  836. selector: "modifyTargetByPerforming:",
  837. category: '*Trapped-Processors',
  838. fn: function (aString){
  839. var self=this;
  840. return smalltalk.withContext(function($ctx1) {
  841. _st(self._target())._modify_((function(m){
  842. return smalltalk.withContext(function($ctx2) {
  843. return _st(m)._perform_(aString);
  844. }, function($ctx2) {$ctx2.fillBlock({m:m},$ctx1,1)})}));
  845. return self}, function($ctx1) {$ctx1.fill(self,"modifyTargetByPerforming:",{aString:aString},smalltalk.TrappedDataCarrier)})},
  846. args: ["aString"],
  847. source: "modifyTargetByPerforming: aString\x0a\x09self target modify: [ :m | m perform: aString ]",
  848. messageSends: ["modify:", "target", "perform:"],
  849. referencedClasses: []
  850. }),
  851. smalltalk.TrappedDataCarrier);
  852. smalltalk.addMethod(
  853. smalltalk.method({
  854. selector: "primitive:",
  855. category: '*Trapped-Processors',
  856. fn: function (anObject){
  857. var self=this;
  858. return smalltalk.withContext(function($ctx1) {
  859. return anObject === nil ? null : anObject.valueOf();
  860. return self}, function($ctx1) {$ctx1.fill(self,"primitive:",{anObject:anObject},smalltalk.TrappedDataCarrier)})},
  861. args: ["anObject"],
  862. source: "primitive: anObject\x0a\x09<return anObject === nil ? null : anObject.valueOf()>",
  863. messageSends: [],
  864. referencedClasses: []
  865. }),
  866. smalltalk.TrappedDataCarrier);
  867. smalltalk.addMethod(
  868. smalltalk.method({
  869. selector: "toTargetAttr:",
  870. category: '*Trapped-Processors',
  871. fn: function (aString){
  872. var self=this;
  873. return smalltalk.withContext(function($ctx1) {
  874. var $1,$2,$3,$5,$4;
  875. $1=self._falseAsNilValue();
  876. if(($receiver = $1) == nil || $receiver == null){
  877. $2=self._target();
  878. $ctx1.sendIdx["target"]=1;
  879. _st($2)._removeAt_(aString);
  880. } else {
  881. var value,bvalue;
  882. bvalue=$receiver;
  883. value=self._primitive_(bvalue);
  884. value;
  885. $3=self._target();
  886. $5=_st(value).__eq(true);
  887. if(smalltalk.assert($5)){
  888. $4=aString;
  889. } else {
  890. $4=value;
  891. };
  892. _st($3)._at_put_(aString,$4);
  893. };
  894. return self}, function($ctx1) {$ctx1.fill(self,"toTargetAttr:",{aString:aString},smalltalk.TrappedDataCarrier)})},
  895. args: ["aString"],
  896. source: "toTargetAttr: aString\x0a\x09self falseAsNilValue\x0a\x09\x09ifNil: [ self target removeAt: aString ]\x0a\x09\x09ifNotNil: [ :bvalue |\x0a\x09\x09\x09| value |\x0a\x09\x09\x09value := self primitive: bvalue.\x0a\x09\x09\x09self target at: aString put: (value = true ifTrue: [ aString ] ifFalse: [ value ]) ]",
  897. messageSends: ["ifNil:ifNotNil:", "falseAsNilValue", "removeAt:", "target", "primitive:", "at:put:", "ifTrue:ifFalse:", "="],
  898. referencedClasses: []
  899. }),
  900. smalltalk.TrappedDataCarrier);
  901. smalltalk.addMethod(
  902. smalltalk.method({
  903. selector: "toTargetContents",
  904. category: '*Trapped-Processors',
  905. fn: function (){
  906. var self=this;
  907. return smalltalk.withContext(function($ctx1) {
  908. _st(self._target())._contents_(self._primitive_(self._value()));
  909. return self}, function($ctx1) {$ctx1.fill(self,"toTargetContents",{},smalltalk.TrappedDataCarrier)})},
  910. args: [],
  911. source: "toTargetContents\x0a\x09self target contents: (self primitive: self value)",
  912. messageSends: ["contents:", "target", "primitive:", "value"],
  913. referencedClasses: []
  914. }),
  915. smalltalk.TrappedDataCarrier);
  916. smalltalk.addMethod(
  917. smalltalk.method({
  918. selector: "toTargetProp:",
  919. category: '*Trapped-Processors',
  920. fn: function (aString){
  921. var self=this;
  922. return smalltalk.withContext(function($ctx1) {
  923. _st(_st(self._target())._element())._at_put_(aString,self._primitive_(self._value()));
  924. return self}, function($ctx1) {$ctx1.fill(self,"toTargetProp:",{aString:aString},smalltalk.TrappedDataCarrier)})},
  925. args: ["aString"],
  926. source: "toTargetProp: aString\x0a\x09self target element at: aString put: (self primitive: self value)",
  927. messageSends: ["at:put:", "element", "target", "primitive:", "value"],
  928. referencedClasses: []
  929. }),
  930. smalltalk.TrappedDataCarrier);
  931. smalltalk.addMethod(
  932. smalltalk.method({
  933. selector: "toTargetValue",
  934. category: '*Trapped-Processors',
  935. fn: function (){
  936. var self=this;
  937. return smalltalk.withContext(function($ctx1) {
  938. _st(_st(self._target())._asJQuery())._val_(self._primitive_(self._value()));
  939. return self}, function($ctx1) {$ctx1.fill(self,"toTargetValue",{},smalltalk.TrappedDataCarrier)})},
  940. args: [],
  941. source: "toTargetValue\x0a\x09self target asJQuery val: (self primitive: self value)",
  942. messageSends: ["val:", "asJQuery", "target", "primitive:", "value"],
  943. referencedClasses: []
  944. }),
  945. smalltalk.TrappedDataCarrier);
  946. smalltalk.addMethod(
  947. smalltalk.method({
  948. selector: "attr:",
  949. category: '*Trapped-Processors',
  950. fn: function (aString){
  951. var self=this;
  952. function $TrappedProcessorAttribute(){return smalltalk.TrappedProcessorAttribute||(typeof TrappedProcessorAttribute=="undefined"?nil:TrappedProcessorAttribute)}
  953. return smalltalk.withContext(function($ctx1) {
  954. var $1;
  955. $1=_st($TrappedProcessorAttribute())._new_(aString);
  956. return $1;
  957. }, function($ctx1) {$ctx1.fill(self,"attr:",{aString:aString},smalltalk.TrappedProcessor.klass)})},
  958. args: ["aString"],
  959. source: "attr: aString\x0a\x09^TrappedProcessorAttribute new: aString",
  960. messageSends: ["new:"],
  961. referencedClasses: ["TrappedProcessorAttribute"]
  962. }),
  963. smalltalk.TrappedProcessor.klass);
  964. smalltalk.addMethod(
  965. smalltalk.method({
  966. selector: "dataToView:",
  967. category: '*Trapped-Processors',
  968. fn: function (aBlock){
  969. var self=this;
  970. function $TrappedProcessorDataAdhoc(){return smalltalk.TrappedProcessorDataAdhoc||(typeof TrappedProcessorDataAdhoc=="undefined"?nil:TrappedProcessorDataAdhoc)}
  971. return smalltalk.withContext(function($ctx1) {
  972. var $1;
  973. $1=_st($TrappedProcessorDataAdhoc())._newToView_(aBlock);
  974. return $1;
  975. }, function($ctx1) {$ctx1.fill(self,"dataToView:",{aBlock:aBlock},smalltalk.TrappedProcessor.klass)})},
  976. args: ["aBlock"],
  977. source: "dataToView: aBlock\x0a\x09^TrappedProcessorDataAdhoc newToView: aBlock",
  978. messageSends: ["newToView:"],
  979. referencedClasses: ["TrappedProcessorDataAdhoc"]
  980. }),
  981. smalltalk.TrappedProcessor.klass);
  982. smalltalk.addMethod(
  983. smalltalk.method({
  984. selector: "deuric",
  985. category: '*Trapped-Processors',
  986. fn: function (){
  987. var self=this;
  988. function $TrappedProcessorUriComponentDecode(){return smalltalk.TrappedProcessorUriComponentDecode||(typeof TrappedProcessorUriComponentDecode=="undefined"?nil:TrappedProcessorUriComponentDecode)}
  989. return smalltalk.withContext(function($ctx1) {
  990. var $1;
  991. $1=_st($TrappedProcessorUriComponentDecode())._new();
  992. return $1;
  993. }, function($ctx1) {$ctx1.fill(self,"deuric",{},smalltalk.TrappedProcessor.klass)})},
  994. args: [],
  995. source: "deuric\x0a\x09^TrappedProcessorUriComponentDecode new",
  996. messageSends: ["new"],
  997. referencedClasses: ["TrappedProcessorUriComponentDecode"]
  998. }),
  999. smalltalk.TrappedProcessor.klass);
  1000. smalltalk.addMethod(
  1001. smalltalk.method({
  1002. selector: "guardProc:",
  1003. category: '*Trapped-Processors',
  1004. fn: function (anArray){
  1005. var self=this;
  1006. function $TrappedProcessorGuardProc(){return smalltalk.TrappedProcessorGuardProc||(typeof TrappedProcessorGuardProc=="undefined"?nil:TrappedProcessorGuardProc)}
  1007. return smalltalk.withContext(function($ctx1) {
  1008. var $1;
  1009. $1=_st($TrappedProcessorGuardProc())._new_(anArray);
  1010. return $1;
  1011. }, function($ctx1) {$ctx1.fill(self,"guardProc:",{anArray:anArray},smalltalk.TrappedProcessor.klass)})},
  1012. args: ["anArray"],
  1013. source: "guardProc: anArray\x0a\x09^TrappedProcessorGuardProc new: anArray",
  1014. messageSends: ["new:"],
  1015. referencedClasses: ["TrappedProcessorGuardProc"]
  1016. }),
  1017. smalltalk.TrappedProcessor.klass);
  1018. smalltalk.addMethod(
  1019. smalltalk.method({
  1020. selector: "guardXon:",
  1021. category: '*Trapped-Processors',
  1022. fn: function (anArray){
  1023. var self=this;
  1024. function $TrappedProcessorGuardXon(){return smalltalk.TrappedProcessorGuardXon||(typeof TrappedProcessorGuardXon=="undefined"?nil:TrappedProcessorGuardXon)}
  1025. return smalltalk.withContext(function($ctx1) {
  1026. var $1;
  1027. $1=_st($TrappedProcessorGuardXon())._new_(anArray);
  1028. return $1;
  1029. }, function($ctx1) {$ctx1.fill(self,"guardXon:",{anArray:anArray},smalltalk.TrappedProcessor.klass)})},
  1030. args: ["anArray"],
  1031. source: "guardXon: anArray\x0a\x09^TrappedProcessorGuardXon new: anArray",
  1032. messageSends: ["new:"],
  1033. referencedClasses: ["TrappedProcessorGuardXon"]
  1034. }),
  1035. smalltalk.TrappedProcessor.klass);
  1036. smalltalk.addMethod(
  1037. smalltalk.method({
  1038. selector: "inputChecked",
  1039. category: '*Trapped-Processors',
  1040. fn: function (){
  1041. var self=this;
  1042. function $TrappedProcessorInputChecked(){return smalltalk.TrappedProcessorInputChecked||(typeof TrappedProcessorInputChecked=="undefined"?nil:TrappedProcessorInputChecked)}
  1043. return smalltalk.withContext(function($ctx1) {
  1044. var $1;
  1045. $1=_st($TrappedProcessorInputChecked())._new();
  1046. return $1;
  1047. }, function($ctx1) {$ctx1.fill(self,"inputChecked",{},smalltalk.TrappedProcessor.klass)})},
  1048. args: [],
  1049. source: "inputChecked\x0a\x09^TrappedProcessorInputChecked new",
  1050. messageSends: ["new"],
  1051. referencedClasses: ["TrappedProcessorInputChecked"]
  1052. }),
  1053. smalltalk.TrappedProcessor.klass);
  1054. smalltalk.addMethod(
  1055. smalltalk.method({
  1056. selector: "inputSelected",
  1057. category: '*Trapped-Processors',
  1058. fn: function (){
  1059. var self=this;
  1060. function $TrappedProcessorInputSelected(){return smalltalk.TrappedProcessorInputSelected||(typeof TrappedProcessorInputSelected=="undefined"?nil:TrappedProcessorInputSelected)}
  1061. return smalltalk.withContext(function($ctx1) {
  1062. var $1;
  1063. $1=_st($TrappedProcessorInputSelected())._new();
  1064. return $1;
  1065. }, function($ctx1) {$ctx1.fill(self,"inputSelected",{},smalltalk.TrappedProcessor.klass)})},
  1066. args: [],
  1067. source: "inputSelected\x0a\x09^TrappedProcessorInputSelected new",
  1068. messageSends: ["new"],
  1069. referencedClasses: ["TrappedProcessorInputSelected"]
  1070. }),
  1071. smalltalk.TrappedProcessor.klass);
  1072. smalltalk.addMethod(
  1073. smalltalk.method({
  1074. selector: "inputValue",
  1075. category: '*Trapped-Processors',
  1076. fn: function (){
  1077. var self=this;
  1078. function $TrappedProcessorInputValue(){return smalltalk.TrappedProcessorInputValue||(typeof TrappedProcessorInputValue=="undefined"?nil:TrappedProcessorInputValue)}
  1079. return smalltalk.withContext(function($ctx1) {
  1080. var $1;
  1081. $1=_st($TrappedProcessorInputValue())._new();
  1082. return $1;
  1083. }, function($ctx1) {$ctx1.fill(self,"inputValue",{},smalltalk.TrappedProcessor.klass)})},
  1084. args: [],
  1085. source: "inputValue\x0a\x09^TrappedProcessorInputValue new",
  1086. messageSends: ["new"],
  1087. referencedClasses: ["TrappedProcessorInputValue"]
  1088. }),
  1089. smalltalk.TrappedProcessor.klass);
  1090. smalltalk.addMethod(
  1091. smalltalk.method({
  1092. selector: "loopProcZ",
  1093. category: '*Trapped-Processors',
  1094. fn: function (){
  1095. var self=this;
  1096. function $TrappedProcessorLoopProcZ(){return smalltalk.TrappedProcessorLoopProcZ||(typeof TrappedProcessorLoopProcZ=="undefined"?nil:TrappedProcessorLoopProcZ)}
  1097. return smalltalk.withContext(function($ctx1) {
  1098. var $1;
  1099. $1=_st($TrappedProcessorLoopProcZ())._new();
  1100. return $1;
  1101. }, function($ctx1) {$ctx1.fill(self,"loopProcZ",{},smalltalk.TrappedProcessor.klass)})},
  1102. args: [],
  1103. source: "loopProcZ\x0a\x09^TrappedProcessorLoopProcZ new",
  1104. messageSends: ["new"],
  1105. referencedClasses: ["TrappedProcessorLoopProcZ"]
  1106. }),
  1107. smalltalk.TrappedProcessor.klass);
  1108. smalltalk.addMethod(
  1109. smalltalk.method({
  1110. selector: "loopXonZ",
  1111. category: '*Trapped-Processors',
  1112. fn: function (){
  1113. var self=this;
  1114. function $TrappedProcessorLoopXonZ(){return smalltalk.TrappedProcessorLoopXonZ||(typeof TrappedProcessorLoopXonZ=="undefined"?nil:TrappedProcessorLoopXonZ)}
  1115. return smalltalk.withContext(function($ctx1) {
  1116. var $1;
  1117. $1=_st($TrappedProcessorLoopXonZ())._new();
  1118. return $1;
  1119. }, function($ctx1) {$ctx1.fill(self,"loopXonZ",{},smalltalk.TrappedProcessor.klass)})},
  1120. args: [],
  1121. source: "loopXonZ\x0a\x09^TrappedProcessorLoopXonZ new",
  1122. messageSends: ["new"],
  1123. referencedClasses: ["TrappedProcessorLoopXonZ"]
  1124. }),
  1125. smalltalk.TrappedProcessor.klass);
  1126. smalltalk.addMethod(
  1127. smalltalk.method({
  1128. selector: "path",
  1129. category: '*Trapped-Processors',
  1130. fn: function (){
  1131. var self=this;
  1132. function $TrappedProcessorDescend(){return smalltalk.TrappedProcessorDescend||(typeof TrappedProcessorDescend=="undefined"?nil:TrappedProcessorDescend)}
  1133. return smalltalk.withContext(function($ctx1) {
  1134. var $1;
  1135. $1=_st($TrappedProcessorDescend())._new();
  1136. return $1;
  1137. }, function($ctx1) {$ctx1.fill(self,"path",{},smalltalk.TrappedProcessor.klass)})},
  1138. args: [],
  1139. source: "path\x0a\x09^TrappedProcessorDescend new",
  1140. messageSends: ["new"],
  1141. referencedClasses: ["TrappedProcessorDescend"]
  1142. }),
  1143. smalltalk.TrappedProcessor.klass);
  1144. smalltalk.addMethod(
  1145. smalltalk.method({
  1146. selector: "replace:with:",
  1147. category: '*Trapped-Processors',
  1148. fn: function (aString,anotherString){
  1149. var self=this;
  1150. function $TrappedProcessorReplace(){return smalltalk.TrappedProcessorReplace||(typeof TrappedProcessorReplace=="undefined"?nil:TrappedProcessorReplace)}
  1151. return smalltalk.withContext(function($ctx1) {
  1152. var $1;
  1153. $1=_st($TrappedProcessorReplace())._new_with_(aString,anotherString);
  1154. return $1;
  1155. }, function($ctx1) {$ctx1.fill(self,"replace:with:",{aString:aString,anotherString:anotherString},smalltalk.TrappedProcessor.klass)})},
  1156. args: ["aString", "anotherString"],
  1157. source: "replace: aString with: anotherString\x0a\x09^TrappedProcessorReplace new: aString with: anotherString",
  1158. messageSends: ["new:with:"],
  1159. referencedClasses: ["TrappedProcessorReplace"]
  1160. }),
  1161. smalltalk.TrappedProcessor.klass);
  1162. smalltalk.addMethod(
  1163. smalltalk.method({
  1164. selector: "signal:",
  1165. category: '*Trapped-Processors',
  1166. fn: function (aString){
  1167. var self=this;
  1168. function $TrappedProcessorSignal(){return smalltalk.TrappedProcessorSignal||(typeof TrappedProcessorSignal=="undefined"?nil:TrappedProcessorSignal)}
  1169. return smalltalk.withContext(function($ctx1) {
  1170. var $1;
  1171. $1=_st($TrappedProcessorSignal())._new_(aString);
  1172. return $1;
  1173. }, function($ctx1) {$ctx1.fill(self,"signal:",{aString:aString},smalltalk.TrappedProcessor.klass)})},
  1174. args: ["aString"],
  1175. source: "signal: aString\x0a\x09^TrappedProcessorSignal new: aString",
  1176. messageSends: ["new:"],
  1177. referencedClasses: ["TrappedProcessorSignal"]
  1178. }),
  1179. smalltalk.TrappedProcessor.klass);
  1180. smalltalk.addMethod(
  1181. smalltalk.method({
  1182. selector: "toBlackboard",
  1183. category: '*Trapped-Processors',
  1184. fn: function (){
  1185. var self=this;
  1186. function $TrappedProcessorToBlackboard(){return smalltalk.TrappedProcessorToBlackboard||(typeof TrappedProcessorToBlackboard=="undefined"?nil:TrappedProcessorToBlackboard)}
  1187. return smalltalk.withContext(function($ctx1) {
  1188. var $1;
  1189. $1=_st($TrappedProcessorToBlackboard())._new();
  1190. return $1;
  1191. }, function($ctx1) {$ctx1.fill(self,"toBlackboard",{},smalltalk.TrappedProcessor.klass)})},
  1192. args: [],
  1193. source: "toBlackboard\x0a\x09^TrappedProcessorToBlackboard new",
  1194. messageSends: ["new"],
  1195. referencedClasses: ["TrappedProcessorToBlackboard"]
  1196. }),
  1197. smalltalk.TrappedProcessor.klass);
  1198. smalltalk.addMethod(
  1199. smalltalk.method({
  1200. selector: "uric",
  1201. category: '*Trapped-Processors',
  1202. fn: function (){
  1203. var self=this;
  1204. function $TrappedProcessorUriComponentEncode(){return smalltalk.TrappedProcessorUriComponentEncode||(typeof TrappedProcessorUriComponentEncode=="undefined"?nil:TrappedProcessorUriComponentEncode)}
  1205. return smalltalk.withContext(function($ctx1) {
  1206. var $1;
  1207. $1=_st($TrappedProcessorUriComponentEncode())._new();
  1208. return $1;
  1209. }, function($ctx1) {$ctx1.fill(self,"uric",{},smalltalk.TrappedProcessor.klass)})},
  1210. args: [],
  1211. source: "uric\x0a\x09^TrappedProcessorUriComponentEncode new",
  1212. messageSends: ["new"],
  1213. referencedClasses: ["TrappedProcessorUriComponentEncode"]
  1214. }),
  1215. smalltalk.TrappedProcessor.klass);
  1216. smalltalk.addMethod(
  1217. smalltalk.method({
  1218. selector: "whenClicked",
  1219. category: '*Trapped-Processors',
  1220. fn: function (){
  1221. var self=this;
  1222. function $TrappedProcessorWhenClicked(){return smalltalk.TrappedProcessorWhenClicked||(typeof TrappedProcessorWhenClicked=="undefined"?nil:TrappedProcessorWhenClicked)}
  1223. return smalltalk.withContext(function($ctx1) {
  1224. var $1;
  1225. $1=_st($TrappedProcessorWhenClicked())._new();
  1226. return $1;
  1227. }, function($ctx1) {$ctx1.fill(self,"whenClicked",{},smalltalk.TrappedProcessor.klass)})},
  1228. args: [],
  1229. source: "whenClicked\x0a\x09^TrappedProcessorWhenClicked new",
  1230. messageSends: ["new"],
  1231. referencedClasses: ["TrappedProcessorWhenClicked"]
  1232. }),
  1233. smalltalk.TrappedProcessor.klass);
  1234. smalltalk.addMethod(
  1235. smalltalk.method({
  1236. selector: "whenSubmitted",
  1237. category: '*Trapped-Processors',
  1238. fn: function (){
  1239. var self=this;
  1240. function $TrappedProcessorWhenSubmitted(){return smalltalk.TrappedProcessorWhenSubmitted||(typeof TrappedProcessorWhenSubmitted=="undefined"?nil:TrappedProcessorWhenSubmitted)}
  1241. return smalltalk.withContext(function($ctx1) {
  1242. var $1;
  1243. $1=_st($TrappedProcessorWhenSubmitted())._new();
  1244. return $1;
  1245. }, function($ctx1) {$ctx1.fill(self,"whenSubmitted",{},smalltalk.TrappedProcessor.klass)})},
  1246. args: [],
  1247. source: "whenSubmitted\x0a\x09^TrappedProcessorWhenSubmitted new",
  1248. messageSends: ["new"],
  1249. referencedClasses: ["TrappedProcessorWhenSubmitted"]
  1250. }),
  1251. smalltalk.TrappedProcessor.klass);
  1252. smalltalk.addMethod(
  1253. smalltalk.method({
  1254. selector: "widget:",
  1255. category: '*Trapped-Processors',
  1256. fn: function (aString){
  1257. var self=this;
  1258. function $TrappedProcessorWidget(){return smalltalk.TrappedProcessorWidget||(typeof TrappedProcessorWidget=="undefined"?nil:TrappedProcessorWidget)}
  1259. return smalltalk.withContext(function($ctx1) {
  1260. var $1;
  1261. $1=_st($TrappedProcessorWidget())._new_(aString);
  1262. return $1;
  1263. }, function($ctx1) {$ctx1.fill(self,"widget:",{aString:aString},smalltalk.TrappedProcessor.klass)})},
  1264. args: ["aString"],
  1265. source: "widget: aString\x0a\x09^TrappedProcessorWidget new: aString",
  1266. messageSends: ["new:"],
  1267. referencedClasses: ["TrappedProcessorWidget"]
  1268. }),
  1269. smalltalk.TrappedProcessor.klass);
  1270. });