|
@@ -3628,24 +3628,8 @@ referencedClasses: []
|
|
smalltalk.StyleTag.klass);
|
|
smalltalk.StyleTag.klass);
|
|
|
|
|
|
|
|
|
|
-smalltalk.addClass('Widget', smalltalk.Object, [], 'Canvas');
|
|
|
|
|
|
+smalltalk.addClass('Widget', smalltalk.InterfacingObject, [], 'Canvas');
|
|
smalltalk.Widget.comment="I am a presenter building HTML. Subclasses are typically reusable components.\x0a\x0a## API\x0a\x0aUse `#renderContentOn:` to build HTML. (See `HTMLCanvas` and `TagBrush` classes for more about building HTML).\x0a\x0aTo add a widget to the page, the convenience method `#appendToJQuery:` is very useful.\x0a\x0aExemple: \x0a\x0a Counter new appendToJQuery: 'body' asJQuery";
|
|
smalltalk.Widget.comment="I am a presenter building HTML. Subclasses are typically reusable components.\x0a\x0a## API\x0a\x0aUse `#renderContentOn:` to build HTML. (See `HTMLCanvas` and `TagBrush` classes for more about building HTML).\x0a\x0aTo add a widget to the page, the convenience method `#appendToJQuery:` is very useful.\x0a\x0aExemple: \x0a\x0a Counter new appendToJQuery: 'body' asJQuery";
|
|
-smalltalk.addMethod(
|
|
|
|
-smalltalk.method({
|
|
|
|
-selector: "alert:",
|
|
|
|
-category: 'actions',
|
|
|
|
-fn: function (aString){
|
|
|
|
-var self=this;
|
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
|
-_st(window)._alert_(aString);
|
|
|
|
-return self}, function($ctx1) {$ctx1.fill(self,"alert:",{aString:aString},smalltalk.Widget)})},
|
|
|
|
-args: ["aString"],
|
|
|
|
-source: "alert: aString\x0a\x09window alert: aString",
|
|
|
|
-messageSends: ["alert:"],
|
|
|
|
-referencedClasses: []
|
|
|
|
-}),
|
|
|
|
-smalltalk.Widget);
|
|
|
|
-
|
|
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
selector: "appendToBrush:",
|
|
selector: "appendToBrush:",
|
|
@@ -3679,42 +3663,6 @@ referencedClasses: ["HTMLCanvas"]
|
|
}),
|
|
}),
|
|
smalltalk.Widget);
|
|
smalltalk.Widget);
|
|
|
|
|
|
-smalltalk.addMethod(
|
|
|
|
-smalltalk.method({
|
|
|
|
-selector: "confirm:",
|
|
|
|
-category: 'actions',
|
|
|
|
-fn: function (aString){
|
|
|
|
-var self=this;
|
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
|
-var $1;
|
|
|
|
-$1=_st(window)._confirm_(aString);
|
|
|
|
-return $1;
|
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"confirm:",{aString:aString},smalltalk.Widget)})},
|
|
|
|
-args: ["aString"],
|
|
|
|
-source: "confirm: aString\x0a\x09^window confirm: aString",
|
|
|
|
-messageSends: ["confirm:"],
|
|
|
|
-referencedClasses: []
|
|
|
|
-}),
|
|
|
|
-smalltalk.Widget);
|
|
|
|
-
|
|
|
|
-smalltalk.addMethod(
|
|
|
|
-smalltalk.method({
|
|
|
|
-selector: "prompt:",
|
|
|
|
-category: 'actions',
|
|
|
|
-fn: function (aString){
|
|
|
|
-var self=this;
|
|
|
|
-return smalltalk.withContext(function($ctx1) {
|
|
|
|
-var $1;
|
|
|
|
-$1=_st(window)._prompt_(aString);
|
|
|
|
-return $1;
|
|
|
|
-}, function($ctx1) {$ctx1.fill(self,"prompt:",{aString:aString},smalltalk.Widget)})},
|
|
|
|
-args: ["aString"],
|
|
|
|
-source: "prompt: aString\x0a\x09^window prompt: aString",
|
|
|
|
-messageSends: ["prompt:"],
|
|
|
|
-referencedClasses: []
|
|
|
|
-}),
|
|
|
|
-smalltalk.Widget);
|
|
|
|
-
|
|
|
|
smalltalk.addMethod(
|
|
smalltalk.addMethod(
|
|
smalltalk.method({
|
|
smalltalk.method({
|
|
selector: "renderOn:",
|
|
selector: "renderOn:",
|