1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215 |
- smalltalk.addPackage('Canvas', {});
- smalltalk.addClass('HTMLCanvas', smalltalk.Object, ['root'], 'Canvas');
- smalltalk.addMethod(
- "_a",
- smalltalk.method({
- selector: "a",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["a"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_abbr",
- smalltalk.method({
- selector: "abbr",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["abbr"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_address",
- smalltalk.method({
- selector: "address",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["address"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_area",
- smalltalk.method({
- selector: "area",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["area"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_article",
- smalltalk.method({
- selector: "article",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["article"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_aside",
- smalltalk.method({
- selector: "aside",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["aside"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_audio",
- smalltalk.method({
- selector: "audio",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["audio"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_base",
- smalltalk.method({
- selector: "base",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["base"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_blockquote",
- smalltalk.method({
- selector: "blockquote",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["blockquote"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_body",
- smalltalk.method({
- selector: "body",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["body"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_br",
- smalltalk.method({
- selector: "br",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["br"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_button",
- smalltalk.method({
- selector: "button",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["button"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_canvas",
- smalltalk.method({
- selector: "canvas",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["canvas"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_caption",
- smalltalk.method({
- selector: "caption",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["caption"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_cite",
- smalltalk.method({
- selector: "cite",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["cite"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_code",
- smalltalk.method({
- selector: "code",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["code"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_col",
- smalltalk.method({
- selector: "col",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["col"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_colgroup",
- smalltalk.method({
- selector: "colgroup",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["colgroup"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_command",
- smalltalk.method({
- selector: "command",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["command"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_datalist",
- smalltalk.method({
- selector: "datalist",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["datalist"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_dd",
- smalltalk.method({
- selector: "dd",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["dd"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_del",
- smalltalk.method({
- selector: "del",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["del"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_details",
- smalltalk.method({
- selector: "details",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["details"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_div",
- smalltalk.method({
- selector: "div",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["div"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_div_",
- smalltalk.method({
- selector: "div:",
- fn: function (aBlock){
- var self=this;
- return smalltalk.send(smalltalk.send(self, "_div", []), "_with_", [aBlock]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_dl",
- smalltalk.method({
- selector: "dl",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["dl"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_dt",
- smalltalk.method({
- selector: "dt",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["dt"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_em",
- smalltalk.method({
- selector: "em",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["em"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_embed",
- smalltalk.method({
- selector: "embed",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["embed"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_fieldset",
- smalltalk.method({
- selector: "fieldset",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["fieldset"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_figcaption",
- smalltalk.method({
- selector: "figcaption",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["figcaption"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_figure",
- smalltalk.method({
- selector: "figure",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["figure"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_footer",
- smalltalk.method({
- selector: "footer",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["footer"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_form",
- smalltalk.method({
- selector: "form",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["form"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_h1",
- smalltalk.method({
- selector: "h1",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["h1"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_h1_",
- smalltalk.method({
- selector: "h1:",
- fn: function (anObject){
- var self=this;
- return smalltalk.send(smalltalk.send(self, "_h1", []), "_with_", [anObject]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_h2",
- smalltalk.method({
- selector: "h2",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["h2"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_h2_",
- smalltalk.method({
- selector: "h2:",
- fn: function (anObject){
- var self=this;
- return smalltalk.send(smalltalk.send(self, "_h2", []), "_with_", [anObject]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_h3",
- smalltalk.method({
- selector: "h3",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["h3"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_h3_",
- smalltalk.method({
- selector: "h3:",
- fn: function (anObject){
- var self=this;
- return smalltalk.send(smalltalk.send(self, "_h3", []), "_with_", [anObject]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_h4",
- smalltalk.method({
- selector: "h4",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["h4"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_h4_",
- smalltalk.method({
- selector: "h4:",
- fn: function (anObject){
- var self=this;
- return smalltalk.send(smalltalk.send(self, "_h4", []), "_with_", [anObject]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_h5",
- smalltalk.method({
- selector: "h5",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["h5"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_h5_",
- smalltalk.method({
- selector: "h5:",
- fn: function (anObject){
- var self=this;
- return smalltalk.send(smalltalk.send(self, "_h5", []), "_with_", [anObject]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_h6",
- smalltalk.method({
- selector: "h6",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["h6"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_h6_",
- smalltalk.method({
- selector: "h6:",
- fn: function (anObject){
- var self=this;
- return smalltalk.send(smalltalk.send(self, "_h6", []), "_with_", [anObject]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_head",
- smalltalk.method({
- selector: "head",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["head"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_header",
- smalltalk.method({
- selector: "header",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["header"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_hgroup",
- smalltalk.method({
- selector: "hgroup",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["hgroup"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_hr",
- smalltalk.method({
- selector: "hr",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["hr"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_html",
- smalltalk.method({
- selector: "html",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["html"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_iframe",
- smalltalk.method({
- selector: "iframe",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["iframe"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_iframe_",
- smalltalk.method({
- selector: "iframe:",
- fn: function (aString){
- var self=this;
- return smalltalk.send(smalltalk.send(self, "_iframe", []), "_src_", [aString]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_img",
- smalltalk.method({
- selector: "img",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["img"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_img_",
- smalltalk.method({
- selector: "img:",
- fn: function (aString){
- var self=this;
- return smalltalk.send(smalltalk.send(self, "_img", []), "_src_", [aString]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_initialize",
- smalltalk.method({
- selector: "initialize",
- fn: function (){
- var self=this;
- smalltalk.send(self, "_initialize", [], smalltalk.HTMLCanvas.superclass || nil);
- (($receiver = self['@root']) == nil || $receiver == undefined) ? (function(){return (self['@root']=smalltalk.send((smalltalk.TagBrush || TagBrush), "_fromString_canvas_", ["div", self]));})() : $receiver;
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_initializeFromJQuery_",
- smalltalk.method({
- selector: "initializeFromJQuery:",
- fn: function (aJQuery){
- var self=this;
- (self['@root']=smalltalk.send((smalltalk.TagBrush || TagBrush), "_fromJQuery_canvas_", [aJQuery, self]));
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_input",
- smalltalk.method({
- selector: "input",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["input"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_label",
- smalltalk.method({
- selector: "label",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["label"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_legend",
- smalltalk.method({
- selector: "legend",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["legend"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_li",
- smalltalk.method({
- selector: "li",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["li"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_li_",
- smalltalk.method({
- selector: "li:",
- fn: function (anObject){
- var self=this;
- return smalltalk.send(smalltalk.send(self, "_li", []), "_with_", [anObject]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_link",
- smalltalk.method({
- selector: "link",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["link"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_map",
- smalltalk.method({
- selector: "map",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["map"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_mark",
- smalltalk.method({
- selector: "mark",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["mark"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_menu",
- smalltalk.method({
- selector: "menu",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["menu"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_meta",
- smalltalk.method({
- selector: "meta",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["meta"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_nav",
- smalltalk.method({
- selector: "nav",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["nav"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_newTag_",
- smalltalk.method({
- selector: "newTag:",
- fn: function (aString){
- var self=this;
- return smalltalk.send((smalltalk.TagBrush || TagBrush), "_fromString_canvas_", [aString, self]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_noscript",
- smalltalk.method({
- selector: "noscript",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["noscript"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_object",
- smalltalk.method({
- selector: "object",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["object"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_ol",
- smalltalk.method({
- selector: "ol",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["ol"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_ol_",
- smalltalk.method({
- selector: "ol:",
- fn: function (anObject){
- var self=this;
- return smalltalk.send(smalltalk.send(self, "_ol", []), "_with_", [anObject]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_optgroup",
- smalltalk.method({
- selector: "optgroup",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["optgroup"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_option",
- smalltalk.method({
- selector: "option",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["option"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_output",
- smalltalk.method({
- selector: "output",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["output"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_p",
- smalltalk.method({
- selector: "p",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["p"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_p_",
- smalltalk.method({
- selector: "p:",
- fn: function (anObject){
- var self=this;
- return smalltalk.send(smalltalk.send(self, "_p", []), "_with_", [anObject]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_param",
- smalltalk.method({
- selector: "param",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["param"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_pre",
- smalltalk.method({
- selector: "pre",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["pre"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_progress",
- smalltalk.method({
- selector: "progress",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["progress"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_root",
- smalltalk.method({
- selector: "root",
- fn: function (){
- var self=this;
- return self['@root'];
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_root_",
- smalltalk.method({
- selector: "root:",
- fn: function (aTagBrush){
- var self=this;
- (self['@root']=aTagBrush);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_script",
- smalltalk.method({
- selector: "script",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["script"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_section",
- smalltalk.method({
- selector: "section",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["section"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_select",
- smalltalk.method({
- selector: "select",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["select"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_small",
- smalltalk.method({
- selector: "small",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["small"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_source",
- smalltalk.method({
- selector: "source",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["source"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_span",
- smalltalk.method({
- selector: "span",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["span"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_span_",
- smalltalk.method({
- selector: "span:",
- fn: function (anObject){
- var self=this;
- return smalltalk.send(smalltalk.send(self, "_span", []), "_with_", [anObject]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_strong",
- smalltalk.method({
- selector: "strong",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["strong"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_strong_",
- smalltalk.method({
- selector: "strong:",
- fn: function (anObject){
- var self=this;
- return smalltalk.send(smalltalk.send(self, "_strong", []), "_with_", [anObject]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_style",
- smalltalk.method({
- selector: "style",
- fn: function (){
- var self=this;
- return smalltalk.send(self['@root'], "_addBrush_", [smalltalk.send((smalltalk.StyleTag || StyleTag), "_canvas_", [self])]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_style_",
- smalltalk.method({
- selector: "style:",
- fn: function (aString){
- var self=this;
- return (function($rec){smalltalk.send($rec, "_with_", [aString]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_style", []));
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_sub",
- smalltalk.method({
- selector: "sub",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["sub"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_summary",
- smalltalk.method({
- selector: "summary",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["summary"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_sup",
- smalltalk.method({
- selector: "sup",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["sup"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_table",
- smalltalk.method({
- selector: "table",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["table"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_tag_",
- smalltalk.method({
- selector: "tag:",
- fn: function (aString){
- var self=this;
- return smalltalk.send(self['@root'], "_addBrush_", [smalltalk.send(self, "_newTag_", [aString])]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_tbody",
- smalltalk.method({
- selector: "tbody",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["tbody"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_td",
- smalltalk.method({
- selector: "td",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["td"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_textarea",
- smalltalk.method({
- selector: "textarea",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["textarea"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_tfoot",
- smalltalk.method({
- selector: "tfoot",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["tfoot"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_th",
- smalltalk.method({
- selector: "th",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["th"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_thead",
- smalltalk.method({
- selector: "thead",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["thead"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_time",
- smalltalk.method({
- selector: "time",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["time"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_title",
- smalltalk.method({
- selector: "title",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["title"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_tr",
- smalltalk.method({
- selector: "tr",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["tr"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_ul",
- smalltalk.method({
- selector: "ul",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["ul"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_ul_",
- smalltalk.method({
- selector: "ul:",
- fn: function (anObject){
- var self=this;
- return smalltalk.send(smalltalk.send(self, "_ul", []), "_with_", [anObject]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_video",
- smalltalk.method({
- selector: "video",
- fn: function (){
- var self=this;
- return smalltalk.send(self, "_tag_", ["video"]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_with_",
- smalltalk.method({
- selector: "with:",
- fn: function (anObject){
- var self=this;
- return smalltalk.send(smalltalk.send(self, "_root", []), "_with_", [anObject]);
- return self;}
- }),
- smalltalk.HTMLCanvas);
- smalltalk.addMethod(
- "_browserVersion",
- smalltalk.method({
- selector: "browserVersion",
- fn: function (){
- var self=this;
- return smalltalk.send(smalltalk.send((typeof jQuery == 'undefined' ? nil : jQuery), "_at_", [smalltalk.symbolFor("browser")]), "_version", []);
- return self;}
- }),
- smalltalk.HTMLCanvas.klass);
- smalltalk.addMethod(
- "_isMSIE",
- smalltalk.method({
- selector: "isMSIE",
- fn: function (){
- var self=this;
- return smalltalk.send(smalltalk.send(smalltalk.send((typeof jQuery == 'undefined' ? nil : jQuery), "_at_", [smalltalk.symbolFor("browser")]), "_at_", [smalltalk.symbolFor("msie")]), "_notNil", []);
- return self;}
- }),
- smalltalk.HTMLCanvas.klass);
- smalltalk.addMethod(
- "_isMozilla",
- smalltalk.method({
- selector: "isMozilla",
- fn: function (){
- var self=this;
- return smalltalk.send(smalltalk.send(smalltalk.send((typeof jQuery == 'undefined' ? nil : jQuery), "_at_", [smalltalk.symbolFor("browser")]), "_at_", [smalltalk.symbolFor("mozilla")]), "_notNil", []);
- return self;}
- }),
- smalltalk.HTMLCanvas.klass);
- smalltalk.addMethod(
- "_isOpera",
- smalltalk.method({
- selector: "isOpera",
- fn: function (){
- var self=this;
- return smalltalk.send(smalltalk.send(smalltalk.send((typeof jQuery == 'undefined' ? nil : jQuery), "_at_", [smalltalk.symbolFor("browser")]), "_at_", [smalltalk.symbolFor("opera")]), "_notNil", []);
- return self;}
- }),
- smalltalk.HTMLCanvas.klass);
- smalltalk.addMethod(
- "_isWebkit",
- smalltalk.method({
- selector: "isWebkit",
- fn: function (){
- var self=this;
- return smalltalk.send(smalltalk.send(smalltalk.send((typeof jQuery == 'undefined' ? nil : jQuery), "_at_", [smalltalk.symbolFor("browser")]), "_at_", [smalltalk.symbolFor("webkit")]), "_notNil", []);
- return self;}
- }),
- smalltalk.HTMLCanvas.klass);
- smalltalk.addMethod(
- "_onJQuery_",
- smalltalk.method({
- selector: "onJQuery:",
- fn: function (aJQuery){
- var self=this;
- return (function($rec){smalltalk.send($rec, "_initializeFromJQuery_", [aJQuery]);smalltalk.send($rec, "_initialize", []);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_basicNew", []));
- return self;}
- }),
- smalltalk.HTMLCanvas.klass);
- smalltalk.addClass('TagBrush', smalltalk.Object, ['canvas', 'element'], 'Canvas');
- smalltalk.addMethod(
- "_accesskey_",
- smalltalk.method({
- selector: "accesskey:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["accesskey", aString]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_action_",
- smalltalk.method({
- selector: "action:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["action", aString]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_addBrush_",
- smalltalk.method({
- selector: "addBrush:",
- fn: function (aTagBrush){
- var self=this;
- smalltalk.send(self, "_appendChild_", [smalltalk.send(aTagBrush, "_element", [])]);
- return aTagBrush;
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_align_",
- smalltalk.method({
- selector: "align:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["align", aString]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_alt_",
- smalltalk.method({
- selector: "alt:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["alt", aString]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_append_",
- smalltalk.method({
- selector: "append:",
- fn: function (anObject){
- var self=this;
- smalltalk.send(anObject, "_appendToBrush_", [self]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_appendBlock_",
- smalltalk.method({
- selector: "appendBlock:",
- fn: function (aBlock){
- var self=this;
- var root=nil;
- (root=smalltalk.send(self['@canvas'], "_root", []));
- smalltalk.send(self['@canvas'], "_root_", [self]);
- smalltalk.send(aBlock, "_value_", [self['@canvas']]);
- smalltalk.send(self['@canvas'], "_root_", [root]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_appendChild_",
- smalltalk.method({
- selector: "appendChild:",
- fn: function (anElement){
- var self=this;
- var element=self['@element'];
- if (null == element.canHaveChildren || element.canHaveChildren) {
- element.appendChild(anElement);
- } else {
- element.text = String(element.text) + anElement.innerHTML;
- } ;
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_appendString_",
- smalltalk.method({
- selector: "appendString:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_appendChild_", [smalltalk.send(self, "_createTextNodeFor_", [aString])]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_appendToBrush_",
- smalltalk.method({
- selector: "appendToBrush:",
- fn: function (aTagBrush){
- var self=this;
- smalltalk.send(aTagBrush, "_addBrush_", [self]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_asJQuery",
- smalltalk.method({
- selector: "asJQuery",
- fn: function (){
- var self=this;
- return smalltalk.send((typeof window == 'undefined' ? nil : window), "_jQuery_", [smalltalk.send(self, "_element", [])]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_at_put_",
- smalltalk.method({
- selector: "at:put:",
- fn: function (aString, aValue){
- var self=this;
- self['@element'].setAttribute(aString, aValue);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_class_",
- smalltalk.method({
- selector: "class:",
- fn: function (aString){
- var self=this;
- self['@element'].className = aString;
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_cols_",
- smalltalk.method({
- selector: "cols:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["cols", aString]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_contenteditable_",
- smalltalk.method({
- selector: "contenteditable:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["contenteditable", aString]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_contents_",
- smalltalk.method({
- selector: "contents:",
- fn: function (anObject){
- var self=this;
- (function($rec){smalltalk.send($rec, "_empty", []);return smalltalk.send($rec, "_append_", [anObject]);})(self);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_contextmenu_",
- smalltalk.method({
- selector: "contextmenu:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["contextmenu", aString]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_createElementFor_",
- smalltalk.method({
- selector: "createElementFor:",
- fn: function (aString){
- var self=this;
- return document.createElement(String(aString));
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_createTextNodeFor_",
- smalltalk.method({
- selector: "createTextNodeFor:",
- fn: function (aString){
- var self=this;
- return document.createTextNode(String(aString));
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_draggable_",
- smalltalk.method({
- selector: "draggable:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["draggable", aString]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_element",
- smalltalk.method({
- selector: "element",
- fn: function (){
- var self=this;
- return self['@element'];
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_empty",
- smalltalk.method({
- selector: "empty",
- fn: function (){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_empty", []);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_for_",
- smalltalk.method({
- selector: "for:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["for", aString]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_height_",
- smalltalk.method({
- selector: "height:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["height", aString]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_hidden",
- smalltalk.method({
- selector: "hidden",
- fn: function (){
- var self=this;
- smalltalk.send(self, "_at_put_", ["hidden", "hidden"]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_href_",
- smalltalk.method({
- selector: "href:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["href", aString]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_id_",
- smalltalk.method({
- selector: "id:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["id", aString]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_initializeFromJQuery_canvas_",
- smalltalk.method({
- selector: "initializeFromJQuery:canvas:",
- fn: function (aJQuery, aCanvas){
- var self=this;
- (self['@element']=smalltalk.send(aJQuery, "_get_", [(0)]));
- (self['@canvas']=aCanvas);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_initializeFromString_canvas_",
- smalltalk.method({
- selector: "initializeFromString:canvas:",
- fn: function (aString, aCanvas){
- var self=this;
- (self['@element']=smalltalk.send(self, "_createElementFor_", [aString]));
- (self['@canvas']=aCanvas);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_media_",
- smalltalk.method({
- selector: "media:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["media", aString]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_method_",
- smalltalk.method({
- selector: "method:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["method", aString]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_name_",
- smalltalk.method({
- selector: "name:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["name", aString]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_onBlur_",
- smalltalk.method({
- selector: "onBlur:",
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["blur", aBlock]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_onChange_",
- smalltalk.method({
- selector: "onChange:",
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["change", aBlock]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_onClick_",
- smalltalk.method({
- selector: "onClick:",
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["click", aBlock]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_onDblClick_",
- smalltalk.method({
- selector: "onDblClick:",
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["dblclick", aBlock]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_onFocus_",
- smalltalk.method({
- selector: "onFocus:",
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["focus", aBlock]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_onFocusIn_",
- smalltalk.method({
- selector: "onFocusIn:",
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["focusin", aBlock]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_onFocusOut_",
- smalltalk.method({
- selector: "onFocusOut:",
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["focusout", aBlock]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_onHover_",
- smalltalk.method({
- selector: "onHover:",
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["hover", aBlock]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_onKeyDown_",
- smalltalk.method({
- selector: "onKeyDown:",
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["keydown", aBlock]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_onKeyPress_",
- smalltalk.method({
- selector: "onKeyPress:",
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["keypress", aBlock]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_onKeyUp_",
- smalltalk.method({
- selector: "onKeyUp:",
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["keyup", aBlock]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_onMouseDown_",
- smalltalk.method({
- selector: "onMouseDown:",
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["mousedown", aBlock]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_onMouseEnter_",
- smalltalk.method({
- selector: "onMouseEnter:",
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["mouseenter", aBlock]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_onMouseLeave_",
- smalltalk.method({
- selector: "onMouseLeave:",
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["mouseleave", aBlock]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_onMouseMove_",
- smalltalk.method({
- selector: "onMouseMove:",
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["mousemove", aBlock]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_onMouseOut_",
- smalltalk.method({
- selector: "onMouseOut:",
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["mouseout", aBlock]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_onMouseOver_",
- smalltalk.method({
- selector: "onMouseOver:",
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["mouseover", aBlock]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_onMouseUp_",
- smalltalk.method({
- selector: "onMouseUp:",
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["mouseup", aBlock]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_onSelect_",
- smalltalk.method({
- selector: "onSelect:",
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["select", aBlock]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_onSubmit_",
- smalltalk.method({
- selector: "onSubmit:",
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["submit", aBlock]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_onUnload_",
- smalltalk.method({
- selector: "onUnload:",
- fn: function (aBlock){
- var self=this;
- smalltalk.send(smalltalk.send(self, "_asJQuery", []), "_bind_do_", ["unload", aBlock]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_placeholder_",
- smalltalk.method({
- selector: "placeholder:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["placeholder", aString]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_rel_",
- smalltalk.method({
- selector: "rel:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["rel", aString]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_removeAt_",
- smalltalk.method({
- selector: "removeAt:",
- fn: function (aString){
- var self=this;
- self['@element'].removeAttribute(aString);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_rows_",
- smalltalk.method({
- selector: "rows:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["rows", aString]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_src_",
- smalltalk.method({
- selector: "src:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["src", aString]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_style_",
- smalltalk.method({
- selector: "style:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["style", aString]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_tabindex_",
- smalltalk.method({
- selector: "tabindex:",
- fn: function (aNumber){
- var self=this;
- smalltalk.send(self, "_at_put_", ["tabindex", aNumber]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_target_",
- smalltalk.method({
- selector: "target:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["target", aString]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_title_",
- smalltalk.method({
- selector: "title:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["title", aString]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_type_",
- smalltalk.method({
- selector: "type:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["type", aString]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_valign_",
- smalltalk.method({
- selector: "valign:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["valign", aString]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_value_",
- smalltalk.method({
- selector: "value:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["value", aString]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_width_",
- smalltalk.method({
- selector: "width:",
- fn: function (aString){
- var self=this;
- smalltalk.send(self, "_at_put_", ["width", aString]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_with_",
- smalltalk.method({
- selector: "with:",
- fn: function (anObject){
- var self=this;
- smalltalk.send(self, "_append_", [anObject]);
- return self;}
- }),
- smalltalk.TagBrush);
- smalltalk.addMethod(
- "_fromJQuery_canvas_",
- smalltalk.method({
- selector: "fromJQuery:canvas:",
- fn: function (aJQuery, aCanvas){
- var self=this;
- return (function($rec){smalltalk.send($rec, "_initializeFromJQuery_canvas_", [aJQuery, aCanvas]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
- return self;}
- }),
- smalltalk.TagBrush.klass);
- smalltalk.addMethod(
- "_fromString_canvas_",
- smalltalk.method({
- selector: "fromString:canvas:",
- fn: function (aString, aCanvas){
- var self=this;
- return (function($rec){smalltalk.send($rec, "_initializeFromString_canvas_", [aString, aCanvas]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
- return self;}
- }),
- smalltalk.TagBrush.klass);
- smalltalk.addClass('StyleTag', smalltalk.TagBrush, ['canvas', 'element'], 'Canvas');
- smalltalk.addMethod(
- "_with_",
- smalltalk.method({
- selector: "with:",
- fn: function (aString){
- var self=this;
- ((($receiver = smalltalk.send((smalltalk.HTMLCanvas || HTMLCanvas), "_isMSIE", [])).klass === smalltalk.Boolean) ? ($receiver ? (function(){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_element", []), "_styleSheet", []), "_cssText_", [aString]);})() : (function(){return smalltalk.send(self, "_with_", [aString], smalltalk.StyleTag.superclass || nil);})()) : smalltalk.send($receiver, "_ifTrue_ifFalse_", [(function(){return smalltalk.send(smalltalk.send(smalltalk.send(self, "_element", []), "_styleSheet", []), "_cssText_", [aString]);}), (function(){return smalltalk.send(self, "_with_", [aString], smalltalk.StyleTag.superclass || nil);})]));
- return self;}
- }),
- smalltalk.StyleTag);
- smalltalk.addMethod(
- "_canvas_",
- smalltalk.method({
- selector: "canvas:",
- fn: function (aCanvas){
- var self=this;
- return (function($rec){smalltalk.send($rec, "_initializeFromString_canvas_", ["style", aCanvas]);return smalltalk.send($rec, "_yourself", []);})(smalltalk.send(self, "_new", []));
- return self;}
- }),
- smalltalk.StyleTag.klass);
- smalltalk.addClass('Widget', smalltalk.Object, [], 'Canvas');
- smalltalk.addMethod(
- "_appendToBrush_",
- smalltalk.method({
- selector: "appendToBrush:",
- fn: function (aTagBrush){
- var self=this;
- smalltalk.send(self, "_appendToJQuery_", [smalltalk.send(aTagBrush, "_asJQuery", [])]);
- return self;}
- }),
- smalltalk.Widget);
- smalltalk.addMethod(
- "_appendToJQuery_",
- smalltalk.method({
- selector: "appendToJQuery:",
- fn: function (aJQuery){
- var self=this;
- smalltalk.send(self, "_renderOn_", [smalltalk.send((smalltalk.HTMLCanvas || HTMLCanvas), "_onJQuery_", [aJQuery])]);
- return self;}
- }),
- smalltalk.Widget);
- smalltalk.addMethod(
- "_renderOn_",
- smalltalk.method({
- selector: "renderOn:",
- fn: function (html){
- var self=this;
- self;
- return self;}
- }),
- smalltalk.Widget);
- smalltalk.addMethod(
- "_appendToBrush_",
- smalltalk.method({
- selector: "appendToBrush:",
- fn: function (aTagBrush){
- var self=this;
- smalltalk.send(aTagBrush, "_append_", [smalltalk.send(self, "_asString", [])]);
- return self;}
- }),
- smalltalk.Object);
- smalltalk.addMethod(
- "_appendToJQuery_",
- smalltalk.method({
- selector: "appendToJQuery:",
- fn: function (aJQuery){
- var self=this;
- smalltalk.send(aJQuery, "_append_", [smalltalk.send(self, "_asString", [])]);
- return self;}
- }),
- smalltalk.Object);
- smalltalk.addMethod(
- "_appendToBrush_",
- smalltalk.method({
- selector: "appendToBrush:",
- fn: function (aTagBrush){
- var self=this;
- smalltalk.send(aTagBrush, "_appendBlock_", [self]);
- return self;}
- }),
- smalltalk.BlockClosure);
- smalltalk.addMethod(
- "_appendToJQuery_",
- smalltalk.method({
- selector: "appendToJQuery:",
- fn: function (aJQuery){
- var self=this;
- smalltalk.send(self, "_value_", [smalltalk.send((smalltalk.HTMLCanvas || HTMLCanvas), "_onJQuery_", [aJQuery])]);
- return self;}
- }),
- smalltalk.BlockClosure);
- smalltalk.addMethod(
- "_appendToBrush_",
- smalltalk.method({
- selector: "appendToBrush:",
- fn: function (aTagBrush){
- var self=this;
- smalltalk.send(aTagBrush, "_appendString_", [self]);
- return self;}
- }),
- smalltalk.String);
- smalltalk.addMethod(
- "_appendToJQuery_",
- smalltalk.method({
- selector: "appendToJQuery:",
- fn: function (aJQuery){
- var self=this;
- smalltalk.send(aJQuery, "_append_", [self]);
- return self;}
- }),
- smalltalk.String);
- smalltalk.addMethod(
- "_asJQuery",
- smalltalk.method({
- selector: "asJQuery",
- fn: function (){
- var self=this;
- return jQuery(String(self));
- return self;}
- }),
- smalltalk.String);
|