Moka-Controllers.js 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. define("amber_core/Moka-Controllers", ["amber_vm/smalltalk", "amber_vm/nil", "amber_vm/_st", "amber_core/Moka-Core"], function(smalltalk,nil,_st){
  2. smalltalk.addPackage('Moka-Controllers');
  3. smalltalk.packages["Moka-Controllers"].transport = {"type":"amd","amdNamespace":"amber_core"};
  4. smalltalk.addClass('MKButtonController', smalltalk.MKAspectController, [], 'Moka-Controllers');
  5. smalltalk.MKButtonController.comment="I am the default controller for `MKButtonView`.";
  6. smalltalk.addMethod(
  7. smalltalk.method({
  8. selector: "onPressed",
  9. category: 'actions',
  10. fn: function (){
  11. var self=this;
  12. return smalltalk.withContext(function($ctx1) {
  13. self._performAction();
  14. return self}, function($ctx1) {$ctx1.fill(self,"onPressed",{},smalltalk.MKButtonController)})},
  15. args: [],
  16. source: "onPressed\x0a\x09self performAction",
  17. messageSends: ["performAction"],
  18. referencedClasses: []
  19. }),
  20. smalltalk.MKButtonController);
  21. smalltalk.addClass('MKCheckboxController', smalltalk.MKAspectController, [], 'Moka-Controllers');
  22. smalltalk.MKCheckboxController.comment="I am the default controller for `MKCheckboxView`.";
  23. smalltalk.addMethod(
  24. smalltalk.method({
  25. selector: "onToggled:",
  26. category: 'actions',
  27. fn: function (aBoolean){
  28. var self=this;
  29. return smalltalk.withContext(function($ctx1) {
  30. self._performActionWith_(aBoolean);
  31. return self}, function($ctx1) {$ctx1.fill(self,"onToggled:",{aBoolean:aBoolean},smalltalk.MKCheckboxController)})},
  32. args: ["aBoolean"],
  33. source: "onToggled: aBoolean\x0a\x09self performActionWith: aBoolean",
  34. messageSends: ["performActionWith:"],
  35. referencedClasses: []
  36. }),
  37. smalltalk.MKCheckboxController);
  38. smalltalk.addClass('MKInputController', smalltalk.MKAspectController, [], 'Moka-Controllers');
  39. smalltalk.MKInputController.comment="I am the default controller for `MKInputView`.";
  40. smalltalk.addMethod(
  41. smalltalk.method({
  42. selector: "onEnterPressed:",
  43. category: 'actions',
  44. fn: function (aString){
  45. var self=this;
  46. return smalltalk.withContext(function($ctx1) {
  47. self._performAtionWith_(aString);
  48. return self}, function($ctx1) {$ctx1.fill(self,"onEnterPressed:",{aString:aString},smalltalk.MKInputController)})},
  49. args: ["aString"],
  50. source: "onEnterPressed: aString\x0a\x09self performAtionWith: aString",
  51. messageSends: ["performAtionWith:"],
  52. referencedClasses: []
  53. }),
  54. smalltalk.MKInputController);
  55. });