{"id":37,"date":"2007-08-15T13:22:45","date_gmt":"2007-08-15T21:22:45","guid":{"rendered":"http:\/\/www.antunkarlovac.com\/blog\/?p=37"},"modified":"2007-08-15T13:22:45","modified_gmt":"2007-08-15T21:22:45","slug":"view-source-code","status":"publish","type":"post","link":"https:\/\/www.antunkarlovac.com\/blog\/2007\/08\/15\/view-source-code\/","title":{"rendered":"View Source Code"},"content":{"rendered":"<p>It&#8217;s always handy to take a peek at the source code for a class you&#8217;re using, to see how it works. Of course, every attribute, method and event <em>should<\/em> be documented in detail, but sometimes they&#8217;re not, and you <em>need<\/em> access to the source code. With OpenLaszlo Lz components (e.g. button, edittext, etc.), that&#8217;s pretty straightforward. You just look at your local developer install of OpenLaszlo, under lps\/components\/lz\/&#8230;.<\/p>\n<p>With Laszlo Foundation Classes, such as view, the source code is not present in the developer distribution. So unless you have an <a href=\"http:\/\/wiki.openlaszlo.org\/SubversionBuildInstructions\">OpenLaszlo build environment<\/a>, you won&#8217;t find it in your file system.<\/p>\n<p>All is not lost, however, since the OpenLaszlo project uses <a href=\"http:\/\/subversion.tigris.org\/\">Subversion<\/a> for source control. That means that you can browse the source code via the web interface:<\/p>\n<p><a href=\"http:\/\/svn.openlaszlo.org\/openlaszlo\/\">http:\/\/svn.openlaszlo.org\/openlaszlo\/<\/a><\/p>\n<p>The very latest view code (from trunk) is located <a href=\"http:\/\/svn.openlaszlo.org\/openlaszlo\/trunk\/WEB-INF\/lps\/lfc\/views\/LaszloView.as\">here<\/a>. And the view code from OpenLaszlo 3.4 is located <a href=\"http:\/\/svn.openlaszlo.org\/openlaszlo\/branches\/3.4\/WEB-INF\/lps\/lfc\/views\/LaszloView.as\">here<\/a>. The Laszlo Foundation Class code is generally found in WEB-INF\/lps\/lfc\/&#8230; of that particular version.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>It&#8217;s always handy to take a peek at the source code for a class you&#8217;re using, to see how it works. Of course, every attribute, method and event should be documented in detail, but sometimes they&#8217;re not, and you need access to the source code. With OpenLaszlo Lz components (e.g. button, edittext, etc.), that&#8217;s pretty &hellip; <a href=\"https:\/\/www.antunkarlovac.com\/blog\/2007\/08\/15\/view-source-code\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">View Source Code<\/span><\/a><!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2,3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.antunkarlovac.com\/blog\/wp-json\/wp\/v2\/posts\/37"}],"collection":[{"href":"https:\/\/www.antunkarlovac.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.antunkarlovac.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.antunkarlovac.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.antunkarlovac.com\/blog\/wp-json\/wp\/v2\/comments?post=37"}],"version-history":[{"count":0,"href":"https:\/\/www.antunkarlovac.com\/blog\/wp-json\/wp\/v2\/posts\/37\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.antunkarlovac.com\/blog\/wp-json\/wp\/v2\/media?parent=37"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.antunkarlovac.com\/blog\/wp-json\/wp\/v2\/categories?post=37"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.antunkarlovac.com\/blog\/wp-json\/wp\/v2\/tags?post=37"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}