[Laszlo-checkins] r7965 - in openlaszlo/branches/devildog: . WEB-INF/lps/lfc/compiler WEB-INF/lps/lfc/core WEB-INF/lps/lfc/kernel/swf WEB-INF/lps/lfc/services WEB-INF/lps/misc WEB-INF/lps/server/src/org/openlaszlo/compiler build-tools docs/src docs/src/deployers docs/src/developers docs/src/developers/programs docs/src/reference docs/src/xsl laszlo-explorer/coverpages/welcome lps/components/av lps/components/base lps/components/charts/addon lps/components/charts/addon/slider lps/components/charts/common lps/components/charts/piechart lps/components/charts/styles lps/components/debugger lps/components/extensions/test lps/components/incubator lps/components/incubator/lwzCalendar lps/components/incubator/opttree lps/components/incubator/rich-text lps/components/incubator/rich-text/test lps/components/incubator/test lps/components/incubator/test/fisheye lps/components/incubator/test/opttree lps/components/incubator/tooltip lps/components/incubator/uploader lps/components/incubator/uploader/example lps/components/incubator/validators lps/components/lz lps/components/lzunit lps/components/rpc lps/components/utils/diagnostic lps/components/utils/diagnostic/inspector lps/components/utils/layouts lps/includes lps/includes/source test test/accessibility test/charts/barchart test/charts/columnchart test/charts/linechart test/charts/piechart test/compiler_errors test/components test/components/base test/components/incubator test/components/lz test/components/lz/register test/components/lz/slider test/components/testmedia test/components/utils test/components/utils/layouts test/connection/history test/connection/multipleconnect test/connection/noauth test/contextmenu test/data test/dcache test/debugger test/drawing test/extensions test/future test/history test/i18n test/imgtag test/jsgen test/leak test/lfc test/lfc/animators test/lfc/data test/lfc/legals test/lfc/legals/fvlogger test/lfc/legals/perfs test/lfc/legals/views test/lfc/lztrack test/lztest test/perf/contacts test/remotedebug test/resources/lzx test/rotation test/rp! c/javarpc test/rpc/javarpc/https test/rpc/soap test/rpc/soap/https test/rpc/soap/https/version test/rpc/xmlrpc test/rpc/xmlrpc/https test/smoke test/snippets test/solo test/swf9 test/text test/video
dda@openlaszlo.org
dda at openlaszlo.org
Wed Feb 6 11:59:58 PST 2008
Author: dda
Date: 2008-02-06 11:57:39 -0800 (Wed, 06 Feb 2008)
New Revision: 7965
Added:
openlaszlo/branches/devildog/docs/src/developers/programs/textformat.lzx
openlaszlo/branches/devildog/laszlo-explorer/coverpages/welcome/index.html.proto
openlaszlo/branches/devildog/lps/includes/blank.html
Removed:
openlaszlo/branches/devildog/laszlo-explorer/coverpages/welcome/index.html
Modified:
openlaszlo/branches/devildog/
openlaszlo/branches/devildog/WEB-INF/lps/lfc/compiler/Class.lzs
openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzNode.lzs
openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf/LzSprite.as
openlaszlo/branches/devildog/WEB-INF/lps/lfc/services/LzTimer.lzs
openlaszlo/branches/devildog/WEB-INF/lps/misc/lzx-autoincludes.properties
openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/compiler/NodeModel.java
openlaszlo/branches/devildog/build-tools/build-autoincludes.sh
openlaszlo/branches/devildog/build.properties
openlaszlo/branches/devildog/build.xml
openlaszlo/branches/devildog/docs/src/build.xml
openlaszlo/branches/devildog/docs/src/deployers/deployers-index.dbk
openlaszlo/branches/devildog/docs/src/developers/book-info.dbk
openlaszlo/branches/devildog/docs/src/developers/text.dbk
openlaszlo/branches/devildog/docs/src/reference/book-info.dbk
openlaszlo/branches/devildog/docs/src/reference/langref.xml
openlaszlo/branches/devildog/docs/src/reference/wrappers.xml
openlaszlo/branches/devildog/docs/src/xsl/common-html.xsl
openlaszlo/branches/devildog/lps/components/av/rtmpstatus.lzx
openlaszlo/branches/devildog/lps/components/base/basebutton.lzx
openlaszlo/branches/devildog/lps/components/base/basecombobox.lzx
openlaszlo/branches/devildog/lps/components/base/basedatepickerday.lzx
openlaszlo/branches/devildog/lps/components/base/basefocusview.lzx
openlaszlo/branches/devildog/lps/components/base/basegrid.lzx
openlaszlo/branches/devildog/lps/components/base/basegridrow.lzx
openlaszlo/branches/devildog/lps/components/base/baselist.lzx
openlaszlo/branches/devildog/lps/components/base/basetrackgroup.lzx
openlaszlo/branches/devildog/lps/components/base/componentmanager.lzx
openlaszlo/branches/devildog/lps/components/charts/addon/slider/slider.lzx
openlaszlo/branches/devildog/lps/components/charts/addon/zoomarea.lzx
openlaszlo/branches/devildog/lps/components/charts/common/chart.lzx
openlaszlo/branches/devildog/lps/components/charts/common/databar.lzx
openlaszlo/branches/devildog/lps/components/charts/common/datapoints.lzx
openlaszlo/branches/devildog/lps/components/charts/common/dataseries.lzx
openlaszlo/branches/devildog/lps/components/charts/common/legend.lzx
openlaszlo/branches/devildog/lps/components/charts/common/rectangularchart.lzx
openlaszlo/branches/devildog/lps/components/charts/common/valueline.lzx
openlaszlo/branches/devildog/lps/components/charts/common/valuepoints.lzx
openlaszlo/branches/devildog/lps/components/charts/common/valueregion.lzx
openlaszlo/branches/devildog/lps/components/charts/piechart/piepiece.lzx
openlaszlo/branches/devildog/lps/components/charts/styles/chartstyle.lzx
openlaszlo/branches/devildog/lps/components/charts/styles/styleparser.lzx
openlaszlo/branches/devildog/lps/components/debugger/debugger.lzx
openlaszlo/branches/devildog/lps/components/debugger/newcontent.lzx
openlaszlo/branches/devildog/lps/components/debugger/scrollingtext.lzx
openlaszlo/branches/devildog/lps/components/extensions/test/drawing.lzx
openlaszlo/branches/devildog/lps/components/extensions/test/html.lzx
openlaszlo/branches/devildog/lps/components/incubator/autocompletecombobox.lzx
openlaszlo/branches/devildog/lps/components/incubator/basecheckbox.lzx
openlaszlo/branches/devildog/lps/components/incubator/baseedittext.lzx
openlaszlo/branches/devildog/lps/components/incubator/baseradio.lzx
openlaszlo/branches/devildog/lps/components/incubator/baseslider.lzx
openlaszlo/branches/devildog/lps/components/incubator/colorpicker.lzx
openlaszlo/branches/devildog/lps/components/incubator/defaultlistitem.lzx
openlaszlo/branches/devildog/lps/components/incubator/fisheye_lib.lzx
openlaszlo/branches/devildog/lps/components/incubator/gradientview.lzx
openlaszlo/branches/devildog/lps/components/incubator/hsplitpane.lzx
openlaszlo/branches/devildog/lps/components/incubator/iconradioitem.lzx
openlaszlo/branches/devildog/lps/components/incubator/icontab.lzx
openlaszlo/branches/devildog/lps/components/incubator/icontogglebutton.lzx
openlaszlo/branches/devildog/lps/components/incubator/libflickr.lzx
openlaszlo/branches/devildog/lps/components/incubator/lwzCalendar/lwzEncalendar.lzx
openlaszlo/branches/devildog/lps/components/incubator/lzcombobox_class.lzx
openlaszlo/branches/devildog/lps/components/incubator/lzradio.lzx
openlaszlo/branches/devildog/lps/components/incubator/newhscrollbar.lzx
openlaszlo/branches/devildog/lps/components/incubator/opttree/baseopttreenode.lzx
openlaszlo/branches/devildog/lps/components/incubator/opttree/opttree.lzx
openlaszlo/branches/devildog/lps/components/incubator/opttree/opttreecontroller.lzx
openlaszlo/branches/devildog/lps/components/incubator/radioitem.lzx
openlaszlo/branches/devildog/lps/components/incubator/rich-text/baserichedittext.lzx
openlaszlo/branches/devildog/lps/components/incubator/rich-text/colorsquare.lzx
openlaszlo/branches/devildog/lps/components/incubator/rich-text/formatbtn.lzx
openlaszlo/branches/devildog/lps/components/incubator/rich-text/formatfontcolor.lzx
openlaszlo/branches/devildog/lps/components/incubator/rich-text/formatfontface.lzx
openlaszlo/branches/devildog/lps/components/incubator/rich-text/formatremovebtn.lzx
openlaszlo/branches/devildog/lps/components/incubator/rich-text/radioformatbtn.lzx
openlaszlo/branches/devildog/lps/components/incubator/rich-text/richtexteditarea.lzx
openlaszlo/branches/devildog/lps/components/incubator/rich-text/richtexttoolbar-class.lzx
openlaszlo/branches/devildog/lps/components/incubator/rich-text/scrollrichedittext.lzx
openlaszlo/branches/devildog/lps/components/incubator/rich-text/test/formatfontsize.lzx
openlaszlo/branches/devildog/lps/components/incubator/rich-text/test/linkdialog-driver.lzx
openlaszlo/branches/devildog/lps/components/incubator/rich-text/test/linkdialog-test.lzx
openlaszlo/branches/devildog/lps/components/incubator/rich-text/test/test-lzcombobox.lzx
openlaszlo/branches/devildog/lps/components/incubator/roundrectbutton.lzx
openlaszlo/branches/devildog/lps/components/incubator/simpledefaultlist.lzx
openlaszlo/branches/devildog/lps/components/incubator/stepper.lzx
openlaszlo/branches/devildog/lps/components/incubator/test/draglib-test.lzx
openlaszlo/branches/devildog/lps/components/incubator/test/fisheye/test_fisheye.lzx
openlaszlo/branches/devildog/lps/components/incubator/test/libflickr-test.lzx
openlaszlo/branches/devildog/lps/components/incubator/test/lzcombobox-test.lzx
openlaszlo/branches/devildog/lps/components/incubator/test/opttree/test.lzx
openlaszlo/branches/devildog/lps/components/incubator/test/opttree/treenode.lzx
openlaszlo/branches/devildog/lps/components/incubator/test/test-edittext.lzx
openlaszlo/branches/devildog/lps/components/incubator/test/test-lwzEncalendar.lzx
openlaszlo/branches/devildog/lps/components/incubator/test/test-newcheckbox.lzx
openlaszlo/branches/devildog/lps/components/incubator/test/timevalidatorTest.lzx
openlaszlo/branches/devildog/lps/components/incubator/test/tooltipmanager-test.lzx
openlaszlo/branches/devildog/lps/components/incubator/test/validator_test.lzx
openlaszlo/branches/devildog/lps/components/incubator/tooltip/tooltip.lzx
openlaszlo/branches/devildog/lps/components/incubator/tooltipmanager.lzx
openlaszlo/branches/devildog/lps/components/incubator/ulink.lzx
openlaszlo/branches/devildog/lps/components/incubator/uploader/example/test-fileupload.lzx
openlaszlo/branches/devildog/lps/components/incubator/uploader/example/test-multiplefileupload.lzx
openlaszlo/branches/devildog/lps/components/incubator/uploader/fileupload.lzx
openlaszlo/branches/devildog/lps/components/incubator/uploader/fileuploadlist.lzx
openlaszlo/branches/devildog/lps/components/incubator/validators/validatingForm.lzx
openlaszlo/branches/devildog/lps/components/incubator/vslider.lzx
openlaszlo/branches/devildog/lps/components/lz/gridtext.lzx
openlaszlo/branches/devildog/lps/components/lz/hscrollbar.lzx
openlaszlo/branches/devildog/lps/components/lz/scrollbar.lzx
openlaszlo/branches/devildog/lps/components/lz/vscrollbar.lzx
openlaszlo/branches/devildog/lps/components/lzunit/lzunit.lzx
openlaszlo/branches/devildog/lps/components/rpc/ajax.lzx
openlaszlo/branches/devildog/lps/components/utils/diagnostic/frametimer.lzx
openlaszlo/branches/devildog/lps/components/utils/diagnostic/inittimer.lzx
openlaszlo/branches/devildog/lps/components/utils/diagnostic/inspector/colormenu.lzx
openlaszlo/branches/devildog/lps/components/utils/diagnostic/inspector/inspector.lzx
openlaszlo/branches/devildog/lps/components/utils/layouts/reverselayout.lzx
openlaszlo/branches/devildog/lps/includes/source/lzhistory.js
openlaszlo/branches/devildog/quick-index.xslt
openlaszlo/branches/devildog/test/accessibility/accessibility.lzx
openlaszlo/branches/devildog/test/accessibility/test-step3a.lzx
openlaszlo/branches/devildog/test/accessibility/test-step3b.lzx
openlaszlo/branches/devildog/test/attribute-override-3.lzx
openlaszlo/branches/devildog/test/charts/barchart/test_bar_01.lzx
openlaszlo/branches/devildog/test/charts/barchart/test_bar_02.lzx
openlaszlo/branches/devildog/test/charts/barchart/test_bar_03.lzx
openlaszlo/branches/devildog/test/charts/barchart/test_bar_04.lzx
openlaszlo/branches/devildog/test/charts/barchart/test_bar_05.lzx
openlaszlo/branches/devildog/test/charts/barchart/test_bar_06.lzx
openlaszlo/branches/devildog/test/charts/columnchart/test_column_01.lzx
openlaszlo/branches/devildog/test/charts/columnchart/test_column_02.lzx
openlaszlo/branches/devildog/test/charts/columnchart/test_column_03.lzx
openlaszlo/branches/devildog/test/charts/columnchart/test_column_04.lzx
openlaszlo/branches/devildog/test/charts/columnchart/test_column_05.lzx
openlaszlo/branches/devildog/test/charts/linechart/test_line_01.lzx
openlaszlo/branches/devildog/test/charts/linechart/test_line_02.lzx
openlaszlo/branches/devildog/test/charts/linechart/test_line_03.lzx
openlaszlo/branches/devildog/test/charts/linechart/test_line_04.lzx
openlaszlo/branches/devildog/test/charts/linechart/test_line_05.lzx
openlaszlo/branches/devildog/test/charts/piechart/test_pie_01.lzx
openlaszlo/branches/devildog/test/charts/piechart/test_pie_02.lzx
openlaszlo/branches/devildog/test/charts/piechart/test_pie_03.lzx
openlaszlo/branches/devildog/test/charts/piechart/test_pie_04.lzx
openlaszlo/branches/devildog/test/class-attributes.lzx
openlaszlo/branches/devildog/test/class-font-inherit.lzx
openlaszlo/branches/devildog/test/client_availability.lzx
openlaszlo/branches/devildog/test/client_availability_nopc.lzx
openlaszlo/branches/devildog/test/compiler_errors/attribute-override-error.lzx
openlaszlo/branches/devildog/test/compiler_errors/bogus-attribute-error.lzx
openlaszlo/branches/devildog/test/compiler_errors/redfine-builtin.lzx
openlaszlo/branches/devildog/test/components/base/lzunit-basecomponent.lzx
openlaszlo/branches/devildog/test/components/base/test-basedatepicker.lzx
openlaszlo/branches/devildog/test/components/base/test-baselist.lzx
openlaszlo/branches/devildog/test/components/base/test-basetrackgroup.lzx
openlaszlo/branches/devildog/test/components/base/test-multistatebutton.lzx
openlaszlo/branches/devildog/test/components/incubator/test-lzcombobox.lzx
openlaszlo/branches/devildog/test/components/layouttest.lzx
openlaszlo/branches/devildog/test/components/lz/colorcontrol.lzx
openlaszlo/branches/devildog/test/components/lz/data-lazy.lzx
openlaszlo/branches/devildog/test/components/lz/databind_default.lzx
openlaszlo/branches/devildog/test/components/lz/databinding.lzx
openlaszlo/branches/devildog/test/components/lz/leak-components.lzx
openlaszlo/branches/devildog/test/components/lz/leak-listitems.lzx
openlaszlo/branches/devildog/test/components/lz/list-dataoption-resize.lzx
openlaszlo/branches/devildog/test/components/lz/most_components.lzx
openlaszlo/branches/devildog/test/components/lz/most_styles.lzx
openlaszlo/branches/devildog/test/components/lz/register/register.lzx
openlaszlo/branches/devildog/test/components/lz/scrollbar_vertical.lzx
openlaszlo/branches/devildog/test/components/lz/slider/slider.lzx
openlaszlo/branches/devildog/test/components/lz/test-color.lzx
openlaszlo/branches/devildog/test/components/lz/test-combo-mode.lzx
openlaszlo/branches/devildog/test/components/lz/test-combobox-nav.lzx
openlaszlo/branches/devildog/test/components/lz/test-combobox.lzx
openlaszlo/branches/devildog/test/components/lz/test-datacombobox.lzx
openlaszlo/branches/devildog/test/components/lz/test-datepicker.lzx
openlaszlo/branches/devildog/test/components/lz/test-floatinglist-arcanoid.lzx
openlaszlo/branches/devildog/test/components/lz/test-focus.lzx
openlaszlo/branches/devildog/test/components/lz/test-grid.lzx
openlaszlo/branches/devildog/test/components/lz/test-list-pooling.lzx
openlaszlo/branches/devildog/test/components/lz/test-list-size.lzx
openlaszlo/branches/devildog/test/components/lz/test-list.lzx
openlaszlo/branches/devildog/test/components/lz/test-menubar.lzx
openlaszlo/branches/devildog/test/components/lz/test-plainfloatinglist.lzx
openlaszlo/branches/devildog/test/components/lz/test-radio.lzx
openlaszlo/branches/devildog/test/components/lz/test-tabs-data.lzx
openlaszlo/branches/devildog/test/components/lz/test-tabs.lzx
openlaszlo/branches/devildog/test/components/lz/test-tabslider.lzx
openlaszlo/branches/devildog/test/components/lz/test-window.lzx
openlaszlo/branches/devildog/test/components/lz/windowgrid.lzx
openlaszlo/branches/devildog/test/components/style_example.lzx
openlaszlo/branches/devildog/test/components/testmedia/frosty.lzx
openlaszlo/branches/devildog/test/components/testmedia/frosty2.lzx
openlaszlo/branches/devildog/test/components/testmedia/frosty_typetest.lzx
openlaszlo/branches/devildog/test/components/testmedia/frosty_wide.lzx
openlaszlo/branches/devildog/test/components/utils/layouts/test-resizelayout.lzx
openlaszlo/branches/devildog/test/components/utils/test-reverse-layout.lzx
openlaszlo/branches/devildog/test/connection/history/historylib.lzx
openlaszlo/branches/devildog/test/connection/multipleconnect/multipleconnect.lzx
openlaszlo/branches/devildog/test/connection/noauth/noauthlib.lzx
openlaszlo/branches/devildog/test/constraints.lzx
openlaszlo/branches/devildog/test/contextmenu/api.lzx
openlaszlo/branches/devildog/test/data/big-data.lzx
openlaszlo/branches/devildog/test/data/data-url-serverless.lzx
openlaszlo/branches/devildog/test/data/data-url.lzx
openlaszlo/branches/devildog/test/data/datatag-1.lzx
openlaszlo/branches/devildog/test/data/jdata.lzx
openlaszlo/branches/devildog/test/data/local-dataset.lzx
openlaszlo/branches/devildog/test/data/media-url.lzx
openlaszlo/branches/devildog/test/data/mediatimeout-local3.lzx
openlaszlo/branches/devildog/test/data/serverlessmedia.lzx
openlaszlo/branches/devildog/test/data/submit-utf8.lzx
openlaszlo/branches/devildog/test/data/timeoutproxied-jpeg.lzx
openlaszlo/branches/devildog/test/dcache/dcache.lzx
openlaszlo/branches/devildog/test/debugger/memory.lzx
openlaszlo/branches/devildog/test/doubleclick.lzx
openlaszlo/branches/devildog/test/draw2.lzx
openlaszlo/branches/devildog/test/drawing/arctest.lzx
openlaszlo/branches/devildog/test/drawing/cliptest.lzx
openlaszlo/branches/devildog/test/drawing/draggrad.lzx
openlaszlo/branches/devildog/test/drawing/dragon.lzx
openlaszlo/branches/devildog/test/drawing/draw_rand.lzx
openlaszlo/branches/devildog/test/drawing/drawing.lzx
openlaszlo/branches/devildog/test/drawing/grad_test.lzx
openlaszlo/branches/devildog/test/drawing/grids.lzx
openlaszlo/branches/devildog/test/drawing/illusion.lzx
openlaszlo/branches/devildog/test/drawing/line_play.lzx
openlaszlo/branches/devildog/test/drawing/many_lines.lzx
openlaszlo/branches/devildog/test/drawing/many_points.lzx
openlaszlo/branches/devildog/test/drawing/star.lzx
openlaszlo/branches/devildog/test/extensions/test-richinputtext-default-format.lzx
openlaszlo/branches/devildog/test/extensions/test-richinputtext.lzx
openlaszlo/branches/devildog/test/extensions/test_getText_setText.lzx
openlaszlo/branches/devildog/test/format.lzx
openlaszlo/branches/devildog/test/future/preformat-inputtext.lzx
openlaszlo/branches/devildog/test/future/soapdata.lzx
openlaszlo/branches/devildog/test/getters-setters.lzx
openlaszlo/branches/devildog/test/handcursor.lzx
openlaszlo/branches/devildog/test/hbox-test.lzx
openlaszlo/branches/devildog/test/history/history.lzx
openlaszlo/branches/devildog/test/i18n/validate-jp.lzx
openlaszlo/branches/devildog/test/imgtag/img-accessibility.lzx
openlaszlo/branches/devildog/test/imgtag/imgtest.lzx
openlaszlo/branches/devildog/test/inputtextscroll.lzx
openlaszlo/branches/devildog/test/jsgen/delegates.lzx
openlaszlo/branches/devildog/test/leak/comboboxLeak.lzx
openlaszlo/branches/devildog/test/leak/dataset_leak.lzx
openlaszlo/branches/devildog/test/leak/many_leaks.lzx
openlaszlo/branches/devildog/test/leak/view_leaks.lzx
openlaszlo/branches/devildog/test/leak/windowLeak.lzx
openlaszlo/branches/devildog/test/lfc/animators/animconstraints.lzx
openlaszlo/branches/devildog/test/lfc/clip_and_stretch.lzx
openlaszlo/branches/devildog/test/lfc/context-menu.lzx
openlaszlo/branches/devildog/test/lfc/data/datapath.lzx
openlaszlo/branches/devildog/test/lfc/data/datarepl.lzx
openlaszlo/branches/devildog/test/lfc/data/datasetwithspace.lzx
openlaszlo/branches/devildog/test/lfc/data/dollarpath.lzx
openlaszlo/branches/devildog/test/lfc/data/nonpoolingoptimization.lzx
openlaszlo/branches/devildog/test/lfc/data/repldone.lzx
openlaszlo/branches/devildog/test/lfc/data/testdatapath.lzx
openlaszlo/branches/devildog/test/lfc/data/testdatapointer.lzx
openlaszlo/branches/devildog/test/lfc/data/testheaderresponse.lzx
openlaszlo/branches/devildog/test/lfc/data/testheaders.lzx
openlaszlo/branches/devildog/test/lfc/data/testhttpdata.lzx
openlaszlo/branches/devildog/test/lfc/data/xpath.lzx
openlaszlo/branches/devildog/test/lfc/forcereplication.lzx
openlaszlo/branches/devildog/test/lfc/handcursor.lzx
openlaszlo/branches/devildog/test/lfc/inittest.lzx
openlaszlo/branches/devildog/test/lfc/inputtext.lzx
openlaszlo/branches/devildog/test/lfc/layer.lzx
openlaszlo/branches/devildog/test/lfc/legals/animatorgroup.lzx
openlaszlo/branches/devildog/test/lfc/legals/class-oninit.lzx
openlaszlo/branches/devildog/test/lfc/legals/classevent.lzx
openlaszlo/branches/devildog/test/lfc/legals/cliptest.lzx
openlaszlo/branches/devildog/test/lfc/legals/constraint.lzx
openlaszlo/branches/devildog/test/lfc/legals/dataman.lzx
openlaszlo/branches/devildog/test/lfc/legals/datapath.lzx
openlaszlo/branches/devildog/test/lfc/legals/datapointer.lzx
openlaszlo/branches/devildog/test/lfc/legals/flicktest.lzx
openlaszlo/branches/devildog/test/lfc/legals/foo.lzx
openlaszlo/branches/devildog/test/lfc/legals/fvlogger/logger.js
openlaszlo/branches/devildog/test/lfc/legals/getattrrelative.lzx
openlaszlo/branches/devildog/test/lfc/legals/gettextwidth.lzx
openlaszlo/branches/devildog/test/lfc/legals/idle.lzx
openlaszlo/branches/devildog/test/lfc/legals/initarg.lzx
openlaszlo/branches/devildog/test/lfc/legals/inputtext.lzx
openlaszlo/branches/devildog/test/lfc/legals/mousecoordinates.lzx
openlaszlo/branches/devildog/test/lfc/legals/perfs/create_resource_swf.lzx
openlaszlo/branches/devildog/test/lfc/legals/perfs/create_swf.lzx
openlaszlo/branches/devildog/test/lfc/legals/replication.lzx
openlaszlo/branches/devildog/test/lfc/legals/scope.lzx
openlaszlo/branches/devildog/test/lfc/legals/simpleclass.lzx
openlaszlo/branches/devildog/test/lfc/legals/state.lzx
openlaszlo/branches/devildog/test/lfc/legals/text.lzx
openlaszlo/branches/devildog/test/lfc/legals/textsize.lzx
openlaszlo/branches/devildog/test/lfc/legals/timer.lzx
openlaszlo/branches/devildog/test/lfc/legals/track.lzx
openlaszlo/branches/devildog/test/lfc/legals/views/prob.lzx
openlaszlo/branches/devildog/test/lfc/legals/views/screendraw.lzx
openlaszlo/branches/devildog/test/lfc/legals/views/testview.lzx
openlaszlo/branches/devildog/test/lfc/loaderrors.lzx
openlaszlo/branches/devildog/test/lfc/lztrack/trackgroup.lzx
openlaszlo/branches/devildog/test/lfc/lztrack/trackgroups.lzx
openlaszlo/branches/devildog/test/lfc/lzunit-node-initsequence.lzx
openlaszlo/branches/devildog/test/lfc/multiconstraint.lzx
openlaszlo/branches/devildog/test/lfc/resizerepl.lzx
openlaszlo/branches/devildog/test/lfc/testmethoddepend.lzx
openlaszlo/branches/devildog/test/lfc/testnode.lzx
openlaszlo/branches/devildog/test/lfc/testscriptinit.lzx
openlaszlo/branches/devildog/test/lfc/textselection.lzx
openlaszlo/branches/devildog/test/lfc/visibility.lzx
openlaszlo/branches/devildog/test/lpp-1582.lzx
openlaszlo/branches/devildog/test/lztest/lztest-animator.lzx
openlaszlo/branches/devildog/test/lztest/lztest-animatorgroup.lzx
openlaszlo/branches/devildog/test/lztest/lztest-layout.lzx
openlaszlo/branches/devildog/test/lztest/lztest-node-initsequence.lzx
openlaszlo/branches/devildog/test/lztest/lztest-simpleboundslayout.lzx
openlaszlo/branches/devildog/test/lztest/lztest-view.lzx
openlaszlo/branches/devildog/test/perf/contacts/contacts.lzx
openlaszlo/branches/devildog/test/perf/contacts/details.lzx
openlaszlo/branches/devildog/test/platform.lzx
openlaszlo/branches/devildog/test/pnginclude.lzx
openlaszlo/branches/devildog/test/remotedebug/test1.lzx
openlaszlo/branches/devildog/test/resources/lzx/vts.lzx
openlaszlo/branches/devildog/test/rotation/rotatetest.lzx
openlaszlo/branches/devildog/test/rpc/javarpc/errors.lzx
openlaszlo/branches/devildog/test/rpc/javarpc/https/serverenv.lzx
openlaszlo/branches/devildog/test/rpc/javarpc/https/session-counter.lzx
openlaszlo/branches/devildog/test/rpc/javarpc/https/session.lzx
openlaszlo/branches/devildog/test/rpc/javarpc/https/webapp.lzx
openlaszlo/branches/devildog/test/rpc/javarpc/innerclass.lzx
openlaszlo/branches/devildog/test/rpc/javarpc/serverenv.lzx
openlaszlo/branches/devildog/test/rpc/javarpc/session-counter.lzx
openlaszlo/branches/devildog/test/rpc/javarpc/session.lzx
openlaszlo/branches/devildog/test/rpc/javarpc/test-count.lzx
openlaszlo/branches/devildog/test/rpc/javarpc/test-databinding.lzx
openlaszlo/branches/devildog/test/rpc/javarpc/test-typemap.lzx
openlaszlo/branches/devildog/test/rpc/javarpc/webapp.lzx
openlaszlo/branches/devildog/test/rpc/soap/accented.lzx
openlaszlo/branches/devildog/test/rpc/soap/amazon.lzx
openlaszlo/branches/devildog/test/rpc/soap/context.lzx
openlaszlo/branches/devildog/test/rpc/soap/dictionary.lzx
openlaszlo/branches/devildog/test/rpc/soap/dotnet-data.lzx
openlaszlo/branches/devildog/test/rpc/soap/dotnet-math.lzx
openlaszlo/branches/devildog/test/rpc/soap/geography.lzx
openlaszlo/branches/devildog/test/rpc/soap/google.lzx
openlaszlo/branches/devildog/test/rpc/soap/https/amazon.lzx
openlaszlo/branches/devildog/test/rpc/soap/https/context.lzx
openlaszlo/branches/devildog/test/rpc/soap/https/geography.lzx
openlaszlo/branches/devildog/test/rpc/soap/https/google.lzx
openlaszlo/branches/devildog/test/rpc/soap/https/version/version.lzx
openlaszlo/branches/devildog/test/rpc/soap/lps-test.lzx
openlaszlo/branches/devildog/test/rpc/soap/temperature.lzx
openlaszlo/branches/devildog/test/rpc/soap/two-soap-objects.lzx
openlaszlo/branches/devildog/test/rpc/xmlrpc/https/meerkat.lzx
openlaszlo/branches/devildog/test/rpc/xmlrpc/meerkat.lzx
openlaszlo/branches/devildog/test/rpc/xmlrpc/serverenv.lzx
openlaszlo/branches/devildog/test/smoke/all_setters.lzl
openlaszlo/branches/devildog/test/smoke/bitwise.lzl
openlaszlo/branches/devildog/test/smoke/canvas-attributes.lzl
openlaszlo/branches/devildog/test/smoke/constraint.lzl
openlaszlo/branches/devildog/test/smoke/regression.lzl
openlaszlo/branches/devildog/test/snippets/class-library.lzx
openlaszlo/branches/devildog/test/snippets/class-resource-library.lzx
openlaszlo/branches/devildog/test/snippets/double-init.lzx
openlaszlo/branches/devildog/test/snippets/drawview-library.lzx
openlaszlo/branches/devildog/test/snippets/import-globals.lzx
openlaszlo/branches/devildog/test/solo/nullbug.lzx
openlaszlo/branches/devildog/test/solo/textimage.lzx
openlaszlo/branches/devildog/test/swf6text.lzx
openlaszlo/branches/devildog/test/swf9/hello.lzx
openlaszlo/branches/devildog/test/tabslider.lzx
openlaszlo/branches/devildog/test/test-edittext.lzx
openlaszlo/branches/devildog/test/text/font2.lzx
openlaszlo/branches/devildog/test/text/fonts.lzx
openlaszlo/branches/devildog/test/text/french-ext.lzx
openlaszlo/branches/devildog/test/text/input-text.lzx
openlaszlo/branches/devildog/test/text/key_events.lzx
openlaszlo/branches/devildog/test/text/resize.lzx
openlaszlo/branches/devildog/test/text/scroll.lzx
openlaszlo/branches/devildog/test/text/tilde.lzx
openlaszlo/branches/devildog/test/text/whitespace2.lzx
openlaszlo/branches/devildog/test/undefined.lzx
openlaszlo/branches/devildog/test/vbox-test.lzx
openlaszlo/branches/devildog/test/video/test-camera-mute-multiple.lzx
openlaszlo/branches/devildog/test/video/test-camera.lzx
openlaszlo/branches/devildog/test/video/test-live-sep.lzx
openlaszlo/branches/devildog/test/video/test-live.lzx
openlaszlo/branches/devildog/test/video/test-muting-and-playing.lzx
openlaszlo/branches/devildog/test/vtabslider.lzx
openlaszlo/branches/devildog/test/wide_data.lzx
Log:
Merged revisions 7934-7964 via svnmerge from
http://svn.openlaszlo.org/openlaszlo/trunk
...............
r7937 | hqm | 2008-01-31 13:53:30 -0500 (Thu, 31 Jan 2008) | 27 lines
Change 20080131-hqm-6 by hqm at DADDY_THNKPAD67 on 2008-01-31 13:49:34 EST
in /cygdrive/c/users/hqm/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: fix IE6 warning when running lzx app over https
New Features:
Bugs Fixed: LPP-5364
Technical Reviewer: lorien
QA Reviewer: max
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
specifies a target for the iframe which otherwise appears to default to appear as
http protocol
Tests:
...............
r7938 | ptw | 2008-01-31 14:25:44 -0500 (Thu, 31 Jan 2008) | 18 lines
Change 20080131-ptw-s by ptw at dueling-banjos.local on 2008-01-31 14:22:33 EST
in /Users/ptw/OpenLaszlo/ringding-2
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Include interfaces in autoincludes
Bugs Fixed: LPP-5380 'Autoinclude-script misses interface declarations'
Technical Reviewer: a.bargull at intensis.de (pending)
QA Reviewer: henry.minsky at gmail.com (pending)
Details:
DTRT
Tests:
Visual inspection of generated file
...............
r7941 | dda | 2008-01-31 18:25:39 -0500 (Thu, 31 Jan 2008) | 37 lines
Change 20080131-dda-2 by dda at lester.local on 2008-01-31 12:16:43 EST
in /Users/dda/laszlo/src/svn/openlaszlo/trunk-doc
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: doc: update recommendations on splash page; fix some examples, fix doc build problem.
New Features:
Bugs Fixed: LPP-5280
Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: liorio (pending)
Documentation:
Release Notes:
Details:
Some miscellany doc issues:
Update the <splash> page to include the advice given by Max.
LzSprite: fixed an errant javadoc comment that keeps doc from building!
LzSprite is not public but its javadoc is still parsed. So this does not
effect doc output.
Added multiline=true to <p> example.
Fixed typo in <p>.
<frame>, <event>, <handler>, <method> fixed non-live examples,
which were not shown before.
Tests:
...............
r7943 | lou | 2008-02-01 10:47:18 -0500 (Fri, 01 Feb 2008) | 22 lines
Change 20080201-lou-b by lou at loumac.local on 2008-02-01 11:31:08 AST
in /Users/lou/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: add text.format() to the Text chapter of the dguide
Bugs Fixed: LPP-5400
Technical Reviewer: (ptw)
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
added new section
http://localhost:8080/trunk/docs/developers/text.html#textformat
...............
r7945 | lou | 2008-02-01 11:13:46 -0500 (Fri, 01 Feb 2008) | 15 lines
Change 20080201-lou-v by lou at loumac.local on 2008-02-01 12:07:52 AST
in /Users/lou/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: update copyright to 2008 for dguide and reference
Bugs Fixed: LPP-5377
Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)
...............
r7947 | bargull | 2008-02-02 08:27:43 -0500 (Sat, 02 Feb 2008) | 27 lines
Change 20080126-bargull-6 by bargull at dell--p4--2-53 on 2008-01-26 16:43:10
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Use delegate-id to identify delegate in LzTimer
New Features:
Bugs Fixed: LPP-5379 - "LzTimer never stops calling delegate if called object's toString() value changes"
Technical Reviewer: ptw
QA Reviewer: pbr
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
As described by the bug-reporter, if the return-value of the context's "toString"-method changed, the delegate won't be removed from LzTimer. This happens because a delegate itself is used as the key for the LzTimer's "timerList", or better the string-representation of the delegate -> which is the return value of the delegate's "toString"-method. But the "toString"-method also depends on the context's "toString"-method. And I guess I don't need to underline that this may cause several errors for components like <text>...
However, to fix this bug, the delegates are now identified by their delegate-id in the "timerList".
Tests:
see bugreport
...............
r7949 | bargull | 2008-02-02 09:19:29 -0500 (Sat, 02 Feb 2008) | 26 lines
Change 20080202-bargull-8 by bargull at dell--p4--2-53 on 2008-02-02 14:30:54
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Better check all implementations
New Features:
Bugs Fixed: LPP-5403 "Coding error in Trait#$lzsc$isa"
Technical Reviewer: ptw
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
Moved the return statement after the for-in loop.
Tests:
attached at testcase
...............
r7955 | ptw | 2008-02-04 16:59:45 -0500 (Mon, 04 Feb 2008) | 9 lines
Change 20080204-ptw-B by ptw at dueling-banjos.local on 2008-02-04 16:58:02 EST
in /Users/ptw/OpenLaszlo/ringding-3
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary:
Initialized merge tracking via "svnmerge" with revisions "1-7950" from
http://svn.openlaszlo.org/openlaszlo/branches/pagan-deities
...............
r7956 | ptw | 2008-02-04 17:17:10 -0500 (Mon, 04 Feb 2008) | 46 lines
Change 20080204-ptw-c by ptw at dueling-banjos.local on 2008-02-04 17:06:08 EST
in /Users/ptw/OpenLaszlo/ringding-3
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary:
Merged revisions 7951-7953,7955 via svnmerge from
http://svn.openlaszlo.org/openlaszlo/branches/pagan-deities
........
r7951 | ptw | 2008-02-04 14:35:31 -0500 (Mon, 04 Feb 2008) | 2 lines
Create Pagan Deities branch
........
r7952 | ptw | 2008-02-04 15:17:34 -0500 (Mon, 04 Feb 2008) | 16 lines
Change 20080204-ptw-f by ptw at dueling-banjos.local on 2008-02-04 15:14:51 EST
in /Users/ptw/OpenLaszlo/pagan-deities
for http://svn.openlaszlo.org/openlaszlo/branches/pagan-deities
Summary: Create pagan-deities branch
Technical Reviewer: mkratt (pending)
Details:
While I was there, I made it so we don't have to edit the
laszlo-explorer welcome page every releas.
Tests:
Inspection
........
r7953 | ptw | 2008-02-04 16:06:18 -0500 (Mon, 04 Feb 2008) | 13 lines
Change 20080204-ptw-q by ptw at dueling-banjos.local on 2008-02-04 16:04:35 EST
in /Users/ptw/OpenLaszlo/pagan-deities
for http://svn.openlaszlo.org/openlaszlo/branches/pagan-deities
Summary: Actually make the updating of version in the explorer welcome
page work
Technical Reviewer: mkratt (pending)
Tests:
ant build, look at explorer welcome page
........
...............
r7958 | ptw | 2008-02-04 18:56:38 -0500 (Mon, 04 Feb 2008) | 25 lines
Change 20080203-ptw-p by ptw at dueling-banjos.local on 2008-02-03 11:50:17 EST
in /Users/ptw/OpenLaszlo/ringding-2
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Make handler reference functions be methods
Bugs Fixed:
LPP-1587 'ECMA4: Compile LZX declarations as JS declarations' (partial)
Technical Reviewer: dda at openlaszlo.org (Message-Id: <4716B267-21C8-4F6B-B94B-A9A9D2F1BF86 at ddanderson.com>)
QA Reviewer: henry.minsky at gmail.com (pending)
Details:
LzNode: The 3rd element of a delegate is now the _name_ of the
method that computes the sender, not a function.
NodeModel: Centralize the computation of delegates into a single
subroutine shared by addHandlerElement, addHandlerFromAttribute,
and (for backwards compatibility) addMethodElement. Warn that
defining handlers using the method event property is deprecated.
Tests:
smokecheck, amazon X swf, dhtml
...............
r7959 | ptw | 2008-02-04 19:43:36 -0500 (Mon, 04 Feb 2008) | 14 lines
Change 20080204-ptw-4 by ptw at dueling-banjos.local on 2008-02-04 18:57:41 EST
in /Users/ptw/OpenLaszlo/ringding-2
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: Eliminate warnings due to previous change
Details:
*: Update all components and tests to not trigger the deprecation
warning
Tests:
[smokecheck, amazon] X [dhtml, swf]; ant runlzunit
...............
Property changes on: openlaszlo/branches/devildog
___________________________________________________________________
Name: svnmerge-integrated
- /openlaszlo/branches/wafflecone:1-5746,5818-6068,6070-6205,6207-6213,6216-6265,6267-6368,6370-6431,6433-6450,6497 /openlaszlo/trunk:1-7933
+ /openlaszlo/branches/wafflecone:1-5746,5818-6068,6070-6205,6207-6213,6216-6265,6267-6368,6370-6431,6433-6450,6497 /openlaszlo/trunk:1-7964
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/compiler/Class.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/compiler/Class.lzs 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/compiler/Class.lzs 2008-02-06 19:57:39 UTC (rev 7965)
@@ -479,8 +479,8 @@
if (obj instanceof impls[mash].constructor) {
return true;
}
- return false;
}
+ return false;
},
// How to make a Trait
make: function make (classname, superTrait, instanceProperties, staticProperties) {
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzNode.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzNode.lzs 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzNode.lzs 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1220,7 +1220,7 @@
*/
function __LZstoreDelegates ( delarr ){
//delarr is a sequence of triplets of the form
- //... eventname, methodname, referenceFunction
+ //... eventname, methodname, referencemethodname
var resarray = [];
var l = delarr.length;
@@ -1360,8 +1360,8 @@
var l = delarr.length;
for ( var i = 0; i < l;i +=3 ){
- var senderexp = delarr[i + 2];
- var sender = (senderexp != null) ? senderexp.call(this): null;
+ var sendermethodname = delarr[i + 2];
+ var sender = (sendermethodname != null) ? this[sendermethodname]() : null;
if ( sender == null ) sender = this;
var meth = delarr[i + 1];
this.__LZdelegates.push( new LzDelegate( this , meth ,sender , delarr[i] ) );
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf/LzSprite.as
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf/LzSprite.as 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf/LzSprite.as 2008-02-06 19:57:39 UTC (rev 7965)
@@ -903,7 +903,7 @@
* 100px square) to the view, you would normally just set its scale
* to the view dimension (see note at LzSprite#width), but you have
* to also invert its parent's scale (which is a percent) hence the
- * (100 / <parent scale>) factor.
+ * (100 / <parent scale>) factor.
*/
LzSprite.prototype._setButtonSize = function ( axis , bsize ){
var sc ="_" + ( axis =="width" ? "x" : "y" ) + "scale" ;
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/services/LzTimer.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/services/LzTimer.lzs 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/services/LzTimer.lzs 2008-02-06 19:57:39 UTC (rev 7965)
@@ -92,11 +92,11 @@
Debug.error("setInterval result type is unexpected; LzTimer will fail");
}
p.id = id;
- var tle = this.timerList[d];
+ var tle = this.timerList[d.__delegateID];
if (tle == null) {
- this.timerList[d] = id;
+ this.timerList[d.__delegateID] = id;
} else if (! (tle instanceof Array)) {
- this.timerList[d] = [tle, id];
+ this.timerList[d.__delegateID] = [tle, id];
} else {
tle.push(id);
}
@@ -110,18 +110,18 @@
* order received.
*/
function removeTimer ( d ){
- var tle = this.timerList[d];
+ var tle = this.timerList[d.__delegateID];
var id = null;
if (tle != null) {
if (tle instanceof Array) {
id = tle.shift();
clearInterval(id);
if (tle.length == 0)
- delete this.timerList[d];
+ delete this.timerList[d.__delegateID];
} else {
id = tle;
clearInterval(id);
- delete this.timerList[d];
+ delete this.timerList[d.__delegateID];
}
// Debug.format("cleared timer %w for delegate %w (2)\n", id, d);
}
@@ -137,7 +137,7 @@
* @access private
*/
function removeTimerWithID ( d, id ){
- var tle = this.timerList[d];
+ var tle = this.timerList[d.__delegateID];
if (tle != null) {
if (tle instanceof Array) {
var i = 0;
@@ -150,10 +150,10 @@
}
}
if (tle.length == 0)
- delete this.timerList[d];
+ delete this.timerList[d.__delegateID];
} else if (tle == id) {
clearInterval(id);
- delete this.timerList[d];
+ delete this.timerList[d.__delegateID];
}
}
}
@@ -175,7 +175,7 @@
if ($debug) {
function countTimers ( d ){
- var tle = this.timerList[d];
+ var tle = this.timerList[d.__delegateID];
if (tle == null)
return 0;
else if (tle instanceof Array)
Modified: openlaszlo/branches/devildog/WEB-INF/lps/misc/lzx-autoincludes.properties
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/misc/lzx-autoincludes.properties 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/WEB-INF/lps/misc/lzx-autoincludes.properties 2008-02-06 19:57:39 UTC (rev 7965)
@@ -84,6 +84,7 @@
debugger_shadow_bottom: debugger/debugger.lzx
debugger_shadow_right: debugger/debugger.lzx
dragstate: utils/states/dragstate.lzx
+drawview: extensions/drawview.lzx
edittext: lz/edittext.lzx
floatinglist: lz/floatinglist.lzx
focusoverlay: base/basefocusview.lzx
@@ -105,6 +106,7 @@
javarpc: rpc/javarpc.lzx
label: charts/common/label.lzx
labelstyle: charts/styles/chartstyle.lzx
+lazyreplicator: utils/replicator/lazyreplicator.lzx
legend: charts/common/legend.lzx
legenditem: charts/common/legend.lzx
linechart: charts/linechart/linechart.lzx
@@ -145,12 +147,14 @@
rectangularchart: charts/common/rectangularchart.lzx
regionstyle: charts/styles/chartstyle.lzx
remotecall: rpc/rpc.lzx
+replicator: utils/replicator/replicator.lzx
resizelayout: utils/layouts/resizelayout.lzx
resizestate: utils/states/resizestate.lzx
resizestatemin: utils/states/resizestatemin.lzx
resizeview_x: base/resizeview.lzx
resizeview_y: base/resizeview.lzx
reverselayout: utils/layouts/reverselayout.lzx
+richinputtext: extensions/views/richinputtext.lzx
rpc: rpc/rpc.lzx
rtmpconnection: extensions/av/rtmpconnection.lzx
rtmpstatus: av/rtmpstatus.lzx
Modified: openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/compiler/NodeModel.java
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/compiler/NodeModel.java 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/WEB-INF/lps/server/src/org/openlaszlo/compiler/NodeModel.java 2008-02-06 19:57:39 UTC (rev 7965)
@@ -966,10 +966,7 @@
* This can do a compile time check to see if eventname is declared or
* if there is an attribute FOO such that name="onFOO".
*/
-
void addHandlerElement(Element element) {
- String srcloc =
- CompilerUtils.sourceLocationDirective(element, true);
String method = element.getAttributeValue("method");
// event name
String event = element.getAttributeValue("name");
@@ -979,120 +976,105 @@
env.warn("handler needs a non-null name attribute");
return;
}
-
String parent_name =
element.getParentElement().getAttributeValue("id");
- String name_loc =
- CompilerUtils.attributeLocationDirective(element, "event");
- if (parent_name == null) {
- parent_name =
- CompilerUtils.attributeUniqueName(element, "event");
- }
- // Names have to be unique across binary libraries, so append
- // parent name
- String name = env.methodNameGenerator.next() + "_" + parent_name + "_reference";
String reference = element.getAttributeValue("reference");
- Object referencefn = "null";
if (reference != null) {
- String ref_loc =
- CompilerUtils.attributeLocationDirective(element, "reference");
- referencefn = new Function(
- name,
- args,
- "\n#pragma 'withThis'\n" +
- "return (" +
- "#beginAttribute\n" + ref_loc +
- reference + "\n#endAttribute\n)",
- ref_loc);
+ reference = CompilerUtils.attributeLocationDirective(element, "reference") + reference;
}
-
- // delegates is only used to determine whether to
- // default clickable to true. Clickable should only
- // default to true if the event handler is attached to
- // this view.
- if (reference == null) {
- delegates.put(event, Boolean.TRUE);
- }
- delegateList.add(ScriptCompiler.quote(event));
- if (method != null) {
- delegateList.add(ScriptCompiler.quote(method));
- } else {
- delegateList.add(ScriptCompiler.quote(name));
- }
- delegateList.add(referencefn);
-
String body = element.getText();
-
- String childcontentloc =
- CompilerUtils.sourceLocationDirective(element, true);
-
- if (attrs.containsKey(name, caseSensitive)) {
- env.warn(
- "an attribute or method named '"+name+
- "' already is defined on "+getMessageName(),
- element);
- }
-
+ if (body.trim().length() == 0) { body = null; }
// If non-empty body AND method name are specified, flag an error
// If non-empty body, pack it up as a function definition
- if (body != null && body.trim().length() > 0) {
+ if (body != null) {
if (method != null) {
env.warn("you cannot declare both a 'method' attribute " +
"*and* a function body on a handler element",
element);
}
+ body = CompilerUtils.attributeLocationDirective(element, "text") + body;
}
- Function fndef = new
- Function(name,
- //"#beginAttribute\n" +
- CompilerUtils.attributeLocationDirective(element, "args") + args,
- "\n#beginContent\n" +
- "\n#pragma 'methodName=" + name + "'\n" +
- "\n#pragma 'withThis'\n" +
- childcontentloc +
- body + "\n#endContent",
- name_loc);
-
- attrs.put(name, fndef);
+ addHandlerInternal(element, parent_name, event, method, args, body, reference);
}
+ /**
+ * An event handler defined in the open tag
+ */
void addHandlerFromAttribute(Element element, String event, String body) {
- String srcloc =
- CompilerUtils.sourceLocationDirective(element, true);
- String parent_name =
- element.getAttributeValue("id");
+ String parent_name = element.getAttributeValue("id");
+ addHandlerInternal(element, parent_name, event, null, "", body, null);
+ }
+
+ /**
+ * Adds a handler for `event` to be handled by `method`. If
+ * `body` is non-null, adds the method too. If `reference` is
+ * non-null, adds a method to compute the sender.
+ *
+ * @devnote: For backwards-compatibility, you are allowed to pass
+ * in both a `method` (name) and a `body`. This supports the old
+ * method syntax where you were allowed to specify the event to be
+ * handled and the name of the method for the body of the handler.
+ */
+ void addHandlerInternal(Element element, String parent_name, String event, String method, String args, String body, String reference) {
+ if (body == null && method == null) {
+ env.warn("Refusing to compile an empty handler, you should declare the event instead", element);
+ return;
+ }
+
+ String src_loc = CompilerUtils.sourceLocationDirective(element, true);
if (parent_name == null) {
- parent_name =
- CompilerUtils.attributeUniqueName(element, "event");
+ parent_name = CompilerUtils.attributeUniqueName(element, "handler");
}
- String name = env.methodNameGenerator.next();
- Object referencefn = "null";
-
+ // Anonymous handler names have to be unique, so append a
+ // gensym; but they also have to be unique across binary
+ // libraries, so append parent (class) name
+ String unique = "$" + parent_name + "_" + env.methodNameGenerator.next();
+ String referencename = null;
// delegates is only used to determine whether to
// default clickable to true. Clickable should only
// default to true if the event handler is attached to
// this view.
- delegates.put(event, Boolean.TRUE);
- delegateList.add(ScriptCompiler.quote(event));
- delegateList.add(ScriptCompiler.quote(name));
- delegateList.add(referencefn);
+ if (reference == null) {
+ delegates.put(event, Boolean.TRUE);
+ } else {
+ referencename = "$lzc$" + "handle_" + event + "_reference" + unique;
+ Object referencefn = new Function(
+ referencename,
+ args,
+ "\n#pragma 'withThis'\n" +
+ "return (" +
+ "#beginAttribute\n" +
+ reference + "\n#endAttribute\n)");
+ // Add reference computation as a method (so it can have
+ // 'this' references work)
+ attrs.put(referencename, referencefn);
+ }
- String childcontentloc =
- CompilerUtils.sourceLocationDirective(element, true);
+ if (body != null) {
+ if (method == null) {
+ method = "$lzc$" + "handle_" + event + unique;
+ }
+ Function fndef = new
+ Function(method,
+ //"#beginAttribute\n" +
+ args,
+ "\n#beginContent\n" +
+ "\n#pragma 'methodName=" + method + "'\n" +
+ "\n#pragma 'withThis'\n" +
+ body + "\n#endContent",
+ src_loc);
+ // Add hander as a method
+ attrs.put(method, fndef);
+ }
- Function fndef = new
- // Use "mangled" name, so it will be unique
- Function(srcloc +
- parent_name + "_" + name,
- //"#beginAttribute\n" +
- "",
- "\n#beginContent\n" +
- "\n#pragma 'methodName=" + name + "'\n" +
- "\n#pragma 'withThis'\n" +
- childcontentloc +
- body + "\n#endContent");
-
- attrs.put(name, fndef);
+ // Put everything into the delegate list
+ delegateList.add(ScriptCompiler.quote(event));
+ delegateList.add(ScriptCompiler.quote(method));
+ if (reference != null) {
+ delegateList.add(ScriptCompiler.quote(referencename));
+ } else {
+ delegateList.add("null");
+ }
}
@@ -1101,7 +1083,10 @@
CompilerUtils.sourceLocationDirective(element, true);
String name = element.getAttributeValue("name");
String event = element.getAttributeValue("event");
- String args = XMLUtils.getAttributeValue(element, "args", "");
+ String args = CompilerUtils.attributeLocationDirective(element, "args") +
+ XMLUtils.getAttributeValue(element, "args", "");
+ String body = element.getText();
+
String override = element.getAttributeValue("override");
if ((name == null || !ScriptCompiler.isIdentifier(name)) &&
@@ -1130,86 +1115,61 @@
,element);
}
+ if (attrs.containsKey(name, caseSensitive)) {
+ env.warn(
+/* (non-Javadoc)
+ * @i18n.test
+ * @org-mes="an attribute or method named '" + p[0] + "' already is defined on " + p[1]
+ */
+ org.openlaszlo.i18n.LaszloMessages.getMessage(
+ NodeModel.class.getName(),"051018-922", new Object[] {name, getMessageName()})
+ ,element);
+ }
+
+ if (!("true".equals(override))) {
+ String classname = element.getParentElement().getName();
+ // Just check method declarations on regular node.
+ // Method declarations inside of class definitions will be already checked elsewhere,
+ // in the call from ClassCompiler.updateSchema to schema.addElement
+ if (!"class".equals(classname)) {
+ schema.checkInstanceMethodDeclaration(element, classname, name, env);
+ }
+ }
+
String parent_name =
element.getParentElement().getAttributeValue("id");
- String name_loc =
- (name == null ?
- CompilerUtils.attributeLocationDirective(element, "event") :
- CompilerUtils.attributeLocationDirective(element, "name"));
if (parent_name == null) {
parent_name =
(name == null ?
- CompilerUtils.attributeUniqueName(element, "event") :
+ CompilerUtils.attributeUniqueName(element, "handler") :
CompilerUtils.attributeUniqueName(element, "name"));
}
+
if (event != null) {
- if (name == null) {
- // Names have to be unique across binary libraries, so
- // append parent name
- name = env.methodNameGenerator.next() + "_" + parent_name + "_reference";
- }
+ env.warn("The `event` property of methods is deprecated. Please update your source to use the `<handler>` tag.",
+ element);
String reference = element.getAttributeValue("reference");
- Object referencefn = "null";
if (reference != null) {
- String ref_loc =
- CompilerUtils.attributeLocationDirective(element, "reference");
- referencefn = new Function(
- name,
- CompilerUtils.attributeLocationDirective(element, "args") + args,
- "\n#pragma 'withThis'\n" +
- "return (" +
- "#beginAttribute\n" + ref_loc +
- reference + "\n#endAttribute\n)",
- ref_loc);
+ reference = CompilerUtils.attributeLocationDirective(element, "reference") + reference;
}
- // delegates is only used to determine whether to
- // default clickable to true. Clickable should only
- // default to true if the event handler is attached to
- // this view.
- if (reference == null)
- delegates.put(event, Boolean.TRUE);
- delegateList.add(ScriptCompiler.quote(event));
- delegateList.add(ScriptCompiler.quote(name));
- delegateList.add(referencefn);
+ addHandlerInternal(element, parent_name, event, name, args, body, reference);
+ return;
}
- String body = element.getText();
- String childcontentloc =
- CompilerUtils.sourceLocationDirective(element, true);
+ String name_loc =
+ (name == null ?
+ CompilerUtils.attributeLocationDirective(element, "handler") :
+ CompilerUtils.attributeLocationDirective(element, "name"));
Function fndef = new
Function(name,
//"#beginAttribute\n" +
- CompilerUtils.attributeLocationDirective(element, "args") + args,
+ args,
"\n#beginContent\n" +
"\n#pragma 'methodName=" + name + "'\n" +
"\n#pragma 'withThis'\n" +
- childcontentloc +
body + "\n#endContent",
name_loc);
- if (attrs.containsKey(name, caseSensitive)) {
- env.warn(
-/* (non-Javadoc)
- * @i18n.test
- * @org-mes="an attribute or method named '" + p[0] + "' already is defined on " + p[1]
- */
- org.openlaszlo.i18n.LaszloMessages.getMessage(
- NodeModel.class.getName(),"051018-922", new Object[] {name, getMessageName()})
- ,element);
- }
-
-
-
- if (!("true".equals(override))) {
- String classname = element.getParentElement().getName();
- // Just check method declarations on regular node.
- // Method declarations inside of class definitions will be already checked elsewhere,
- // in the call from ClassCompiler.updateSchema to schema.addElement
- if (!"class".equals(classname)) {
- schema.checkInstanceMethodDeclaration(element, classname, name, env);
- }
- }
-
attrs.put(name, fndef);
}
Modified: openlaszlo/branches/devildog/build-tools/build-autoincludes.sh
===================================================================
--- openlaszlo/branches/devildog/build-tools/build-autoincludes.sh 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/build-tools/build-autoincludes.sh 2008-02-06 19:57:39 UTC (rev 7965)
@@ -16,7 +16,7 @@
date +'# Copyright %Y Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms.' >> "${output}"
# This specifically excludes tags that start with uppercase letters as those appear to be internal
-(cd ${LPS_HOME}/lps/components; find . -name '*.lzx' -not -path '*/incubator/*' -not -path '*/queens-charts/*' -print0 | xargs -0 grep '<class ') | sed -n -f "${sedcommands}" | sort -t ':' -k 1 >> "${output}"
+(cd ${LPS_HOME}/lps/components; find . -name '*.lzx' -not -path '*/incubator/*' -not -path '*/queens-charts/*' -print0 | xargs -0 grep '<\(class\|interface\) ') | sed -n -f "${sedcommands}" | sort -t ':' -k 1 >> "${output}"
dups=`cut -d ':' -f 1 "${output}" | uniq -d`
Modified: openlaszlo/branches/devildog/build.properties
===================================================================
--- openlaszlo/branches/devildog/build.properties 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/build.properties 2008-02-06 19:57:39 UTC (rev 7965)
@@ -3,11 +3,11 @@
#LPS things
#
LPS_NAME = OpenLaszlo
-version.id = 4.1.x
-version.id.upper = 4.1.x
+version.id = 4.1
+version.id.upper = 4.1
# Set this in a release to the release name
-release = Latest
-release.id = 4.1.x
+release = RingDing
+release.id = 4.1 RC
# Set this in a release to the release build
# Otherwise an ant task will compute it from svn
#build.id
@@ -45,7 +45,7 @@
tom.password = laszlo
# Copyrights
-LZ_SRC_COPYRIGHT = Copyright (c) 2001-2007 Laszlo Systems, Inc. \
+LZ_SRC_COPYRIGHT = Copyright (c) 2001-2008 Laszlo Systems, Inc. \
All Rights Reserved. Use is subject to license terms.
LZ_HTML_COPYRIGHT = © Copyright 2001-2007 <a target="_blank" \
Modified: openlaszlo/branches/devildog/build.xml
===================================================================
--- openlaszlo/branches/devildog/build.xml 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/build.xml 2008-02-06 19:57:39 UTC (rev 7965)
@@ -512,7 +512,7 @@
unless="build.done"
depends="init">
- <ant target="quick-index" />
+ <ant target="laszlo-explorer" />
<ant dir="${webapp-lps-home}/schema" target="build" />
<!-- Copy pieces of schema stuff to tools -->
<copy todir="tools" file="${webapp-lps-home}/schema/lzx.rnc" />
@@ -1304,10 +1304,17 @@
<antcall target="webapp.deploy" />
</target>
- <target name="quick-index" depends="init"
- description="Create quick index from laszlo explorer nav.xml file" >
- <style style="quick-index.xslt"
- in="laszlo-explorer/nav.xml"
- out="quick-index.html"/>
+ <target name="laszlo-explorer" depends="init"
+ description="Create supporting files for laszlo-explorer" >
+ <copy file="laszlo-explorer/coverpages/welcome/index.html.proto"
+ tofile="laszlo-explorer/coverpages/welcome/index.html" >
+ <filterset>
+ <filter token="VERSIONID" value="${version.id}"/>
+ </filterset>
+ </copy>
+
+ <style style="quick-index.xslt"
+ in="laszlo-explorer/nav.xml"
+ out="quick-index.html" />
</target>
</project>
Modified: openlaszlo/branches/devildog/docs/src/build.xml
===================================================================
--- openlaszlo/branches/devildog/docs/src/build.xml 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/docs/src/build.xml 2008-02-06 19:57:39 UTC (rev 7965)
@@ -383,7 +383,7 @@
</doclet>
<bottom><![CDATA[
<!-- * H_LZ_COPYRIGHT_BEGIN *********************************************** -->
-<p class="copyright">Copyright 2002-2007 <a target="_top"
+<p class="copyright">Copyright 2002-2008 <a target="_top"
href="http://www.laszlosystems.com/">Laszlo Systems, Inc.</a>
All Rights Reserved. Use is subject to license terms.</p>
<!-- * H_LZ_COPYRIGHT_END ************************************************* -->
Modified: openlaszlo/branches/devildog/docs/src/deployers/deployers-index.dbk
===================================================================
--- openlaszlo/branches/devildog/docs/src/deployers/deployers-index.dbk 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/docs/src/deployers/deployers-index.dbk 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!--DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
Modified: openlaszlo/branches/devildog/docs/src/developers/book-info.dbk
===================================================================
--- openlaszlo/branches/devildog/docs/src/developers/book-info.dbk 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/docs/src/developers/book-info.dbk 2008-02-06 19:57:39 UTC (rev 7965)
@@ -11,15 +11,16 @@
<year>2005</year>
<year>2006</year>
<year>2007</year>
+ <year>2008</year>
<holder>Laszlo Systems, Inc.</holder>
</copyright>
<legalnotice>
<para>Laszlo® is a registered trademark, and OpenLaszlo™, LZX™ and OpenLaszlo Explorer™ are trademarks of Laszlo Systems, Inc.</para>
</legalnotice>
- <pubdate>March, 2007</pubdate>
+ <pubdate>February, 2008</pubdate>
</bookinfo>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Copied: openlaszlo/branches/devildog/docs/src/developers/programs/textformat.lzx (from rev 7959, openlaszlo/trunk/docs/src/developers/programs/textformat.lzx)
Modified: openlaszlo/branches/devildog/docs/src/developers/text.dbk
===================================================================
--- openlaszlo/branches/devildog/docs/src/developers/text.dbk 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/docs/src/developers/text.dbk 2008-02-06 19:57:39 UTC (rev 7965)
@@ -491,7 +491,23 @@
</itemizedlist>
</section>
<!-- remove empty para tag LI LPP-4642 9/4/2007-->
- <!-- <para /> -->
+ <section id="textformat">
+ <title>Formated Text</title>
+ <para>You can format text the same way you use <literal>Debug.format()</literal>. The difference is
+ that you need the debugger to be running to use <literal>Debug.format()</literal>, but <literal>text.format()</literal> is
+ always availabe. Like <literal>Debug.format()</literal>, <literal>text.format()</literal> uses
+ <ulink url="../reference/LzFormatter.html"><literal>LzFormatter</literal></ulink> to format text based
+ on a control string.</para>
+ <example role="live-example">
+ <title>Formated text</title>
+ <programlisting language="lzx">
+ <textobject>
+ <textdata fileref="programs/textformat.lzx" />
+ </textobject>
+ </programlisting>
+ </example>
+ </section>
+
<section id="text.multiline">
<title>Single-line and multiline text</title>
<para>A text field can be either a single line or multiple
Modified: openlaszlo/branches/devildog/docs/src/reference/book-info.dbk
===================================================================
--- openlaszlo/branches/devildog/docs/src/reference/book-info.dbk 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/docs/src/reference/book-info.dbk 2008-02-06 19:57:39 UTC (rev 7965)
@@ -10,6 +10,7 @@
<year>2005</year>
<year>2006</year>
<year>2007</year>
+ <year>2008</year>
<holder>Laszlo Systems, Inc.</holder>
</copyright>
<legalnotice>
Modified: openlaszlo/branches/devildog/docs/src/reference/langref.xml
===================================================================
--- openlaszlo/branches/devildog/docs/src/reference/langref.xml 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/docs/src/reference/langref.xml 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<js2doc>
@@ -182,23 +182,29 @@
<p>To specify an event handler in an object-creation tag, simply include it like any other attribute. For example,</p>
-<example extract="false"><programlisting class="code">
+<!-- TODO: [2008-01-28 dda] handle <example extract="false"> in XSL.
+ This was: <example extract="false"><programlisting class="code">...
+ but that produces no output. All such examples have been converted,
+ and <programlisting class="code"> has been added when it is missing.
+ -->
+
+<!--<example extract="false">--><programlisting class="code">
<view onmouseover="doSomething()">
<method name="doSomething">
// code to be executed when mouse is over the view
</method>
</view>
-</programlisting></example>
+</programlisting><!--</example>-->
<p>If you use the <tagname link="true">handler</tagname> tag, you do not need to include the handler in the tag that creates the object.</p>
-<example extract="false"><programlisting class="code">
+<!--<example extract="false">--><programlisting class="code">
<view>
<handler name="onmouseover">
// code to be executed when the mouse is over the view
</handler>
</view>
-</programlisting></example>
+</programlisting><!--</example>-->
<p> The above two examples are functionally equivalent. Using the <tagname>handler</tagname> tag, however, can often lead to more readable code because it removes clutter from the object creation tag.</p>
@@ -275,7 +281,7 @@
<p>For example, if a handler is defined via:</p>
-<example extract="false">
+<!--<example extract="false">--><programlisting class="code">
<view id="obj">
<hander name="onkeydown" args="kc">
if (kc == 13) this.doAction()
@@ -284,7 +290,8 @@
Debug.write("action");
</method>
</view>
-</example>
+</programlisting>
+<!--</example>-->
<p>
then script code
@@ -300,7 +307,7 @@
<p>
If the @method attribute is given, a method body is unnecessary and the named method will be invoked instead. For example, the handler below has the same behavior as the earlier example.</p>
-<example extract="false">
+<!--<example extract="false">--><programlisting class="code">
<view id="obj">
<hander name="onkeydown" method="doAction"/>
<method name="doAction" args="kc">
@@ -308,7 +315,8 @@
Debug.write("action");
</method>
</view>
-</example>
+</programlisting>
+<!--</example>-->
</text>
@@ -488,13 +496,14 @@
allows the method to be invoked from JavaScript with this name.
For example, if a method is defined via:</p>
-<example extract="false">
+<!--<example extract="false">--><programlisting class="code">
<view id="obj">
<method name="f" args="a, b">
return a+b;
</method>
</view>
-</example>
+</programlisting>
+<!--</example>-->
<p>
then script code
@@ -544,6 +553,23 @@
<tag name="shortdesc"><text>Controls the presentation while the application is loading.</text></tag>
<tag name="lzxname"><text>splash</text></tag>
<text>
+ <note>The <tagname>splash</tagname> tag does not work across
+ all platforms. Consider instead the following technique:
+ <!-- Note: does not work as a live example -->
+ <programlisting><![CDATA[
+<div id="lzsplash" style="z-index: 10000000; top: 0; left: 0; width: 100%; height: 100%; position: fixed; display: table">
+ <p style="display: table-cell; vertical-align: middle;">
+ <img src="/trunk/lps/includes/spinner.gif" style="display: block; margin: 20% auto"/>
+ </p>
+</div>
+<script type="text/javascript">
+ Lz.dhtmlEmbed({url: 'copy-of-hello.lzx?lzt=object&lzr=dhtml', bgcolor: '#ffffff', width: '100%', height: '100%', id: 'lzapp'});
+ Lz.lzapp.onload = function loaded() {
+ var s = document.getElementById('lzsplash');
+ if (s) LzSprite.prototype.__discardElement(s);
+ }
+</script>]]></programlisting>
+ </note>
<p>The <tagname>splash</tagname> tag controls the presentation while
the application is loading.</p>
@@ -551,11 +577,12 @@
progress bar is displayed while the application is loading. For
example:</p>
-<example extract="false">
+<!--<example extract="false">--><programlisting class="code">
<canvas>
<splash/>
<canvas>
-</example>
+</programlisting>
+<!--</example>-->
<p>The <tagname link="true">splash</tagname> element may contain
<a href="tag.splash-view.html">"splash view"</a> elements to define the position and
@@ -565,13 +592,14 @@
<p>
For example, the following program positions an image on the canvas during the "splash" loading portion of the program's execution and removes it once the application has loaded. The example below executes too quickly to be demonsrate the splash view; try it in a larger application to see how it works.</p>
-<example extract="false" title="using 'splash view' tag">
+<!--<example extract="false" title="using 'splash view' tag">--><programlisting class="code">
<canvas height="100">
<splash>
<view resource="../images/logo.png"/>
</splash>
</canvas>
-</example>
+</programlisting>
+<!--</example>-->
<p>
You can position more than one image by specifying its coordinates. The <attribute>persistent</attribute> attribute on <tagname>splash</tagname> tag causes the "splash" views contained within the spash element to remain on the canvas once the
load process is complete.</p>
@@ -712,4 +740,4 @@
</doc>
</property>
-</js2doc>
\ No newline at end of file
+</js2doc>
Modified: openlaszlo/branches/devildog/docs/src/reference/wrappers.xml
===================================================================
--- openlaszlo/branches/devildog/docs/src/reference/wrappers.xml 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/docs/src/reference/wrappers.xml 2008-02-06 19:57:39 UTC (rev 7965)
@@ -23,7 +23,7 @@
<text>A <a href="http://www.openlaszlo.org" target="_blank">link</a></text>
</canvas>
</example>
->
+
<p>Unlike HTML, the text in the link is not automatically styled. To style the text, use the <tagname>u</tagname> and <tagname>font</tagname> tags:</p>
<example>
@@ -122,12 +122,12 @@
<tag name="lzxname"><text><p></text></tag>
<text>
-<p>An HTML paragraph. This tag only occur inside XHTML text such as
+<p>An HTML paragraph. This tag only occurs inside XHTML text such as
<tagname>text</tagname>.</p>
<example>
<canvas height="30">
- <text>
+ <text multiline="true">
<p>A pararaph.</p>
<p>Another one.</p>
</text>
@@ -289,12 +289,20 @@
contains several images which can be toggled among by script commands.
For example:</p>
-<example extract="false" title="A resource with two frames">
+<!-- TODO: [2008-01-28 dda] handle <example extract="false"> in XSL.
+ This was: <example extract="false"><programlisting class="code">...
+ but that produces no output. All such examples have been converted,
+ and <programlisting class="code"> has been added when it is missing.
+ -->
+
+<!--<example>-->
+<programlisting class="code">
<resource name="mfr">
<frame src="f1.jpg"/>
<frame src="f2.jpg"/>
</resource>
-</example>
+</programlisting>
+<!--</example-->
<p>
Multiple frame tags can be declared consecutively to produce a single
Modified: openlaszlo/branches/devildog/docs/src/xsl/common-html.xsl
===================================================================
--- openlaszlo/branches/devildog/docs/src/xsl/common-html.xsl 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/docs/src/xsl/common-html.xsl 2008-02-06 19:57:39 UTC (rev 7965)
@@ -413,7 +413,7 @@
<xsl:template name="user.footer.content">
<hr/>
<!-- * H_LZ_COPYRIGHT_BEGIN *********************************************** -->
-<p class="copyright">Copyright © 2002-2007 <a target="_top"
+<p class="copyright">Copyright © 2002-2008 <a target="_top"
href="http://www.laszlosystems.com/">Laszlo Systems, Inc.</a>
All Rights Reserved. Unauthorized use, duplication or
distribution is strictly prohibited. This is the proprietary
Deleted: openlaszlo/branches/devildog/laszlo-explorer/coverpages/welcome/index.html
Copied: openlaszlo/branches/devildog/laszlo-explorer/coverpages/welcome/index.html.proto (from rev 7959, openlaszlo/trunk/laszlo-explorer/coverpages/welcome/index.html.proto)
Modified: openlaszlo/branches/devildog/lps/components/av/rtmpstatus.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/av/rtmpstatus.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/av/rtmpstatus.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,5 +1,5 @@
<!-- X_LZ_COPYRIGHT_BEGIN ************************************************
-* Copyright 2006-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ************************************************** -->
@@ -37,10 +37,10 @@
]]>
</handler>
- <method event="ondestroy"><![CDATA[
+ <handler name="ondestroy"><![CDATA[
this._updateStageDelegate.unregisterAll();
]]>
- </method>
+ </handler>
<!--- @access private -->
Modified: openlaszlo/branches/devildog/lps/components/base/basebutton.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/base/basebutton.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/base/basebutton.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -87,7 +87,7 @@
else this.showUp();
]]> </method>
- <method args="m" event="onmode" reference="LzModeManager">
+ <handler args="m" name="onmode" reference="LzModeManager">
<![CDATA[
if ( m && ( this._msdown || this._msin ) &&
!this.childOf( m ) ){
@@ -96,7 +96,7 @@
this._callShow();
}
]]>
- </method>
+ </handler>
<!--- Overrides view's method for resourceviewcount.
@param Number r: resource number.
@@ -317,7 +317,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/base/basecombobox.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/base/basecombobox.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/base/basecombobox.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,5 +1,5 @@
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
@@ -290,8 +290,8 @@
]]>
</handler>
- <method name="_dokeyup" args="kc"
- event="onkeyup">
+ <handler name="onkeyup" method="_dokeyup" />
+ <method name="_dokeyup" args="kc">
if (kc == 27) { // escape needs to close floating list
this.owner.setOpen(false);
}
Modified: openlaszlo/branches/devildog/lps/components/base/basedatepickerday.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/base/basedatepickerday.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/base/basedatepickerday.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -40,17 +40,17 @@
}
</handler>
+ <handler name="onmousedown" method="buttonpush" />
<!--- This method is called when this day has focus, and the
enter key is pushed.
@keywords protected -->
- <method name="buttonpush" event="onmousedown">
- </method>
+ <method name="buttonpush" />
+ <handler name="onmouseup" method="buttonrelease" />
<!--- This method is called when this day has focus, and the
enter key is released.
@keywords protected -->
- <method name="buttonrelease" event="onmouseup">
- </method>
+ <method name="buttonrelease" />
<doc>
<tag name="shortdesc"><text>An abstract class representing a day for use with <classname>basedatepicker</classname></text></tag>
@@ -70,7 +70,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/base/basefocusview.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/base/basefocusview.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/base/basefocusview.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -149,7 +149,7 @@
]]> </method>
<!--- @keywords private -->
- <handler name="onstop" method="stopanim"/>
+ <handler name="onstop" method="stopanim" />
<method name="stopanim" > <![CDATA[
this._animatorcounter -= 1;
if ( this._animatorcounter < 1 ) {
@@ -257,7 +257,7 @@
</method>
<!--- @keywords private -->
- <method args="v" event="onfocus" reference="LzFocus">
+ <handler args="v" name="onfocus" reference="LzFocus">
this.setActive( LzFocus.focuswithkey );
if ( v ) {
this.doFocus( v );
@@ -267,7 +267,7 @@
this.setActive(false);
}
}
- </method>
+ </handler>
</class>
@@ -363,7 +363,7 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/base/basegrid.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/base/basegrid.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/base/basegrid.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -281,9 +281,9 @@
]]>
</method>
+ <handler name="onkeydown" method="_dokeydown" />
<!--- @keywords private -->
- <method name="_dokeydown" args="kc"
- event="onkeydown">
+ <method name="_dokeydown" args="kc">
<![CDATA[
if ( !selectable ) return;
/* select item on 'space' key */
@@ -325,8 +325,9 @@
]]>
</method>
+ <handler name="onblur" method="_doblur" />
<!--- @keywords private -->
- <method name="_doblur" event="onblur">
+ <method name="_doblur">
if (this.hilite) this.hilite.setAttribute( "highlighted" , false );
this.setAttribute( "hilite" , null );
</method>
@@ -560,7 +561,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/base/basegridrow.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/base/basegridrow.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/base/basegridrow.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -141,14 +141,16 @@
this.select();
</handler>
- <method name="domouseover" event="onmouseover">
+ <handler name="onmouseover" method="domouseover" />
+ <method name="domouseover">
if ( !selectable ) return;
parent.classroot._setHiliteview( this , true );
this.setAttribute( 'focusable' , false );
</method>
- <method name="domouseout" event="onmouseout">
+ <handler name="onmouseout" method="domouseout" />
+ <method name="domouseout">
if ( !selectable ) return;
this.setAttribute( "highlighted" , false );
this.setAttribute( 'focusable' , true );
@@ -193,7 +195,7 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/base/baselist.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/base/baselist.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/base/baselist.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -86,7 +86,9 @@
</method>
<!--- @keywords private -->
- <method name="_doFocus" event="onfocus">
+ <handler name="onfocus" method="_doFocus" />
+ <!--- @keywords private -->
+ <method name="_doFocus">
<![CDATA[
// the hiliteview is used for keyboard nav hiliting
if (this['_selector']) {
@@ -99,7 +101,9 @@
</method>
<!--- @keywords private -->
- <method name="_doblur" event="onblur">
+ <handler name="onblur" method="_doblur" />
+ <!--- @keywords private -->
+ <method name="_doblur">
<;
@@ -123,8 +127,9 @@
</method>
<!--- @keywords private -->
- <method name="_dokeydown" args="kc"
- event="onkeydown">
+ <handler name="onkeydown" method="dokeydown" />
+ <!--- @keywords private -->
+ <method name="_dokeydown" args="kc">
<![CDATA[
/* select item on 'space' key */
if (kc == 32 && this._hiliteview && this._hiliteview.enabled) {
@@ -483,7 +488,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/base/basetrackgroup.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/base/basetrackgroup.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/base/basetrackgroup.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -172,12 +172,13 @@
]]>
</handler>
+ <handler name="onmousetrackout" reference="this.boundsref" method="trackingout" />
<!--- Called when the mouse is down and tracked
outside the bounding rect defined by boundsref. this method
generates the onmousetrackoutleft, onmousetrackoutright,
onmousetrackouttop, onmousetrackoutbottom events -->
- <method name="trackingout" event="onmousetrackout"
- reference="this.boundsref" > <![CDATA[
+ <method name="trackingout">
+ <![CDATA[
// the mouse has just exiting the bounding rect defined by
// the bounds ref. Report these events to the bounds ref.
if ( tracking ) {
@@ -260,7 +261,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/base/componentmanager.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/base/componentmanager.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/base/componentmanager.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -57,8 +57,8 @@
<attribute name="_lastkeydown" value="0"/>
<!--- @keywords private -->
<attribute name="upkeydel" value="null"/>
- <method name="dispatchKeyDown" args="key"
- event="onkeydown" reference="LzKeys">
+ <handler name="onkeydown" reference="LzKeys" method="dispatchKeyDown" />
+ <method name="dispatchKeyDown" args="key">
<![CDATA[
var callupdel = false;
if ( key == 32 ){
@@ -222,7 +222,7 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/charts/addon/slider/slider.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/charts/addon/slider/slider.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/charts/addon/slider/slider.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -12,7 +12,7 @@
<!--- @keyword private -->
<class name="ticks" width="100%" height="10" extends="drawview">
<attribute name="numticks" value="2"/>
- <method event="oninit">
+ <handler name="oninit">
<![CDATA[
var spacing = this.width / (numticks - 1);
@@ -28,7 +28,7 @@
}
]]>
- </method>
+ </handler>
</class>
<resource name="slider_arrow">
@@ -65,17 +65,17 @@
<xdragstate name="dragger" />
<basebutton align="center" resource="slider_arrow">
- <method event="onmousedown">
+ <handler name="onmousedown">
parent.setAttribute("isMouseDown", true);
parent.dragger.apply();
classroot.bringToFront();
- </method>
- <method event="onmouseup">
+ </handler>
+ <handler name="onmouseup">
parent.setAttribute("isMouseDown", false);
parent.dragger.remove();
- </method>
+ </handler>
</basebutton>
</class>
@@ -147,21 +147,21 @@
<attribute name="maxx" value="$once{parent.width}"/>
</sliderknob>
- <method event="onisMousedown" reference="leftknob">
+ <handler name="onisMousedown" reference="leftknob">
Debug.write("set left");
this.setAttribute("isMouseDown", leftknob.isMouseDown);
- </method>
+ </handler>
- <method event="onisMousedown" reference="rightknob">
+ <handler name="onisMousedown" reference="rightknob">
Debug.write("set right");
this.setAttribute("isMouseDown", rightknob.isMouseDown);
- </method>
+ </handler>
- <method event="onmaxlimit">
+ <handler name="onmaxlimit">
Debug.write("*************slider width: " + this.width);
leftknob.setX(0);
rightknob.setX(this.width);
- </method>
+ </handler>
<method name="setMinValue" args="minvalue">
<![CDATA[
@@ -180,7 +180,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved.
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/charts/addon/zoomarea.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/charts/addon/zoomarea.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/charts/addon/zoomarea.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -82,7 +82,7 @@
<!--- @private keyword
start finish selection
-->
- <method event="onmouseup" reference="LzGlobalMouse" args="who">
+ <handler name="onmouseup" reference="LzGlobalMouse" args="who">
<![CDATA[
if(!this.selecting) return;
@@ -116,7 +116,7 @@
this.select(virtualStartX, virtualEndY, virtualEndX, virtualStartY, this.duration, true);
]]>
- </method>
+ </handler>
<!--- @keyword private -->
<method name="adjustSize">
@@ -159,4 +159,6 @@
chart.changeBound(minx, miny, maxx, maxy, this.duration, true);
</method>
</class>
-</library>
\ No newline at end of file
+</library>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
+
Modified: openlaszlo/branches/devildog/lps/components/charts/common/chart.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/charts/common/chart.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/charts/common/chart.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -72,7 +72,7 @@
Object to render the stroke and the gradient plotareabackground-->
<drawview name="plotareabackground"/>
- <method event="oninitdone">
+ <handler name="oninitdone">
// No style defined.
if( this.style.constructor.tagname != "chartstyle" ) {
this.style = this.defaultstyle;
@@ -88,7 +88,7 @@
this.dataload();
}
new LzDelegate(this,"dataload", rootseries, "ondatadone");
- </method>
+ </handler>
<!--- @keywords private -->
<method name="applyBGStyle" args="s">
@@ -317,9 +317,9 @@
</method>
<view/>
</view>
- <method event="oninitdone">
+ <handler name="oninitdone">
//Debug.write("initdone: " + this.initdone);
- </method>
+ </handler>
<doc>
<tag name="shortdesc"><text>
a simple chart
@@ -334,7 +334,7 @@
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved.
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/lps/components/charts/common/databar.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/charts/common/databar.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/charts/common/databar.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -12,20 +12,20 @@
<!--- shows the data tooltip on mouseover event
@keyword private-->
- <method event="onmouseover">
+ <handler name="onmouseover">
<![CDATA[
if(tooltip != null && parent.parent.datatipEnabled){
parent.parent.datatooltip.style = this.style.tip;
parent.parent.datatooltip.show(tooltip);
}
]]>
- </method>
+ </handler>
<!--- hides the data tooltip on mouseout event
@keyword private-->
- <method event="onmouseout">
+ <handler name="onmouseout">
parent.parent.datatooltip.hide();
- </method>
+ </handler>
<!--- @keywords private -->
<text name="txt"/>
@@ -130,14 +130,14 @@
this.strokeDataBar.renderStroke(endx, endy, startx, endy);
this.strokeDataBar.renderStroke(startx, endy, startx, starty);
</method>
- <method event="onMouseDown">
+ <handler name="onMouseDown">
parent.onMouseDown.sendEvent();
- </method>
+ </handler>
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved.
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/lps/components/charts/common/datapoints.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/charts/common/datapoints.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/charts/common/datapoints.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -18,19 +18,19 @@
<!--- shows the data tooltip on mouseover event
@keyword private-->
- <method event="onmouseover">
+ <handler name="onmouseover">
<![CDATA[
if(parent.parent.datatipEnabled && tooltip != null){
parent.parent.datatooltip.style = style.tip;
parent.parent.datatooltip.show(tooltip);
}
]]>
- </method>
+ </handler>
<!--- hides the data tooltip on mouseout event
@keyword private-->
- <method event="onmouseout">
+ <handler name="onmouseout">
parent.parent.datatooltip.hide();
- </method>
+ </handler>
</class>
@@ -38,8 +38,8 @@
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2005 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2005, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END
****************************************************** -->
-<!-- @LZX_VERSION@ -->
\ No newline at end of file
+<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/charts/common/dataseries.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/charts/common/dataseries.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/charts/common/dataseries.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -17,9 +17,9 @@
been changed. (Datacolumn itself can't have a datapath attribute or
else it somehow changes how everything works.) -->
<view name="dataview" visible="false">
- <method event="ondata">
+ <handler name="ondata">
parent.getRootDataSeries().ondata.sendEvent();
- </method>
+ </handler>
</view>
<!--- get the min value of the columns for the series -->
@@ -165,9 +165,9 @@
</method>
<!--- @keyword private -->
- <method event="ondata">
+ <handler name="ondata">
//this.getRootDataseries().ondata.sendEvent();
- </method>
+ </handler>
<doc>
<tag name="shortdesc"><text>
@@ -411,20 +411,20 @@
</method>
<!--- @keyword private -->
- <method event="ondata">
+ <handler name="ondata">
// Have to keep this from happening on linechart, or else it doesn't
// draw it properly the first time. This may need to be fixed. -JC
if(this.getRootDataSeries().parent.constructor.tagname != "linechart"){
this.clearCache();
this.setAttribute("datadone", true);
}
- </method>
+ </handler>
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved.
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/lps/components/charts/common/legend.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/charts/common/legend.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/charts/common/legend.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -44,8 +44,8 @@
<simplelayout axis="y"/>
- <!--- @keywords private -->
- <method event="oninitdone" reference="this.chart">
+ <!--- @keywords private -->
+ <handler name="oninitdone" reference="this.chart">
if(chart.initdone)
{
var lChart = this.getChartInstance();
@@ -54,7 +54,7 @@
this.datapath.setFromPointer(lChart.getDataSeries().getLegend());
}
}
- </method>
+ </handler>
<!-- Top Margin -->
<view height="${parent.topmargin}" />
@@ -74,22 +74,22 @@
]]>
</method>
<legenditem name="containeritem" datapath="item">
- <method event="ondata">
+ <handler name="ondata">
if( parent.parent.datapath.getNodeCount() == 1 ) {
if( parent.parent.legendborder )
parent.parent.border();
else
parent.parent.setBGColor(parent.parent.fillColor);
}
- </method>
+ </handler>
<datapath>
- <method event="onclones">
+ <handler name="onclones">
if (!this['doneDel']) {
this.doneDel = new LzDelegate(this, 'doborder')
this.doneDel.register(clones[clones.length - 1], 'oninit')
}
- </method>
+ </handler>
<method name="doborder">
if( parent.parent.legendborder )
parent.parent.border();
@@ -137,31 +137,26 @@
]]>
</method>
- <!--- abstract method that allow custom action for mouse over event
+ <!--- event that allows custom action for mouse over event
@param Number item: The identifier legend item
-->
- <method event="onitemmouseover" args="item">
- </method>
- <!--- abstract method that allow custom action for mouse out event
+ <event name="onitemmouseover" />
+ <!--- event that allows custom action for mouse out event
@param Number item: The identifier legend item
-->
- <method event="onitemmouseout" args="item">
- </method>
- <!--- abstract method that allow custom action for mouse down event
+ <event name="onitemmouseout" />
+ <!--- event that allows custom action for mouse down event
@param Number item: The identifier legend item
-->
- <method event="onitemmousedown" args="item">
- </method>
- <!--- abstract method that allow custom action for mouse up event
+ <event name="onitemmousedown" />
+ <!--- event that allows custom action for mouse up event
@param Number item: The identifier legend item
-->
- <method event="onitemmouseup" args="item">
- </method>
- <!--- abstract method that allow custom action for mouse click event
+ <event name="onitemmouseup" />
+ <!--- event that allows custom action for mouse click event
@param Number item: The identifier legend item
-->
- <method event="onitemmouseclick" args="item">
- </method>
+ <event name="onitemmouseclick" />
<doc>
<tag name="shortdesc"><text>
@@ -254,29 +249,29 @@
</method>
<!--- calls the method that implements the acton
@keyword private-->
- <method event="onmouseover">
+ <handler name="onmouseover">
parent.classroot.onitemmouseover.sendEvent(this);
- </method>
+ </handler>
<!--- calls the method that implements the acton
@keyword private-->
- <method event="onmouseout">
+ <handler name="onmouseout">
parent.classroot.onitemmouseout.sendEvent(this);
- </method>
+ </handler>
<!--- calls the method that implements the acton
@keyword private-->
- <method event="onmousedown">
+ <handler name="onmousedown">
parent.classroot.onitemmousedown.sendEvent(this);
- </method>
+ </handler>
<!--- calls the method that implements the acton
@keyword private-->
- <method event="onmouseup">
+ <handler name="onmouseup">
parent.classroot.onitemmouseup.sendEvent(this);
- </method>
+ </handler>
<!--- calls the method that implements the acton
@keyword private-->
- <method event="onclick">
+ <handler name="onclick">
parent.classroot.onitemmouseclick.sendEvent(this);
- </method>
+ </handler>
</class>
@@ -284,7 +279,7 @@
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/lps/components/charts/common/rectangularchart.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/charts/common/rectangularchart.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/charts/common/rectangularchart.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -519,10 +519,8 @@
<method name="undo" args="duration">
actionhelper.undo(duration);
</method>
- <method event="onRenderStart">
- </method>
- <method event="onRenderStop">
- </method>
+ <event name="onRenderStart" />
+ <event name="onRenderStop" />
<doc>
<tag name="shortdesc"><text>
@@ -545,12 +543,12 @@
<attribute name="animateProgress" value="0" type="number" />
<animator name="animatezoom" attribute="animateProgress" from="0" to="1" start="false" duration="500">
- <method event="onstart">
+ <handler name="onstart">
parent.setAttribute("isdrawing", true);
- </method>
- <method event="onstop">
+ </handler>
+ <handler name="onstop">
parent.setAttribute("isdrawing", false);
- </method>
+ </handler>
</animator>
<method name="changeBound" args="newminx, newminy, newmaxx, newmaxy, duration, undoable">
@@ -622,7 +620,7 @@
}
</method>
- <method event="onanimateProgress">
+ <handler name="onanimateProgress">
<![CDATA[
//Debug.write("AnimateStep: " + chart.minx + " " + chart.miny + " " + chart.maxx + " " + chart.maxy);
@@ -643,13 +641,13 @@
chart.onRenderStop.sendEvent();
}
]]>
- </method>
+ </handler>
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved.
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/lps/components/charts/common/valueline.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/charts/common/valueline.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/charts/common/valueline.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -46,12 +46,12 @@
parent.datatooltip.hide();
</method>
<view name="hitarea" x="-2" y="-2" width="${parent.width + 5}" height="${parent.height + 5}" pixellock="true">
- <method event="onmouseover">
+ <handler name="onmouseover">
parent.showtooltip();
- </method>
- <method event="onmouseout">
+ </handler>
+ <handler name="onmouseout">
parent.hidetooltip();
- </method>
+ </handler>
</view>
<!--- render the line
@@ -124,7 +124,7 @@
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/lps/components/charts/common/valuepoints.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/charts/common/valuepoints.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/charts/common/valuepoints.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -30,7 +30,7 @@
<!--- shows the data tooltip and applied style
@keyword private-->
- <method event="onmouseover">
+ <handler name="onmouseover">
var ldata;
if ( this.tip == '' ){
ldata = (this.label!=''?this.label+' : ':'') + this.datax + ','+this.datay ;
@@ -39,13 +39,13 @@
}
parent.datatooltip.style = parent.style.valuepointstyle.tip;
parent.datatooltip.show(ldata);
- </method>
+ </handler>
<!--- hides the data tooltip
@keyword private-->
- <method event="onmouseout">
+ <handler name="onmouseout">
parent.datatooltip.hide();
- </method>
+ </handler>
<!--- Render
@keyword private-->
@@ -103,7 +103,7 @@
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/lps/components/charts/common/valueregion.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/charts/common/valueregion.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/charts/common/valueregion.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -52,12 +52,12 @@
</method>
<view name="hitarea" width="${parent.width}" height="${parent.height}" pixellock="true" visible="${parent.tipEnabled}">
- <method event="onmouseover">
+ <handler name="onmouseover">
parent.showtooltip();
- </method>
- <method event="onmouseout">
+ </handler>
+ <handler name="onmouseout">
parent.hidetooltip();
- </method>
+ </handler>
</view>
<!--- @keywords private -->
@@ -254,7 +254,7 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/lps/components/charts/piechart/piepiece.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/charts/piechart/piepiece.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/charts/piechart/piepiece.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -329,21 +329,21 @@
]]>
</method>
- <method event="onmouseover">
+ <handler name="onmouseover">
if(tooltip != null)
{
parent.parent.datatooltip.show(tooltip);
}
- </method>
+ </handler>
- <method event="onmouseout">
+ <handler name="onmouseout">
parent.parent.datatooltip.hide();
- </method>
+ </handler>
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved.
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/charts/styles/chartstyle.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/charts/styles/chartstyle.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/charts/styles/chartstyle.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -299,8 +299,7 @@
//Debug.write("mark: " + obj);
//Debug.write("mark: " + obj["styleversion"]);
</method>
- <method event="onversion">
- </method>
+ <event name="onversion" />
</class>
<!--- list of datastyle -->
@@ -317,7 +316,7 @@
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/lps/components/charts/styles/styleparser.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/charts/styles/styleparser.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/charts/styles/styleparser.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -50,8 +50,9 @@
}
]]>
</method>
+ <handler name="onisleaf" method="readLeafNode" />
<!--- @keyword private-->
- <method name="readLeafNode" event="onisleaf">
+ <method name="readLeafNode">
if( this.style != null )
if( this.style.constructor.tagname == this.defaultstyle.constructor.tagname ) {
// continue;
@@ -70,7 +71,7 @@
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/lps/components/debugger/debugger.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/debugger/debugger.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/debugger/debugger.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -816,13 +816,13 @@
width="${parent.width}" multiline="false"
options="releasetolayout" />
- <method event="onfocus" reference="this.input">
+ <handler name="onfocus" reference="this.input">
classroot.handleFocus();
- </method>
+ </handler>
- <method event="onblur" reference="this.input">
+ <handler name="onblur" reference="this.input">
classroot.handleBlur();
- </method>
+ </handler>
<view name="bottom"
stretches="width" width="${parent.width}" options="releasetolayout"
@@ -988,9 +988,9 @@
]]>
</method>
- <method event="oninit" reference="canvas">
+ <handler name="oninit" reference="canvas">
this.bringToFront();
- </method>
+ </handler>
<method name="setWrapLines" args="val">
this.middle.content.setWrapLines(val);
@@ -1000,7 +1000,7 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/debugger/newcontent.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/debugger/newcontent.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/debugger/newcontent.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -134,11 +134,11 @@
</method>
<!-- this gets called every time the x value changes -->
- <method event="onx" reference="this">
+ <handler name="onx" reference="this">
if (parent.getAttribute("autoscroll")) {
this.handleThumbPosX(this.x);
}
- </method>
+ </handler>
<method name="handleThumbPosX" args="x" >
var real_scroll_width = (parent.width - (parent.arrowbuttonwidth * 2)) - parent.thumbwidth + 2;
@@ -256,11 +256,11 @@
</method>
<!-- this gets called every time the y value changes -->
- <method event="ony" reference="this">
+ <handler name="ony" reference="this">
if (parent.parent.getAttribute("autoscroll")) {
this.handleThumbPos(this.y);
}
- </method>
+ </handler>
<!-- force the content pane to scroll to position corresponding to thumb y pos in bar -->
<method name="handleThumbPos" args="y" >
Modified: openlaszlo/branches/devildog/lps/components/debugger/scrollingtext.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/debugger/scrollingtext.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/debugger/scrollingtext.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -130,11 +130,11 @@
</method>
<!-- this gets called every time the x value changes -->
- <method event="onx" reference="this">
+ <handler name="onx" reference="this">
if (parent.getAttribute("autoscroll")) {
this.handleThumbPosX(this.x);
}
- </method>
+ </handler>
<method name="handleThumbPosX" args="x" >
var real_scroll_width = (parent.width - (parent.arrowbuttonwidth * 2)) - parent.thumbwidth + 2;
@@ -260,11 +260,11 @@
</method>
<!-- this gets called every time the y value changes -->
- <method event="ony" reference="this">
+ <handler name="ony" reference="this">
if (parent.parent.getAttribute("autoscroll")) {
this.handleThumbPos(this.y);
}
- </method>
+ </handler>
<method name="handleThumbPos" args="y" >
// scroll the text window
Modified: openlaszlo/branches/devildog/lps/components/extensions/test/drawing.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/extensions/test/drawing.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/extensions/test/drawing.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -4,7 +4,7 @@
<simplelayout axis="x"/>
<drawview width="205" height="230" onmousedown="this.dragger.apply()" onmouseup="this.dragger.remove()" bgcolor="green">
<dragstate name="dragger"/>
- <method event="oncontext">
+ <handler name="oncontext">
this.moveTo(100, 100);
this.lineTo(100, 200);
this.quadraticCurveTo(150, 250, 200, 200);
@@ -45,12 +45,12 @@
g.addColorStop(1, '#ffffff');
this.fillStyle = g;
this.fill();
- </method>
+ </handler>
</drawview>
<!-- test new arc, rect and oval methods -->
<drawview width="200" height="200">
- <method event="oncontext">
+ <handler name="oncontext">
this.beginPath();
this.arc(100, 100, 50, 0, 90);
@@ -62,12 +62,12 @@
this.stroke();
this.closePath();
- </method>
+ </handler>
</drawview>
<!-- test new bezierCurveTo method - from http://developer.mozilla.org/samples/canvas-tutorial/2_6_canvas_beziercurveto.html -->
<drawview width="200" height="200">
- <method event="oncontext">
+ <handler name="oncontext">
this.beginPath();
this.moveTo(75,40);
this.bezierCurveTo(75,37,70,25,50,25);
@@ -77,7 +77,7 @@
this.bezierCurveTo(130,62.5,130,25,100,25);
this.bezierCurveTo(85,25,75,37,75,40);
this.fill();
- </method>
+ </handler>
</drawview>
<!-- from http://forum.openlaszlo.org/showthread.php?t=9478 -->
@@ -98,7 +98,7 @@
</class>
<curve x="100" y="100" width="200" height="200"/>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/lps/components/extensions/test/html.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/extensions/test/html.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/extensions/test/html.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,5 +1,5 @@
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2007, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<canvas width="100%" height="100%">
@@ -9,31 +9,31 @@
<simplelayout axis="x"/>
<edittext name="txt" text="http://w3.org/" width="300"/>
<button>Load
- <method event="onclick">
+ <handler name="onclick">
parent.main.setAttribute('src', parent.txt.getText());
parent.main.setAttribute('visible', true);
- </method>
+ </handler>
</button>
<button>Clear
- <method event="onclick">
+ <handler name="onclick">
parent.main.setVisible(false);
parent.main.setSrc('');
- </method>
+ </handler>
</button>
<text name="status" y="3" fontstyle="bold" visible="${parent.main.loading}">Loading...</text>
<html name="main" heightoffset="-74" widthoffset="-19" xoffset="7" yoffset="50">
- <method event="oninit">
+ <handler name="oninit">
this.bringToFront();
- </method>
- <method event="oniframe">
+ </handler>
+ <handler name="oniframe">
Debug.write('oniframe');
- </method>
- <method event="onsrc" args="s">
+ </handler>
+ <handler name="onsrc" args="s">
Debug.write('onsrc', s);
- </method>
- <method event="onload">
+ </handler>
+ <handler name="onload">
Debug.write('onload');
- </method>
+ </handler>
</html>
</class>
Modified: openlaszlo/branches/devildog/lps/components/incubator/autocompletecombobox.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/autocompletecombobox.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/autocompletecombobox.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,5 +1,5 @@
<!---
- @copyright 2005-2007 Laszlo Systems, Inc. All Rights Reserved.
+ @copyright 2005-2008 Laszlo Systems, Inc. All Rights Reserved.
Use is subject to license terms.
@topic Incubator
@subtopic Components
@@ -27,13 +27,13 @@
<!--- @access private -->
<attribute name="__component_contents" value="[]" />
- <method event="ondata">
+ <handler name="ondata">
// reset any previous bindings
this.setAttribute("__component_contents",[]);
Debug.write("autocompletecombobox got datapath = ",this.datapath.xpath);
Debug.write("The float box : ",myFloatBox);
myFloatBox.setDatapath(this.datapath.xpath);
- </method>
+ </handler>
<method name="showAll">
var isShowing = myFloatBox.getAttribute("visible");
@@ -55,19 +55,19 @@
<simplelayout axis="x" spacing="0"/>
<view name="theeditor" width="${classroot.width - classroot.rgt.width}">
<inputtext name="actual" width="100%" text="$once{classroot.getAttribute('defaulttext')}">
- <method event="onfocus">
+ <handler name="onfocus">
Debug.write("focused..");
this.setSelection(0,this.getText().length);
- </method>
+ </handler>
- <method event="onclick">
+ <handler name="onclick">
Debug.write("clicked..");
this.setSelection(0,this.getText().length);
- </method>
+ </handler>
<attribute name="actuallyTyped" value="" type="string" />
- <method event="onkeyup" args="k">
+ <handler name="onkeyup" args="k">
<![CDATA[
if(k == 40) {
Debug.write("Down key...");
@@ -117,7 +117,7 @@
}
]]>
- </method>
+ </handler>
<method name="computeBox" args="theInput">
@@ -170,30 +170,30 @@
placement="bkgnd" onclick="classroot.showAll()" stretches="height"/>
<floatinglist name="myFloatBox" width="${owner.width}" attach="bottom" datapath="" visible="false">
- <method event="oninit">
+ <handler name="oninit">
Debug.write("wtf? classroot = ",parent);
- </method>
+ </handler>
- <method event="ondata">
+ <handler name="ondata">
Debug.write("floatinglist got data = ",this.data);
var childXPath = this.datapath.xpath + "/"+owner.contentpath;
this.replicated_textitem.setDatapath(childXPath);
- </method>
+ </handler>
<textlistitem name="replicated_textitem" datapath="">
- <method event="ondata">
+ <handler name="ondata">
parent.owner.getAttribute("__component_contents")[this.data] = this;
- </method>
- <method event="onselect">
+ </handler>
+ <handler name="onselect">
Debug.write("onselect ",this.data);
parent.owner.theeditor.actual.setText(this.data);
var actualTyped = parent.owner.theeditor.actual.getAttribute("actuallyTyped");
parent.owner.theeditor.actual.setSelection(actualTyped.length,this.data.length);
- </method>
- <method event="onclick">
+ </handler>
+ <handler name="onclick">
Debug.write("onclick ",this.data);
this.parent.setAttribute("visible",false);
- </method>
+ </handler>
</textlistitem>
</floatinglist>
Modified: openlaszlo/branches/devildog/lps/components/incubator/basecheckbox.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/basecheckbox.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/basecheckbox.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -13,7 +13,8 @@
</method>
<!--- @keywords private -->
- <method event="onclick" name="doClick">
+ <handler name="onclick" method="doClick" />
+ <method name="doClick">
if (this._enabled) this.setValue(!this.value);
</method>
@@ -43,7 +44,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/baseedittext.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/baseedittext.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/baseedittext.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -29,25 +29,26 @@
</method>
<!--- Sent if whenever the focus moves into _internalinputtext. -->
- <method event="onfocus" args="s">
+ <handler name="onfocus" args="s">
if (parent['onfocus']) parent.onfocus.sendEvent(s);
- </method>
+ </handler>
<!--- Sent if whenever the focus moves out of _internalinputtext. -->
- <method event="onblur" args="s">
+ <handler name="onblur" args="s">
if (parent['onblur']) parent.onblur.sendEvent(s);
- </method>
+ </handler>
<!--- Sent whenever a user keys up. -->
- <method event="onkeyup" args="kc"> <![CDATA[
+ <handler name="onkeyup" args="kc"> <![CDATA[
if (parent['onkeyup']) parent.onkeyup.sendEvent(kc);
]]>
- </method>
+ </handler>
<!--- Sent whenever a user keys down. -->
- <method event="onkeydown" args="kc"> <![CDATA[
+ <handler name="onkeydown" args="kc"> <![CDATA[
if (parent['onkeydown']) parent.onkeydown.sendEvent(kc);
]]>
- </method>
+ </handler>
<!--- Sent whenever a user enters a valid new character. -->
- <method event="ontext" name="doOnText">
+ <handler name="ontext" method="doOnText" />
+ <method name="doOnText">
if (! this.ignorecallup) {
parent.setValue(this.getText(),false,true);
}
@@ -354,7 +355,7 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/baseradio.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/baseradio.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/baseradio.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -156,9 +156,9 @@
</method>
<!--- @keywords private -->
- <method event="onclick">
- this._select(true);
- </method>
+ <handler name="onclick">
+ this._select(true);
+ </handler>
<!--- Select this radiobutton.
@keywords private -->
@@ -260,7 +260,7 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/baseslider.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/baseslider.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/baseslider.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -39,12 +39,12 @@
<attribute name="bordersize" value="1" type="number"/>
<!--- @keywords private -->
- <method event="oninit">
+ <handler name="oninit">
//have to adjust thumb once at start because
//neither setValue nor onvalue is getting triggered
//when value is set.
_adjustThumb();
- </method>
+ </handler>
<!--- Get the minimum value of the slider.
@return Number: the minimum value. -->
@@ -116,13 +116,13 @@
</method>
<!--- @keywords private -->
- <method event="onkeydown" args="k">
+ <handler name="onkeydown" args="k">
//left arrow
if (k==37) this.track.thumb.setX(this.track.thumb.x-keystep);
else
//right arrow
if (k==39) this.track.thumb.setX(this.track.thumb.x+keystep);
- </method>
+ </handler>
<!--- @keywords private -->
<method name="getFocusRect">
@@ -137,9 +137,9 @@
<!--- Baseslidertrack expects to be within a baseslider (or its
subclass). In other words, its "classroot" should be a slider. -->
<class name="baseslidertrack" width="100%" height="${classroot.trackheight}" bgcolor="0x333333" >
- <method event="oninit">
+ <handler name="oninit">
classroot.track = this;
- </method>
+ </handler>
</class>
<!--- Basesliderthumb expects to be within a baseslidertrack (or its
@@ -191,7 +191,7 @@
</class><!-- end basesliderthumb class -->
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2005 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2005, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/colorpicker.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/colorpicker.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/colorpicker.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -7,9 +7,9 @@
<class name="colorpot" width="13" height="13">
<attribute name="mycolor" type="color" value="#000000"/>
<attribute name="listener" type="expression"/>
- <method event="onclick">
+ <handler name="onclick">
listener.changeColor(this.getAttribute('mycolor'));
- </method>
+ </handler>
<view bgcolor="#444444" width="13" height="13">
<view bgcolor="${classroot.mycolor}" x="1" y="1" width="11" height="11"/>
</view>
@@ -23,9 +23,9 @@
extends="window" width="260" height="170" bgcolor="#cccccc">
<attribute name="selectedColor" type="number" value="0x000000"/>
- <method event="oninit">
+ <handler name="oninit">
this.changeColor(0x000000);
- </method>
+ </handler>
<method name="RGBtoHLS" args="r,g,b">
<![CDATA[
@@ -85,9 +85,9 @@
trackheight="4"
thumbheight="12"
x="4" y="80" showrange="false" showvalue="false">
- <method event="onvalue">
+ <handler name="onvalue">
classroot.updateColor();
- </method>
+ </handler>
</slider>
<text fontsize="8"
@@ -97,9 +97,9 @@
trackheight="4"
thumbheight="12"
x="4" y="96" showrange="false" showvalue="false">
- <method event="onvalue">
+ <handler name="onvalue">
classroot.updateColor();
- </method>
+ </handler>
</slider>
<text fontsize="8"
@@ -109,9 +109,9 @@
trackheight="4"
thumbheight="12"
x="4" y="112" showrange="false" showvalue="false">
- <method event="onvalue" >
+ <handler name="onvalue" >
classroot.updateColor();
- </method>
+ </handler>
</slider>
<view name="c2" bgcolor="black" width="30" height="66" y="4" x="206">
@@ -240,7 +240,7 @@
<colorpicker id="the_colorpicker"/>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2005-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2005-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/defaultlistitem.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/defaultlistitem.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/defaultlistitem.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -10,13 +10,13 @@
<attribute name="default_y"
value="$once{this.height/2 - this.defaultlabel._default.height/2}" />
- <method event="onisdefault">
+ <handler name="onisdefault">
this.adjustDefault();
- </method>
+ </handler>
- <method event="ondefault_x">
+ <handler name="ondefault_x">
this.adjustDefault();
- </method>
+ </handler>
<method name="adjustDefault">
if (this.isdefault) this._title.setWidth(this.default_x);
@@ -36,7 +36,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/fisheye_lib.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/fisheye_lib.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/fisheye_lib.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -36,9 +36,9 @@
<attribute name="tooltip" value="${this.getAttribute('text')}" />
- <method event="oninit">
+ <handler name="oninit">
myTooltipManager.register(this);
- </method>
+ </handler>
<view resource="$once{parent.icon}"
width="$once{parent.start_size}"
@@ -51,7 +51,7 @@
<attribute name="old_y" value="$once{canvas.getMouse('y')}" />
- <method event="onmousemove" reference="canvas"><![CDATA[
+ <handler name="onmousemove" reference="canvas"><![CDATA[
var global_x = canvas.getMouse("x");
var global_y = canvas.getMouse("y");
@@ -99,12 +99,12 @@
this.lastamount = amount;
]]>
- </method>
+ </handler>
</view>
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2007, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/gradientview.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/gradientview.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/gradientview.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,5 +1,5 @@
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2005-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2005-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
@@ -46,18 +46,18 @@
- <method event="onheight">
+ <handler name="onheight">
<![CDATA[
this.setAttribute('stretchHeight',this.height);
this.draw();
]]>
- </method>
- <method event="onwidth">
+ </handler>
+ <handler name="onwidth">
<![CDATA[
this.setAttribute('stretchWidth',this.width);
this.draw();
]]>
- </method>
+ </handler>
<method name="construct" args="parent,args">
super.construct(parent, args);
Modified: openlaszlo/branches/devildog/lps/components/incubator/hsplitpane.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/hsplitpane.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/hsplitpane.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -42,13 +42,13 @@
<view y="24" width="100%" height="1" bgcolor="0x777777"/>
- <method event="onmousedown">
+ <handler name="onmousedown">
parent.dragger.apply();
- </method>
+ </handler>
- <method event="onmouseup">
+ <handler name="onmouseup">
parent.dragger.remove();
- </method>
+ </handler>
</view>
<dragstate
name="dragger"
@@ -96,7 +96,7 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/iconradioitem.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/iconradioitem.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/iconradioitem.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -27,15 +27,15 @@
<!-- have to use placeholder resources so that basebutton initializes correctly -->
<view name="left" resource="iconradiotransparent_button_rsc" height="${parent.height}"
x="0" >
- <method event="onload">this.updateResourceSize();</method>
+ <handler name="onload">this.updateResourceSize();</handler>
</view>
<view name="middle" resource="iconradiotransparent_button_rsc" height="${parent.height}"
x="${parent.left.width}" width="${parent.width-parent.left.width-parent.right.width}" stretches="both">
- <method event="onload">this.updateResourceSize();</method>
+ <handler name="onload">this.updateResourceSize();</handler>
</view>
<view name="right" resource="iconradiotransparent_button_rsc" height="${parent.height}"
x="${parent.width-width}" stretches="height">
- <method event="onload">this.updateResourceSize();</method>
+ <handler name="onload">this.updateResourceSize();</handler>
</view>
<view x="${parent.width-width}" name="line" bgcolor="black" width="1" height="${parent.height-1}" visible="false" />
@@ -76,23 +76,23 @@
<!--- @keywords private -->
<attribute name="_down" value="false" type="boolean"/>
<!--- @keywords private -->
- <method event="onmouseover">
+ <handler name="onmouseover">
this.setFrame((this.selected || this._down) ? 3 : 2);
- </method>
+ </handler>
<!--- @keywords private -->
- <method event="onmouseout">
+ <handler name="onmouseout">
this.setFrame(this.selected ? 3 : 1);
- </method>
+ </handler>
<!--- @keywords private -->
- <method event="onmouseup">
+ <handler name="onmouseup">
this.setFrame(this.selected ? 3 : 1);
this._down = false;
- </method>
+ </handler>
<!--- @keywords private -->
- <method event="onmousedown">
+ <handler name="onmousedown">
this.setFrame(3);
this._down = true;
- </method>
+ </handler>
<!--- Display hilite (handles key navigation) -->
<!--- @keywords private -->
<method name="setHilite" args="v" >
@@ -129,7 +129,7 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/icontab.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/icontab.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/icontab.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -50,11 +50,11 @@
<text name="label" resize="true" x="${parent.icon.x + parent.icon.width + 4}" text="${classroot.text}" y="${classroot.label_y}" />
</view>
- <method event="oninit">
+ <handler name="oninit">
if (!this.selected) {
this.setFrame(2);
}
- </method>
+ </handler>
<!--- @keywords private -->
<method name="setHilite" args="h">
@@ -117,7 +117,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/icontogglebutton.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/icontogglebutton.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/icontogglebutton.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -45,9 +45,9 @@
</method>
<!--- @keywords private -->
- <method event="onclick">
+ <handler name="onclick">
this.setStatenum(this.statenum ? 0 : 1);
- </method>
+ </handler>
<!--- @keywords private -->
<method name="setStatenum" args="s">
@@ -77,7 +77,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/libflickr.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/libflickr.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/libflickr.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -59,11 +59,11 @@
DATA MANAGER
-->
<node name="gFlickr">
- <method event="oninit">
+ <handler name="oninit">
this.errdel = new LzDelegate( this, "dsError" );
errdel.register( photods , "onerror" );
errdel.register( photods , "ontimeout" );
- </method>
+ </handler>
<method name="dsError">
gError.show();
@@ -179,6 +179,6 @@
<!--
* X_LZ_COPYRIGHT_BEGIN ****************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************-->
Modified: openlaszlo/branches/devildog/lps/components/incubator/lwzCalendar/lwzEncalendar.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/lwzCalendar/lwzEncalendar.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/lwzCalendar/lwzEncalendar.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -7,15 +7,15 @@
height="20">
- <method event="onclick">
+ <handler name="onclick">
<![CDATA[
if( !this.disabled ) {
this.setAttribute('selected', true);
}
]]>
- </method>
- <method event="onselected">
+ </handler>
+ <handler name="onselected">
if( this.selected ) {
selectedview.setAttribute('visible', true );
@@ -23,21 +23,21 @@
selectedview.setAttribute('visible', false );
}
- </method>
- <method event="onmouseover">
+ </handler>
+ <handler name="onmouseover">
<![CDATA[
if( !this.disabled ) {
dateview.setAttribute('visible', true );
}
]]>
- </method>
+ </handler>
- <method event="onmouseout">
+ <handler name="onmouseout">
<![CDATA[
dateview.setAttribute('visible', false );
]]>
- </method>
+ </handler>
<view name="dateview" visible="false" width="${parent.width}" height="${parent.width}" bgcolor="#00ff00"/>
<view name="selectedview" visible="false" width="${parent.width}" height="${parent.width}" bgcolor="#325693"/>
@@ -68,7 +68,7 @@
this.disyear.year.setText( year);
</method>
- <method event="onselecteddate">
+ <handler name="onselecteddate">
if( this.selecteddate != null ) {
this.selected.year.setText( this.selecteddate.getFullYear() );
@@ -84,7 +84,7 @@
this.selected.datavalue.setText(this.selected.year.text+"-"+getmonvalue+"-"+judgeday(selected.mydate.text));
Debug.write(this.selected.datavalue.text);
}
- </method>
+ </handler>
<method name="month2value" args="enmonth">
<![CDATA[
@@ -163,24 +163,24 @@
<view name="disyear" y="150">
<button width="20" height="20">
<![CDATA[<<]]>
- <method event="onclick">
+ <handler name="onclick">
<![CDATA[
for(var i=0; i<12; i++){
classroot.showPreviousMonth();
}
]]>
- </method>
+ </handler>
</button>
<text name="year" resize="true" x="36"/>
<button x="127" width="20" height="20">
<![CDATA[>>]]>
- <method event="onclick">
+ <handler name="onclick">
<![CDATA[
for(var i=0; i<12; i++){
classroot.showNextMonth();
}
]]>
- </method>
+ </handler>
</button>
</view>
@@ -221,6 +221,6 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/lzcombobox_class.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/lzcombobox_class.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/lzcombobox_class.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -110,26 +110,26 @@
<view name="bkgnd" width="100%" clickable="${parent._enabled}">
<attribute name="frnum" value="1"/>
- <method event="onclick">
+ <handler name="onclick">
classroot.toggle()
if (parent['onclick']) parent.onclick.sendEvent();
- </method>
- <method event="onmouseout">
+ </handler>
+ <handler name="onmouseout">
this.showState(1);
if (parent['onmouseout']) parent.onmouseout.sendEvent();
- </method>
- <method event="onmouseup">
+ </handler>
+ <handler name="onmouseup">
this.showState(1);
if (parent['onmouseup']) parent.onmouseup.sendEvent();
- </method>
- <method event="onmouseover">
+ </handler>
+ <handler name="onmouseover">
this.showState(2);
if (parent['onmouseover']) parent.onmouseover.sendEvent();
- </method>
- <method event="onmousedown">
+ </handler>
+ <handler name="onmousedown">
this.showState(3);
if (parent['onmousedown']) parent.onmousedown.sendEvent();
- </method>
+ </handler>
<view name="lft" resource="$style{'leftresource'}" />
<view name="mid" resource="$style{'middleresource'}" stretches="width"/>
<view name="rgt" resource="$style{'rightresource'}" />
@@ -141,9 +141,9 @@
<tooltip text="${classroot.tooltip}"/>
<!--- @keywords private -->
- <method event="onisopen" reference="parent">
+ <handler name="onisopen" reference="parent">
this.showState(this.frnum);
- </method>
+ </handler>
<!-- Sets appearance of combobox by switching frame number of
resource, depending on mouse state, whether list is open, and
@@ -191,7 +191,7 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/lzradio.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/lzradio.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/lzradio.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -14,15 +14,15 @@
<attribute name="text_y"
value="$once{this._rb.height/2 - this._title.height/2}" type="number"/>
- <method event="onselected">
+ <handler name="onselected">
this._rb.setAttribute('statenum', this.selected ? 1 : 0);
- </method>
- <method event="onmouseover">
+ </handler>
+ <handler name="onmouseover">
this._rb.onmouseover.sendEvent();
- </method>
- <method event="onmouseout">
+ </handler>
+ <handler name="onmouseout">
this._rb.onmouseout.sendEvent();
- </method>
+ </handler>
<multistatebutton name="_rb" resource="lzradio_rsrc" text=""
statenum="${parent.selected ? 1 : 0}"
@@ -47,7 +47,7 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/newhscrollbar.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/newhscrollbar.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/newhscrollbar.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -70,9 +70,9 @@
</view>
<stableborderlayout axis="x"/>
- <method event="onothersb">
+ <handler name="onothersb">
this.otherstate.apply();
- </method>
+ </handler>
<state name="otherstate">
<view name="patch" x="${parent.width}" bgcolor="${parent.style.basecolor}"
@@ -107,7 +107,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/opttree/baseopttreenode.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/opttree/baseopttreenode.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/opttree/baseopttreenode.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -26,14 +26,14 @@
<attribute name="startdragdel" value="null"/>
<attribute name="dragging" value="false"/>
- <method event="onmousedown">
+ <handler name="onmousedown">
if ( !this.startdragdel ){
this.startdragdel = new LzDelegate( this, 'startDrag' );
}
LzTimer.resetTimer( startdragdel, startdragdelay);
this._ix = this.getMouse( 'x' );
this._iy = this.getMouse( 'y' );
- </method>
+ </handler>
<attribute name="startdragdelay" value="800"/>
@@ -42,18 +42,18 @@
parent.beginDrag( this , _ix, _iy );
</method>
- <method event="onmouseup">
+ <handler name="onmouseup">
LzTimer.removeTimer( startdragdel );
if ( dragging ){
parent.endDrag( this );
this.setAttribute( "dragging", false );
}
- </method>
+ </handler>
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/opttree/opttree.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/opttree/opttree.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/opttree/opttree.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -99,7 +99,7 @@
baseopttreenode.
@params baseopttreenode who: The baseopttreenode to give the
keyboard highlight to. -->
- <method event="onkeyup" args="k">
+ <handler name="onkeyup" args="k">
var curr = this.highlighted;
if ( !curr ){
@@ -144,7 +144,7 @@
highlighted.doSelected();
}
}
- </method>
+ </handler>
<!--- @keywords private -->
<method name="_findNextClone" args="who, dir">
@@ -366,7 +366,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/opttree/opttreecontroller.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/opttree/opttreecontroller.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/opttree/opttreecontroller.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -16,14 +16,14 @@
value="$once{ new LzDelegate( this, 'checkDocChange' ) }"/>
<!--- @keywords private -->
- <method event="ondata" reference="parent">
+ <handler name="ondata" reference="parent">
//setup listener
this.changeDel.unregisterAll();
this.setAttribute( "rootnode", parent.data );
this.changeDel.register( rootnode.ownerDocument , "onDocumentChange" );
this.rebuildList();
- </method>
+ </handler>
<!--- This method is called whenever the data in the data structure that
backs the opttree changes.
@@ -103,7 +103,7 @@
</method>
</node>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/radioitem.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/radioitem.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/radioitem.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -11,21 +11,21 @@
<!--- @keywords private -->
<attribute name="_inside" value="false" type="boolean"/>
<!--- @keywords private -->
- <method event="onmouseover">
+ <handler name="onmouseover">
this.setAttribute('frame', this.selected ? 3 : 2);
- </method>
+ </handler>
<!--- @keywords private -->
- <method event="onmouseout">
+ <handler name="onmouseout">
this.setAttribute('frame', this.selected ? 3 : 1);
- </method>
+ </handler>
<!--- @keywords private -->
- <method event="onmousin">
+ <handler name="onmousin">
this._inside = true;
- </method>
+ </handler>
<!--- @keywords private -->
- <method event="onmouseup">
+ <handler name="onmouseup">
this.setAttribute('frame', this.selected ? 3 : 1);
- </method>
+ </handler>
<!--- @keywords private -->
<method name="setSelected" args="s">
<![CDATA[
@@ -37,15 +37,15 @@
]]>
</method>
<!--- @keywords private -->
- <method event="onmousedown">
+ <handler name="onmousedown">
this.setAttribute('frame', 3);
- </method>
+ </handler>
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/rich-text/baserichedittext.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/rich-text/baserichedittext.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/rich-text/baserichedittext.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -23,21 +23,21 @@
<!--- Sent if whenever the focus moves into _internalinputtext.
@param Object s: view that is losing focus -->
- <method event="onfocus" args="s">
+ <handler name="onfocus" args="s">
if (parent['onfocus']) parent.onfocus.sendEvent(s);
- </method>
+ </handler>
<!--- Sent if whenever the focus moves out of _internalinputtext.
@param Object s: view that is gaining focus -->
- <method event="onblur" args="s">
+ <handler name="onblur" args="s">
if (parent['onblur']) parent.onblur.sendEvent(s);
- </method>
+ </handler>
<!--- Sent whenever a user enters a valid new character. -->
- <method event="ontext" name="doOnText">
+ <handler name="ontext" name="doOnText">
if (! this.ignorecallup) {
parent.setValue(this.getText(),false,true);
}
this.ignorecallup = false;
- </method>
+ </handler>
<!--- Get focus bracket for _internalinputtext to be the dimensions of
baseedittext.
@keywords private -->
@@ -136,7 +136,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2007, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/rich-text/colorsquare.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/rich-text/colorsquare.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/rich-text/colorsquare.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -9,15 +9,15 @@
<!--- default set to false - whether to draw the swatch -->
<attribute name="drawsquare" value="false"/>
<!--- @keywords private -->
- <method event="oninit">
+ <handler name="oninit">
this.redraw();
- </method>
-
+ </handler>
+
<!--- update handler -->
- <method event="onswatchcolor">
+ <handler name="onswatchcolor">
this.redraw();
- </method>
-
+ </handler>
+
<!--- draw and color the swatch -->
<method name="redraw"><![CDATA[
this.clear();
@@ -55,7 +55,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2005-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2005-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/rich-text/formatbtn.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/rich-text/formatbtn.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/rich-text/formatbtn.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -62,7 +62,7 @@
Called when the user clicks the button. Asks the editor to apply the
format.
@keywords private -->
- <method event="onclick" name="doClick">
+ <handler name="onclick" name="doClick">
// toggle it
this.setActive(!this.isactive);
@@ -74,13 +74,13 @@
// Unlike the combo boxes, buttons aren't focusable, so we can just
// restore the selection in the same frame. No need for a delegate [ben 9.21.05]
this.editor._restoreSelection();
- </method>
+ </handler>
<!--- @keywords private -->
- <method event="onmouseover">
+ <handler name="onmouseover">
this.editor.saveSelectionRegion();
- </method>
-
+ </handler>
+
<method name="getValue">
return isactive;
</method>
@@ -99,7 +99,7 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/rich-text/formatfontcolor.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/rich-text/formatfontcolor.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/rich-text/formatfontcolor.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -52,10 +52,10 @@
Fixes LPP-4461: In rich text editor, font color combo box does
not update when cursor moves to different colored text
[bshine 08.09.2007] -->
- <method event="oneditor" args="e">
+ <handler name="oneditor" args="e">
this.setValue(this.editor.defaultfontcolor, true);
this.csq.setColor(this.editor.defaultfontcolor);
- </method>
+ </handler>
<!--- @keywords private
apply state for late instantiation of local data -->
@@ -65,7 +65,7 @@
<!--- When the user selects an item from the combo box,
create an object representing just the change in format.
Give that object to the editor. -->
- <method event="onselect"><![CDATA[
+ <handler name="onselect"><![CDATA[
var color = this.value;
this.csq.setColor(color);
@@ -79,7 +79,7 @@
this.editor.delegateRestoreSelection();
}
]]>
- </method>
+ </handler>
<!--- method broadcast out by the toolbar for clearing tool's state -->
<method name="reset">
@@ -92,9 +92,9 @@
</method>
<!-- Save the selection region before another widget gets focus. -->
- <method event="onmouseover">
+ <handler name="onmouseover">
this.editor.saveSelectionRegion();
- </method>
+ </handler>
<colorsquare x="11" y="3" name="csq" drawsquare="true">
<method name="setColor" args="color">
this.setVisible( color != null );
@@ -108,7 +108,7 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2005-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2005-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
-<!-- @LZX_VERSION@ -->
\ No newline at end of file
+<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/rich-text/formatfontface.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/rich-text/formatfontface.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/rich-text/formatfontface.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -46,7 +46,7 @@
<!--- When the user selects an item from the combo box,
create an object representing just the change in format.
Give that object to the editor. -->
- <method event="onselect"><![CDATA[
+ <handler name="onselect"><![CDATA[
this.setChanged(true); // fix bug LPP-4556, Rich text: Can't change font back to Verdana
//------------------------------------------------------------
// make sure that we call into editor if this combobox has
@@ -57,7 +57,7 @@
this.editor.delegateRestoreSelection();
}
]]>
- </method>
+ </handler>
<!--- method broadcast out by the toolbar for clearing tool's state -->
<method name="reset">
@@ -70,15 +70,15 @@
</method>
<!--- Save the selection region before another widget gets focus. -->
- <method event="onmouseover">
+ <handler name="onmouseover">
this.editor.saveSelectionRegion();
- </method>
+ </handler>
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2005-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2005-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/rich-text/formatremovebtn.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/rich-text/formatremovebtn.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/rich-text/formatremovebtn.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -10,7 +10,8 @@
Called when the user clicks the button. Asks the editor to reset the formatting
of the selection.
@keywords private -->
- <method event="onclick" name="doClick">
+ <handler name="onclick" method="doClick" />
+ <method name="doClick">
// Debug.write("unformat");
if (this.toolbar._passthruchanges) {
this.editor._resetFormatToDefaults();
@@ -20,13 +21,13 @@
</method>
<!--- @keywords private -->
- <method event="onmouseover">
+ <handler name="onmouseover">
this.editor.saveSelectionRegion();
- </method>
+ </handler>
</stylishbutton>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2005 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2005, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
-<!-- @LZX_VERSION@ -->
\ No newline at end of file
+<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/rich-text/radioformatbtn.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/rich-text/radioformatbtn.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/rich-text/radioformatbtn.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -10,25 +10,25 @@
<attribute name="toolbar" value="$once{this.parent.parent}" />
<attribute name="editor" value="$once{this.parent.parent.editor}" />
- <method event="onmouseover">
+ <handler name="onmouseover">
this.editor.saveSelectionRegion();
if (parent['onmouseover']) parent.onmouseover.sendEvent();
- </method>
+ </handler>
- <method event="onselect">
+ <handler name="onselect">
if (this.isinited) {
var color = ( this.selected ? this.style.flag1 : this.style.flag0 );
if (this['left']) this.setTint(this.left, color);
if (this['middle']) this.setTint(this.middle, color);
if (this['right']) this.setTint(this.right, color);
}
- </method>
+ </handler>
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/rich-text/richtexteditarea.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/rich-text/richtexteditarea.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/rich-text/richtexteditarea.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -183,7 +183,7 @@
<!--- When a cursor movement key is released, handle the caret motion.
@param number kc: keycode
-->
- <method event="onkeyup" args="kc" reference="this._field">
+ <handler name="onkeyup" args="kc" reference="this._field">
if (isHTML) {
switch (kc) {
case 8: // backspace key
@@ -201,7 +201,7 @@
break;
}
}
- </method>
+ </handler>
<!--- When the editor receives focus, we need to make both formats match:
@@ -213,7 +213,7 @@
else (there is a selection)
Make the toolbar match the format of the selected text
-->
- <method event="onfocus"><![CDATA[
+ <handler name="onfocus"><![CDATA[
this._fieldhasfocus = true;
if (this._containsOnlyWhitespace()) {
this.clearText(true);
@@ -248,14 +248,14 @@
delegateInitSelection();
}
}
- ]]></method>
+ ]]></handler>
<!--- If the mouse down is over me or any of my children, remember that,
so we can listen for an onmouseup anywhere. A mouseup after a mousedown
indicates that the selection has changed.
@param view who: the element being moused down on
-->
- <method event="onmousedown" reference="LzGlobalMouse" args="who"><![CDATA[
+ <handler name="onmousedown" reference="LzGlobalMouse" args="who"><![CDATA[
if ((who != null) && (this._containsView(who))) {
// the mouse went down on a child of me
// Debug.info("mousedown on child of me, this is %w, who is %#w", this, who);
@@ -270,7 +270,7 @@
this._mousedownorigin = null;
}
]]>
- </method>
+ </handler>
<!--- Listen for global mouse up.
@@ -279,7 +279,7 @@
is there a mousedown/mouseup pair in progress?
@param view who: the current mousedown element (ben shine)
-->
- <method event="onmouseup" reference="LzGlobalMouse" args="who"><![CDATA[
+ <handler name="onmouseup" reference="LzGlobalMouse" args="who"><![CDATA[
if (this._fieldhasfocus) {
// Debug.write("onmouseup, field has focus, who is ", who);
@@ -315,7 +315,7 @@
// Clear the mousedown attribute; a mouseup means that whatever
// the mousedown was, it's gone now.
this._mousedownorigin = null;
- ]]></method>
+ ]]></handler>
<!--- Save selected region. -->
@@ -617,7 +617,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2005-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2005-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/rich-text/richtexttoolbar-class.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/rich-text/richtexttoolbar-class.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/rich-text/richtexttoolbar-class.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -53,11 +53,11 @@
_passthruchanges flag avoids an infinite loop
@param textformat fmt: TextFormat object
-->
- <method event="oncurrentformat" reference="this.editor" args="fmt">
+ <handler name="oncurrentformat" reference="this.editor" args="fmt">
this._passthruchanges = false;
this.matchformat(fmt);
this._passthruchanges = true;
- </method>
+ </handler>
<!--- Update the GUI to match the format passed in
@param textformat spec: TextFormat object-->
@@ -108,7 +108,7 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2005-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2005-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
-<!-- @LZX_VERSION@ -->
\ No newline at end of file
+<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/rich-text/scrollrichedittext.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/rich-text/scrollrichedittext.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/rich-text/scrollrichedittext.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -107,9 +107,9 @@
}
</method>
- <method event="onscroll">
+ <handler name="onscroll">
this.setPos(-this.lineheight * (this.scroll - 1), true);
- </method>
+ </handler>
</_richinternalinputtext>
<!--- Overrides a parent method which calculates y position for text
@@ -128,7 +128,7 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2005-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2005-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/rich-text/test/formatfontsize.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/rich-text/test/formatfontsize.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/rich-text/test/formatfontsize.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -86,7 +86,7 @@
<!--- @keywords private -->
- <method event="onselect"><![CDATA[
+ <handler name="onselect"><![CDATA[
this.setChanged(true);
//------------------------------------------------------------
@@ -105,14 +105,14 @@
}
]]>
- </method>
+ </handler>
<!-- When we get an editor to hook up to, make this menu's value
match up to the default font of the editor. -->
- <method event="oneditor" args="e">
+ <handler name="oneditor" args="e">
this.setValue(this.editor.defaultfontsize, true);
- </method>
+ </handler>
<!--- method broadcast out by the toolbar for clearing tool's state -->
@@ -137,11 +137,11 @@
<!-- Save the selection region before another widget gets focus. -->
- <method event="onmouseover">
+ <handler name="onmouseover">
this.editor.saveSelectionRegion();
- </method>
+ </handler>
@@ -154,7 +154,7 @@
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2005-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2005-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/rich-text/test/linkdialog-driver.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/rich-text/test/linkdialog-driver.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/rich-text/test/linkdialog-driver.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -39,16 +39,16 @@
defaultfontcolor="0x336699"
border="10" text="For reasons which many persons thought ridiculous, Mrs. Lightfoot Lee decided to pass the winter in Washington. She was in excellent health, but she said that the climate would do her good. In New York she had troops of friends, but she suddenly became eager to see again the very small number of those who lived on the Potomac. It was only to her closest intimates that she honestly acknowledged herself to be tortured by ennui. Since her husband's death, five years before, she had lost her taste for New York society; she had felt no interest in the price of stocks, and very little in the men who dealt in them; she had become serious. What was it all worth, this wilderness of men and women as monotonous as the brown stone houses they lived in? In her despair she had resorted to desperate measures. She had read philosophy in the original German, and the more she read, the more she was disheartened that so much culture should lead to nothing... nothing.">
- <method event="oninit">
+ <handler name="oninit">
this.setLinkPanel(ldlg);
- </method>
+ </handler>
</richtexteditarea>
</view>
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2007, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/rich-text/test/linkdialog-test.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/rich-text/test/linkdialog-test.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/rich-text/test/linkdialog-test.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -40,10 +40,10 @@
defaultfontcolor="0x336699"
border="10" text="For reasons which many persons thought ridiculous, Mrs. Lightfoot Lee decided to pass the winter in Washington. She was in excellent health, but she said that the climate would do her good. In New York she had troops of friends, but she suddenly became eager to see again the very small number of those who lived on the Potomac. It was only to her closest intimates that she honestly acknowledged herself to be tortured by ennui. Since her husband's death, five years before, she had lost her taste for New York society; she had felt no interest in the price of stocks, and very little in the men who dealt in them; she had become serious. What was it all worth, this wilderness of men and women as monotonous as the brown stone houses they lived in? In her despair she had resorted to desperate measures. She had read philosophy in the original German, and the more she read, the more she was disheartened that so much culture should lead to nothing... nothing.">
- <method event="oninit">
+ <handler name="oninit">
this.setLinkPanel(ldlg);
linkbtn.setAttribute("editor", this);
- </method>
+ </handler>
</richtexteditarea>
</view>
@@ -119,7 +119,7 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
- * Copyright 2006-2007 Laszlo Systems, Inc. All Rights Reserved. *
+ * Copyright 2006-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/rich-text/test/test-lzcombobox.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/rich-text/test/test-lzcombobox.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/rich-text/test/test-lzcombobox.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -44,11 +44,11 @@
<!--- When the user selects an item from the combo box,
create an object representing just the change in format.
Give that object to the editor. -->
- <method event="onselect"><![CDATA[
+ <handler name="onselect"><![CDATA[
var color = this.value;
this.csq.setColor(color);
]]>
- </method>
+ </handler>
<colorsquare x="11" y="3" name="csq" drawsquare="true">
<method name="setColor" args="color">
@@ -159,4 +159,4 @@
</TestCase>
</TestSuite>
</canvas>
-<!-- Copyright 2007 Laszlo Systems -->
\ No newline at end of file
+<!-- Copyright 2007, 2008 Laszlo Systems -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/roundrectbutton.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/roundrectbutton.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/roundrectbutton.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,5 +1,5 @@
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2005-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2005-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
@@ -45,11 +45,11 @@
text="${classroot.text}"
/>
- <method event="onmouseover">
+ <handler name="onmouseover">
_rr.setAttribute("backgroundStartColor", this.overStartColor);
_rr.setAttribute("backgroundStopColor", this.overStopColor);
_rr.drawStructure();
- </method>
+ </handler>
<!--- @keywords private -->
<method name="_applystyle" args="s">
@@ -74,38 +74,38 @@
_rr.drawStructure();
</method>
- <method event="onmouseup">
+ <handler name="onmouseup">
_rr.setAttribute("backgroundStartColor", this.overStartColor);
_rr.setAttribute("backgroundStopColor", this.overStopColor);
_rr.drawStructure();
- </method>
+ </handler>
- <method event="onmouseout">
+ <handler name="onmouseout">
_rr.setAttribute("backgroundStartColor", this.upStartColor);
_rr.setAttribute("backgroundStopColor", this.upStopColor);
_rr.drawStructure();
- </method>
+ </handler>
- <method event="onmousedown">
+ <handler name="onmousedown">
_rr.setAttribute("backgroundStartColor", this.downStartColor);
_rr.setAttribute("backgroundStopColor", this.downStopColor);
_rr.drawStructure();
- </method>
+ </handler>
- <method event="onwidth">
+ <handler name="onwidth">
if (!this['_rr']) return; // ignore these events if the roundrect
// itself hasn't been built yet
_rr.setWidth(this.width);
_rr.drawStructure();
- </method>
+ </handler>
- <method event="onheight">
+ <handler name="onheight">
if (!this['_rr']) return; // ignore these events if the roundrect
// itself hasn't been built yet
_rr.setHeight(this.height);
_rr.drawStructure();
- </method>
+ </handler>
Modified: openlaszlo/branches/devildog/lps/components/incubator/simpledefaultlist.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/simpledefaultlist.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/simpledefaultlist.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -35,7 +35,7 @@
data is received -->
<attribute name="autoselectdefault" value="true" />
- <method event="ondata" args="d">
+ <handler name="ondata" args="d">
<![CDATA[
//Debug.write( "ondata event", d);
@@ -44,7 +44,7 @@
]]>
- </method>
+ </handler>
<!--- keywords @private -->
<method name="handleDataChange">
@@ -153,7 +153,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/stepper.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/stepper.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/stepper.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,5 +1,5 @@
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2005-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2005-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
@@ -117,11 +117,11 @@
onclick="classroot.numberView.numericValue.increment()">
- <method event="onmousestilldown">
+ <handler name="onmousestilldown">
classroot.numberView.numericValue.increment();
- </method>
+ </handler>
</basebuttonrepeater>
@@ -129,11 +129,11 @@
onclick="classroot.numberView.numericValue.decrement()">
- <method event="onmousestilldown">
+ <handler name="onmousestilldown">
classroot.numberView.numericValue.decrement();
- </method>
+ </handler>
</basebuttonrepeater>
Modified: openlaszlo/branches/devildog/lps/components/incubator/test/draglib-test.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/test/draglib-test.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/test/draglib-test.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,5 +1,5 @@
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2005-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2005-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
@@ -19,30 +19,30 @@
LzTrack.register(this, 'target');
</method>
- <method event="onmousetrackover">
+ <handler name="onmousetrackover">
setAttribute('bgcolor', 0xffff00); // hilite
- </method>
- <method event="onmousetrackout">
+ </handler>
+ <handler name="onmousetrackout">
setAttribute('bgcolor', null); // normal
- </method>
- <method event="onmousetrackup">
+ </handler>
+ <handler name="onmousetrackup">
setAttribute('bgcolor', null); // normal
canvas.dragimage.dropcomplete(this);
Debug.write('dropped: '+dragimage.source.text);
- </method>
+ </handler>
</class>
<class name="dragger" >
<attribute name="text" type="text"/>
<view width="10" height="10" bgcolor="green"/>
<text x="15" text="${parent.text}" resize="true"/>
- <method event="onmousedown">
+ <handler name="onmousedown">
checkdrag.apply();
- </method>
- <method event="onmouseup">
+ </handler>
+ <handler name="onmouseup">
canvas.dragimage.stopdrag(this);
checkdrag.remove();
- </method>
+ </handler>
<checkdragstate name="checkdrag" draggername="dragimage"/>
</class>
Modified: openlaszlo/branches/devildog/lps/components/incubator/test/fisheye/test_fisheye.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/test/fisheye/test_fisheye.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/test/fisheye/test_fisheye.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -10,24 +10,24 @@
<fisheye width="100%" height="100%">
<fisheye_item icon="csv">
Tooltip1
- <method event="onclick">
+ <handler name="onclick">
Debug.write("Clicked CSV");
- </method>
+ </handler>
</fisheye_item>
<fisheye_item icon="db">
tooltip2
- <method event="onclick">
+ <handler name="onclick">
Debug.write("Clicked DB");
- </method>
+ </handler>
</fisheye_item>
<fisheye_item icon="buckets">
tooltip3
- <method event="onclick">
+ <handler name="onclick">
Debug.write("Clicked Buckets");
- </method>
+ </handler>
</fisheye_item>
</fisheye>
@@ -36,6 +36,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/test/libflickr-test.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/test/libflickr-test.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/test/libflickr-test.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -16,9 +16,9 @@
<button onclick="gFlickr.getRecent(canvas.myapikey)">recent</button>
<button onclick="gFlickr.getInteresting(canvas.myapikey)">interesting</button>
<edittext name="tagQuery" text="special">
- <method event="onkeyup" args="kc">
+ <handler name="onkeyup" args="kc">
if (kc == 13) gFlickr.searchWithTags(this.getValue(),canvas.myapikey);
- </method>
+ </handler>
</edittext>
</view>
@@ -28,12 +28,12 @@
<wrappinglayout axis="x" spacing="5" />
<photo datapath="photods:/rsp/photos/photo[1-24]">
- <method event="onmouseover">
+ <handler name="onmouseover">
gFloater.animate("x", this.x + 10, 500);
gFloater.animate("y", this.y + parent.y + this.height - 10, 500);
gFloater.titlelabel.setText( "t: " + this.datapath.xpathQuery('@title'));
gFloater.ownerlabel.setText( "o: " + this.datapath.xpathQuery('@ownername'));
- </method>
+ </handler>
</photo>
</view>
@@ -55,6 +55,6 @@
<!--
* X_LZ_COPYRIGHT_BEGIN ****************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************-->
Modified: openlaszlo/branches/devildog/lps/components/incubator/test/lzcombobox-test.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/test/lzcombobox-test.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/test/lzcombobox-test.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,5 +1,5 @@
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2005-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2005-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
@@ -23,17 +23,17 @@
</dataset>
<lzcombobox width="80" shownitems="3" itemdatapath="dsHours:/item">
- <method event="onselect" args="dptr">
+ <handler name="onselect" args="dptr">
Debug.write('value:', this.value);
Debug.write('datapointer:', dptr);
- </method>
+ </handler>
</lzcombobox>
<lzeditcombobox width="80" shownitems="3" itemdatapath="dsHours:/item">
- <method event="onselect" args="dptr">
+ <handler name="onselect" args="dptr">
Debug.write('value:', this.value);
Debug.write('datapointer:', dptr);
- </method>
+ </handler>
</lzeditcombobox>
<simplelayout axis="y" spacing="6"/>
Modified: openlaszlo/branches/devildog/lps/components/incubator/test/opttree/test.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/test/opttree/test.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/test/opttree/test.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -5,9 +5,9 @@
<include href="incubator/opttree/opttree.lzx"/>
<include href="treenode.lzx"/>
- <method event="oninit">
+ <handler name="oninit">
gDataMan.loadAdditionalTreeData( dsTreeData.getFirstChild() );
- </method>
+ </handler>
<window title="fast tree" width="300" height="400" resizable="true">
<simplelayout spacing="10"/>
@@ -37,7 +37,7 @@
</window>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/test/opttree/treenode.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/test/opttree/treenode.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/test/opttree/treenode.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -13,25 +13,25 @@
<text name="label" x="22" datapath="@name"/>
- <method event="onmouseover">
+ <handler name="onmouseover">
this.setAttribute( "mousein", true );
- </method>
+ </handler>
- <method event="onmouseout">
+ <handler name="onmouseout">
this.setAttribute( "mousein", false );
- </method>
+ </handler>
<method name="setSelected" args="s">
label.setAttribute( "fgcolor", s ? red : black );
</method>
- <method event="onclick">
+ <handler name="onclick">
<![CDATA[
parent.setOpen( datapath.p, !open );
]]>
- </method>
+ </handler>
- <method event="onopen">
+ <handler name="onopen">
<![CDATA[
if ( !open ) return;
var p = datapath.p;
@@ -42,12 +42,12 @@
gDataMan.loadAdditionalTreeData( p );
}
]]>
- </method>
+ </handler>
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/test/test-edittext.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/test/test-edittext.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/test/test-edittext.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -19,33 +19,33 @@
</dataset>
<lzedittext id="et1" pattern="[0-9]*" maxlength="2" width="35">
- <method event="onchanged">
+ <handler name="onchanged">
Debug.write('onchanged', this, this.changed);
- </method>
+ </handler>
</lzedittext>
<lzedittext id="et2">
- <method event="onvalue">
+ <handler name="onvalue">
Debug.write('onvalue', this, this.value);
- </method>
- <method event="onchanged">
+ </handler>
+ <handler name="onchanged">
Debug.write('onchanged', this, this.changed);
- </method>
+ </handler>
</lzedittext>
<lzedittext id="et3" password="true">
- <method event="onchanged">
+ <handler name="onchanged">
Debug.write('onchanged', this, this.changed);
- </method>
+ </handler>
</lzedittext>
<lzedittext id="et4" datapath="mydset:/value/@text">
- <method event="onvalue">
+ <handler name="onvalue">
Debug.write('onvalue', this, this.value);
- </method>
- <method event="onchanged">
+ </handler>
+ <handler name="onchanged">
Debug.write('onchanged', this, this.changed);
- </method>
+ </handler>
</lzedittext>
<text>multiline lzedittext</text>
@@ -65,7 +65,7 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/test/test-lwzEncalendar.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/test/test-lwzEncalendar.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/test/test-lwzEncalendar.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -2,7 +2,7 @@
<include href="lwzEncalendar.lzx"/>
<view name="calendarcontainer" x="10" y="10">
<lwzendatepicker name="datepicker" x="2">
- <method event="oninit">
+ <handler name="oninit">
var dayobj = new Date();
//新建每月的1号的日期对象
var dayone = new Date(dayobj.getFullYear(),dayobj.getMonth(),1);
@@ -24,11 +24,11 @@
this.focusOnDay(currweek,dayobj.getDay());
this.selectFocusDay();
- </method>
+ </handler>
</lwzendatepicker>
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/test/test-newcheckbox.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/test/test-newcheckbox.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/test/test-newcheckbox.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -13,50 +13,50 @@
<baseform id="myform" x="20" y="20" layout="spacing:3">
<newcheckbox id="c1" value="true">
- <method event="onvalue">
+ <handler name="onvalue">
Debug.write('c1 value', this.value);
- </method>
- <method event="onchanged">
+ </handler>
+ <handler name="onchanged">
Debug.write('c1 changed', this.changed);
- </method>
+ </handler>
</newcheckbox>
<newcheckbox id="c2" value="false">
- <method event="onvalue">
+ <handler name="onvalue">
Debug.write('c2 value', this.value);
- </method>
- <method event="onchanged">
+ </handler>
+ <handler name="onchanged">
Debug.write('c2 changed', this.changed);
- </method>
+ </handler>
</newcheckbox>
<newcheckbox id="c3" datapath="mydset:/value[1]/text()">
- <method event="onvalue">
+ <handler name="onvalue">
Debug.write('c3 value', this.value);
- </method>
- <method event="onchanged">
+ </handler>
+ <handler name="onchanged">
Debug.write('c3 changed', this.changed);
- </method>
+ </handler>
</newcheckbox>
<newcheckbox id="c4" datapath="mydset:/value[2]/text()">
- <method event="onvalue">
+ <handler name="onvalue">
Debug.write('c4 value', this.value);
- </method>
- <method event="onchanged">
+ </handler>
+ <handler name="onchanged">
Debug.write('c4 changed', this.changed);
- </method>
+ </handler>
</newcheckbox>
- <method event="onchanged" args="changed">
+ <handler name="onchanged" args="changed">
Debug.write('myform changed', this.changed, changed);
- </method>
+ </handler>
</baseform>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/test/timevalidatorTest.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/test/timevalidatorTest.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/test/timevalidatorTest.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -15,7 +15,7 @@
<button name="btnok" text="OK" enabled="false" onclick="setAttribute('text', 'Form Valid!')" />
- <method event="onerrorcount" args="val">
+ <handler name="onerrorcount" args="val">
<![CDATA[
Debug.write("error changed:" + val);
if(0 < val)
@@ -23,11 +23,11 @@
else
this.btnok.setAttribute("enabled", true);
]]>
- </method>
+ </handler>
</validatingForm>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/test/tooltipmanager-test.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/test/tooltipmanager-test.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/test/tooltipmanager-test.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,5 +1,5 @@
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2005-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2005-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
@@ -41,9 +41,9 @@
<view bgcolor="black" x="0" height="${parent.height}" width="1"/>
<view bgcolor="black" x="${parent.width-1}" height="${parent.height}" width="1"/>
- <method event="ontext">
+ <handler name="ontext">
theText.setAttribute("text",this.getAttribute("text"));
- </method>
+ </handler>
<text name="theText" resize="true" text="${parent.getAttribute('text')}" x="1" y="1"/>
</view>
@@ -121,4 +121,4 @@
-</canvas>
\ No newline at end of file
+</canvas>
Modified: openlaszlo/branches/devildog/lps/components/incubator/test/validator_test.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/test/validator_test.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/test/validator_test.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -50,7 +50,7 @@
<button name="btnok" text="OK" enabled="false" onclick="setAttribute('text', 'Form Valid!')" />
- <method event="onerrorcount" args="val">
+ <handler name="onerrorcount" args="val">
<![CDATA[
Debug.write("error changed:" + val);
if(0 < val)
@@ -58,11 +58,11 @@
else
this.btnok.setAttribute("enabled", true);
]]>
- </method>
+ </handler>
</validatingForm>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/tooltip/tooltip.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/tooltip/tooltip.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/tooltip/tooltip.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -41,11 +41,11 @@
<attribute name="tipalign" value="" type="string" />
<!--- @keywords private -->
- <method event="oninit">
+ <handler name="oninit">
this.overdel = new LzDelegate(this, "startCheck",parent,"onmouseover");
this.outdel = new LzDelegate(this, "hideTip",parent,"onmouseout");
this.outdel.register(parent, "onclick");
- </method>
+ </handler>
<!--- @keywords private -->
<method name="startCheck">
@@ -118,7 +118,7 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/tooltipmanager.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/tooltipmanager.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/tooltipmanager.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,5 +1,5 @@
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2005-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2005-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
@@ -33,7 +33,7 @@
<!--- @access private -->
<attribute name="messageMap" value="[]" />
- <method event="ondata"><![CDATA[
+ <handler name="ondata"><![CDATA[
var xpath = datapath.xpath+"/"+this.getAttribute("messages");
var messages = datapath.xpathQuery(xpath);
var dict = [];
@@ -45,17 +45,17 @@
}
this.setAttribute("messageMap",dict);
]]>
- </method>
-
- <method event="oninit">
+ </handler>
+
+ <handler name="oninit">
var tooltip = this.getAttribute("tooltip_obj");
if(tooltip == undefined || tooltip == null) {
tooltip = new basetooltip(canvas);
this.setAttribute("tooltip_obj",tooltip);
}
tooltip.setAttribute("opacity",0);
- </method>
-
+ </handler>
+
<method name="createChildren" args="carr">
canvas.createChildren(carr);
</method>
@@ -157,9 +157,9 @@
<view bgcolor="black" x="0" height="${parent.height}" width="1"/>
<view bgcolor="black" x="${parent.width-1}" height="${parent.height}" width="1"/>
- <method event="ontext">
+ <handler name="ontext">
theText.setAttribute("text",this.getAttribute("text"));
- </method>
+ </handler>
<text name="theText" resize="true" text="${parent.getAttribute('text')}" x="1" y="1"/>
</class>
Modified: openlaszlo/branches/devildog/lps/components/incubator/ulink.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/ulink.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/ulink.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,5 +1,5 @@
<!---
- @copyright 2005-2007 Laszlo Systems, Inc. All Rights Reserved.
+ @copyright 2005-2008 Laszlo Systems, Inc. All Rights Reserved.
Use is subject to license terms.
@topic Incubator
@subtopic Components
@@ -34,20 +34,20 @@
<!--- Where the target opens. See LzBrowser.loadURL for
a list of values. -->
<attribute name="target" type="string" value="_new"/>
-
- <method event="onmouseover">
+
+ <handler name="onmouseover">
label.setAttribute('fgcolor', this.hoverColor);
label.setText(makeTags(this.hoverTags)+this.text);
- </method>
-
+ </handler>
+
<method event ="onmouseout">
label.setAttribute('fgcolor', this.color);
label.setText(this.text);
</method>
-
- <method event="onclick">
+
+ <handler name="onclick">
LzBrowser.loadURL(this.href, this.target)
- </method>
+ </handler>
<method name="makeTags" args="tags"><![CDATA[
if (tags.split('<').length > 1) return tags;
Modified: openlaszlo/branches/devildog/lps/components/incubator/uploader/example/test-fileupload.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/uploader/example/test-fileupload.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/uploader/example/test-fileupload.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,5 +1,5 @@
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2007, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<canvas debug="true">
@@ -36,18 +36,18 @@
<edittext x="10" y="10" width="200" name="txtFile" enabled="false"/>
<button x="220" y="11" text="Browse...">
- <method event="onclick"><![CDATA[
+ <handler name="onclick"><![CDATA[
parent.myFileUpload.browse();
canvas.main.progressBar.setValue(0);
]]>
- </method>
+ </handler>
</button>
<button name="upload" x="310" y="11" text="Upload" enabled="false">
- <method event="onclick"><![CDATA[
+ <handler name="onclick"><![CDATA[
parent.myFileUpload.upload('upload.jsp');
]]>
- </method>
+ </handler>
</button>
<view name="progressBar" x="11" y="51" width="363" height="16" bgcolor="#666666">
Modified: openlaszlo/branches/devildog/lps/components/incubator/uploader/example/test-multiplefileupload.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/uploader/example/test-multiplefileupload.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/uploader/example/test-multiplefileupload.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,5 +1,5 @@
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2007, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<canvas debug="true">
@@ -12,12 +12,12 @@
<window title="Test Window" x="540" y="10" width="250" height="350">
- <method event="oncomplete" reference="mul">
+ <handler name="oncomplete" reference="mul">
Debug.write("EVENT: oncomplete, All files have been uploaded completely or no error occured!!");
- </method>
- <method event="onincomplete" reference="mul">
+ </handler>
+ <handler name="onincomplete" reference="mul">
Debug.write("EVENT: onincomplete, At least one error occured!!");
- </method>
+ </handler>
<constantlayout axis="x" value="10"/>
<simplelayout spacing="10"/><view height="15"/>
<button onclick="mul.addField()" text="add fields"/>
Modified: openlaszlo/branches/devildog/lps/components/incubator/uploader/fileupload.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/uploader/fileupload.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/uploader/fileupload.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -3,7 +3,7 @@
@subtopic Components
-->
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2007, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<library>
@@ -22,11 +22,11 @@
<!--- Enable upload. True to enable uploading, false to disable uploading. -->
<attribute name="uploadenable" value="false" type="boolean"/>
- <method event="oninit" args="invoker">
+ <handler name="oninit" args="invoker">
<![CDATA[
fileref.addListener(invoker);
]]>
- </method>
+ </handler>
<method name="browse">
<![CDATA[
Modified: openlaszlo/branches/devildog/lps/components/incubator/uploader/fileuploadlist.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/uploader/fileuploadlist.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/uploader/fileuploadlist.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,5 +1,5 @@
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2007, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<library>
@@ -92,17 +92,17 @@
<!--- Button for browsing file -->
<button name="browse" text="Browse...">
- <method event="onclick"><![CDATA[
+ <handler name="onclick"><![CDATA[
parent.myFileUpload.browse();
parent.myFileUpload.setAttribute('uploadenable',true);
parent.remove.setAttribute('enabled',true);
]]>
- </method>
+ </handler>
</button>
<!--- Button for clearing file list -->
<button name="remove" text="Clear" enabled="false">
- <method event="onclick"><![CDATA[
+ <handler name="onclick"><![CDATA[
parent.myFileUpload.setAttribute('uploadenable',false);
this.setAttribute('enabled',false);
parent.txtFile.setText('');
@@ -110,7 +110,7 @@
parent.setAttribute('erroroccured', false);
parent.setAttribute('selected', false);
]]>
- </method>
+ </handler>
</button>
<!--- progress bar -->
@@ -149,4 +149,4 @@
</doc>
</class>
-</library>
\ No newline at end of file
+</library>
Modified: openlaszlo/branches/devildog/lps/components/incubator/validators/validatingForm.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/validators/validatingForm.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/validators/validatingForm.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -19,7 +19,8 @@
<attribute name="validators" />
<attribute name="errorcount" type="number" value="0" />
- <method name="classinit" event="oninit" >
+ <handler name="oninit" method="classinit" />
+ <method name="classinit">
this.errors = new Array();
this.validators = new Array();
recursive(this);
@@ -73,7 +74,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2007, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/incubator/vslider.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/incubator/vslider.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/incubator/vslider.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!-- X_LZ_COPYRIGHT_BEGIN ************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ************************************************** -->
<!--
@@ -26,10 +26,10 @@
<attribute name="drag_min" value="0" type="number" />
<attribute name="showvalue" type="boolean" value="true" />
<attribute name="drag_max" value="0" type="number" />
- <method event="oninit">
+ <handler name="oninit">
//Setting the initVal
this.setY(getPosFromValue(this.parent.initvalue));
- </method>
+ </handler>
<method name="getValueFromPos">
var delta1 = this.parent.maxvalue-this.parent.minvalue;
Modified: openlaszlo/branches/devildog/lps/components/lz/gridtext.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/lz/gridtext.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/lz/gridtext.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -73,7 +73,7 @@
classroot._textcolor)}"
datapath="$once{parent.parent.rowdp}">
- <method event="oninit">
+ <handler name="oninit">
<![CDATA[
this.setAttribute('selectable', classroot.selectable);
var f = function() {
@@ -82,14 +82,14 @@
var d = [this, "width"];
this.applyConstraint("x", f, d);
]]>
- </method>
+ </handler>
- <method event="ontext" args="val">
+ <handler name="ontext" args="val">
<![CDATA[
this.setAttribute("x", this._calcX());
]]>
- </method>
+ </handler>
<method name="_calcX">
<![CDATA[
@@ -181,7 +181,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/lz/hscrollbar.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/lz/hscrollbar.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/lz/hscrollbar.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -17,8 +17,10 @@
the bgcolor of its closest parent that has a bgcolor defined. -->
<attribute name="disabledbgcolor" value="null"/>
+ <handler name="oninit" reference="canvas" method="_showEnabled" />
<!--- @keywords private -->
- <method name="_showEnabled" event="oninit" reference="canvas"> <![CDATA[
+ <method name="_showEnabled">
+ <![CDATA[
if (!_enabled) {
var newbgcolor = this.disabledbgcolor;
if (newbgcolor == null) {
@@ -152,7 +154,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/lz/scrollbar.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/lz/scrollbar.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/lz/scrollbar.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -17,8 +17,10 @@
the bgcolor of its closest parent that has a bgcolor defined. -->
<attribute name="disabledbgcolor" value="null"/>
+ <handler name="oninit" reference="canvas" method="_showEnabled" />
<!--- @keywords private -->
- <method name="_showEnabled" event="oninit" reference="canvas"> <![CDATA[
+ <method name="_showEnabled">
+ <![CDATA[
if (!_enabled) {
var newbgcolor = this.disabledbgcolor;
if (newbgcolor == null) {
@@ -205,7 +207,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/lz/vscrollbar.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/lz/vscrollbar.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/lz/vscrollbar.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -18,8 +18,10 @@
<!--- @keywords private -->
<attribute name="width" value="14"/>
+ <handler name="oninit" reference="canvas" method="_showEnabled" />
<!--- @keywords private -->
- <method name="_showEnabled" event="oninit" reference="canvas"> <![CDATA[
+ <method name="_showEnabled">
+ <![CDATA[
if (!_enabled) {
var newbgcolor = this.disabledbgcolor;
if (newbgcolor == null) {
@@ -141,7 +143,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/lzunit/lzunit.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/lzunit/lzunit.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/lzunit/lzunit.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -835,9 +835,9 @@
<!---
@keywords private
-->
- <method event="ontotalTests">
+ <handler name="ontotalTests">
update()
- </method>
+ </handler>
<!---
Record a failure.
@@ -1046,29 +1046,29 @@
]]>
</method>
- <!--- @keywords private
+ <!--- @keywords private
event handler for test suite end -->
- <method event="onsuitefinish">
+ <handler name="onsuitefinish">
//Debug.debug("onsuitefinish");
//this.resultstring += ("failures: "+ this.result.numFailures()+ "\n");
//this.resultstring += ("time: "+ (((new Date)['getTime']()) - this.starttime)+"\n");
this.resultstring += "finish_testsuite: "+this.testpath + " failures: "+ this.result.numFailures()+ "\n";
this.sendLogData(this.logfile, this.resultstring);
- </method>
+ </handler>
- <!--- @keywords private
+ <!--- @keywords private
event handler for test start -->
- <method event="onteststart" args="tc">
+ <handler name="onteststart" args="tc">
this.testStartTime = ((new Date)['getTime']());
var testcase = "testcase: "+tc+" "+((((new Date)['getTime']()) - this.testStartTime));
//this.resultstring += (testcase+"\n");
- </method>
+ </handler>
- <!--- @keywords private
+ <!--- @keywords private
event handler for tets fail -->
- <method event="ontestfail" args="msg">
+ <handler name="ontestfail" args="msg">
//this.resultstring += ("failure: "+msg+"\n");
- </method>
+ </handler>
<!--- @keywords private -->
<method name="init">
@@ -1275,6 +1275,6 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/lps/components/rpc/ajax.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/rpc/ajax.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/rpc/ajax.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -70,7 +70,7 @@
<!--- @keywords private -->
<attribute name="dataset" value="null" />
- <method event="oninit">
+ <handler name="oninit">
if (this.dataset == null) {
this.dataset = new LzDataset(this);
}
@@ -82,7 +82,7 @@
this.dataset, "ondata" );
this.onerrorDelegate = new LzDelegate( this , "onerrorHandler" ,
this.dataset, "onerror" );
- </method>
+ </handler>
<!--=================================================================-->
@@ -234,7 +234,7 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/utils/diagnostic/frametimer.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/utils/diagnostic/frametimer.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/utils/diagnostic/frametimer.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -16,10 +16,10 @@
<!--- @keywords private : internal -->
<attribute name="lasttime" value="0"/>
- <method event="oninit">
+ <handler name="oninit">
var d = new LzDelegate( this , "tellTime", LzIdle, "onidle" );
this.bringToFront();
- </method>
+ </handler>
<method name="tellTime" args="t">
this.numframes++;
if (this.starttime = 0) this.starttime = t;
@@ -37,7 +37,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/utils/diagnostic/inittimer.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/utils/diagnostic/inittimer.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/utils/diagnostic/inittimer.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -2,11 +2,11 @@
<!-- This little bit of code puts a white box in the top left corner
that gives time to app init in milliseconds.-->
<class name="inittimer" bgcolor="white" visible="true" options="ignorelayout">
- <method event="oninit" reference="canvas">
+ <handler name="oninit" reference="canvas">
var d = new LzDelegate( mytext , "tellTime" );
LzIdle.callOnIdle( d );
this.bringToFront();
- </method>
+ </handler>
<text id="mytext" resize="true">
<method name="tellTime" args="t">
this.setText( "Time taken: " + t );
@@ -16,7 +16,7 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/lps/components/utils/diagnostic/inspector/colormenu.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/utils/diagnostic/inspector/colormenu.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/utils/diagnostic/inspector/colormenu.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,5 +1,5 @@
<!-- X_LZ_COPYRIGHT_BEGIN ************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ************************************************** -->
<library>
@@ -7,20 +7,20 @@
<class name="colormenuitem"
width="22" height="22" bgcolor="0x000000">
<attribute name="mycolor"/>
- <method event="onmousetrackover">
+ <handler name="onmousetrackover">
setAttribute('bgcolor', 0xdedede); // hilite: gray
- </method>
- <method event="onmousetrackout">
+ </handler>
+ <handler name="onmousetrackout">
setAttribute('bgcolor', 0x000000); // normal: black
- </method>
+ </handler>
</class>
<class name="colorspot" extends="colormenuitem">
<view name="spot" bgcolor="${parent.mycolor}"
x="1" y="1" width="${parent.width-2}" height="${parent.height-2}"/>
- <method event="onmousetrackup">
+ <handler name="onmousetrackup">
parent.setnewcolor(this.spot.bgcolor);
- </method>
+ </handler>
</class>
@@ -61,9 +61,9 @@
<text resize="true" align="center" valign="middle">null</text>
</view>
- <method event="onmousetrackup">
+ <handler name="onmousetrackup">
parent.setnewcolor(null);
- </method>
+ </handler>
</colormenuitem>
</class>
Modified: openlaszlo/branches/devildog/lps/components/utils/diagnostic/inspector/inspector.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/utils/diagnostic/inspector/inspector.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/utils/diagnostic/inspector/inspector.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,5 +1,5 @@
<!-- X_LZ_COPYRIGHT_BEGIN ************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2007, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ************************************************** -->
<library>
@@ -16,10 +16,10 @@
<attribute name="obj" value="null" when="always"/>
<!-- <attribute name="color" value="${obj == null ? null : obj.bgcolor}"/>-->
<attribute name="color" value="null"/>
- <method event="onobj">
+ <handler name="onobj">
new LzDelegate(this, 'updatecolor', obj, 'onbgcolor');
updatecolor();
- </method>
+ </handler>
<method name="updatecolor">
setAttribute('color', this.obj.bgcolor);
</method>
@@ -39,10 +39,10 @@
<class name="toggletext" clickable='${!this.editing}'>
<attribute name="text" type="text"/>
<attribute name="editing" value="false"/>
- <method event="onclick">
+ <handler name="onclick">
setAttribute('editing', true);
LzFocus.setFocus(editbox);
- </method>
+ </handler>
<text visible="${!parent.editing}" resize="true" name="t"
y="$once{ parent.height /2 - this.height/2}"
text="${parent.text}"/>
@@ -56,24 +56,24 @@
"checkMouse" );
super.init();
</method>
- <method event="onfocus">
+ <handler name="onfocus">
this.globalMouseDel.register( LzGlobalMouse,
"onmousedown" );
- </method>
- <method event="onblur">
+ </handler>
+ <handler name="onblur">
parent.setAttribute( 'editing' , false );
- </method>
+ </handler>
<method name="checkMouse" args="who">
if ( !this.containsPt( this.getMouse( 'x' ) ,
this.getMouse( 'y' ) ) ){
parent.setAttribute( 'editing' ,false );
}
</method>
- <method event="onkeyup" args="k">
+ <handler name="onkeyup" args="k">
if ( k == 13 ){
parent.setAttribute( "editing" , false );
}
- </method>
+ </handler>
</edittext>
</state>
</class>
@@ -82,12 +82,12 @@
<attribute name="obj" value="null" when="once"/>
<attribute name="prop" value="" type="string"/>
<attribute name="isnumber" value="true"/>
- <method event="onediting">
+ <handler name="onediting">
if (this.editing == false) {
if (this.isnumber) this.obj.setAttribute(prop, Number(text));
else this.obj.setAttribute(prop, text);
}
- </method>
+ </handler>
</class>
<class name="item" x="10">
Modified: openlaszlo/branches/devildog/lps/components/utils/layouts/reverselayout.lzx
===================================================================
--- openlaszlo/branches/devildog/lps/components/utils/layouts/reverselayout.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/components/utils/layouts/reverselayout.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -25,14 +25,14 @@
</method>
<!--- @keywords private -->
- <method event="oninit">
+ <handler name="oninit">
this.updateDelegate.register( this.parent, "on" + this.sizeAxis );
- </method>
+ </handler>
<!--- @keywords private -->
- <method event="onend">
+ <handler name="onend">
this.reset();
- </method>
+ </handler>
<!--- @keywords private -->
<method name="addSubview" args="newsub">
@@ -90,7 +90,7 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Copied: openlaszlo/branches/devildog/lps/includes/blank.html (from rev 7959, openlaszlo/trunk/lps/includes/blank.html)
Modified: openlaszlo/branches/devildog/lps/includes/source/lzhistory.js
===================================================================
--- openlaszlo/branches/devildog/lps/includes/source/lzhistory.js 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/lps/includes/source/lzhistory.js 2008-02-06 19:57:39 UTC (rev 7965)
@@ -2,7 +2,7 @@
* @topic Browser
* @subtopic Integration
* @access public
- * @copyright Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved.
+ * @copyright Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
*/
@@ -44,6 +44,7 @@
Lz.__setAttr(i, 'scrolling', 'no');
Lz.__setAttr(i, 'width', '0');
Lz.__setAttr(i, 'height', '0');
+ Lz.__setAttr(i, 'src', 'blank.html');
document.body.appendChild(i);
i = document.getElementById('lzHistory');
_this._iframe = i;
Modified: openlaszlo/branches/devildog/quick-index.xslt
===================================================================
--- openlaszlo/branches/devildog/quick-index.xslt 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/quick-index.xslt 2008-02-06 19:57:39 UTC (rev 7965)
@@ -35,7 +35,7 @@
</ul>
<hr/>
<!-- * H_LZ_COPYRIGHT_BEGIN *********************************************** -->
-<p class="copyright">Copyright © 2002-2007 <a target="_top"
+<p class="copyright">Copyright © 2002-2008 <a target="_top"
href="http://www.laszlosystems.com/">Laszlo Systems, Inc.</a>
All Rights Reserved. Unauthorized use, duplication or
distribution is strictly prohibited. This is the proprietary
Modified: openlaszlo/branches/devildog/test/accessibility/accessibility.lzx
===================================================================
--- openlaszlo/branches/devildog/test/accessibility/accessibility.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/accessibility/accessibility.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,11 +1,11 @@
<canvas proxied="false" accessible="true">
<include href="base/basebutton.lzx"/>
<simplelayout spacing="4"/>
- <method event="oninit">
+ <handler name="oninit">
//LzBrowser.setClipboard('foo!');
var upddel = new LzDelegate(LzBrowser, 'updateAccessibility');
LzTimer.addTimer(upddel, 500);
- </method>
+ </handler>
<text>This page tests tab ordering and labeling of buttons</text>
<text width="200" aasilent="true" oninit="this.setText('accessibility on: ' + LzBrowser.isAAActive())"/>
<text name="lastsel" width="200" aasilent="true"/>
@@ -22,3 +22,4 @@
<view width="100" height="20" bgcolor="red" focusable="true" onclick="parent.lastsel.setText('dddd')"><text>dddd</text></view>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/accessibility/test-step3a.lzx
===================================================================
--- openlaszlo/branches/devildog/test/accessibility/test-step3a.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/accessibility/test-step3a.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -27,11 +27,11 @@
</text>
<button id="button1" aatabindex="5" focusable="true">
Button
- <method event="onclick">
+ <handler name="onclick">
//canvas.changeText();
var ctDel = new LzDelegate(canvas, 'changeText');
LzTimer.addTimer(ctDel, 1000);
- </method>
+ </handler>
</button>
</vbox>
<text aatabindex="3" aasilent="true" id="text3" width="200" height="200" bgcolor="0xdeadbf" multiline="true">
@@ -41,7 +41,7 @@
</vbox>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/test/accessibility/test-step3b.lzx
===================================================================
--- openlaszlo/branches/devildog/test/accessibility/test-step3b.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/accessibility/test-step3b.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -3,11 +3,11 @@
- doesn't include scrollbar on text field 2.
-->
<attribute name="externalsig" value="null"/>
- <method event="onexternalsig">
+ <handler name="onexternalsig">
canvas.changeText();
var ctDel = new LzDelegate(LzBrowser, 'updateAccessibility');
LzTimer.addTimer(ctDel, 1000);
- </method>
+ </handler>
<simplelayout spacing="4"/>
<handler name="oninit">
var upddel = new LzDelegate(LzBrowser, 'updateAccessibility');
@@ -33,9 +33,9 @@
</text>
<button id="button1" aatabindex="5" focusable="true">
Button
- <method event="onclick">
+ <handler name="onclick">
LzBrowser.loadJS('lzSetCanvasAttribute("externalsig", true)');
- </method>
+ </handler>
</button>
</vbox>
<text aatabindex="3" aasilent="true" id="text3" width="200" height="200" bgcolor="0xdeadbf" multiline="true">
@@ -45,7 +45,7 @@
</vbox>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/test/attribute-override-3.lzx
===================================================================
--- openlaszlo/branches/devildog/test/attribute-override-3.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/attribute-override-3.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -13,8 +13,8 @@
<simplelayout axis="y" spacing="20" />
<class name="mywindow" width="300">
- <attribute name="title" value="my" type="string" when="once"/>
- <simplelayout axis="y" />
+ <attribute name="title" value="my" type="string" when="once"/>
+ <simplelayout axis="y" />
<attribute name="testprop" value="prop" type="string"/>
<attribute name="testprop2" value="prop2" type="string"/>
<attribute name="testprop3" value="prop3 is OK by me " type="string"/>
@@ -74,6 +74,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/charts/barchart/test_bar_01.lzx
===================================================================
--- openlaszlo/branches/devildog/test/charts/barchart/test_bar_01.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/charts/barchart/test_bar_01.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -53,18 +53,18 @@
y="${(chart1.y + chart1.height)/2}"
options="ignorelayout"
fillColor="0x339933">
- <method event="onitemmouseclick" args="item">
+ <handler name="onitemmouseclick" args="item">
var topseries = this.chart.getDataSeries();
topseries.getDataSeries(item.identifier).enabled = item.linevisible;
this.chart.renderPlotArea();
item.linevisible = !item.linevisible;
- </method>
+ </handler>
</legend>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved.
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/test/charts/barchart/test_bar_02.lzx
===================================================================
--- openlaszlo/branches/devildog/test/charts/barchart/test_bar_02.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/charts/barchart/test_bar_02.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -60,18 +60,18 @@
fillColor="0x339933"
legendFontcolor="0xFF0000"
direction="horizontal">
- <method event="onitemmouseclick" args="item">
+ <handler name="onitemmouseclick" args="item">
var topseries = this.chart.getDataSeries();
topseries.getDataSeries(item.identifier).enabled = item.linevisible;
this.chart.renderPlotArea();
item.linevisible = !item.linevisible;
- </method>
+ </handler>
</legend>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved.
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/test/charts/barchart/test_bar_03.lzx
===================================================================
--- openlaszlo/branches/devildog/test/charts/barchart/test_bar_03.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/charts/barchart/test_bar_03.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -62,18 +62,18 @@
options="ignorelayout"
fillColor="0x339933"
direction="horizontal">
- <method event="onitemmouseclick" args="item">
+ <handler name="onitemmouseclick" args="item">
var topseries = this.chart.getDataSeries();
topseries.getDataSeries(item.identifier).enabled = item.linevisible;
this.chart.renderPlotArea();
item.linevisible = !item.linevisible;
- </method>
+ </handler>
</legend>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved.
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/test/charts/barchart/test_bar_04.lzx
===================================================================
--- openlaszlo/branches/devildog/test/charts/barchart/test_bar_04.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/charts/barchart/test_bar_04.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -62,18 +62,18 @@
y="${(chart1.y + chart1.height)/2}"
options="ignorelayout"
fillColor="0x339933">
- <method event="onitemmouseclick" args="item">
+ <handler name="onitemmouseclick" args="item">
var topseries = this.chart.getDataSeries();
topseries.getDataSeries(item.identifier).enabled = item.linevisible;
this.chart.renderPlotArea();
item.linevisible = !item.linevisible;
- </method>
+ </handler>
</legend>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved.
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/test/charts/barchart/test_bar_05.lzx
===================================================================
--- openlaszlo/branches/devildog/test/charts/barchart/test_bar_05.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/charts/barchart/test_bar_05.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -11,31 +11,31 @@
<view>
<simplelayout axis="x" spacing="10"/>
<button>undo
- <method event="onclick">
+ <handler name="onclick">
chart1.undo(500);
- </method>
+ </handler>
</button>
<button x="100"> show all points
- <method event="onclick">
+ <handler name="onclick">
chart1.changeBound(chart1.defaultminx, chart1.defaultminy,
chart1.defaultmaxx,chart1.defaultmaxy, 1000, true);
- </method>
+ </handler>
</button>
</view>
<rangeslider x="100" id="slider" minlimit="0" maxlimit="18" startlabel="2004" endlabel="1987">
- <method event="onminvalue">
+ <handler name="onminvalue">
if(chart1.initdone)
{
chart1.changeBound(chart1.minx, this.minvalue, chart1.maxx, this.maxvalue);
}
- </method>
- <method event="onmaxvalue">
+ </handler>
+ <handler name="onmaxvalue">
if(chart1.initdone)
{
chart1.changeBound(chart1.minx, this.minvalue, chart1.maxx, this.maxvalue);
}
- </method>
+ </handler>
</rangeslider>
<!-- Chart Title -->
@@ -106,18 +106,18 @@
fillColor="0xFFFFCC"
legendFontcolor="0x000000"
direction="vertical">
- <method event="onitemmouseclick" args="item">
+ <handler name="onitemmouseclick" args="item">
var topseries = this.chart.getDataSeries();
topseries.getDataSeries(item.identifier).enabled = item.linevisible;
this.chart.renderPlotArea();
item.linevisible = !item.linevisible;
- </method>
+ </handler>
</legend>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved.
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/test/charts/barchart/test_bar_06.lzx
===================================================================
--- openlaszlo/branches/devildog/test/charts/barchart/test_bar_06.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/charts/barchart/test_bar_06.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -62,18 +62,18 @@
fillColor="0x339933"
legendFontcolor="0xFF0000"
direction="horizontal">
- <method event="onitemmouseclick" args="item">
+ <handler name="onitemmouseclick" args="item">
var topseries = this.chart.getDataSeries();
topseries.getDataSeries(item.identifier).enabled = item.linevisible;
this.chart.renderPlotArea();
item.linevisible = !item.linevisible;
- </method>
+ </handler>
</legend>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved.
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/test/charts/columnchart/test_column_01.lzx
===================================================================
--- openlaszlo/branches/devildog/test/charts/columnchart/test_column_01.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/charts/columnchart/test_column_01.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -40,20 +40,20 @@
</columnchart>
<legend name="legendbox" legendFontsize="14" legendborder="true" chart="${chart1}" x="${chart1.x + chart1.width}" y="${(chart1.y + chart1.height)/2}" options="ignorelayout" fillColor="0x339933" borderWidth="3">
- <method event="onitemmouseclick" args="item">
+ <handler name="onitemmouseclick" args="item">
var topseries = this.chart.getDataSeries();
topseries.getDataSeries(item.identifier).enabled = item.linevisible;
this.chart.renderPlotArea();
item.linevisible = !item.linevisible;
- </method>
+ </handler>
</legend>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved.
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/test/charts/columnchart/test_column_02.lzx
===================================================================
--- openlaszlo/branches/devildog/test/charts/columnchart/test_column_02.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/charts/columnchart/test_column_02.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -9,15 +9,15 @@
<view>
<simplelayout axis="x" spacing="10"/>
<button>undo
- <method event="onclick">
+ <handler name="onclick">
chart1.undo(500);
- </method>
+ </handler>
</button>
<button x="100"> show all points
- <method event="onclick">
+ <handler name="onclick">
chart1.changeBound(chart1.defaultminx, chart1.defaultminy,
chart1.defaultmaxx,chart1.defaultmaxy, 1000, true);
- </method>
+ </handler>
</button>
</view>
@@ -66,20 +66,20 @@
<legend name="legendbox" legendFontsize="20" legendborder="true" borderWidth="2" chart="${chart1}" x="${chart1.x + chart1.width}"
y="${(chart1.y + chart1.height)/2}" options="ignorelayout" fillColor="0x339933" legendFontcolor="0xFF0000" direction="horizontal">
- <method event="onitemmouseclick" args="item">
+ <handler name="onitemmouseclick" args="item">
var topseries = this.chart.getDataSeries();
topseries.getDataSeries(item.identifier).enabled = item.linevisible;
this.chart.renderPlotArea();
item.linevisible = !item.linevisible;
- </method>
+ </handler>
</legend>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved.
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/test/charts/columnchart/test_column_03.lzx
===================================================================
--- openlaszlo/branches/devildog/test/charts/columnchart/test_column_03.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/charts/columnchart/test_column_03.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -7,18 +7,18 @@
<simplelayout axis="y"/>
<rangeslider x="100" id="slider" minlimit="0" maxlimit="18" startlabel="2004" endlabel="1987">
- <method event="onminvalue">
+ <handler name="onminvalue">
if(chart1.initdone)
{
chart1.changeBound(this.minvalue, chart1.miny, this.maxvalue, chart1.maxy);
}
- </method>
- <method event="onmaxvalue">
+ </handler>
+ <handler name="onmaxvalue">
if(chart1.initdone)
{
chart1.changeBound(this.minvalue, chart1.miny, this.maxvalue, chart1.maxy);
}
- </method>
+ </handler>
</rangeslider>
<!-- Chart Title -->
@@ -65,20 +65,20 @@
<legend name="legendbox" legendFontsize="16" legendborder="true" borderWidth="2" chart="${chart1}" x="${chart1.x + chart1.width}"
y="${(chart1.y + chart1.height)/2}" options="ignorelayout" fillColor="0x0099FF" legendFontcolor="0x000000" direction="horizontal">
- <method event="onitemmouseclick" args="item">
+ <handler name="onitemmouseclick" args="item">
var topseries = this.chart.getDataSeries();
topseries.getDataSeries(item.identifier).enabled = item.linevisible;
this.chart.renderPlotArea();
item.linevisible = !item.linevisible;
- </method>
+ </handler>
</legend>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved.
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/test/charts/columnchart/test_column_04.lzx
===================================================================
--- openlaszlo/branches/devildog/test/charts/columnchart/test_column_04.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/charts/columnchart/test_column_04.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -49,20 +49,20 @@
<legend name="legendbox" legendFontsize="16" legendborder="true" borderWidth="2" chart="${chart1}" x="${chart1.x + chart1.width}"
y="${(chart1.y + chart1.height)/2}" options="ignorelayout" fillColor="0xFFFFCC" legendFontcolor="0x0000FF" direction="vertical">
- <method event="onitemmouseclick" args="item">
+ <handler name="onitemmouseclick" args="item">
var topseries = this.chart.getDataSeries();
topseries.getDataSeries(item.identifier).enabled = item.linevisible;
this.chart.renderPlotArea();
item.linevisible = !item.linevisible;
- </method>
+ </handler>
</legend>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved.
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/test/charts/columnchart/test_column_05.lzx
===================================================================
--- openlaszlo/branches/devildog/test/charts/columnchart/test_column_05.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/charts/columnchart/test_column_05.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -10,31 +10,31 @@
<view>
<simplelayout axis="x" spacing="10"/>
<button>undo
- <method event="onclick">
+ <handler name="onclick">
chart1.undo(500);
- </method>
+ </handler>
</button>
<button x="100"> show all points
- <method event="onclick">
+ <handler name="onclick">
chart1.changeBound(chart1.defaultminx, chart1.defaultminy,
chart1.defaultmaxx,chart1.defaultmaxy, 1000, true);
- </method>
+ </handler>
</button>
</view>
<rangeslider x="100" id="slider" minlimit="0" maxlimit="18" startlabel="2004" endlabel="1987">
- <method event="onminvalue">
+ <handler name="onminvalue">
if(chart1.initdone)
{
chart1.changeBound(this.minvalue, chart1.miny, this.maxvalue, chart1.maxy);
}
- </method>
- <method event="onmaxvalue">
+ </handler>
+ <handler name="onmaxvalue">
if(chart1.initdone)
{
chart1.changeBound(this.minvalue, chart1.miny, this.maxvalue, chart1.maxy);
}
- </method>
+ </handler>
</rangeslider>
<!-- Chart Title -->
@@ -82,20 +82,20 @@
<legend name="legendbox" legendFontsize="15" legendborder="true" borderWidth="2" chart="${chart1}" x="${chart1.x + chart1.width}"
y="${(chart1.y + chart1.height)/2}" options="ignorelayout" fillColor="0xFFFFCC" legendFontcolor="0x000000" direction="vertical">
- <method event="onitemmouseclick" args="item">
+ <handler name="onitemmouseclick" args="item">
var topseries = this.chart.getDataSeries();
topseries.getDataSeries(item.identifier).enabled = item.linevisible;
this.chart.renderPlotArea();
item.linevisible = !item.linevisible;
- </method>
+ </handler>
</legend>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved.
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/test/charts/linechart/test_line_01.lzx
===================================================================
--- openlaszlo/branches/devildog/test/charts/linechart/test_line_01.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/charts/linechart/test_line_01.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -8,15 +8,15 @@
<button>undo
- <method event="onclick">
+ <handler name="onclick">
chart1.undo(500);
- </method>
+ </handler>
</button>
<button x="100"> show all points
- <method event="onclick">
+ <handler name="onclick">
chart1.changeBound(chart1.defaultminx, chart1.defaultminy,
chart1.defaultmaxx,chart1.defaultmaxy, 1000, true);
- </method>
+ </handler>
</button>
<view name="title" x="${chart1.width/2}" y="30" >
<text font="serif" fontsize="15" fontstyle="bold" fgcolor="0x0000FF">
@@ -32,13 +32,13 @@
x="600"
y="350"
direction="vertical">
- <method event="onitemmouseclick" args="item">
+ <handler name="onitemmouseclick" args="item">
var topseries = this.getChartInstance().getDataSeries();
topseries.getDataSeries(item.identifier).enabled = item.linevisible;
this.getChartInstance().renderPlotArea();
item.linevisible = !item.linevisible;
- </method>
+ </handler>
</legend>
<linechart id="chart1" y="60" width="600" height="500" style="chartstyle01"
@@ -87,7 +87,7 @@
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved.
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/test/charts/linechart/test_line_02.lzx
===================================================================
--- openlaszlo/branches/devildog/test/charts/linechart/test_line_02.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/charts/linechart/test_line_02.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -8,15 +8,15 @@
<button>undo
- <method event="onclick">
+ <handler name="onclick">
chart1.undo(500);
- </method>
+ </handler>
</button>
<button x="100"> show all points
- <method event="onclick">
+ <handler name="onclick">
chart1.changeBound(chart1.defaultminx, chart1.defaultminy,
chart1.defaultmaxx,chart1.defaultmaxy, 1000, true);
- </method>
+ </handler>
</button>
<view name="title" x="250" y="10" >
<text font="serif" fontsize="15" fontstyle="bold" fgcolor="0x0000FF">
@@ -33,13 +33,13 @@
x="600"
y="350"
direction="horizontal">
- <method event="onitemmouseclick" args="item">
+ <handler name="onitemmouseclick" args="item">
var topseries = this.getChartInstance().getDataSeries();
topseries.getDataSeries(item.identifier).enabled = item.linevisible;
this.getChartInstance().renderPlotArea();
item.linevisible = !item.linevisible;
- </method>
+ </handler>
</legend>
<linechart id="chart1" y="60" width="600" height="500" style="chartstyle02" datatipColumn="datatip" dataPointsEnabled="true" datatipEnabled="true" verticalGridLines="false" horizontalGridLines="true" valuelinesenabled="true">
@@ -82,7 +82,7 @@
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved.
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/test/charts/linechart/test_line_03.lzx
===================================================================
--- openlaszlo/branches/devildog/test/charts/linechart/test_line_03.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/charts/linechart/test_line_03.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -8,15 +8,15 @@
<button>undo
- <method event="onclick">
+ <handler name="onclick">
chart1.undo(500);
- </method>
+ </handler>
</button>
<button x="100"> show all points
- <method event="onclick">
+ <handler name="onclick">
chart1.changeBound(chart1.defaultminx, chart1.defaultminy,
chart1.defaultmaxx,chart1.defaultmaxy, 1000, true);
- </method>
+ </handler>
</button>
<view name="title" x="250" y="10" >
<text font="serif" fontsize="15" fontstyle="bold" fgcolor="0x0000FF">
@@ -33,13 +33,13 @@
borderWidth="3"
x="650"
y="350">
- <method event="onitemmouseclick" args="item">
+ <handler name="onitemmouseclick" args="item">
var topseries = this.getChartInstance().getDataSeries();
topseries.getDataSeries(item.identifier).enabled = item.linevisible;
this.getChartInstance().renderPlotArea();
item.linevisible = !item.linevisible;
- </method>
+ </handler>
</legend>
<linechart id="chart1" y="60" width="600" height="500" style="chartstyle03"
@@ -86,7 +86,7 @@
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved.
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/test/charts/linechart/test_line_04.lzx
===================================================================
--- openlaszlo/branches/devildog/test/charts/linechart/test_line_04.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/charts/linechart/test_line_04.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -8,15 +8,15 @@
<button>undo
- <method event="onclick">
+ <handler name="onclick">
chart1.undo(500);
- </method>
+ </handler>
</button>
<button x="100"> show all points
- <method event="onclick">
+ <handler name="onclick">
chart1.changeBound(chart1.defaultminx, chart1.defaultminy,
chart1.defaultmaxx,chart1.defaultmaxy, 1000, true);
- </method>
+ </handler>
</button>
<view name="title" x="250" y="10" >
<text font="serif" fontsize="15" fontstyle="bold" fgcolor="0x0000FF">
@@ -32,13 +32,13 @@
legendborder="false"
x="600"
y="350">
- <method event="onitemmouseclick" args="item">
+ <handler name="onitemmouseclick" args="item">
var topseries = this.getChartInstance().getDataSeries();
topseries.getDataSeries(item.identifier).enabled = item.linevisible;
this.getChartInstance().renderPlotArea();
item.linevisible = !item.linevisible;
- </method>
+ </handler>
</legend>
<linechart id="chart1" y="60" width="600" height="500" style="chartstyle04"
@@ -86,7 +86,7 @@
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved.
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/test/charts/linechart/test_line_05.lzx
===================================================================
--- openlaszlo/branches/devildog/test/charts/linechart/test_line_05.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/charts/linechart/test_line_05.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -14,18 +14,18 @@
</text>
</view>
<rangeslider x="100" id="slider" minlimit="1900" maxlimit="2010">
- <method event="onminvalue">
+ <handler name="onminvalue">
if(chart1.initdone)
{
chart1.changeBound(this.minvalue, chart1.miny, chart1.maxx, chart1.maxy);
}
- </method>
- <method event="onmaxvalue">
+ </handler>
+ <handler name="onmaxvalue">
if(chart1.initdone)
{
chart1.changeBound(chart1.minx, chart1.miny, this.maxvalue, chart1.maxy);
}
- </method>
+ </handler>
</rangeslider>
<linechart id="chart1" y="60" width="600" height="500" style="chartstyle05"
@@ -75,20 +75,20 @@
legendborder="false"
x="${chart1.x + chart1.width + 10}"
y="${(chart1.y + chart1.height)/2}">
- <method event="onitemmouseclick" args="item">
+ <handler name="onitemmouseclick" args="item">
var topseries = this.getChartInstance().getDataSeries();
topseries.getDataSeries(item.identifier).enabled = item.linevisible;
this.getChartInstance().renderPlotArea();
item.linevisible = !item.linevisible;
- </method>
+ </handler>
</legend>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved.
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/test/charts/piechart/test_pie_01.lzx
===================================================================
--- openlaszlo/branches/devildog/test/charts/piechart/test_pie_01.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/charts/piechart/test_pie_01.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -25,21 +25,21 @@
<legend name="legendbox" legendFontsize="14" legendborder="true" legendFontcolor="0xFFFFC1"
legendFont="myverity" direction="vertical" borderWidth="1" borderColor="0x0000ff" fillColor="#99CCFF"
chart="${chart1}" x="${chart1.x + chart1.width + 20}" y="${(chart1.y + chart1.height)/2}">
- <method event="onitemmouseover" args="item">
+ <handler name="onitemmouseover" args="item">
var piepiece = this.getChartInstance().plotarea.arrPiePieces[item.identifier];
piepiece.renderInnerWedge();
- </method>
+ </handler>
- <method event="onitemmouseout" args="item">
+ <handler name="onitemmouseout" args="item">
var piepiece = this.getChartInstance().plotarea.arrPiePieces[item.identifier];
piepiece.renderWedge();
- </method>
+ </handler>
</legend>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved.
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/test/charts/piechart/test_pie_02.lzx
===================================================================
--- openlaszlo/branches/devildog/test/charts/piechart/test_pie_02.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/charts/piechart/test_pie_02.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -24,21 +24,21 @@
<legend name="legendbox" legendborder="false" direction="horizontal" fillColor="#99CCFF"
chart="${chart1}" x="${chart1.x + chart1.width + 20}" y="${(chart1.y + chart1.height)/2}">
- <method event="onitemmouseover" args="item">
+ <handler name="onitemmouseover" args="item">
var piepiece = this.getChartInstance().plotarea.arrPiePieces[item.identifier];
piepiece.renderInnerWedge();
- </method>
+ </handler>
- <method event="onitemmouseout" args="item">
+ <handler name="onitemmouseout" args="item">
var piepiece = this.getChartInstance().plotarea.arrPiePieces[item.identifier];
piepiece.renderWedge();
- </method>
+ </handler>
</legend>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved.
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/test/charts/piechart/test_pie_03.lzx
===================================================================
--- openlaszlo/branches/devildog/test/charts/piechart/test_pie_03.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/charts/piechart/test_pie_03.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -24,21 +24,21 @@
<legend name="legendbox" legendborder="false" direction="vertical" fillColor="#99CCFF"
chart="${chart1}" x="${chart1.x + chart1.width + 20}" y="${(chart1.y + chart1.height)/2}">
- <method event="onitemmouseover" args="item">
+ <handler name="onitemmouseover" args="item">
var piepiece = this.getChartInstance().plotarea.arrPiePieces[item.identifier];
piepiece.renderInnerWedge();
- </method>
+ </handler>
- <method event="onitemmouseout" args="item">
+ <handler name="onitemmouseout" args="item">
var piepiece = this.getChartInstance().plotarea.arrPiePieces[item.identifier];
piepiece.renderWedge();
- </method>
+ </handler>
</legend>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved.
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/test/charts/piechart/test_pie_04.lzx
===================================================================
--- openlaszlo/branches/devildog/test/charts/piechart/test_pie_04.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/charts/piechart/test_pie_04.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -24,21 +24,21 @@
<legend name="legendbox" legendborder="false" direction="vertical" fillColor="#99CCFF"
chart="${chart1}" x="${chart1.x + chart1.width + 20}" y="${(chart1.y + chart1.height)/2}">
- <method event="onitemmouseover" args="item">
+ <handler name="onitemmouseover" args="item">
var piepiece = this.getChartInstance().plotarea.arrPiePieces[item.identifier];
piepiece.renderInnerWedge();
- </method>
+ </handler>
- <method event="onitemmouseout" args="item">
+ <handler name="onitemmouseout" args="item">
var piepiece = this.getChartInstance().plotarea.arrPiePieces[item.identifier];
piepiece.renderWedge();
- </method>
+ </handler>
</legend>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN
***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved.
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved.
* Use is subject to license terms.
* X_LZ_COPYRIGHT_END
****************************************************** -->
Modified: openlaszlo/branches/devildog/test/class-attributes.lzx
===================================================================
--- openlaszlo/branches/devildog/test/class-attributes.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/class-attributes.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -31,7 +31,7 @@
<!-- Subclassing a user-defined class, and adding an event
to a class that doesn't have any. -->
<class name="myotherwindow" extends="mywindow" title="Other window">
- <attribute name="weight" type="number" setter="this.foo()"/>
+ <attribute name="weight" type="number" setter="this.foo()"/>
<method name="foo">
Debug.write('Got onset event');
</method>
@@ -50,6 +50,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/class-font-inherit.lzx
===================================================================
--- openlaszlo/branches/devildog/test/class-font-inherit.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/class-font-inherit.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -10,8 +10,8 @@
[1] Arioso bold 24
[2] Arioso bold 24
-[3] Arioso bold 24 { red background}
-[4] Times Roman bold 24 { yellow background color}
+[3] Arioso bold 24 { red background}
+[4] Times Roman bold 24 { yellow background color}
[5] Times Roman bold size unset { blue background color; should be size 30}
@@ -88,6 +88,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/client_availability.lzx
===================================================================
--- openlaszlo/branches/devildog/test/client_availability.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/client_availability.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -20,15 +20,15 @@
canvas.chatWindow.viewChat.chatPtr.addNode("message", null, { text: str, multiline: true } );
</method>
- <method event="onconnect">
+ <handler name="onconnect">
this.print("...connected...");
canvas.connected = true;
this.sendMessage("*", "", "userconnect");
canvas.chatWindow.viewPicker.setVisible(false);
canvas.chatWindow.viewChat.setVisible(true);
- </method>
+ </handler>
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
if (canvas.connected) {
this.print("...connection error...");
} else {
@@ -36,9 +36,9 @@
canvas.dialog.open();
}
canvas.connected = false;
- </method>
+ </handler>
- <method event="ontimeout">
+ <handler name="ontimeout">
if (canvas.connected) {
this.print("...connection timed out...");
} else {
@@ -46,18 +46,18 @@
canvas.dialog.open();
}
canvas.connected = false;
- </method>
+ </handler>
- <method event="ondisconnect">
+ <handler name="ondisconnect">
canvas.connected = false;
this.print("...disconnected...");
canvas.connection.logout();
- </method>
+ </handler>
- <method event="onuserdisconnect" args="user">
+ <handler name="onuserdisconnect" args="user">
this.getList('*');
this.print("user " + user + " disconnected");
- </method>
+ </handler>
<dataset name="message" />
<dataset name="userconnect" />
@@ -86,34 +86,34 @@
<text>Style:</text>
<combobox width="120" editable="false">
<textlistitem text="silver" >
- <method event="onselected">
+ <handler name="onselected">
canvas.silvercolors.setAttribute("isdefault", true);
- </method>
+ </handler>
</textlistitem>
<textlistitem text="green" >
- <method event="onselected">
+ <handler name="onselected">
canvas.greencolors.setAttribute("isdefault", true);
- </method>
+ </handler>
</textlistitem>
<textlistitem text="blue" selected="true">
- <method event="onselected">
+ <handler name="onselected">
canvas.bluecolors.setAttribute("isdefault", true);
- </method>
+ </handler>
</textlistitem>
<textlistitem text="gold" >
- <method event="onselected">
+ <handler name="onselected">
canvas.goldcolors.setAttribute("isdefault", true);
- </method>
+ </handler>
</textlistitem>
<textlistitem text="white">
- <method event="onselected">
+ <handler name="onselected">
canvas.whitecolors.setAttribute("isdefault", true);
- </method>
+ </handler>
</textlistitem>
<textlistitem text="purple" >
- <method event="onselected">
+ <handler name="onselected">
canvas.purplecolors.setAttribute("isdefault", true);
- </method>
+ </handler>
</textlistitem>
</combobox>
@@ -193,9 +193,9 @@
</menu>
</menubar>
<view name="frosty">
- <method event="oninit">
+ <handler name="oninit">
//Debug.write("Frosty's parent: " + this.parent);
- </method>
+ </handler>
<text multiline="true"
x="6"
height="450" width="420">
@@ -281,43 +281,43 @@
<datapointer name="chatPtr" xpath="chatDset:/" />
<datapointer xpath="connection:logoutDset:/*" >
- <method event="ondata">
+ <handler name="ondata">
canvas.myconnection.print("...logged out...");
canvas.chatWindow.viewPicker.setVisible(true);
canvas.chatWindow.viewChat.setVisible(false);
- </method>
- <method event="onerror">
+ </handler>
+ <handler name="onerror">
canvas.chatWindow.viewPicker.setVisible(true);
canvas.chatWindow.viewChat.setVisible(false);
- </method>
+ </handler>
</datapointer>
<datapointer xpath="myconnection:userconnect:/*">
- <method event="ondata">
+ <handler name="ondata">
var from = this.xpathQuery('/from[0]/@name');
this.parent.chatPtr.addNode("message", null,
{ text: "User " + from + " connected!" }
);
canvas.myconnection.getList('*');
- </method>
+ </handler>
</datapointer>
<datapointer xpath="myconnection:message:/*">
- <method event="ondata">
+ <handler name="ondata">
var from = this.xpathQuery('/from[0]/@name');
var mesg = this.xpathQuery('/text()');
this.parent.chatPtr.addNode("message", null,
{ text: from + ": " + mesg}
);
- </method>
+ </handler>
</datapointer>
<datapointer xpath="myconnection:sendMessageDset:/*[1]">
- <method event="onerror">
+ <handler name="onerror">
this.parent.chatPtr.addNode("message", null,
{ text: this.dataset.getErrorString() }
);
- </method>
+ </handler>
</datapointer>
<view width="302" height="107" x="4" y="4" bgcolor="#000000" />
@@ -391,7 +391,7 @@
<view name="viewPicker" x="20" y="20">
<datapointer xpath="connection:loginDset:/login[1]/authentication[1]/response[1]">
- <method event="ondata">
+ <handler name="ondata">
var rt = this.getNodeAttribute('type');
var usr = this.getNodeAttribute('usr');
@@ -403,17 +403,17 @@
canvas.dialog.setAttribute('text', "bad login status: " + status);
canvas.dialog.open();
}
- </method>
+ </handler>
- <method event="onerror">
+ <handler name="onerror">
canvas.dialog.setAttribute('text', "problems contacting authentication server");
canvas.dialog.open();
- </method>
+ </handler>
- <method event="ontimeout">
+ <handler name="ontimeout">
canvas.dialog.setAttribute('text', "authentication server time out");
canvas.dialog.open();
- </method>
+ </handler>
</datapointer>
@@ -443,11 +443,11 @@
</view> <!-- name=viewPicker -->
- <method event="onkeyup" reference="LzKeys" args="k">
+ <handler name="onkeyup" reference="LzKeys" args="k">
if ( k == 13 ) {
bSend.handler();
}
- </method>
+ </handler>
</window>
<window height="150" title="Another Clock" x="0" y="${canvas.height - this.height}">
<edittext width="112" text="${this.parent.time.textTime}"/>
@@ -516,6 +516,6 @@
</window>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/client_availability_nopc.lzx
===================================================================
--- openlaszlo/branches/devildog/test/client_availability_nopc.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/client_availability_nopc.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -22,34 +22,34 @@
<text>Style:</text>
<combobox width="120" editable="false">
<textlistitem text="silver" >
- <method event="onselected">
+ <handler name="onselected">
canvas.silvercolors.setAttribute("isdefault", true);
- </method>
+ </handler>
</textlistitem>
<textlistitem text="green" >
- <method event="onselected">
+ <handler name="onselected">
canvas.greencolors.setAttribute("isdefault", true);
- </method>
+ </handler>
</textlistitem>
<textlistitem text="blue" selected="true">
- <method event="onselected">
+ <handler name="onselected">
canvas.bluecolors.setAttribute("isdefault", true);
- </method>
+ </handler>
</textlistitem>
<textlistitem text="gold" >
- <method event="onselected">
+ <handler name="onselected">
canvas.goldcolors.setAttribute("isdefault", true);
- </method>
+ </handler>
</textlistitem>
<textlistitem text="white">
- <method event="onselected">
+ <handler name="onselected">
canvas.whitecolors.setAttribute("isdefault", true);
- </method>
+ </handler>
</textlistitem>
<textlistitem text="purple" >
- <method event="onselected">
+ <handler name="onselected">
canvas.purplecolors.setAttribute("isdefault", true);
- </method>
+ </handler>
</textlistitem>
</combobox>
@@ -129,9 +129,9 @@
</menu>
</menubar>
<view name="frosty">
- <method event="oninit">
+ <handler name="oninit">
//Debug.write("Frosty's parent: " + this.parent);
- </method>
+ </handler>
<text multiline="true"
x="6"
height="450" width="420">
@@ -255,12 +255,12 @@
</button>
<button name="clear">Clear messages
- <method event="onclick">
+ <handler name="onclick">
var rt = viewChat.chatPtr.p
var c
while((c = rt.getFirstChild()) != null)
rt.removeChild(c)
- </method>
+ </handler>
</button>
<simplelayout axis="x" spacing="5"/>
@@ -269,11 +269,11 @@
</view> <!-- viewChat -->
- <method event="onkeyup" reference="LzKeys" args="k">
+ <handler name="onkeyup" reference="LzKeys" args="k">
if ( k == 13 ) {
bSend.handler();
}
- </method>
+ </handler>
</window>
@@ -345,6 +345,6 @@
</window>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/compiler_errors/attribute-override-error.lzx
===================================================================
--- openlaszlo/branches/devildog/test/compiler_errors/attribute-override-error.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/compiler_errors/attribute-override-error.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -3,7 +3,7 @@
<canvas width="300" height="200" bgcolor="red">
<window title="Window 1" x="10" y="10" width="200" height="200" >
<view>
- <text>This is some
+ <text>This is some
text with a couple
of linebreaks in it.
</text>
@@ -24,6 +24,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/compiler_errors/bogus-attribute-error.lzx
===================================================================
--- openlaszlo/branches/devildog/test/compiler_errors/bogus-attribute-error.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/compiler_errors/bogus-attribute-error.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -21,10 +21,10 @@
</mywindow>
<view blah="17"/>
- <method event="oninit" method="_doCheckConfig"/>
+ <handler name="oninit" method="_doCheckConfig"/>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/compiler_errors/redfine-builtin.lzx
===================================================================
--- openlaszlo/branches/devildog/test/compiler_errors/redfine-builtin.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/compiler_errors/redfine-builtin.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -3,13 +3,13 @@
<class name="text"/>
<edittext>
- <method event="onkeyup">
+ <handler name="onkeyup">
Debug.write('keyup');
- </method>
+ </handler>
</edittext>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/components/base/lzunit-basecomponent.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/base/lzunit-basecomponent.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/base/lzunit-basecomponent.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -11,9 +11,9 @@
<class name="testcheckbox" extends="checkbox">
<attribute name="c0" value="0"/>
- <method event="on_enabled" args="v">
+ <handler name="on_enabled" args="v">
this.c0++;
- </method>
+ </handler>
<attribute name="c1" value="0"/>
<handler name="onfocusable">
@@ -181,7 +181,7 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2005-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2005-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/test/components/base/test-basedatepicker.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/base/test-basedatepicker.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/base/test-basedatepicker.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -4,13 +4,13 @@
bgcolor="green"
width="20"
height="20">
- <method event="onclick">
+ <handler name="onclick">
<![CDATA[
if( !this.disabled && this.selectable ) {
this.setAttribute('selected', true);
}
]]>
- </method>
+ </handler>
<text text="${parent.daynum}"
visible="${!parent.disabled}"
@@ -35,7 +35,7 @@
this.display.year.setText( year );
</method>
- <method event="onselecteddate">
+ <handler name="onselecteddate">
if( this.selecteddate != null ) {
this.selected.year.setText( this.selecteddate.getFullYear() );
this.selected.month.datapath.setXPath(
@@ -43,7 +43,7 @@
this.selecteddate.getMonth() + "']/@full" );
this.selected.date.setText( this.selecteddate.getDate() );
}
- </method>
+ </handler>
<view options="ignorelayout">
<text width="20" height="20" bgcolor="red" text="S"/>
@@ -80,6 +80,6 @@
<mydatepicker/>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/components/base/test-baselist.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/base/test-baselist.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/base/test-baselist.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -40,7 +40,8 @@
onmouseout="this._mousein = false; setHilite(false)">
<attribute name="mycolor" value="0xffff99"/>
- <method event="onmouseover" name="setHilite" args="ishilited">
+ <handler name="onmouseover" method="setHilite" />
+ <method name="setHilite" args="ishilited">
if (ishilited == undefined) {
this._mousein = true;
ishilited = this._mousein;
@@ -91,10 +92,10 @@
<simplelayout/>
<myitem datapath="listdata3:/item">
<text datapath="text()"/>
- <method event="onselected">
+ <handler name="onselected">
if (this.selected) this.setHeight(40);
else this.setHeight(20);
- </method>
+ </handler>
</myitem>
</view>
@@ -107,7 +108,7 @@
</view>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/components/base/test-basetrackgroup.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/base/test-basetrackgroup.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/base/test-basetrackgroup.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -9,21 +9,21 @@
<attribute name="mycolor" value="0x000099"/>
<!-- regular mouse events -->
- <method event="onmouseover">
+ <handler name="onmouseover">
setAttribute('bgcolor', 0x009900);
- </method>
- <method event="onmouseout">
+ </handler>
+ <handler name="onmouseout">
setAttribute('bgcolor', this.mycolor);
- </method>
+ </handler>
<!-- mouse tracking events -->
- <method event="onmousetrackover">
+ <handler name="onmousetrackover">
setAttribute('bgcolor', 0x00dd00);
- </method>
+ </handler>
- <method event="onmousetrackout">
+ <handler name="onmousetrackout">
setAttribute('bgcolor', this.mycolor);
- </method>
+ </handler>
</class>
@@ -48,22 +48,22 @@
</basetrackgroup>
<button >activate both
- <method event="onmousedown">
+ <handler name="onmousedown">
btgtwo.setTracking(true);
btgone.setTracking(true);
- </method>
+ </handler>
</button>
<button >deactivate both groups
- <method event="onmousedown">
+ <handler name="onmousedown">
btgtwo.setTracking(false);
btgone.setTracking(false);
- </method>
+ </handler>
</button>
<simplelayout axis="x" spacing="20" />
</view>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/components/base/test-multistatebutton.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/base/test-multistatebutton.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/base/test-multistatebutton.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -11,14 +11,14 @@
</resource>
<multistatebutton name="r" resource="tpRgt_multi" maxstate="1" statelength="3" >
- <method event="onclick">
+ <handler name="onclick">
if (this.statenum ==0) this.setAttribute('statenum',1)
else this.setAttribute('statenum',0);
- </method>
+ </handler>
</multistatebutton>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/components/incubator/test-lzcombobox.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/incubator/test-lzcombobox.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/incubator/test-lzcombobox.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -11,25 +11,26 @@
<class name="colorsquare" extends="drawview">
<attribute name="swatchcolor" value="black"/>
<attribute name="drawsquare" value="false"/>
- <method event="oninit">
+ <handler name="oninit">
this.redraw();
- </method>
- <method event="onswatchcolor" name="redraw">
+ </handler>
+ <handler name="onswatchcolor" method="redraw" />
+ <method name="redraw">
this.clear();
if (this.drawsquare) {
- this.linewidth=0; this.beginPath();
+ this.linewidth=0; this.beginPath();
this.fillStyle = 0x333333; this.moveTo(1,1);
this.lineTo(15,1); this.lineTo(15,11); this.lineTo(1,11);
this.lineTo(1,1); this.fill();
-
- this.beginPath(); this.fillStyle = 0xFFFFFF; this.moveTo(0,0);
+
+ this.beginPath(); this.fillStyle = 0xFFFFFF; this.moveTo(0,0);
this.lineTo(14,0); this.lineTo(14,10); this.lineTo(0,10);
this.lineTo(0,0); this.fill();
-
- this.beginPath(); this.fillStyle = swatchcolor;
+
+ this.beginPath(); this.fillStyle = swatchcolor;
this.moveTo(1,1); this.lineTo(13,1); this.lineTo(13,9);
this.lineTo(1,9); this.lineTo(1,1); this.fill();
- }
+ }
</method>
</class>
@@ -146,9 +147,9 @@
<view layout="axis: x; spacing: 5">
<lzcombobox id="cb2" width="50" shownitems="3"
itemdatapath="dsHours:/item" value="2">
- <method event="onvalue" args="v">
+ <handler name="onvalue" args="v">
Debug.write(this.id + ') value:', this.value, v);
- </method>
+ </handler>
</lzcombobox>
<text text="${cb2.value}" resize="true"/>
</view>
@@ -160,9 +161,9 @@
<lzcombobox id="cb3" width="100" shownitems="4"
itemdatapath="moredata:/fruit" textdatapath="@foo" valuedatapath="@val"
value="$once{ parent.testval }">
- <method event="onvalue" args="v">
+ <handler name="onvalue" args="v">
Debug.write(this.id + ') value:', this.value, v);
- </method>
+ </handler>
</lzcombobox>
<text text="${cb3.value}" resize="true"/>
</view>
@@ -194,19 +195,19 @@
<lzcombobox id="cb6" itemdatapath="searchLang:/*" textdatapath="@name"
value="$path{ 'dsFoo:/data[1]/@value' }" shownitems="10">
- <method event="onselect" args="dp">
+ <handler name="onselect" args="dp">
Debug.write(this.id + ') select:', dp)
- </method>
+ </handler>
- <method event="oninit">
+ <handler name="oninit">
// Don't understand why I have to do this when value is data
// bound using datapath. Another way around this is to set
// datacontrolsvisibility in datapath node for combobox. -pk
if (! this.visible) this.setVisible(true);
- </method>
+ </handler>
<!--
- <method event="oninit">
+ <handler name="oninit">
// shownitems = -1 should work but it doesn't
this.shownitems = searchLang.childNodes.length;
</method>
@@ -294,12 +295,12 @@
<view width="100" >
<lzcombobox id="cb15" width="100%" shownitems="8"
itemdatapath="dsHours:/item">
- <method event="oncombofocus">
+ <handler name="oncombofocus">
Debug.write(this, ' got focus');
- </method>
- <method event="oncomboblur">
+ </handler>
+ <handler name="oncomboblur">
Debug.write(this, ' got blur');
- </method>
+ </handler>
</lzcombobox>
</view>
@@ -315,3 +316,4 @@
</view> <!-- id='main' -->
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/components/layouttest.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/layouttest.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/layouttest.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,22 +1,22 @@
<canvas debug="true">
<class name="box" extends="view"
- height="100"
- width="100" />
+ height="100"
+ width="100" />
<view id="cont">
<simplelayout id="george" axis="y" />
<box name="redbox" bgcolor="red"/>
<box name="blubox" bgcolor="blue">
- <button onclick="this.change()">
- Move George
+ <button onclick="this.change()">
+ Move George
- <method name="change">
- george.setAttribute("axis", george.axis == "y" ? "x" : "y");
- //cont.blubox.setAttribute("y",0);
- </method>
+ <method name="change">
+ george.setAttribute("axis", george.axis == "y" ? "x" : "y");
+ //cont.blubox.setAttribute("y",0);
+ </method>
- </button>
+ </button>
</box>
</view>
@@ -24,7 +24,7 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/test/components/lz/colorcontrol.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/colorcontrol.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/colorcontrol.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -12,7 +12,7 @@
<attribute name="value" value="${Math.round(this.s.value)}" type="number"/>
<text x="30" y="15" text="${parent.value}"/>
<text x="${50-this.width}" resize="true" text="${parent.name + ':'}"/>
- <simpleslider name="s" y="5" x="54" width="200" oninit="setValue(0)"
+ <simpleslider name="s" y="5" x="54" width="200" oninit="setValue(0)"
minlimit="-255" maxlimit="255"
majordivision="20" minordivision="0"/>
@@ -21,7 +21,7 @@
<attribute name="value" value="${Math.round(this.s.value)}" type="number"/>
<text x="30" y="15" text="${parent.value}"/>
<text x="${50-this.width}" resize="true" text="${parent.name + ':'}"/>
- <simpleslider name="s" y="5" x="54" width="200"
+ <simpleslider name="s" y="5" x="54" width="200"
minlimit="0" maxlimit="100" oninit="setValue(100)"
majordivision="20" minordivision="0"/>
</class>
@@ -40,14 +40,14 @@
sb.setTint(s1, mycolor, offset.value);
]]>
</method>
- <method event="oninit">
+ <handler name="oninit">
var del = new LzDelegate(this, "docolortransform");
del.register(this.red, 'onvalue');
del.register(this.green, 'onvalue');
del.register(this.blue, 'onvalue');
del.register(this.offset, 'onvalue');
docolortransform();
- </method>
+ </handler>
<simplelayout inset="10"/>
<colorslider name="red" />
<colorslider name="green" />
@@ -58,6 +58,6 @@
</class>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/components/lz/data-lazy.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/data-lazy.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/data-lazy.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -222,15 +222,15 @@
<view layout="axis:y">
<view layout="axis:x">
<button>Get Value
- <method event="onclick">
+ <handler name="onclick">
var val = d2.getValue();
d2val.setText(typeof(val) + '\n' + val);
- </method>
+ </handler>
</button>
<button>Clear
- <method event="onclick">
+ <handler name="onclick">
var val = d2.clearSelection();
- </method>
+ </handler>
</button>
</view>
<text multiline="true" id="d2val" width="200" height="60"/>
@@ -248,7 +248,7 @@
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/components/lz/databind_default.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/databind_default.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/databind_default.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -62,9 +62,9 @@
<list x="5" y="5" width="130" shownitems="3" >
<textlistitem value='$path{"../value/text()"}'>
<datapath pooling="true" xpath="ds:/item/text/text()" />
- <method event="onselected" args="isSelected">
+ <handler name="onselected" args="isSelected">
if (isSelected) ds.removeChild( datapath.p.parentNode );
- </method>
+ </handler>
</textlistitem>
</list>
</view>
@@ -81,11 +81,11 @@
<simplelayout axis="x"/>
</view>
<button name="add" width="50">add
- <method event="onclick">
+ <handler name="onclick">
this.parent.datapath.updateData();
var dp = canvas.datasets.ds.getPointer();
dp.addNodeFromPointer( this.parent.datapath );
- </method>
+ </handler>
</button>
</view>
</testborder>
@@ -191,11 +191,11 @@
<simplelayout axis="x"/>
<text>Record Number</text>
<edittext width="40" name="et">1
- <method event="onkeyup" args="k">
+ <handler name="onkeyup" args="k">
if ( k == 13 ){
this.updateText();
}
- </method>
+ </handler>
</edittext>
</view>
@@ -231,6 +231,6 @@
</testborder>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/components/lz/databinding.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/databinding.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/databinding.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -43,9 +43,9 @@
<view name="c">
<text x="4" y="2" name="title" text="${classroot.text}"
resize="true" fgcolor="0xFFFFFF" >
- <method event="ontext">
+ <handler name="ontext">
parent.setWidth(this.getTextwidth() + 10)
- </method>
+ </handler>
</text>
</view>
<view name="content" />
@@ -57,7 +57,7 @@
<attribute name="text" value="test name" type="html" />
<view bgcolor="0x979797" width="${this.title.getTextWidth() + 10}" height="20" >
<text x="4" y="2" name="title" text="${classroot.text}" resize="true" fgcolor="0xFFFFFF" >
- <method event="ontext">parent.setWidth(this.getTextwidth() + 10)</method>
+ <handler name="ontext">parent.setWidth(this.getTextwidth() + 10)</handler>
</text>
</view>
<view bgcolor="0x979797" width="100%" options="releaseToLayout" height="10" >
@@ -77,38 +77,38 @@
<textlistitem datapath="customtextandvalue:/item"
text='$path{"text/text()"}'
value='$path{"value/text()"}'>
- <method event="onselected" args="isSelected">
+ <handler name="onselected" args="isSelected">
if (isSelected) this.datapath.deleteNode();
- </method>
+ </handler>
</textlistitem>
</list>
</view>
<view name="add" y="5" datapath="blank:/item">
<simplelayout axis="y" spacing="1" />
<edittext width="${parent.add.width}" datapath="value/text()">
- <method event="oninit">
+ <handler name="oninit">
if (! this.datapath.p) {
var el = new LzDataElement('value')
el.appendChild( new LzDataText() );
this.datapath.p = el;
}
- </method>
+ </handler>
</edittext>
<edittext width="${parent.add.width}" datapath="text/text()" >
- <method event="oninit">
+ <handler name="oninit">
if (! this.datapath.p) {
var el = new LzDataElement('value')
el.appendChild( new LzDataText() );
this.datapath.p = el;
}
- </method>
+ </handler>
</edittext>
<button name="add" width="50">add
- <method event="onclick">
+ <handler name="onclick">
this.parent.datapath.updateData();
var dp = canvas.datasets.customtextandvalue.getPointer();
dp.addNodeFromPointer( this.parent.datapath );
- </method>
+ </handler>
</button>
</view>
</viewer>
@@ -122,10 +122,10 @@
<radiobutton datapath="customtextandvalue:/item"
text='$path{"text/text()"}'
value='$path{"value/text()"}'>
- <method event="onclick">
+ <handler name="onclick">
parent.parent.status.setText
('value: ' + parent.value);
- </method>
+ </handler>
</radiobutton>
</radiogroup>
</view>
@@ -157,7 +157,7 @@
<textlistitem datapath="customtextandvalue:/item"
text='$path{"text/text()"}'
value='$path{"value/text()"}' >
- <method event="onselected" args="isSelected">
+ <handler name="onselected" args="isSelected">
<![CDATA[
if (isSelected) {
if (typeof(parent.value) == 'string') {
@@ -174,7 +174,7 @@
}
}
]]>
- </method>
+ </handler>
</textlistitem>
</list>
</view>
@@ -187,11 +187,11 @@
<textlistitem datapath="customtextandvalue:/item"
text='$path{"text/text()"}'
value='$path{"value/text()"}' >
- <method event="onselected" args="isSelected">
+ <handler name="onselected" args="isSelected">
if (isSelected) {
parent.parent.status.setText('value: ' + parent.value);
}
- </method>
+ </handler>
</textlistitem>
</combobox>
</view>
@@ -230,6 +230,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/components/lz/leak-components.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/leak-components.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/leak-components.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -6,15 +6,15 @@
<attribute name="numitems" value="0"/>
<attribute name="limit" value="60"/>
<attribute name="itemclassname" value="" type="string"/>
- <method event="oninit">
+ <handler name="oninit">
this.itemlist = [];
- </method>
+ </handler>
<method name="dotest" args="whichclass">
this.start = 1;
this.numtimes = 0;
this.itemclassname = whichclass;
</method>
- <method event="onidle" reference="LzIdle"> <![CDATA[
+ <handler name="onidle" reference="LzIdle"> <![CDATA[
if (start && (this.numtimes < this.limit || this.numitems>0)) {
if (this.numitems == 0) {
for (var i=0; i < 10; i ++) {
@@ -32,7 +32,7 @@
this.numitems = 0;
}
}
- ]]> </method>
+ ]]> </handler>
</class>
<leaktest id="test"/>
@@ -53,7 +53,7 @@
<text x="200" width="150" text="${test.numtimes +'/'+test.limit}"/>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/components/lz/leak-listitems.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/leak-listitems.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/leak-listitems.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -6,15 +6,15 @@
<attribute name="numitems" value="0"/>
<attribute name="limit" value="100"/>
<attribute name="itemclassname" value="" type="string"/>
- <method event="oninit">
+ <handler name="oninit">
this.itemlist = [];
- </method>
+ </handler>
<method name="dotest" args="whichclass">
this.start = 1;
this.numtimes = 0;
this.itemclassname = whichclass;
</method>
- <method event="onidle" reference="LzIdle"> <![CDATA[
+ <handler name="onidle" reference="LzIdle"> <![CDATA[
if (start && (this.numtimes < this.limit || this.numitems>0)) {
if (this.numitems == 0) {
for (var i=0; i < 10; i ++) {
@@ -34,24 +34,24 @@
}
this.numitems = 0;
}
- ]]> </method>
+ ]]> </handler>
</class>
- <method event="oninit">
+ <handler name="oninit">
this.wasteofspace = new Array();
for (var i=0; i < 10000; i++) this.wasteofspace[i] = 'waste of space #' + i;
- </method>
+ </handler>
<class name="bigbaselistitem" extends="baselistitem">
- <method event="oninit">
+ <handler name="oninit">
this.wos = canvas.wasteofspace.concat()
- </method>
+ </handler>
</class>
<class name="bigtextlistitem" extends="textlistitem">
- <method event="oninit">
+ <handler name="oninit">
this.wos = canvas.wasteofspace.concat()
- </method>
+ </handler>
</class>
<leaktest id="test"/>
@@ -67,22 +67,22 @@
</combobox>
<combobox id="listtype">
<textlistitem>combobox
- <method event="onselected" args="isselected">
+ <handler name="onselected" args="isselected">
if (isselected) {
combostate.apply();
} else {
combostate.remove();
}
- </method>
+ </handler>
</textlistitem>
<textlistitem selected="true">list
- <method event="onselected" args="isselected">
+ <handler name="onselected" args="isselected">
if (isselected) {
liststate.apply();
} else {
liststate.remove();
}
- </method>
+ </handler>
</textlistitem>
</combobox>
</view>
@@ -117,7 +117,7 @@
</state>
</view>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/components/lz/list-dataoption-resize.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/list-dataoption-resize.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/list-dataoption-resize.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -108,10 +108,10 @@
</dataset>
<inittimer/>
<class name="resizelistitem" extends="textlistitem">
- <method event="onselected">
+ <handler name="onselected">
if (this.selected) this.setHeight(40);
else this.setHeight(20);
- </method>
+ </handler>
</class>
<view x="20" y="30" layout="axis:x;spacing:20">
<view layout="axis:y; spacing:2">
@@ -131,15 +131,15 @@
<view layout="axis:y">
<view layout="axis:x">
<button>Get Value
- <method event="onclick">
+ <handler name="onclick">
var val = d2.getValue();
d2val.setText(typeof(val) + '\n' + val);
- </method>
+ </handler>
</button>
<button>Clear
- <method event="onclick">
+ <handler name="onclick">
var val = d2.clearSelection();
- </method>
+ </handler>
</button>
</view>
<text multiline="true" id="d2val" width="200" height="60"/>
@@ -157,7 +157,7 @@
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/components/lz/most_components.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/most_components.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/most_components.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -3,55 +3,55 @@
<inittimer width="150"/>
<debug x="450" y="200" height="200"/>
- <view id="s1" x="20" y="40">
- <view>
- <swatch/>
- <swatch bgcolor="0xc0c0c0"/>
- <swatch bgcolor="0x333333"/>
- <swatch bgcolor="0x000000"/>
- <simplelayout axis="y" spacing="10"/>
- </view>
-
- <view name="tsliderview">
-
- <tabslider width="250" height="200">
- <tabelement text="possesion">
- <button text="hello"/>
- <checkbox text="this should not be big"/>
- <radiobutton text="this should also not be big"/>
- <text resize="true">hello sarah how are you?</text>
- <simplelayout axis="y" spacing="10"/>
- </tabelement >
- <tabelement text="housewares"/>
- <tabelement text="isotope"/>
- <tabelement text="delinquents"/>
- <tabelement text="whale bones"/>
- </tabslider>
-
- <!-- build padding into content area? allowheight specified in parent apply to panes?-->
- <tabs>
- <tabpane>Insecticides
- <simplelayout spacing="10"/>
- <button height="22">Remove</button>
- <radiogroup>
- <radiobutton>Yes, I want to know more</radiobutton>
- <radiobutton>No, I prefer to remain blissfully unaware</radiobutton>
- <radiobutton>Please tell my neighbor, who may tell me</radiobutton>
- </radiogroup>
- </tabpane>
- <tabpane selected="true">Parcheesi
- <text >On my honor I will do my best </text>
- <button height="22">Testify</button>
- <simplelayout spacing="10"/>
- </tabpane>
- <tabpane text="Subliminal">
- <button height="22" >Submit</button>
- </tabpane>
- </tabs>
-
+ <view id="s1" x="20" y="40">
+ <view>
+ <swatch/>
+ <swatch bgcolor="0xc0c0c0"/>
+ <swatch bgcolor="0x333333"/>
+ <swatch bgcolor="0x000000"/>
+ <simplelayout axis="y" spacing="10"/>
+ </view>
+
+ <view name="tsliderview">
+
+ <tabslider width="250" height="200">
+ <tabelement text="possesion">
+ <button text="hello"/>
+ <checkbox text="this should not be big"/>
+ <radiobutton text="this should also not be big"/>
+ <text resize="true">hello sarah how are you?</text>
+ <simplelayout axis="y" spacing="10"/>
+ </tabelement >
+ <tabelement text="housewares"/>
+ <tabelement text="isotope"/>
+ <tabelement text="delinquents"/>
+ <tabelement text="whale bones"/>
+ </tabslider>
+
+ <!-- build padding into content area? allowheight specified in parent apply to panes?-->
+ <tabs>
+ <tabpane>Insecticides
+ <simplelayout spacing="10"/>
+ <button height="22">Remove</button>
+ <radiogroup>
+ <radiobutton>Yes, I want to know more</radiobutton>
+ <radiobutton>No, I prefer to remain blissfully unaware</radiobutton>
+ <radiobutton>Please tell my neighbor, who may tell me</radiobutton>
+ </radiogroup>
+ </tabpane>
+ <tabpane selected="true">Parcheesi
+ <text >On my honor I will do my best </text>
+ <button height="22">Testify</button>
+ <simplelayout spacing="10"/>
+ </tabpane>
+ <tabpane text="Subliminal">
+ <button height="22" >Submit</button>
+ </tabpane>
+ </tabs>
+
- <simplelayout axis="y" spacing="30"/>
- </view>
+ <simplelayout axis="y" spacing="30"/>
+ </view>
<!-- gripper align w/ title. stop before close btn. less title room.
resize closer to edges. content border? performance?-->
<window text="test winsdow" width="250" height="250"
@@ -63,27 +63,27 @@
<scrollbar/>
</window>
- <!-- button height not correct (18 not 22) check view color and opacity in 5pc. -->
- <view>
- <button height="22">Submit</button>
- <button height="22">Cancel</button>
- <button height="22">OK</button>
- <button height="22">Revert</button>
- <!-- combobox menu wrong art (3D for scrolling list only) -->
- <combobox text="varietal" width="120">
- <textlistitem text="this one"/>
- <textlistitem text="this one"/>
- <textlistitem text="this one"/>
- <textlistitem text="this one"/>
- </combobox>
- <!-- offset black dot in radiobtn art (dn state) -->
- <radiogroup>
- <radiobutton text="tension"/>
- <radiobutton text="distance"/>
- <radiobutton text="delerium"/>
- <radiobutton text="froth"/>
- <radiobutton text="persuasion"/>
- </radiogroup>
+ <!-- button height not correct (18 not 22) check view color and opacity in 5pc. -->
+ <view>
+ <button height="22">Submit</button>
+ <button height="22">Cancel</button>
+ <button height="22">OK</button>
+ <button height="22">Revert</button>
+ <!-- combobox menu wrong art (3D for scrolling list only) -->
+ <combobox text="varietal" width="120">
+ <textlistitem text="this one"/>
+ <textlistitem text="this one"/>
+ <textlistitem text="this one"/>
+ <textlistitem text="this one"/>
+ </combobox>
+ <!-- offset black dot in radiobtn art (dn state) -->
+ <radiogroup>
+ <radiobutton text="tension"/>
+ <radiobutton text="distance"/>
+ <radiobutton text="delerium"/>
+ <radiobutton text="froth"/>
+ <radiobutton text="persuasion"/>
+ </radiogroup>
<list shownitems="4" width="140">
<textlistitem>tricycle</textlistitem>
@@ -93,40 +93,40 @@
<textlistitem>blimp</textlistitem>
<textlistitem>racecar</textlistitem>
</list>
- <simplelayout axis="y" spacing="14"/>
- </view>
-
- <view height="200" width="40" clip="true">
- <view height="500" width="40"/>
- <!-- tab to scroll, then arrow -->
- <scrollbar id="sb"/>
- </view>
-
- <!-- align text vertically against checkbox. increase check box size? -->
- <view name="checkbox_group">
- <checkbox text="tension"/>
- <checkbox text="distance"/>
- <checkbox text="delerium"/>
- <checkbox text="froth"/>
- <checkbox text="persuasion"/>
- <simplelayout axis="y" spacing="5"/>
- </view>
-
- <!-- input text resize not working. text truncated.
- text from a dataset not resizing box-->
- <view name="textfields">
- <edittext text="this is a spiffy input box for text"/>
- <edittext width="100"/>
- <edittext width="100"/>
- <edittext width="100"/>
- <simplelayout axis="y" spacing="5"/>
- </view>
+ <simplelayout axis="y" spacing="14"/>
+ </view>
+
+ <view height="200" width="40" clip="true">
+ <view height="500" width="40"/>
+ <!-- tab to scroll, then arrow -->
+ <scrollbar id="sb"/>
+ </view>
+
+ <!-- align text vertically against checkbox. increase check box size? -->
+ <view name="checkbox_group">
+ <checkbox text="tension"/>
+ <checkbox text="distance"/>
+ <checkbox text="delerium"/>
+ <checkbox text="froth"/>
+ <checkbox text="persuasion"/>
+ <simplelayout axis="y" spacing="5"/>
+ </view>
+
+ <!-- input text resize not working. text truncated.
+ text from a dataset not resizing box-->
+ <view name="textfields">
+ <edittext text="this is a spiffy input box for text"/>
+ <edittext width="100"/>
+ <edittext width="100"/>
+ <edittext width="100"/>
+ <simplelayout axis="y" spacing="5"/>
+ </view>
- <simplelayout axis="x" spacing="30"/>
- </view>
+ <simplelayout axis="x" spacing="30"/>
+ </view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/components/lz/most_styles.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/most_styles.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/most_styles.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -7,61 +7,61 @@
<whitestyle name="whitecolors"/>
<purplestyle name="purplecolors"/>
<style name="altbluestyle"
- canvascolor="grayblue"
- basecolor="iceblue3"
- bgcolor="iceblue5"
- textfieldcolor="palegreen5" textcolor="blue" texthilitecolor="palegreen1"
- textselectedcolor="yellow" textdisabledcolor="green"
+ canvascolor="grayblue"
+ basecolor="iceblue3"
+ bgcolor="iceblue5"
+ textfieldcolor="palegreen5" textcolor="blue" texthilitecolor="palegreen1"
+ textselectedcolor="yellow" textdisabledcolor="green"
hilitecolor="iceblue4" selectedcolor="iceblue2"
bordercolor="green" bordersize="10"/>
<!-- text size and color? -->
<!--view valign="bottom">
- <inittimer/><frametimer/>
+ <inittimer/><frametimer/>
</view-->
<debug x="450" y="200" height="200"/>
- <view id="s1" x="20" y="40">
- <view name="tsliderview">
- <view name="stylechooser">
- <simplelayout spacing="4"/>
- <text>Style:</text>
- <combobox width="120" editable="false">
- <textlistitem text="silver" >
- <method event="onselected">
- canvas.silvercolors.setAttribute("isdefault", true);
- </method>
- </textlistitem>
- <textlistitem text="green" >
- <method event="onselected">
+ <view id="s1" x="20" y="40">
+ <view name="tsliderview">
+ <view name="stylechooser">
+ <simplelayout spacing="4"/>
+ <text>Style:</text>
+ <combobox width="120" editable="false">
+ <textlistitem text="silver" >
+ <handler name="onselected">
+ canvas.silvercolors.setAttribute("isdefault", true);
+ </handler>
+ </textlistitem>
+ <textlistitem text="green" >
+ <handler name="onselected">
canvas.greencolors.setAttribute("isdefault", true);
- </method>
- </textlistitem>
- <textlistitem text="blue">
- <method event="onselected">
+ </handler>
+ </textlistitem>
+ <textlistitem text="blue">
+ <handler name="onselected">
canvas.bluecolors.setAttribute("isdefault", true);
- </method>
- </textlistitem>
- <textlistitem text="gold" >
- <method event="onselected">
+ </handler>
+ </textlistitem>
+ <textlistitem text="gold" >
+ <handler name="onselected">
canvas.goldcolors.setAttribute("isdefault", true);
- </method>
- </textlistitem>
- <textlistitem text="white" selected="true">
- <method event="onselected">
+ </handler>
+ </textlistitem>
+ <textlistitem text="white" selected="true">
+ <handler name="onselected">
canvas.whitecolors.setAttribute("isdefault", true);
- </method>
- </textlistitem>
- <textlistitem text="purple" >
- <method event="onselected">
+ </handler>
+ </textlistitem>
+ <textlistitem text="purple" >
+ <handler name="onselected">
canvas.purplecolors.setAttribute("isdefault", true);
- </method>
- </textlistitem>
- <textlistitem text="alt blue" >
- <method event="onselected">
+ </handler>
+ </textlistitem>
+ <textlistitem text="alt blue" >
+ <handler name="onselected">
canvas.altbluestyle.setAttribute("isdefault", true);
- </method>
- </textlistitem>
- </combobox>
+ </handler>
+ </textlistitem>
+ </combobox>
<!-- <view id="testcolor" width="22" height="22"-->
<!-- bgcolor="${setBGColor(canvas.defaultstyle, canvas.defaultstyle.basecolor)}" >-->
@@ -69,78 +69,78 @@
<!-- super.setBGColor(canvas.defaultstyle.basecolor);-->
<!-- </method>-->
<!-- </view>-->
- </view>
- <tabslider width="250" height="200">
- <tabelement text="possesion" selected="true">
- <button text="hello"/>
- <checkbox text="this should not be big"/>
- <radiobutton text="this should also not be big"/>
- <text resize="true">hello sarah how are you?</text>
- <simplelayout axis="y" spacing="10"/>
- </tabelement >
- <tabelement text="housewares"/>
- <tabelement text="isotope"/>
- <tabelement text="delinquents"/>
- <tabelement text="whale bones"/>
- </tabslider>
+ </view>
+ <tabslider width="250" height="200">
+ <tabelement text="possesion" selected="true">
+ <button text="hello"/>
+ <checkbox text="this should not be big"/>
+ <radiobutton text="this should also not be big"/>
+ <text resize="true">hello sarah how are you?</text>
+ <simplelayout axis="y" spacing="10"/>
+ </tabelement >
+ <tabelement text="housewares"/>
+ <tabelement text="isotope"/>
+ <tabelement text="delinquents"/>
+ <tabelement text="whale bones"/>
+ </tabslider>
- <!-- build padding into content area? allowheight specified in parent apply to panes?-->
- <tabs>
- <tabpane>Insecticides
- <simplelayout spacing="10"/>
- <button height="22">Remove</button>
- <radiogroup>
- <radiobutton>Yes, I want to know more</radiobutton>
- <radiobutton>No, I prefer to remain blissfully unaware</radiobutton>
- <radiobutton>Please tell my neighbor, who may tell me</radiobutton>
- </radiogroup>
- </tabpane>
- <tabpane selected="true">Parcheesi
- <text >On my honor I will do my best </text>
- <button height="22">Testify</button>
- <simplelayout spacing="10"/>
- </tabpane>
- <tabpane text="Subliminal">
- <button height="22" >Submit</button>
- </tabpane>
- </tabs>
+ <!-- build padding into content area? allowheight specified in parent apply to panes?-->
+ <tabs>
+ <tabpane>Insecticides
+ <simplelayout spacing="10"/>
+ <button height="22">Remove</button>
+ <radiogroup>
+ <radiobutton>Yes, I want to know more</radiobutton>
+ <radiobutton>No, I prefer to remain blissfully unaware</radiobutton>
+ <radiobutton>Please tell my neighbor, who may tell me</radiobutton>
+ </radiogroup>
+ </tabpane>
+ <tabpane selected="true">Parcheesi
+ <text >On my honor I will do my best </text>
+ <button height="22">Testify</button>
+ <simplelayout spacing="10"/>
+ </tabpane>
+ <tabpane text="Subliminal">
+ <button height="22" >Submit</button>
+ </tabpane>
+ </tabs>
- <menubar name="mbar" width="300" x="10" y="100" >
- <menu name="file" id="mfile" >File
- <menuitem text="item 1" />
- <menuitem text="item 2" />
- </menu>
+ <menubar name="mbar" width="300" x="10" y="100" >
+ <menu name="file" id="mfile" >File
+ <menuitem text="item 1" />
+ <menuitem text="item 2" />
+ </menu>
- <menu name="Document" >Document
- <menuitem text="Menuitem with submenu" />
- <menuseparator/>
- <menuitem id="MWS" text="item 2" >
- <menu name="subedit" >subedit
- <menuitem text="subitem 1" />
- <menuitem text="subitem 2" />
- </menu>
- </menuitem>
- <menuitem text="item 3" >
- <menu name="subedit" >subedit
- <menuitem text="subitem 1" />
- <menuitem text="subitem 2" >
- <menu name="subsubedit" >subedit
- <menuitem text="subitem 1" />
- <menuitem text="subitem 2" />
- <menuitem text="subitem 3" />
- </menu>
- </menuitem>
- <menuitem text="subitem 3" />
- </menu>
- </menuitem>
- <menuitem text="item 4" />
- <menuitem text="item 5" />
- <menuitem text="item 6" />
- </menu>
- </menubar>
+ <menu name="Document" >Document
+ <menuitem text="Menuitem with submenu" />
+ <menuseparator/>
+ <menuitem id="MWS" text="item 2" >
+ <menu name="subedit" >subedit
+ <menuitem text="subitem 1" />
+ <menuitem text="subitem 2" />
+ </menu>
+ </menuitem>
+ <menuitem text="item 3" >
+ <menu name="subedit" >subedit
+ <menuitem text="subitem 1" />
+ <menuitem text="subitem 2" >
+ <menu name="subsubedit" >subedit
+ <menuitem text="subitem 1" />
+ <menuitem text="subitem 2" />
+ <menuitem text="subitem 3" />
+ </menu>
+ </menuitem>
+ <menuitem text="subitem 3" />
+ </menu>
+ </menuitem>
+ <menuitem text="item 4" />
+ <menuitem text="item 5" />
+ <menuitem text="item 6" />
+ </menu>
+ </menubar>
- <simplelayout axis="y" spacing="30"/>
- </view>
+ <simplelayout axis="y" spacing="30"/>
+ </view>
<!-- gripper align w/ title. stop before close btn. less title room.
resize closer to edges. content border? performance?-->
<window text="test window" width="250" height="250"
@@ -153,61 +153,61 @@
<scrollbar/>
</window>
- <!-- button height not correct (18 not 22) check view color and opacity in 5pc. -->
- <view>
- <button height="22">Submit</button>
- <button height="22">Cancel</button>
- <button height="22">OK</button>
- <button height="22">Revert</button>
- <button height="22" enabled="false">disabled</button>
+ <!-- button height not correct (18 not 22) check view color and opacity in 5pc. -->
+ <view>
+ <button height="22">Submit</button>
+ <button height="22">Cancel</button>
+ <button height="22">OK</button>
+ <button height="22">Revert</button>
+ <button height="22" enabled="false">disabled</button>
- <combobox width="120">
- <textlistitem text="item one"/>
- <textlistitem text="item two"/>
- <textlistitem text="item three"/>
- </combobox>
- <!-- offset black dot in radiobtn art (dn state) -->
- <radiogroup>
- <radiobutton text="tension"/>
- <radiobutton text="distance"/>
- <radiobutton text="delerium"/>
- <radiobutton text="froth"/>
- <radiobutton text="persuasion"/>
- <radiobutton text="disabled" enabled="false"/>
- </radiogroup>
- <simplelayout axis="y" spacing="14"/>
- </view>
+ <combobox width="120">
+ <textlistitem text="item one"/>
+ <textlistitem text="item two"/>
+ <textlistitem text="item three"/>
+ </combobox>
+ <!-- offset black dot in radiobtn art (dn state) -->
+ <radiogroup>
+ <radiobutton text="tension"/>
+ <radiobutton text="distance"/>
+ <radiobutton text="delerium"/>
+ <radiobutton text="froth"/>
+ <radiobutton text="persuasion"/>
+ <radiobutton text="disabled" enabled="false"/>
+ </radiogroup>
+ <simplelayout axis="y" spacing="14"/>
+ </view>
- <view height="200" width="40" clip="true">
- <view height="500" width="40"/>
- <!-- tab to scroll, then arrow -->
- <scrollbar id="sb"/>
- </view>
+ <view height="200" width="40" clip="true">
+ <view height="500" width="40"/>
+ <!-- tab to scroll, then arrow -->
+ <scrollbar id="sb"/>
+ </view>
- <!-- align text vertically against checkbox. increase check box size? -->
- <view name="checkbox_group">
- <checkbox text="tension"/>
- <checkbox text="distance"/>
- <checkbox text="delerium"/>
- <checkbox text="froth"/>
- <checkbox text="persuasion"/>
- <checkbox text="disabled" enabled="false"/>
- <simplelayout axis="y" spacing="5"/>
- </view>
+ <!-- align text vertically against checkbox. increase check box size? -->
+ <view name="checkbox_group">
+ <checkbox text="tension"/>
+ <checkbox text="distance"/>
+ <checkbox text="delerium"/>
+ <checkbox text="froth"/>
+ <checkbox text="persuasion"/>
+ <checkbox text="disabled" enabled="false"/>
+ <simplelayout axis="y" spacing="5"/>
+ </view>
- <!-- input text resize not working. text truncated.
- text from a dataset not resizing box-->
- <view name="textfields">
- <edittext text="this is a spiffy input box for text"/>
- <edittext text="disabled" enabled="false"/>
- <simplelayout axis="y" spacing="5"/>
- </view>
+ <!-- input text resize not working. text truncated.
+ text from a dataset not resizing box-->
+ <view name="textfields">
+ <edittext text="this is a spiffy input box for text"/>
+ <edittext text="disabled" enabled="false"/>
+ <simplelayout axis="y" spacing="5"/>
+ </view>
- <simplelayout axis="x" spacing="30"/>
- </view>
+ <simplelayout axis="x" spacing="30"/>
+ </view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/components/lz/register/register.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/register/register.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/register/register.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -7,7 +7,7 @@
<font name="vera_super_bold" src="verity/verity11bold.ttf"/>
<dataset name="authdataset" type="http" src="http:authenticator.jsp">
- <method event="ondata">
+ <handler name="ondata">
var dptr = authdataset.getPointer();
var code = dptr.xpathQuery('/authentication[1]/status[1]/@code');
var rt = dptr.xpathQuery('/authentication[1]/status[1]/@rt');
@@ -53,10 +53,10 @@
}
- </method>
- <method event="ontimeout">
+ </handler>
+ <handler name="ontimeout">
Debug.write('request timed out');
- </method>
+ </handler>
</dataset>
<class name="register">
@@ -151,7 +151,7 @@
<simplelayout axis="y" spacing="6"/>
</view>
<button id="regbut" isdefault="true" height="22" x="260" text="Submit">
- <method event="onclick">
+ <handler name="onclick">
<![CDATA[
this.reset();
@@ -206,7 +206,7 @@
canvas.authdataset.setQueryParams(obj);
regsub.submit();
]]>
- </method>
+ </handler>
<method name="try_another_username" args="mesg">
<![CDATA[
@@ -275,11 +275,11 @@
<view x="${Math.round((parent.width-this.width)/2)}" pixellock="true">
<simplelayout axis="x" spacing="10"/>
<button isdefault="true" height="22" text="Log In">
- <method event="onclick">
+ <handler name="onclick">
canvas.authdataset.setQueryParams(null);
canvas.authdataset.setQueryParams( { rt: 'login' } );
loginsub.submit();
- </method>
+ </handler>
</button>
<button onclick="ts.selectNext()" height="22" text="Register" />
</view>
@@ -347,7 +347,7 @@
<button x="${Math.round((parent.width-this.width)/2)}">Logout
- <method event="onclick">
+ <handler name="onclick">
logintab.setAttribute('selected', true);
aname.setText('');
@@ -368,7 +368,7 @@
screen2.a.doStart();
screen1.a.doStart();
- </method>
+ </handler>
</button>
</view>
@@ -390,18 +390,18 @@
</text>
<button x="${Math.round((parent.width-this.width)/2)}">Continue
- <method event="onclick">
+ <handler name="onclick">
regsuccess.a.setTo(0);
regsuccess.a.doStart();
screen2.a.setTo(1);
screen2.a.doStart();
- </method>
+ </handler>
</button>
</view>
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/components/lz/scrollbar_vertical.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/scrollbar_vertical.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/scrollbar_vertical.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -10,10 +10,10 @@
<scrollbar name="sb" height="${parent.height}" >
<!--attribute name="scrolltarget" init="parent.content"/-->
<!--attribute name="targetview" init="parent.content"/-->
- <method event="oninit">
+ <handler name="oninit">
// Debug.write("targetview ="+targetview);
// Debug.write("targetview height="+targetview.height);
- </method>
+ </handler>
</scrollbar>
<resizelayout axis="x"/>
@@ -97,6 +97,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/components/lz/slider/slider.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/slider/slider.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/slider/slider.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -14,7 +14,7 @@
<attribute name="numticks" value="2"/>
<divisionlayout name="layout" axis="x"/>
- <method event="oninit">
+ <handler name="oninit">
<![CDATA[
this.layout.lock();
for(var i = 0; i < this.numticks; i++)
@@ -23,7 +23,7 @@
}
this.layout.unlock();
]]>
- </method>
+ </handler>
</class>
<!--
<class name="ticks" height="10" clip="true">
@@ -62,14 +62,14 @@
<xdragstate name="dragger" />
<basebutton x="${-(this.width /2)}" resource="slider_arrow">
- <method event="onmousedown">
+ <handler name="onmousedown">
parent.dragger.apply();
parent.setAttribute("isMouseDown", true);
- </method>
- <method event="onmouseup">
+ </handler>
+ <handler name="onmouseup">
parent.dragger.remove();
parent.setAttribute("isMouseDown", false);
- </method>
+ </handler>
</basebutton>
</class>
@@ -144,6 +144,6 @@
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/components/lz/test-color.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/test-color.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/test-color.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -9,7 +9,7 @@
<attribute name="value" value="${Math.round(this.s.value)}" type="number"/>
<text x="30" y="15" text="${parent.value}"/>
<text x="${50-this.width}" resize="true" text="${parent.name + ':'}"/>
- <simpleslider name="s" y="5" x="54" width="200" oninit="setValue(40)"
+ <simpleslider name="s" y="5" x="54" width="200" oninit="setValue(40)"
minlimit="-255" maxlimit="255"
majordivision="20" minordivision="0"/>
@@ -18,7 +18,7 @@
<attribute name="value" value="${Math.round(this.s.value)}" type="number"/>
<text x="30" y="15" text="${parent.value}"/>
<text x="${50-this.width}" resize="true" text="${parent.name + ':'}"/>
- <simpleslider name="s" y="5" x="54" width="200"
+ <simpleslider name="s" y="5" x="54" width="200"
minlimit="0" maxlimit="100" oninit="setValue(100)"
majordivision="20" minordivision="0"/>
</class>
@@ -61,14 +61,14 @@
sb.setTint(s4, mycolor, offset.value);
]]>
</method>
- <method event="oninit">
+ <handler name="oninit">
var del = new LzDelegate(this, "docolortransform");
del.register(this.red, 'onvalue');
del.register(this.green, 'onvalue');
del.register(this.blue, 'onvalue');
del.register(this.offset, 'onvalue');
docolortransform();
- </method>
+ </handler>
<simplelayout inset="10"/>
<div>percentage</div>
<colorslider name="red" />
@@ -81,7 +81,7 @@
</class>
<colorcontrol/>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/components/lz/test-combo-mode.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/test-combo-mode.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/test-combo-mode.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -51,23 +51,23 @@
<!-- CANCEL BUTTON -->
<button x="65" y="80">Cancel
- <method event="onclick">
+ <handler name="onclick">
LzModeManager.release( this.parent );
this.parent.setBGColor(null);
- </method>
+ </handler>
</button>
<!-- Save -->
<button name="Save" x="145" y="80">Make Modal
- <method event="onclick">
+ <handler name="onclick">
LzModeManager.makeModal( this.parent );
this.parent.setBGColor(yellow);
- </method>
+ </handler>
</button>
</view>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/components/lz/test-combobox-nav.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/test-combobox-nav.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/test-combobox-nav.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,20 +1,20 @@
<canvas>
- <debug x="110" y="140"/>
- <view x="15" y="15">
- <simplelayout/>
- <button/>
- <combobox>
- <textlistitem>stuff</textlistitem>
- </combobox>
- <button/>
- <combobox editable="false">
- <textlistitem>stay focussed</textlistitem>
+ <debug x="110" y="140"/>
+ <view x="15" y="15">
+ <simplelayout/>
+ <button/>
+ <combobox>
+ <textlistitem>stuff</textlistitem>
+ </combobox>
+ <button/>
+ <combobox editable="false">
+ <textlistitem>stay focussed</textlistitem>
<textlistitem selected="true">select</textlistitem>
- </combobox>
- <button/>
- </view>
+ </combobox>
+ <button/>
+ </view>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/components/lz/test-combobox.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/test-combobox.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/test-combobox.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,8 +1,8 @@
<canvas bgcolor="#EAEAEA" width="640" height="460">
<!--attribute name="defaultstyle" value="${greenstyle}"/-->
- <dataset name="itemsdata" type="http" src="test-combobox-data.xml"
- request="true" />
+ <dataset name="itemsdata" type="http" src="test-combobox-data.xml"
+ request="true" />
<dataset name="items">
<item value="item0" >item 0</item>
@@ -38,7 +38,7 @@
<attribute name="text" value="test name" type="html" />
<view bgcolor="0x979797" width="${this.title.getTextWidth() + 10}" height="20" >
<text x="4" y="2" name="title" text="${classroot.text}" resize="true" fgcolor="0xFFFFFF" >
- <method event="ontext">parent.setWidth(this.getTextwidth() + 10)</method>
+ <handler name="ontext">parent.setWidth(this.getTextwidth() + 10)</handler>
</text>
</view>
<view bgcolor="0x979797" width="100%" options="releaseToLayout" height="10" >
@@ -50,132 +50,132 @@
<resizelayout axis="y" />
</class>
- <view x="20" y="20" >
- <simplelayout spacing="15"/>
- <testborder width="550" height="250"> Combobox: datapath uses localdata
+ <view x="20" y="20" >
+ <simplelayout spacing="15"/>
+ <testborder width="550" height="250"> Combobox: datapath uses localdata
<checkbox x="5" y="5" id="c" value="true">editable</checkbox>
<text x="5" y="23"> defaulttext="choose one.." </text>
- <combobox id="cbox1"
- x="5" y="45"
- width="130"
+ <combobox id="cbox1"
+ x="5" y="45"
+ width="130"
spacing="0" shownitems="6"
- defaulttext="Choose One..."
- editable="${c.value}">
- <textlistitem name="lineitem"
- datapath="items:/item"
- text='$path{"text()"}'
+ defaulttext="Choose One..."
+ editable="${c.value}">
+ <textlistitem name="lineitem"
+ datapath="items:/item"
+ text='$path{"text()"}'
value='$path{"@value"}'
>
</textlistitem>
- </combobox>
+ </combobox>
<text x="5" y="73"> defaultselection="3" </text>
- <combobox id="cbox2"
- x="5" y="95"
- width="130"
+ <combobox id="cbox2"
+ x="5" y="95"
+ width="130"
spacing="0" shownitems="6"
- defaultselection="3"
- editable="${c.value}" >
- <textlistitem name="lineitem"
- datapath="items:/item"
- text='$path{"text()"}'
+ defaultselection="3"
+ editable="${c.value}" >
+ <textlistitem name="lineitem"
+ datapath="items:/item"
+ text='$path{"text()"}'
value='$path{"@value"}'
>
</textlistitem>
- </combobox>
+ </combobox>
- <view x="170" y="5" >
- <view>
- <button> add item
- <method event="onclick">
- var txt = parent.fields.txt.getText();
- var vle = parent.fields.vle.getText();
- cbox1.additem(txt,vle);
- </method>
- </button>
- <view name="fields" x="150">
- <edittext width="100" name="txt" />
- <edittext width="100" name="vle" />
- <simplelayout axis="x" spacing="5" />
- </view>
- </view>
- <view>
- <button enabled="true" > remove item
- <method event="onclick">
- cbox1.removeItem(parent.inputfields.txt.getText());
- </method>
- </button>
- <view name="inputfields" x="150">
- <edittext width="100" name="txt"/>
- <edittext width="100" name="vle"/>
- <simplelayout axis="x" spacing="5" />
- </view>
- </view>
- <view>
- <button onclick="this.parent.vle.setText(cbox1.getValue())" > get value </button>
- <edittext x="150" width="100" name="vle" />
- </view>
- <view>
- <button >set shownitems
- <method event="onclick" >
- cbox1.setAttribute('shownitems',number(parent.vle.getText()));
- </method>
- </button>
- <edittext x="150" width="100" name="vle" />
- </view>
- <view>
- <button >select item
- <method event="onclick" >
- cbox1.selectItem(parent.vle.getText());
- </method>
- </button>
- <edittext x="150" width="100" name="vle" />
- </view>
- <view>
- <button >select item at
- <method event="onclick" >
- cbox1.selectItemAt(number(parent.vle.getText()));
- </method>
- </button>
- <edittext x="150" width="100" name="vle" />
- </view>
+ <view x="170" y="5" >
+ <view>
+ <button> add item
+ <handler name="onclick">
+ var txt = parent.fields.txt.getText();
+ var vle = parent.fields.vle.getText();
+ cbox1.additem(txt,vle);
+ </handler>
+ </button>
+ <view name="fields" x="150">
+ <edittext width="100" name="txt" />
+ <edittext width="100" name="vle" />
+ <simplelayout axis="x" spacing="5" />
+ </view>
+ </view>
+ <view>
+ <button enabled="true" > remove item
+ <handler name="onclick">
+ cbox1.removeItem(parent.inputfields.txt.getText());
+ </handler>
+ </button>
+ <view name="inputfields" x="150">
+ <edittext width="100" name="txt"/>
+ <edittext width="100" name="vle"/>
+ <simplelayout axis="x" spacing="5" />
+ </view>
+ </view>
+ <view>
+ <button onclick="this.parent.vle.setText(cbox1.getValue())" > get value </button>
+ <edittext x="150" width="100" name="vle" />
+ </view>
+ <view>
+ <button >set shownitems
+ <handler name="onclick" >
+ cbox1.setAttribute('shownitems',number(parent.vle.getText()));
+ </handler>
+ </button>
+ <edittext x="150" width="100" name="vle" />
+ </view>
+ <view>
+ <button >select item
+ <handler name="onclick" >
+ cbox1.selectItem(parent.vle.getText());
+ </handler>
+ </button>
+ <edittext x="150" width="100" name="vle" />
+ </view>
+ <view>
+ <button >select item at
+ <handler name="onclick" >
+ cbox1.selectItemAt(number(parent.vle.getText()));
+ </handler>
+ </button>
+ <edittext x="150" width="100" name="vle" />
+ </view>
<button onclick="cbox1.clearselection()" >clear selection</button>
<button onclick="cbox1.setAttribute('enabled',!cbox1.enabled)" >Toggle enabled</button>
- <simplelayout axis="y" spacing="5" />
- </view>
- </testborder>
+ <simplelayout axis="y" spacing="5" />
+ </view>
+ </testborder>
- <testborder width="550" height="80"> Combobox: datapath uses http data
+ <testborder width="550" height="80"> Combobox: datapath uses http data
<checkbox x="5" y="5" id="c2" value="true">editable</checkbox>
- <combobox id="cbox3"
- x="5" y="25"
- width="130"
+ <combobox id="cbox3"
+ x="5" y="25"
+ width="130"
spacing="0" shownitems="6"
- defaultselection="5"
- editable="${c2.value}" >
- <textlistitem name="lineitem"
- text='$path{"text()"}'
+ defaultselection="5"
+ editable="${c2.value}" >
+ <textlistitem name="lineitem"
+ text='$path{"text()"}'
value='$path{"@value"}'>
</textlistitem>
- </combobox>
+ </combobox>
- <view x="150" y="5" >
- <button y="15" >set datapath to http data
- <method event="onclick" >
- cbox3.lineitem.setDatapath('itemsdata:/ds/item');
- </method>
- </button>
- <simplelayout axis="y" spacing="5" />
- </view>
- </testborder>
- </view>
+ <view x="150" y="5" >
+ <button y="15" >set datapath to http data
+ <handler name="onclick" >
+ cbox3.lineitem.setDatapath('itemsdata:/ds/item');
+ </handler>
+ </button>
+ <simplelayout axis="y" spacing="5" />
+ </view>
+ </testborder>
+ </view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/components/lz/test-datacombobox.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/test-datacombobox.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/test-datacombobox.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -3,8 +3,8 @@
<include href="lz/datacombobox.lzx"/>
<!--attribute name="defaultstyle" value="${greenstyle}"/-->
- <dataset name="itemsdata" type="http" src="test-combobox-data.xml"
- request="true" />
+ <dataset name="itemsdata" type="http" src="test-combobox-data.xml"
+ request="true" />
<dataset name="items">
<item value="item0" >item 0</item>
@@ -36,8 +36,8 @@
</item>
</dataset>
- <view x="20" y="20" >
- <simplelayout axis="y" spacing="15"/>
+ <view x="20" y="20" >
+ <simplelayout axis="y" spacing="15"/>
<text> local data, defaulttext="choose one.." </text>
<datacombobox id="cbox1"
width="130"
@@ -51,10 +51,10 @@
shownitems="6"
defaulttext="Choose One..."
itemdatapath="itemsdata:/ds/item"/>
- </view>
+ </view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/components/lz/test-datepicker.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/test-datepicker.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/test-datepicker.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -7,61 +7,61 @@
<whitestyle name="whitecolors"/>
<purplestyle name="purplecolors"/>
<style name="altbluestyle"
- canvascolor="grayblue"
- basecolor="iceblue3"
- bgcolor="iceblue5"
- textfieldcolor="palegreen5" textcolor="blue" texthilitecolor="palegreen1"
- textselectedcolor="yellow" textdisabledcolor="green"
+ canvascolor="grayblue"
+ basecolor="iceblue3"
+ bgcolor="iceblue5"
+ textfieldcolor="palegreen5" textcolor="blue" texthilitecolor="palegreen1"
+ textselectedcolor="yellow" textdisabledcolor="green"
hilitecolor="iceblue4" selectedcolor="iceblue2"
bordercolor="green" bordersize="10"/>
<!-- text size and color? -->
<!--view valign="bottom">
- <inittimer/><frametimer/>
+ <inittimer/><frametimer/>
</view-->
<debug x="600" y="0" height="500"/>
- <view id="s1" x="20" y="40">
- <view name="tsliderview">
- <view name="stylechooser">
- <simplelayout spacing="4"/>
- <text>Style:</text>
- <combobox width="120" editable="false">
- <textlistitem text="silver" >
- <method event="onselected">
- canvas.silvercolors.setAttribute("isdefault", true);
- </method>
- </textlistitem>
- <textlistitem text="green" >
- <method event="onselected">
+ <view id="s1" x="20" y="40">
+ <view name="tsliderview">
+ <view name="stylechooser">
+ <simplelayout spacing="4"/>
+ <text>Style:</text>
+ <combobox width="120" editable="false">
+ <textlistitem text="silver" >
+ <handler name="onselected">
+ canvas.silvercolors.setAttribute("isdefault", true);
+ </handler>
+ </textlistitem>
+ <textlistitem text="green" >
+ <handler name="onselected">
canvas.greencolors.setAttribute("isdefault", true);
- </method>
- </textlistitem>
- <textlistitem text="blue">
- <method event="onselected">
+ </handler>
+ </textlistitem>
+ <textlistitem text="blue">
+ <handler name="onselected">
canvas.bluecolors.setAttribute("isdefault", true);
- </method>
- </textlistitem>
- <textlistitem text="gold" >
- <method event="onselected">
+ </handler>
+ </textlistitem>
+ <textlistitem text="gold" >
+ <handler name="onselected">
canvas.goldcolors.setAttribute("isdefault", true);
- </method>
- </textlistitem>
- <textlistitem text="white" selected="true">
- <method event="onselected">
+ </handler>
+ </textlistitem>
+ <textlistitem text="white" selected="true">
+ <handler name="onselected">
canvas.whitecolors.setAttribute("isdefault", true);
- </method>
- </textlistitem>
- <textlistitem text="purple" >
- <method event="onselected">
+ </handler>
+ </textlistitem>
+ <textlistitem text="purple" >
+ <handler name="onselected">
canvas.purplecolors.setAttribute("isdefault", true);
- </method>
- </textlistitem>
- <textlistitem text="alt blue" >
- <method event="onselected">
+ </handler>
+ </textlistitem>
+ <textlistitem text="alt blue" >
+ <handler name="onselected">
canvas.altbluestyle.setAttribute("isdefault", true);
- </method>
- </textlistitem>
- </combobox>
+ </handler>
+ </textlistitem>
+ </combobox>
<!-- <view id="testcolor" width="22" height="22"-->
<!-- bgcolor="${setBGColor(canvas.defaultstyle, canvas.defaultstyle.basecolor)}" >-->
@@ -69,7 +69,7 @@
<!-- super.setBGColor(canvas.defaultstyle.basecolor);-->
<!-- </method>-->
<!-- </view>-->
- </view>
+ </view>
@@ -157,21 +157,21 @@
<view>
- <method event="onselecteddate" reference="dpone">
+ <handler name="onselecteddate" reference="dpone">
this.seldate.setAttribute('text', ' selecteddate:' + dpone.selecteddate.toLocaleString() );
- </method>
+ </handler>
- <method event="onshowingdate" reference="dpone">
+ <handler name="onshowingdate" reference="dpone">
this.showdate.setAttribute('text', ' showingdate:' + dpone.showingdate.toLocaleString() );
- </method>
+ </handler>
- <method event="onearliestdate" reference="dpone">
+ <handler name="onearliestdate" reference="dpone">
this.edate.setAttribute('text', ' earliestdate:' + dpone.earliestdate.toLocaleString() );
- </method>
+ </handler>
- <method event="onlatestdate" reference="dpone">
+ <handler name="onlatestdate" reference="dpone">
this.ldate.setAttribute('text', ' latestdate:' + dpone.latestdate.toLocaleString() );
- </method>
+ </handler>
<method name="getDateString" args="d">
@@ -289,21 +289,21 @@
<view>
- <method event="onselecteddate" reference="dptwo">
+ <handler name="onselecteddate" reference="dptwo">
this.seldate.setAttribute('text', ' selecteddate:' + dptwo.selecteddate.toLocaleString() );
- </method>
+ </handler>
- <method event="onshowingdate" reference="dptwo">
+ <handler name="onshowingdate" reference="dptwo">
this.showdate.setAttribute('text', ' showingdate:' + dptwo.showingdate.toLocaleString() );
- </method>
+ </handler>
- <method event="onearliestdate" reference="dptwo">
+ <handler name="onearliestdate" reference="dptwo">
this.edate.setAttribute('text', ' earliestdate:' + dptwo.earliestdate.toLocaleString() );
- </method>
+ </handler>
- <method event="onlatestdate" reference="dptwo">
+ <handler name="onlatestdate" reference="dptwo">
this.ldate.setAttribute('text', ' latestdate:' + dptwo.latestdate.toLocaleString() );
- </method>
+ </handler>
<method name="getDateString" args="d">
@@ -363,6 +363,6 @@
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/components/lz/test-floatinglist-arcanoid.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/test-floatinglist-arcanoid.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/test-floatinglist-arcanoid.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,5 +1,5 @@
<canvas>
- <include href="/lz/library.lzx"/>
+ <include href="/lz/library.lzx"/>
<dataset name="items">
<item value="item1" >item one</item>
@@ -7,122 +7,122 @@
<item value="item3" >item three</item>
<item value="item4" >item four</item>
</dataset>
-
- <class name="sbutton" extends="button" width="40">
- <attribute name="nextX" value="0"/>
- <attribute name="nextY" value="0"/>
-
- <method event="oninit">
- genwaypoint();
- </method>
-
- <method name="genwaypoint">
- var randomx = math.Random();
- var randomy = math.Random();
-
- this.setAttribute( 'nextX' , math.abs(canvas.width*randomx) );
- this.setAttribute( 'nextY' , math.abs(canvas.height*randomy) );
- </method>
-
- <animator attribute="x" to="${classroot.nextX}" duration="3000">
- <method event="onstop">
- classroot.genwaypoint();
- this.doStart();
- </method>
- </animator>
- <animator attribute="y" to="${classroot.nextY}" duration="3000">
- <method event="onstop">
- this.doStart();
- </method>
- </animator>
- </class>
-
+
+ <class name="sbutton" extends="button" width="40">
+ <attribute name="nextX" value="0"/>
+ <attribute name="nextY" value="0"/>
+
+ <handler name="oninit">
+ genwaypoint();
+ </handler>
+
+ <method name="genwaypoint">
+ var randomx = math.Random();
+ var randomy = math.Random();
+
+ this.setAttribute( 'nextX' , math.abs(canvas.width*randomx) );
+ this.setAttribute( 'nextY' , math.abs(canvas.height*randomy) );
+ </method>
+
+ <animator attribute="x" to="${classroot.nextX}" duration="3000">
+ <handler name="onstop">
+ classroot.genwaypoint();
+ this.doStart();
+ </handler>
+ </animator>
+ <animator attribute="y" to="${classroot.nextY}" duration="3000">
+ <handler name="onstop">
+ this.doStart();
+ </handler>
+ </animator>
+ </class>
+
<view bgcolor="0xdddddd" height="${canvas.height}" width="${canvas.width}">
- <!-- middle -->
- <sbutton x="${canvas.width/2-this.width/2}" y="${canvas.height/2-this.height/2-20}">
- <floatinglist width="60" attach="right">
- <textlistitem datapath="items:/item"
+ <!-- middle -->
+ <sbutton x="${canvas.width/2-this.width/2}" y="${canvas.height/2-this.height/2-20}">
+ <floatinglist width="60" attach="right">
+ <textlistitem datapath="items:/item"
text='$path{"text()"}'
value='$path{"@value"}'/>
- </floatinglist>
- </sbutton>
-
- <!-- top left -->
- <sbutton x="20" y="20">
- <floatinglist width="60" attach="left">
- <textlistitem datapath="items:/item"
+ </floatinglist>
+ </sbutton>
+
+ <!-- top left -->
+ <sbutton x="20" y="20">
+ <floatinglist width="60" attach="left">
+ <textlistitem datapath="items:/item"
text='$path{"text()"}'
value='$path{"@value"}'/>
- </floatinglist>
- </sbutton>
-
- <!-- top -->
- <sbutton x="${canvas.width/2-this.width/2}" y="20">
- <floatinglist width="60" attach="top">
- <textlistitem datapath="items:/item"
+ </floatinglist>
+ </sbutton>
+
+ <!-- top -->
+ <sbutton x="${canvas.width/2-this.width/2}" y="20">
+ <floatinglist width="60" attach="top">
+ <textlistitem datapath="items:/item"
text='$path{"text()"}'
value='$path{"@value"}'/>
- </floatinglist>
- </sbutton>
+ </floatinglist>
+ </sbutton>
- <!-- top right -->
- <sbutton x="${canvas.width-this.width-20}" y="20">
- <floatinglist width="60" attach="right">
- <textlistitem datapath="items:/item"
+ <!-- top right -->
+ <sbutton x="${canvas.width-this.width-20}" y="20">
+ <floatinglist width="60" attach="right">
+ <textlistitem datapath="items:/item"
text='$path{"text()"}'
value='$path{"@value"}'/>
- </floatinglist>
- </sbutton>
-
- <!-- right -->
- <sbutton x="${canvas.width-this.width-20}" y="${canvas.height/2-this.height/2-20}">
- <floatinglist width="60" attach="right">
- <textlistitem datapath="items:/item"
+ </floatinglist>
+ </sbutton>
+
+ <!-- right -->
+ <sbutton x="${canvas.width-this.width-20}" y="${canvas.height/2-this.height/2-20}">
+ <floatinglist width="60" attach="right">
+ <textlistitem datapath="items:/item"
text='$path{"text()"}'
value='$path{"@value"}'/>
- </floatinglist>
- </sbutton>
+ </floatinglist>
+ </sbutton>
- <!-- bottom right -->
- <sbutton x="${canvas.width-this.width-20}" y="${canvas.height-this.height-20}">
- <floatinglist width="60" attach="right">
- <textlistitem datapath="items:/item"
+ <!-- bottom right -->
+ <sbutton x="${canvas.width-this.width-20}" y="${canvas.height-this.height-20}">
+ <floatinglist width="60" attach="right">
+ <textlistitem datapath="items:/item"
text='$path{"text()"}'
value='$path{"@value"}'/>
- </floatinglist>
- </sbutton>
+ </floatinglist>
+ </sbutton>
- <!-- bottom -->
- <sbutton x="${canvas.width/2-this.width/2}" y="${canvas.height-this.height-20}">
- <floatinglist width="60" attach="bottom">
- <textlistitem datapath="items:/item"
+ <!-- bottom -->
+ <sbutton x="${canvas.width/2-this.width/2}" y="${canvas.height-this.height-20}">
+ <floatinglist width="60" attach="bottom">
+ <textlistitem datapath="items:/item"
text='$path{"text()"}'
value='$path{"@value"}'/>
- </floatinglist>
- </sbutton>
+ </floatinglist>
+ </sbutton>
- <!-- bottom left -->
- <sbutton x="20" y="${canvas.height-this.height-20}">
- <floatinglist width="60" attach="left">
- <textlistitem datapath="items:/item"
+ <!-- bottom left -->
+ <sbutton x="20" y="${canvas.height-this.height-20}">
+ <floatinglist width="60" attach="left">
+ <textlistitem datapath="items:/item"
text='$path{"text()"}'
value='$path{"@value"}'/>
- </floatinglist>
- </sbutton>
-
- <!-- left -->
- <sbutton x="20" y="${canvas.height/2-this.height/2-20}">
- <floatinglist width="60" attach="left">
- <textlistitem datapath="items:/item"
+ </floatinglist>
+ </sbutton>
+
+ <!-- left -->
+ <sbutton x="20" y="${canvas.height/2-this.height/2-20}">
+ <floatinglist width="60" attach="left">
+ <textlistitem datapath="items:/item"
text='$path{"text()"}'
value='$path{"@value"}'/>
- </floatinglist>
- </sbutton>
-
- </view>
+ </floatinglist>
+ </sbutton>
+
+ </view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/components/lz/test-focus.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/test-focus.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/test-focus.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -24,12 +24,12 @@
<simplelayout spacing="10" inset="10"/>
<constantlayout axis="x" value="20"/>
<checkbox id="c">three</checkbox>
-
- <radiogroup>
- <radiobutton>one</radiobutton>
- <radiobutton>two</radiobutton>
- <radiobutton>three</radiobutton>
- </radiogroup>
+
+ <radiogroup>
+ <radiobutton>one</radiobutton>
+ <radiobutton>two</radiobutton>
+ <radiobutton>three</radiobutton>
+ </radiogroup>
</view>
<view id="v2" layout="axis:x; spacing:20">
@@ -43,7 +43,7 @@
<simplelayout spacing="10" inset="10"/>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/components/lz/test-grid.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/test-grid.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/test-grid.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -52,16 +52,17 @@
<attribute name="datasel"
value="${ workdef == '1' ? 2 : 1 }"/>
- <method event="ondatasel" name="checkDataSel">
+ <handler name="ondatasel" method="checkDataSel" />
+ <method name="checkDataSel">
if ( !this._initcomplete ) return;
this.selectItem( datasel );
</method>
- <method event="oninit">
+ <handler name="oninit">
this.checkDataSel();
- </method>
+ </handler>
- <method event="onselect">
+ <handler name="onselect">
if ( this.value == 1 ){
this.workdef = 0;
this.homedef = 1;
@@ -70,7 +71,7 @@
this.homedef = 0;
}
this.datapath.updateData();
- </method>
+ </handler>
<radiobutton value="1">home</radiobutton>
<radiobutton value="2">work</radiobutton>
@@ -82,80 +83,80 @@
<window title="poke" layout="axis:'y'" x="${dgwin.width+10}">
<button text="loadMoreData">
- <method event="onclick">
+ <handler name="onclick">
contactsLoad.doRequest();
- </method>
+ </handler>
</button>
<button text="getSelection">
- <method event="onclick">
+ <handler name="onclick">
Debug.write( tgrid[ text ]() );
- </method>
+ </handler>
</button>
<button text="selectNext">
- <method event="onclick">
+ <handler name="onclick">
tgrid[ text ]();
- </method>
+ </handler>
</button>
<button text="selectPrev">
- <method event="onclick">
+ <handler name="onclick">
tgrid[ text ]();
- </method>
+ </handler>
</button>
<button text="getNumItems">
- <method event="onclick">
+ <handler name="onclick">
Debug.write( tgrid[ text ]() );
- </method>
+ </handler>
</button>
<button text="getItemAt" >
- <method event="onclick">
+ <handler name="onclick">
Debug.write( tgrid[ text ]( 22 ) );
- </method>
+ </handler>
</button>
<button text="getItem" >
- <method event="onclick">
+ <handler name="onclick">
Debug.write( tgrid[ text ]( contactsData.getFirstChild().childnodes[ 44 ] ) );
- </method>
+ </handler>
</button>
<button text="removeItemAt" >
- <method event="onclick">
+ <handler name="onclick">
tgrid[ text ]( 0 );
- </method>
+ </handler>
</button>
<button text="selectItem" >
- <method event="onclick">
+ <handler name="onclick">
tgrid[ text ]( contactsData.getFirstChild().getFirstChild() );
- </method>
+ </handler>
</button>
<button text="selectItemAt" >
- <method event="onclick">
+ <handler name="onclick">
tgrid[ text ]( 13);
- </method>
+ </handler>
</button>
<button text="clearSelection" >
- <method event="onclick">
+ <handler name="onclick">
tgrid[ text ]( );
- </method>
+ </handler>
</button>
<button text="clearSort" >
- <method event="onclick">
+ <handler name="onclick">
tgrid[ text ]( );
- </method>
+ </handler>
</button>
</window>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/components/lz/test-list-pooling.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/test-list-pooling.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/test-list-pooling.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -37,9 +37,9 @@
<text>(list1)</text>
<button name="toggle" text="toggle list1">
- <method event="onclick">
+ <handler name="onclick">
canvas.toggle(list1);
- </method>
+ </handler>
</button>
<list id="list1" width="130" shownitems="6"
@@ -54,9 +54,9 @@
<text>(list2) dataoption="pooling"</text>
<button name="toggle" text="toggle list2">
- <method event="onclick">
+ <handler name="onclick">
canvas.toggle(list2);
- </method>
+ </handler>
</button>
<list id="list2" width="130" shownitems="6"
@@ -68,7 +68,7 @@
</view>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/components/lz/test-list-size.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/test-list-size.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/test-list-size.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -45,10 +45,10 @@
<inittimer/>
<class name="resizelistitem" extends="textlistitem">
- <method event="onselected">
+ <handler name="onselected">
if (this.selected) this.setHeight(40);
else this.setHeight(20);
- </method>
+ </handler>
</class>
<view x="20" y="30" layout="axis:x;spacing:20">
<view layout="axis:y; spacing:2">
@@ -62,22 +62,22 @@
<text y="35" text="${d1.value}"/>
<view layout="axis:x; spacing:4">
<button>add item
- <method event="onclick">
+ <handler name="onclick">
back.getFirstChild().appendChild(oneitem.getFirstChild().cloneNode(true));
- </method>
+ </handler>
</button>
<button>remove item
- <method event="onclick">
+ <handler name="onclick">
var root = back.getFirstChild();
root.removeChild(root.getFirstChild());
- </method>
+ </handler>
</button>
</view>
<text width="200" multiline="true">click add until there's a scrollbar,
test scrolling, then remove till the scrollbar goes away</text>
<button>toggle height
- <method event="onclick">
+ <handler name="onclick">
if (d1.height == 100) {
d1.setAttribute('shownitems', 4);
d1.setheight(null);
@@ -87,11 +87,11 @@
d1.setAttribute('shownitems', -1);
desc.setText('height == 100, shownitems == -1');
}
- </method>
+ </handler>
</button>
<button>toggle datapath
<attribute name="date" value="false" type="boolean"/>
- <method event="onclick">
+ <handler name="onclick">
if (this.date) {
t.datapath.setAttribute('xpath', 'back:/root/item/text()');
this.date = false;
@@ -99,7 +99,7 @@
t.datapath.setAttribute('xpath', 'mydata:/date/day/text()');
this.date = true;
}
- </method>
+ </handler>
</button>
</view>
@@ -109,7 +109,7 @@
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/components/lz/test-list.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/test-list.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/test-list.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -46,7 +46,7 @@
<attribute name="text" value="test name" type="html" />
<view bgcolor="0x979797" width="${this.title.getTextWidth() + 10}" height="20" >
<text x="4" y="2" name="title" text="${classroot.text}" resize="true" fgcolor="0xFFFFFF" >
- <method event="ontext">parent.setWidth(this.getTextwidth() + 10)</method>
+ <handler name="ontext">parent.setWidth(this.getTextwidth() + 10)</handler>
</text>
</view>
<view bgcolor="0x979797" width="100%" options="releaseToLayout" height="10" >
@@ -62,13 +62,13 @@
<attribute name="text" value="" type="string" />
<view bgcolor="red" width="10" height="10" x="5" y="5" />
<statictext text="${classroot.text}" fgcolor="0x4B4B4B" >
- <method event="ontext">
+ <handler name="ontext">
this.setX(parent.width - this.getTextWidth() - 25);
- </method>
+ </handler>
</statictext>
</class>
- <view x="20" y="20" >
+ <view x="20" y="20" >
<testborder width="550" height="200" x="10" > List: dragging mouse past the boundary - autoscrolling
<view layout="spacing:4">
<text>a1: multi-select</text>
@@ -83,15 +83,15 @@
</list>
<view layout="axis:x;spacing:10">
<button>Get Value
- <method event="onclick">
+ <handler name="onclick">
var val = a1.getValue();
a1val.setText(typeof(val) + '\n' + val);
- </method>
+ </handler>
</button>
<button>Clear
- <method event="onclick">
+ <handler name="onclick">
var val = a1.clearSelection();
- </method>
+ </handler>
</button>
</view>
<text multiline="true" id="a1val" width="200" height="60"/>
@@ -129,15 +129,15 @@
</list>
<view layout="axis:x;spacing:10">
<button>Get Value
- <method event="onclick">
+ <handler name="onclick">
var val = b1.getValue();
b1val.setText(typeof(val) + '\n' + val);
- </method>
+ </handler>
</button>
<button>Clear
- <method event="onclick">
+ <handler name="onclick">
var val = b1.clearSelection();
- </method>
+ </handler>
</button>
</view>
<text multiline="true" id="b1val" width="200" height="60"/>
@@ -267,12 +267,12 @@
<simplelayout axis="x" spacing="10"/>
</testborder>
- <simplelayout axis="y" spacing="10"/>
- </view>
+ <simplelayout axis="y" spacing="10"/>
+ </view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/components/lz/test-menubar.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/test-menubar.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/test-menubar.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -140,9 +140,9 @@
</menu>
</menuitem>
</menu>
- <method event="onmousedown">
+ <handler name="onmousedown">
this.foo.setOpen(true);
- </method>
+ </handler>
</button>
<button text="openMenu right" >
@@ -150,9 +150,9 @@
<menuitem text="item 1" />
<menuitem text="item 2" />
</menu>
- <method event="onmousedown">
+ <handler name="onmousedown">
this.foo.setOpen(true);
- </method>
+ </handler>
</button>
<button text="openMenu top" >
@@ -160,9 +160,9 @@
<menuitem text="item 1" />
<menuitem text="item 2" />
</menu>
- <method event="onmousedown">
+ <handler name="onmousedown">
this.foo.setOpen(true);
- </method>
+ </handler>
</button>
<button text="openMenu left" >
@@ -170,16 +170,16 @@
<menuitem text="item 1" />
<menuitem text="item 2" />
</menu>
- <method event="onmousedown">
+ <handler name="onmousedown">
this.foo.setOpen(true);
- </method>
+ </handler>
</button>
<simplelayout spacing="50" axis="x" />
</view>
<inittimer/>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/components/lz/test-plainfloatinglist.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/test-plainfloatinglist.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/test-plainfloatinglist.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,5 +1,5 @@
<canvas >
- <include href="/lz/library.lzx"/>
+ <include href="/lz/library.lzx"/>
<!--attribute name="defaultstyle" value="${greenstyle}"/-->
@@ -9,95 +9,95 @@
<item value="item3" >item three</item>
<item value="item4" >item four</item>
</dataset>
-
- <class name="sbutton" extends="button" width="40"/>
-
- <view bgcolor="0xdddddd" height="${canvas.height}" width="${canvas.width}">
-
- <!-- middle -->
- <sbutton x="${canvas.width/2-this.width/2}" y="${canvas.height/2-this.height/2-20}">
- <plainfloatinglist name="middle" width="80" attach="right" shownitems="3">
- <textlistitem datapath="items:/item"
+
+ <class name="sbutton" extends="button" width="40"/>
+
+ <view bgcolor="0xdddddd" height="${canvas.height}" width="${canvas.width}">
+
+ <!-- middle -->
+ <sbutton x="${canvas.width/2-this.width/2}" y="${canvas.height/2-this.height/2-20}">
+ <plainfloatinglist name="middle" width="80" attach="right" shownitems="3">
+ <textlistitem datapath="items:/item"
text='$path{"text()"}'
value='$path{"@value"}'/>
- </plainfloatinglist>
- </sbutton>
-
- <!-- top left -->
- <sbutton x="20" y="20">
- <plainfloatinglist name="topleft" width="80" attach="left">
- <textlistitem datapath="items:/item"
+ </plainfloatinglist>
+ </sbutton>
+
+ <!-- top left -->
+ <sbutton x="20" y="20">
+ <plainfloatinglist name="topleft" width="80" attach="left">
+ <textlistitem datapath="items:/item"
text='$path{"text()"}'
value='$path{"@value"}'/>
- </plainfloatinglist>
- </sbutton>
-
- <!-- top -->
- <sbutton x="${canvas.width/2-this.width/2}" y="20">
- <plainfloatinglist name="topmiddle" width="80" attach="top">
- <textlistitem datapath="items:/item"
+ </plainfloatinglist>
+ </sbutton>
+
+ <!-- top -->
+ <sbutton x="${canvas.width/2-this.width/2}" y="20">
+ <plainfloatinglist name="topmiddle" width="80" attach="top">
+ <textlistitem datapath="items:/item"
text='$path{"text()"}'
value='$path{"@value"}'/>
- </plainfloatinglist>
- </sbutton>
+ </plainfloatinglist>
+ </sbutton>
- <!-- top right -->
- <sbutton x="${canvas.width-this.width-20}" y="20">
- <plainfloatinglist name="topright" width="80" attach="right">
- <textlistitem datapath="items:/item"
+ <!-- top right -->
+ <sbutton x="${canvas.width-this.width-20}" y="20">
+ <plainfloatinglist name="topright" width="80" attach="right">
+ <textlistitem datapath="items:/item"
text='$path{"text()"}'
value='$path{"@value"}'/>
- </plainfloatinglist>
- </sbutton>
-
- <!-- right -->
- <sbutton x="${canvas.width-this.width-20}" y="${canvas.height/2-this.height/2-20}">
- <plainfloatinglist name="middleright" width="80" attach="right">
- <textlistitem datapath="items:/item"
+ </plainfloatinglist>
+ </sbutton>
+
+ <!-- right -->
+ <sbutton x="${canvas.width-this.width-20}" y="${canvas.height/2-this.height/2-20}">
+ <plainfloatinglist name="middleright" width="80" attach="right">
+ <textlistitem datapath="items:/item"
text='$path{"text()"}'
value='$path{"@value"}'/>
- </plainfloatinglist>
- </sbutton>
+ </plainfloatinglist>
+ </sbutton>
- <!-- bottom right -->
- <sbutton x="${canvas.width-this.width-20}" y="${canvas.height-this.height-20}">
- <plainfloatinglist name="bottomright" width="80" attach="right">
- <textlistitem datapath="items:/item"
+ <!-- bottom right -->
+ <sbutton x="${canvas.width-this.width-20}" y="${canvas.height-this.height-20}">
+ <plainfloatinglist name="bottomright" width="80" attach="right">
+ <textlistitem datapath="items:/item"
text='$path{"text()"}'
value='$path{"@value"}'/>
- </plainfloatinglist>
- </sbutton>
+ </plainfloatinglist>
+ </sbutton>
- <!-- bottom -->
- <sbutton name="s-bottommiddle" x="${canvas.width/2-this.width/2}" y="${canvas.height-this.height-20}">
- <plainfloatinglist name="bottommiddle" width="80" attach="bottom">
- <textlistitem datapath="items:/item"
+ <!-- bottom -->
+ <sbutton name="s-bottommiddle" x="${canvas.width/2-this.width/2}" y="${canvas.height-this.height-20}">
+ <plainfloatinglist name="bottommiddle" width="80" attach="bottom">
+ <textlistitem datapath="items:/item"
text='$path{"text()"}'
value='$path{"@value"}'/>
- </plainfloatinglist>
- </sbutton>
+ </plainfloatinglist>
+ </sbutton>
- <!-- bottom left -->
- <sbutton name="s-bottomleft" x="20" y="${canvas.height-this.height-20}">
- <plainfloatinglist name="bottomleft" width="80" attach="left">
- <textlistitem datapath="items:/item"
+ <!-- bottom left -->
+ <sbutton name="s-bottomleft" x="20" y="${canvas.height-this.height-20}">
+ <plainfloatinglist name="bottomleft" width="80" attach="left">
+ <textlistitem datapath="items:/item"
text='$path{"text()"}'
value='$path{"@value"}'/>
- </plainfloatinglist>
- </sbutton>
-
- <!-- left -->
- <sbutton x="20" y="${canvas.height/2-this.height/2-20}">
- <plainfloatinglist name="middleleft" width="80" attach="left">
- <textlistitem datapath="items:/item"
+ </plainfloatinglist>
+ </sbutton>
+
+ <!-- left -->
+ <sbutton x="20" y="${canvas.height/2-this.height/2-20}">
+ <plainfloatinglist name="middleleft" width="80" attach="left">
+ <textlistitem datapath="items:/item"
text='$path{"text()"}'
value='$path{"@value"}'/>
- </plainfloatinglist>
- </sbutton>
-
- </view>
+ </plainfloatinglist>
+ </sbutton>
+
+ </view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/components/lz/test-radio.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/test-radio.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/test-radio.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -30,9 +30,9 @@
<inputtext bgcolor="white" name="itemname">name</inputtext>
<inputtext bgcolor="white" name="itemvalue">value</inputtext>
<button text="Add Item">
- <method event="onclick">
+ <handler name="onclick">
mygroup.addItem(parent.itemname.getText(), parent.itemvalue.getText());
- </method>
+ </handler>
</button>
<simplelayout axis="x" spacing="6"/>
</view>
@@ -97,6 +97,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/components/lz/test-tabs-data.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/test-tabs-data.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/test-tabs-data.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -37,9 +37,9 @@
<text>(tabs1)</text>
<button name="toggle" text="toggle tabs1">
- <method event="onclick">
+ <handler name="onclick">
canvas.toggle(tabs1);
- </method>
+ </handler>
</button>
<tabs id="tabs1" datapath="letters:/">
@@ -50,7 +50,7 @@
</view>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/components/lz/test-tabs.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/test-tabs.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/test-tabs.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -2,70 +2,70 @@
<attribute name="defaultstyle" value="${greenstyle}"/>
- <simplelayout/>
- <text>autosized</text>
- <tabs x="5">
-
- <tabpane inset_left="0" inset_top="0" inset_bottom="0" inset_right="0">insets 0
- <button>do nothing</button>
- </tabpane>
-
- <tabpane selected="true">default
- <simplelayout/>
- <button>faster</button>
- <radiogroup>
- <radiobutton>Curt</radiobutton>
- <radiobutton>Prefer fairly wordy</radiobutton>
- <radiobutton>I really prefer lots of extra words and fluff in my selections</radiobutton>
- </radiogroup>
- </tabpane>
-
- <tabpane text="insets 10" inset_left="10" inset_top="10" inset_bottom="10" inset_right="10">
- <button>don't press</button>
- </tabpane>
-
- </tabs>
-
+ <simplelayout/>
+ <text>autosized</text>
+ <tabs x="5">
+
+ <tabpane inset_left="0" inset_top="0" inset_bottom="0" inset_right="0">insets 0
+ <button>do nothing</button>
+ </tabpane>
+
+ <tabpane selected="true">default
+ <simplelayout/>
+ <button>faster</button>
+ <radiogroup>
+ <radiobutton>Curt</radiobutton>
+ <radiobutton>Prefer fairly wordy</radiobutton>
+ <radiobutton>I really prefer lots of extra words and fluff in my selections</radiobutton>
+ </radiogroup>
+ </tabpane>
+
+ <tabpane text="insets 10" inset_left="10" inset_top="10" inset_bottom="10" inset_right="10">
+ <button>don't press</button>
+ </tabpane>
+
+ </tabs>
+
<view height="10"/>
- <text>set height and width</text>
- <tabs x="5" height="150" width="300">
-
- <tabpane>stuff
- <simplelayout/>
- <button>stuff</button>
- <radiogroup>
- <radiobutton>test</radiobutton>
- <radiobutton>other</radiobutton>
- </radiogroup>
- </tabpane>
-
- <tabpane>more
- <button>more</button>
- </tabpane>
-
- </tabs>
-
+ <text>set height and width</text>
+ <tabs x="5" height="150" width="300">
+
+ <tabpane>stuff
+ <simplelayout/>
+ <button>stuff</button>
+ <radiogroup>
+ <radiobutton>test</radiobutton>
+ <radiobutton>other</radiobutton>
+ </radiogroup>
+ </tabpane>
+
+ <tabpane>more
+ <button>more</button>
+ </tabpane>
+
+ </tabs>
+
<view height="10"/>
- <text>colors</text>
- <tabs x="5" height="100">
- <tabpane>normal
- <button>ok</button>
- </tabpane>
- <tabpane bgcolor="red">red
- <button>warning!</button>
- </tabpane>
-
- <tabpane bgcolor="green">green
- <button>envy</button>
- </tabpane>
- <tabpane bgcolor="blue">blue
- <button>true</button>
- </tabpane>
-
-
- </tabs>
+ <text>colors</text>
+ <tabs x="5" height="100">
+ <tabpane>normal
+ <button>ok</button>
+ </tabpane>
+ <tabpane bgcolor="red">red
+ <button>warning!</button>
+ </tabpane>
+
+ <tabpane bgcolor="green">green
+ <button>envy</button>
+ </tabpane>
+ <tabpane bgcolor="blue">blue
+ <button>true</button>
+ </tabpane>
+
+
+ </tabs>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/components/lz/test-tabslider.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/test-tabslider.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/test-tabslider.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -2,13 +2,13 @@
<attribute name="defaultstyle" value="${greenstyle}"/>
- <view x="35" layout="class:simplelayout; axis:x; spacing:2">
- <button onclick="ts1.animate('height',100,1000,true)">grow tabslider</button>
- <button onclick="ts1.additem('a New Tab')">add item</button>
- </view>
+ <view x="35" layout="class:simplelayout; axis:x; spacing:2">
+ <button onclick="ts1.animate('height',100,1000,true)">grow tabslider</button>
+ <button onclick="ts1.additem('a New Tab')">add item</button>
+ </view>
- <text x="50" y="25">Test: growing & adding to tabslider</text>
+ <text x="50" y="25">Test: growing & adding to tabslider</text>
<tabslider id="ts1" x="50" y="50"
width="150" height="200"
bordersize="1" >
@@ -43,7 +43,7 @@
</tabslider>
- <text x="250" y="25" >Test: spacing between tabs </text>
+ <text x="250" y="25" >Test: spacing between tabs </text>
<tabslider id="ts2" x="250" y="50"
width="150" height="200"
bordersize="1" spacing="5" >
@@ -72,7 +72,7 @@
</tabelement>
</tabslider>
- <text x="450" y="25" >Test: other elements in header </text>
+ <text x="450" y="25" >Test: other elements in header </text>
<tabslider id="ts3" x="450" y="50"
width="150" height="200"
bordersize="2" bordercolor="0x5555FF" mintabheight="30" >
@@ -229,6 +229,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/components/lz/test-window.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/test-window.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/test-window.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -23,7 +23,7 @@
name="closeme"
resizable="true" closeable="true"
x="400" y="200">
- <scrollbar/>
+ <scrollbar/>
</window>
<window name="cherry" title="size to content" x="200" y="200" resizable="true">
@@ -91,6 +91,6 @@
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/components/lz/windowgrid.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/lz/windowgrid.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/lz/windowgrid.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -30,15 +30,15 @@
<class name="eval_item" extends="menuitem" initstage="late">
<attribute name="obj"/>
- <method event="onselect">
+ <handler name="onselect">
Debug.write(obj[this.text]())
- </method>
+ </handler>
</class>
<class name="stylechooser" extends="menuitem">
- <method event="onselect">
+ <handler name="onselect">
tgrid.setStyle(canvas[this.text + 'colors'])
- </method>
+ </handler>
</class>
<window title="dgTester" width="600" height="300" name="dgwin"
@@ -123,16 +123,17 @@
<attribute name="datasel"
value="${ workdef == '1' ? 2 : 1 }"/>
- <method event="ondatasel" name="checkDataSel">
+ <handler name="ondatasel" method="checkDataSel" />
+ <method name="checkDataSel">
if ( !this._initcomplete ) return;
this.selectItem( datasel );
</method>
- <method event="oninit">
+ <handler name="oninit">
this.checkDataSel();
- </method>
+ </handler>
- <method event="onselect">
+ <handler name="onselect">
if ( this.value == 1 ){
this.workdef = 0;
this.homedef = 1;
@@ -141,7 +142,7 @@
this.homedef = 0;
}
this.datapath.updateData();
- </method>
+ </handler>
<radiobutton value="1">home</radiobutton>
<radiobutton value="2">work</radiobutton>
@@ -150,10 +151,10 @@
<gridtext datapath="@email" text="Email"/>
- <method event="oninit">
+ <handler name="oninit">
del = new LzDelegate(this, "deleteSel" );
LzKeys.callOnKeyCombo(del, ["delete"]);
- </method>
+ </handler>
<method name="deleteSel">
var sel = getSelection()
@@ -166,9 +167,9 @@
<window title="poke" layout="axis:'y'; spacing: 10" x="450" y="${dgwin.height+10}" resizable="true" minwidth="150">
<button text="loadMoreData">
- <method event="onclick">
+ <handler name="onclick">
contactsLoad.doRequest();
- </method>
+ </handler>
</button>
<view layout="axis: x">
@@ -180,6 +181,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/components/style_example.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/style_example.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/style_example.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -17,10 +17,10 @@
<view name="stylechooser" layout="axis:x; spacing:4">
<text>Style:</text>
<combobox width="120" editable="false">
- <method event="onselect">
+ <handler name="onselect">
var colorchoice = this.getText();
canvas[colorchoice+'colors'].setAttribute("isdefault", true);
- </method>
+ </handler>
<textlistitem text="silver" />
<textlistitem text="green" />
@@ -169,7 +169,7 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/test/components/testmedia/frosty.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/testmedia/frosty.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/testmedia/frosty.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,7 +1,7 @@
<view name="frosty">
- <method event="oninit">
+ <handler name="oninit">
//Debug.write("Frosty's parent: " + this.parent);
- </method>
+ </handler>
<text multiline="true"
x="6"
height="450" width="420">
@@ -34,6 +34,6 @@
</text>
</view>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/components/testmedia/frosty2.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/testmedia/frosty2.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/testmedia/frosty2.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,7 +1,7 @@
<view name="frosty">
- <method event="oninit">
+ <handler name="oninit">
//Debug.write("Frosty's parent: " + this.parent);
- </method>
+ </handler>
<view height="50" width="100%" bgcolor="yellow"/>
<text multiline="true"
x="6"
@@ -57,6 +57,6 @@
<simplelayout spacing="30"/>
</view>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/components/testmedia/frosty_typetest.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/testmedia/frosty_typetest.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/testmedia/frosty_typetest.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,7 +1,7 @@
<view name="frosty">
- <method event="oninit">
+ <handler name="oninit">
//Debug.write("Frosty's parent: " + this.parent);
- </method>
+ </handler>
<text multiline="true"
x="6"
height="350" width="200">
@@ -34,6 +34,6 @@
</text>
</view>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/components/testmedia/frosty_wide.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/testmedia/frosty_wide.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/testmedia/frosty_wide.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,7 +1,7 @@
<view name="frosty">
- <method event="oninit">
+ <handler name="oninit">
//Debug.write("Frosty's parent: " + this.parent);
- </method>
+ </handler>
<view width="50" height="100%" bgcolor="yellow"/>
<text multiline="true"
width="360">
@@ -24,6 +24,6 @@
<simplelayout spacing="10" axis="x"/>
</view>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/components/utils/layouts/test-resizelayout.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/utils/layouts/test-resizelayout.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/utils/layouts/test-resizelayout.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,5 +1,5 @@
<canvas>
- <view y="40" bgcolor="yellow" width="300">
+ <view y="40" bgcolor="yellow" width="300">
<view bgcolor="blue" height="30" width="50" />
<view bgcolor="red" height="30" options="releasetolayout" />
<view bgcolor="blue" height="30" width="50" />
@@ -7,7 +7,7 @@
<resizelayout axis='x' spacing="5" />
</view >
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/components/utils/test-reverse-layout.lzx
===================================================================
--- openlaszlo/branches/devildog/test/components/utils/test-reverse-layout.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/components/utils/test-reverse-layout.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -36,24 +36,24 @@
<view layout="axis: x; spacing: 10">
<button> end: false
- <method event="onclick">
+ <handler name="onclick">
l1.setAttribute('end', false);
l2.setAttribute('end', false);
l3.setAttribute('end', false);
l4.setAttribute('end', false);
- </method>
+ </handler>
</button>
<button> end: true
- <method event="onclick">
+ <handler name="onclick">
l1.setAttribute('end', true);
l2.setAttribute('end', true);
l3.setAttribute('end', true);
l4.setAttribute('end', true);
- </method>
+ </handler>
</button>
</view>
<button> resize
- <method event="onclick">
+ <handler name="onclick">
t1.animate('width', t1.width == 100 ? 200 : 100, 1000, false);
t1.animate('height', t1.height == 100 ? 200 : 100, 1000, false);
t2.animate('width', t1.width == 100 ? 200 : 100, 1000, false);
@@ -62,10 +62,10 @@
t3.animate('height', t1.height == 100 ? 200 : 100, 1000, false);
t4.animate('width', t1.width == 100 ? 200 : 100, 1000, false);
t4.animate('height', t1.height == 100 ? 200 : 100, 1000, false);
- </method>
+ </handler>
</button>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/connection/history/historylib.lzx
===================================================================
--- openlaszlo/branches/devildog/test/connection/history/historylib.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/connection/history/historylib.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -13,30 +13,30 @@
canvas.chatwindow.chatPtr.addNode("message", null, { text: str } );
</method>
- <method event="onconnect">
+ <handler name="onconnect">
this.print("...connected...");
this.sendMessage("*", "", "userconnect");
canvas.enterfocus = bSend;
canvas.namepicker.setVisible(false);
canvas.chatwindow.setVisible(true);
- </method>
+ </handler>
- <method event="onerror">
+ <handler name="onerror">
this.print("...connection error...");
- </method>
+ </handler>
- <method event="ontimeout">
+ <handler name="ontimeout">
this.print("...connection timed out...");
- </method>
+ </handler>
- <method event="ondisconnect">
+ <handler name="ondisconnect">
this.print("...disconnected...");
- </method>
+ </handler>
- <method event="onuserdisconnect" args="user">
+ <handler name="onuserdisconnect" args="user">
this.getList('*');
this.print("user " + user + " disconnected");
- </method>
+ </handler>
<dataset name="message" />
<dataset name="userconnect" />
@@ -50,27 +50,27 @@
<datapointer name="chatPtr" xpath="chatDset:/" />
<datapointer xpath="myconnection:userconnect:/*">
- <method event="ondata">
+ <handler name="ondata">
var from = this.xpathQuery('/from[0]/@name');
this.parent.chatPtr.addNode("message", null,
{ text: "User " + from + " connected!" }
);
canvas.myconnection.getList('*');
- </method>
+ </handler>
</datapointer>
<datapointer xpath="myconnection:message:/*">
- <method event="ondata">
+ <handler name="ondata">
var from = this.xpathQuery('/from[0]/@name');
var mesg = this.xpathQuery('/text()');
this.parent.chatPtr.addNode("message", null,
{ text: from + ": " + mesg}
);
- </method>
+ </handler>
</datapointer>
<datapointer id="foo" xpath="myconnection:history:/*[1]">
- <method event="ondata">
+ <handler name="ondata">
<![CDATA[
if (this.getNodeCount() == 0) {
this.parent.chatPtr.addNode("message", null,
@@ -85,16 +85,16 @@
}
}
]]>
- </method>
+ </handler>
</datapointer>
<datapointer xpath="myconnection:sendMessageDset:/*">
- <method event="onerror">
+ <handler name="onerror">
var message = this.parent.sendView.msg.getText();
this.parent.chatPtr.addNode("message", null,
{ text: "error: " + this.dataset.getErrorString() }
);
- </method>
+ </handler>
</datapointer>
<view width="387" height="287" x="29" y="39" bgcolor="#000000" />
@@ -134,11 +134,11 @@
</button>
<button width="50" height="24">
History
- <method event="onclick">
+ <handler name="onclick">
<![CDATA[
canvas.myconnection.sendAgentXML("*", "<history />");
]]>
- </method>
+ </handler>
</button>
<simplelayout axis="x" spacing="5"/>
</view>
@@ -205,11 +205,11 @@
</view>
- <method event="onkeyup" reference="LzKeys" args="k">
+ <handler name="onkeyup" reference="LzKeys" args="k">
if ( k == 13 ) {
canvas.enterfocus.send();
}
- </method>
+ </handler>
<script>
canvas.enterfocus = gochat;
@@ -217,6 +217,6 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/connection/multipleconnect/multipleconnect.lzx
===================================================================
--- openlaszlo/branches/devildog/test/connection/multipleconnect/multipleconnect.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/connection/multipleconnect/multipleconnect.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -3,25 +3,25 @@
<connection authenticator="none" />
<connectiondatasource name="mydatasource">
- <method event="onconnect">
+ <handler name="onconnect">
Debug.write("***connected***");
- </method>
- <method event="ondisconnect">
+ </handler>
+ <handler name="ondisconnect">
Debug.write("***disconnected***");
- </method>
+ </handler>
</connectiondatasource>
<view>
<attribute name="counter" value="0" />
<simplelayout axis="x" spacing="5"/>
<button>connect
- <method event="onclick">
+ <handler name="onclick">
canvas.mydatasource.connect();
Debug.write('connect: counter is ' + (++parent.counter));
- </method>
+ </handler>
</button>
<button>disconnect
- <method event="onclick">
+ <handler name="onclick">
<![CDATA[
if (0 < parent.counter) {
canvas.mydatasource.disconnect();
@@ -29,10 +29,10 @@
}
Debug.write('disconnect: counter is ' + parent.counter);
]]>
- </method>
+ </handler>
</button>
<button>force disconnect
- <method event="onclick">
+ <handler name="onclick">
<![CDATA[
if (0 < parent.counter) {
canvas.mydatasource.clientDisconnect(true);
@@ -40,12 +40,12 @@
}
Debug.write('force disconnect');
]]>
- </method>
+ </handler>
</button>
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/connection/noauth/noauthlib.lzx
===================================================================
--- openlaszlo/branches/devildog/test/connection/noauth/noauthlib.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/connection/noauth/noauthlib.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -7,11 +7,11 @@
<library>
- <method event="onkeyup" reference="LzKeys" args="k">
+ <handler name="onkeyup" reference="LzKeys" args="k">
if ( k == 13 ) {
bSend.send();
}
- </method>
+ </handler>
<dataset name="chatDset" />
@@ -21,24 +21,24 @@
canvas.chatwindow.chatPtr.addNode("message", null, { text: str } );
</method>
- <method event="onconnect">
+ <handler name="onconnect">
this.print("...connected...");
canvas.myconnection.sendMessage("*", "", "userconnect");
canvas.front.setVisible(false);
canvas.chatwindow.setVisible(true);
- </method>
+ </handler>
- <method event="onerror">
+ <handler name="onerror">
this.print("...connection error...");
- </method>
+ </handler>
- <method event="ontimeout">
+ <handler name="ontimeout">
this.print("...connection timed out...");
- </method>
+ </handler>
- <method event="ondisconnect">
+ <handler name="ondisconnect">
this.print("...disconnected...");
- </method>
+ </handler>
<dataset name="message" />
</connectiondatasource>
@@ -46,9 +46,9 @@
<view name="front" x="20" y="20">
<button>go chat
- <method event="onclick">
+ <handler name="onclick">
canvas.myconnection.connect();
- </method>
+ </handler>
</button>
</view>
@@ -58,21 +58,21 @@
<datapointer name="chatPtr" xpath="chatDset:/" />
<datapointer xpath="myconnection:message:/">
- <method event="ondata">
+ <handler name="ondata">
var mesg = this.getXPath('text()');
this.parent.chatPtr.addNode("message", null,
{ text: mesg}
);
- </method>
+ </handler>
</datapointer>
<datapointer xpath="myconnection:sendMessageDset:/">
- <method event="onerror">
+ <handler name="onerror">
var message = this.parent.sendView.msg.getText();
this.parent.chatPtr.addNode("message", null,
{ text: "error: " + this.dataset.getErrorString() }
);
- </method>
+ </handler>
</datapointer>
<view width="387" height="287" x="29" y="39" bgcolor="#000000" />
@@ -113,11 +113,11 @@
</method>
</button>
<button width="50" height="24">Logout
- <method event="onclick">
+ <handler name="onclick">
canvas.front.setVisible(true);
canvas.chatwindow.setVisible(false);
canvas.myconnection.disconnect();
- </method>
+ </handler>
</button>
<simplelayout axis="x" spacing="5"/>
@@ -127,6 +127,6 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/constraints.lzx
===================================================================
--- openlaszlo/branches/devildog/test/constraints.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/constraints.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -5,7 +5,7 @@
<view width="${parent.width/2}" height="${parent.height - parent.other.height - 10}" bgcolor="red"/>
<view name="other" width="${parent.width}" height="20" bgcolor="green"/>
<text>
- Resize the window. The red rectangle should stay half the width, and extend from the bottom of the green rectangle to the bottom of the content area of the rectangle.
+ Resize the window. The red rectangle should stay half the width, and extend from the bottom of the green rectangle to the bottom of the content area of the rectangle.
</text>
</window>
@@ -26,9 +26,9 @@
f.dependencies = function(t, c, x, y){return ["f.dependencies", x, y];};
var test;
test=function () {
- #pragma "constraintFunction"
- with (this)
- this.setAttribute('width', a.b+f(c.d, e));
+ #pragma "constraintFunction"
+ with (this)
+ this.setAttribute('width', a.b+f(c.d, e));
};
Debug.write("Expected '[object a],b,[object c],d,f.dependencies,12,14'");
Debug.write("got: ", test.dependencies());
@@ -37,6 +37,6 @@
</script>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/contextmenu/api.lzx
===================================================================
--- openlaszlo/branches/devildog/test/contextmenu/api.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/contextmenu/api.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,18 +1,18 @@
<canvas width="100%" height="80%" >
<simplelayout/>
- <method event="oninit">
+ <handler name="oninit">
// Test install of custom menu on the Canvas
var nm = new LzContextMenu();
var item1 = nm.makeMenuItem('Canvas Hello', function () { Debug.write("Hi, I'm this canvas", this); } );
nm.addItem(item1);
this.setDefaultContextMenu(nm);
Debug.write("setting new contextmenu on canvas from api.lzx");
- </method>
+ </handler>
<view width="100" height="100" bgcolor="#cccccc" name="v1">
- <method event="oninit">
+ <handler name="oninit">
var cm = new LzContextMenu();
// Set up a LzDelegate as a callback
var item1 = cm.makeMenuItem('Item1', new LzDelegate(this, "handlerightclick"));
@@ -41,7 +41,7 @@
new LzDelegate(this, "menuitemselected", item1, "onselect");
Debug.write(cm);
- </method>
+ </handler>
<method name="menuselected" args="val">
Debug.write("A context menu was opened with a right click, menu = ", val.items);
@@ -76,7 +76,7 @@
</canvas>
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2007, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
Modified: openlaszlo/branches/devildog/test/data/big-data.lzx
===================================================================
--- openlaszlo/branches/devildog/test/data/big-data.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/data/big-data.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -3,16 +3,16 @@
<view>
<simplelayout axis="x" spacing="1"/>
<view name="column" bgcolor="yellow" height="1024" width="200"
- datapath="data:/industry" >
+ datapath="data:/industry" >
<text name="title" width="199" datapath="@code"/>
<simplelayout axis="y" spacing="1"/>
<view name="row" width="199" datapath="company" bgcolor="green">
- <text name="coname" width="199" datapath="@name"/>
+ <text name="coname" width="199" datapath="@name"/>
</view>
</view>
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/data/data-url-serverless.lzx
===================================================================
--- openlaszlo/branches/devildog/test/data/data-url-serverless.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/data/data-url-serverless.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,6 +1,6 @@
<canvas debug="true" height="600" width="1400">
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
- * Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+ * Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
@@ -31,9 +31,9 @@
<button id="butt" >Make request
- <method event="onclick">
+ <handler name="onclick">
this.doit();
- </method>
+ </handler>
<method name="doit">
<![CDATA[
@@ -70,11 +70,11 @@
]]>
</method>
</button>
-<method event="oninit">
+<handler name="oninit">
Debug.setWrapLines(true);
Debug.showInternalProperties = true;
-</method>
+</handler>
</canvas>
Modified: openlaszlo/branches/devildog/test/data/data-url.lzx
===================================================================
--- openlaszlo/branches/devildog/test/data/data-url.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/data/data-url.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -26,9 +26,9 @@
<button id="butt" >Make request
- <method event="onclick">
+ <handler name="onclick">
this.doit();
- </method>
+ </handler>
<method name="doit">
Debug.write("Requesting: " + url.getText());
@@ -52,6 +52,6 @@
</button>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/data/datatag-1.lzx
===================================================================
--- openlaszlo/branches/devildog/test/data/datatag-1.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/data/datatag-1.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,9 +1,9 @@
<canvas width="100%" height="80%" >
<simplelayout spacing="2"/>
<view name="data0" layout="axis: y" bgcolor="#cccccc">
- <method event="onclick">
+ <handler name="onclick">
Debug.write(this.lds);
- </method>
+ </handler>
<dataset name="lds" datafromchild='true'>
<data name="initialdata">
<mydata>
@@ -15,7 +15,7 @@
</dataset>
<text>local dataset loaded with data tag initialdata</text>
<text datapath="local:parent.lds:/mydata/foo/text()" onclick="Debug.write(this.datapath)"/>
- <method reference="lds" event="oninit">
+ <handler name="oninit">
<![CDATA[
Debug.write("lds data tag test data oninit recv'd", this);
if (this.lds.serialize() != '<lds><mydata><foo>bar</foo><foo>baz</foo><foo>kerchunk</foo></mydata></lds>') {
@@ -23,13 +23,13 @@
Debug.write(this.lds.serialize());
}
]]>
- </method>
+ </handler>
</view>
<view name="data1" layout="axis: y" bgcolor="#cccccc">
- <method event="onclick">
+ <handler name="onclick">
Debug.write(this.lds);
- </method>
+ </handler>
<dataset name="lds" datafromchild="true">
<!-- MULTIPLE root nodes... works for back compatibility -->
<data >
@@ -44,14 +44,14 @@
</dataset>
<text>local dataset loaded with anonymous data tag </text>
<text datapath="local:parent.lds:/foo/text()" onclick="Debug.write(this.datapath)"/>
- <method reference="lds" event="oninit">
+ <handler name="oninit">
<![CDATA[
Debug.write("lds data tag test data loaded", this);
if (this.lds.serialize() != '<lds><foo>bar</foo><foo>baz</foo><foo>kerchunk</foo></lds>') {
Debug.error(" data1 serialized data does not match expected value");
}
]]>
- </method>
+ </handler>
<!-- a plain old vanilla data node -->
<data name="mydata">
<flavors>
@@ -114,6 +114,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/data/jdata.lzx
===================================================================
--- openlaszlo/branches/devildog/test/data/jdata.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/data/jdata.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -13,14 +13,14 @@
<simplelayout/>
<button text="clickme">
- <method event="onclick">
+ <handler name="onclick">
foo.setSrc(s1.value);
foo.setQueryParam('j', "公");
foo.setQueryType(r1.value);
Debug.write("setQueryType", r1.value);
Debug.write("calling foo.doRequest()", foo);
foo.doRequest();
- </method>
+ </handler>
</button>
<view layout="axis:x">
<radiogroup id="s1" width="200">
@@ -49,3 +49,4 @@
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/data/local-dataset.lzx
===================================================================
--- openlaszlo/branches/devildog/test/data/local-dataset.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/data/local-dataset.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -24,77 +24,77 @@
<simplelayout spacing="2"/>
<view name="nodatanoname" layout="axis: y" bgcolor="#cccccc">
- <method event="onclick">
+ <handler name="onclick">
Debug.write(this.localdata);
- </method>
+ </handler>
<dataset/>
<text>empty local dataset with no name</text>
</view>
<view name="nodata" layout="axis: y" bgcolor="#cccccc">
- <method event="onclick">
+ <handler name="onclick">
Debug.write(this.lds);
- </method>
+ </handler>
<dataset name="lds"/>
<text>empty local dataset</text>
</view>
<view name="somedata" layout="axis: y" bgcolor="#cccccc">
- <method event="onclick">
+ <handler name="onclick">
Debug.write(this.lds);
- </method>
+ </handler>
<dataset name="lds">
<foo>bar</foo>
</dataset>
<text>local dataset</text>
- <method reference="lds" event="oninit">
+ <handler name="oninit">
<![CDATA[
Debug.write("somedata test data loaded", this);
if (this.lds.serialize() != '<lds><foo>bar</foo></lds>') {
Debug.error("somedata serialized data does not match expected value");
}
]]>
- </method>
+ </handler>
</view>
<view name="filedata" layout="axis: y" bgcolor="#cccccc">
- <method event="onclick">
+ <handler name="onclick">
Debug.write(this.lds);
- </method>
+ </handler>
<dataset name="lds" src="testdata.xml"/>
<text>local dataset compiled in from external file</text>
- <method reference="lds" event="oninit">
+ <handler name="oninit">
<![CDATA[
Debug.write("filedata test data loaded", this);
if (this.lds.serialize() != '<lds><persons><person id="1"><firstName>Dan</firstName><lastName>McGowan</lastName><modifyDate>3/25/05</modifyDate><address code="ML" id="1"><line1>2210 North 184th Street</line1><line2/><city>Shoreline</city></address></person><person id="2"><firstName>Barry</firstName><lastName>Bonds</lastName><modifyDate>3/25/05</modifyDate></person><person id="3"><firstName>Jeff</firstName><lastName>Beck</lastName><modifyDate>3/25/05</modifyDate></person></persons></lds>') {
Debug.error("filedata serialized data does not match expected value");
}
]]>
- </method>
+ </handler>
</view>
<view name="remotedata" layout="axis: y" bgcolor="#cccccc">
- <method event="onclick">
+ <handler name="onclick">
Debug.write(this.lds);
- </method>
+ </handler>
<dataset name="lds" src="testdata.xml" type="http" request="true"/>
<text>local dataset loaded at runtime</text>
<text datapath="local:parent.lds:/persons/person/firstName/text()" onclick="Debug.write(this.datapath)"/>
- <method reference="lds" event="ondata">
+ <handler name="ondata">
<![CDATA[
Debug.write("remotedata test data loaded", this);
if (this.lds.serialize() != '<lds><persons><person id="1"><firstName>Dan</firstName><lastName>McGowan</lastName><modifyDate>3/25/05</modifyDate><address id="1" code="ML"><line1>2210 North 184th Street</line1><line2/><city>Shoreline</city></address></person><person id="2"><firstName>Barry</firstName><lastName>Bonds</lastName><modifyDate>3/25/05</modifyDate></person><person id="3"><firstName>Jeff</firstName><lastName>Beck</lastName><modifyDate>3/25/05</modifyDate></person></persons></lds>') {
Debug.error("remotedata serialized data does not match expected value");
}
]]>
- </method>
+ </handler>
</view>
<view name="remotedatarelative" layout="axis: y" bgcolor="#cccccc" datapath="local:lds:/persons/" visible="true">
- <method event="onclick">
+ <handler name="onclick">
Debug.write(this.lds);
this.datapath.setXPath(this.datapath.xpath);
- </method>
+ </handler>
<dataset name="lds" src="testdata.xml" type="http" request="true"/>
<text>local dataset loaded at runtime and relative datapath - datapath doesn't resolve because dataset doesn't exist yet. click to reparse xpath</text>
<text datapath="person/firstName/text()" onclick="Debug.write(this.datapath)"/>
@@ -104,9 +104,9 @@
<dataset/>
<view datapath="local:classroot:/">
<simplelayout/>
- <method event="onclick">
+ <handler name="onclick">
this.datapath.addNode('child', 'Click to remove this node', {});
- </method>
+ </handler>
<text>Click to add a node to my local dataset</text>
<text x="10" datapath="child/text()" onclick="this.datapath.deleteNode();"/>
</view>
@@ -119,3 +119,4 @@
<redlocaldatatest/>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/data/media-url.lzx
===================================================================
--- openlaszlo/branches/devildog/test/data/media-url.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/data/media-url.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -14,19 +14,19 @@
<checkbox text="cache in client" id="ccache" />
<checkbox text="cache in server" id="scache" />
<view id="me" >
- <method event="onerror" args="e">
+ <handler name="onerror" args="e">
Debug.write('error: ' + e);
- </method>
- <method event="ontimeout" args="e">
+ </handler>
+ <handler name="ontimeout" args="e">
Debug.write('timeout: ' + e);
- </method>
+ </handler>
</view>
<button id="butt" >Make request
- <method event="onclick">
+ <handler name="onclick">
this.doit();
- </method>
+ </handler>
<method name="doit"><![CDATA[
Debug.write("Requesting: " + url.getText());
@@ -52,6 +52,6 @@
text="${'Jump to ' + fr.text}"/>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/data/mediatimeout-local3.lzx
===================================================================
--- openlaszlo/branches/devildog/test/data/mediatimeout-local3.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/data/mediatimeout-local3.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -27,12 +27,12 @@
<text datapath="modifyDate/text()" />
<text datapath="@id" />
</view>
- <method event="oninit">
+ <handler name="oninit">
var d = canvas.datasets[this.dpath];
rowOfData.setDatapath(this.dpath+':/persons/person');
Debug.write("sending request for person data.");
d.doRequest();
- </method>
+ </handler>
</class>
<view >
@@ -47,3 +47,4 @@
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/data/serverlessmedia.lzx
===================================================================
--- openlaszlo/branches/devildog/test/data/serverlessmedia.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/data/serverlessmedia.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -18,17 +18,17 @@
loadparent.loadview.setSource( u );
</method>
- <method event="onerror" reference="loadparent.loadview">
+ <handler name="onerror" reference="loadparent.loadview">
this.setAttribute( "status" , "error" );
- </method>
+ </handler>
- <method event="onload" reference="loadparent.loadview">
+ <handler name="onload" reference="loadparent.loadview">
this.setAttribute( "status" , "loaded" );
- </method>
+ </handler>
- <method event="ontimeout" reference="loadparent.loadview">
+ <handler name="ontimeout" reference="loadparent.loadview">
this.setAttribute( "status" , "timeout" );
- </method>
+ </handler>
<view>
<simplelayout axis="x"/>
@@ -98,12 +98,12 @@
</combobox>
<button>
Load
- <method event="onclick">
+ <handler name="onclick">
targetParent[ parent.targparent.targ.value ].load(
parent.src.value );
parent.targparent.targ.selectNext();
//parent.src.selectNext();
- </method>
+ </handler>
</button>
<view y='-8' name="targparent">
<text x="18">Target:</text>
@@ -124,3 +124,4 @@
<loadtarget name="D"/>
</view>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/data/submit-utf8.lzx
===================================================================
--- openlaszlo/branches/devildog/test/data/submit-utf8.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/data/submit-utf8.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -5,13 +5,13 @@
<text id="t2" width="200" bgcolor="#ffcccc"/>
<button>Submit
- <method event="onclick">
+ <handler name="onclick">
var d = canvas.datasets.mydata;
var val = t1.getText();
Debug.write("sending request for data.");
d.setQueryString({foo : escape(val), bar : 'foobar', baz : 'bazbo'});
d.doRequest();
- </method>
+ </handler>
</button>
<view name="foo" datapath="mydata:/response/formcomponent">
@@ -20,3 +20,4 @@
</view>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/data/timeoutproxied-jpeg.lzx
===================================================================
--- openlaszlo/branches/devildog/test/data/timeoutproxied-jpeg.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/data/timeoutproxied-jpeg.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,10 +1,11 @@
<canvas width="1200" height="800" debug='true' medialoadtimeout="1000">
<debug x="200"/>
<view x="0" y="0" id="v1" resource="http:sleepjpeg.jsp?s=10" >
- <method event="ontimeout">
+ <handler name="ontimeout">
Debug.write('media load timed out '+this.resource);
- </method>
+ </handler>
</view>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/dcache/dcache.lzx
===================================================================
--- openlaszlo/branches/devildog/test/dcache/dcache.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/dcache/dcache.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -17,7 +17,7 @@
onerror="Debug.write(this.getDataset().getErrorString())"
oninit="Debug.write( 'Dataset for ' + this + ' : ' + this.getDataset() )" >
- <method event="ondata">
+ <handler name="ondata">
Debug.write("proc data in : "+ this);
if (this.getDataset().getStatusCode() != 200) {
return;
@@ -34,7 +34,7 @@
this.selectChild();
Debug.write( this.serialize() );
- </method>
+ </handler>
</datapointer>
@@ -43,7 +43,7 @@
onerror="Debug.write(this.getDataset().getErrorString())"
oninit="Debug.write( 'Dataset for ' + this + ' : ' + this.getDataset() )" >
- <method event="ondata">
+ <handler name="ondata">
Debug.write("proc data in : "+ this);
if (this.getDataset().getStatusCode() != 200) {
return;
@@ -60,13 +60,13 @@
this.selectChild();
Debug.write( this.serialize() );
- </method>
+ </handler>
</datapointer>
</button>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/debugger/memory.lzx
===================================================================
--- openlaszlo/branches/devildog/test/debugger/memory.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/debugger/memory.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -5,9 +5,9 @@
<window x="40" y="40" title="foo"/>
</state>
<button text="apply">
- <method event="onclick">
+ <handler name="onclick">
parent.clickState.isapplied ? parent.clickState.remove() : parent.clickState.apply();
- </method>
+ </handler>
</button>
</view>
<text>To run this test, type </text>
@@ -18,3 +18,4 @@
<text> See if there are lingering objects </text>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/doubleclick.lzx
===================================================================
--- openlaszlo/branches/devildog/test/doubleclick.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/doubleclick.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -3,10 +3,10 @@
<view clickable="true" name="gclick" width="20" height="20" bgcolor="green">
<attribute name="dblDel"/>
<attribute name="clicks" type="number" value="0"/>
- <method name="setupdbl" event="oninit">
+ <handler name="oninit">
this.dblDel = new LzDelegate(this, "clearClicks");
- </method>
- <method event="onclick">
+ </handler>
+ <handler name="onclick">
if (this.clicks){
doDoubleClick();
} else {
@@ -14,7 +14,7 @@
}
this.clicks++;
LzTimer.addTimer(this.dblDel, 300);
- </method>
+ </handler>
<method name="clearClicks">
this.clicks=0;
</method>
@@ -28,15 +28,15 @@
</view>
<view clickable="true" name="bclick" width="20" height="20" bgcolor="blue">
- <method event="onclick">
+ <handler name="onclick">
Debug.write('blue click');
- </method>
- <method event="ondblclick">
+ </handler>
+ <handler name="ondblclick">
Debug.write('blue double click');
- </method>
+ </handler>
</view>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/draw2.lzx
===================================================================
--- openlaszlo/branches/devildog/test/draw2.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/draw2.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,13 +1,13 @@
<canvas width="1024" height="700" >
<class name="drawView">
- <method event="onconstruct">
+ <handler name="onconstruct">
this.makeContainerResource();
Debug.write( 'mcref' , this.__LZmovieClipRef );
this.__LZmovieClipRef.createEmptyMovieClip( "$draw" , 4 );
this.__LZdraw = this.__LZmovieClipRef['$draw'];
Debug.write( 'draw' , this.__LZdraw );
- </method>
+ </handler>
<method name="moveTo" args="x,y">
this.__LZdraw.moveTo( x ,y );
</method>
@@ -28,19 +28,19 @@
</class>
<class name="dot" bgcolor="blue" width="10" height="10"
- onmousedown="drag.apply()"
+ onmousedown="drag.apply()"
- >
+ >
<attribute name="lastx" value="$once{this.x}"/>
<attribute name="lasty" value="$once{this.y}"/>
<linestate name="drag"/>
- <method event="onmousedown">
- foo.moveTo(lastx, lasty);
- foo.lineTo(this.x, this.y);
- this.lastx=this.x;
- this.lasty=this.y;
- </method>
+ <handler name="onmousedown">
+ foo.moveTo(lastx, lasty);
+ foo.lineTo(this.x, this.y);
+ this.lastx=this.x;
+ this.lasty=this.y;
+ </handler>
@@ -56,6 +56,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/drawing/arctest.lzx
===================================================================
--- openlaszlo/branches/devildog/test/drawing/arctest.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/drawing/arctest.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -134,30 +134,30 @@
<view name="start">
<text>Start Angle</text>
<slider name="slider" x="80" minvalue="-360" maxvalue="360">
- <method event="onvalue">
+ <handler name="onvalue">
canvas.dv.drawTestArc();
- </method>
+ </handler>
</slider>
</view>
<view name="end">
<text>End Angle</text>
<slider name="slider" x="80" minvalue="-360" maxvalue="360">
- <method event="onvalue">
+ <handler name="onvalue">
canvas.dv.drawTestArc();
- </method>
+ </handler>
</slider>
</view>
<view name="cw">
<text>Clockwise</text>
<checkbox name="cb" x="80">
- <method event="onvalue">
+ <handler name="onvalue">
canvas.dv.drawTestArc();
- </method>
+ </handler>
</checkbox>
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/drawing/cliptest.lzx
===================================================================
--- openlaszlo/branches/devildog/test/drawing/cliptest.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/drawing/cliptest.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -7,15 +7,15 @@
<attribute name="isMax" value="false"/>
<attribute name="position" type="number" />
<attribute name="imageClip" value="false" />
- <method event="onwidth">
- redraw();
- </method>
- <method event="onheight">
- redraw();
- </method>
- <method event="oninit">
+ <handler name="onwidth">
+ redraw();
+ </handler>
+ <handler name="onheight">
+ redraw();
+ </handler>
+ <handler name="oninit">
//this.setSource(this.image);
- </method>
+ </handler>
<method name="redraw">
this.clear();
this.beginPath();
@@ -79,3 +79,4 @@
-->
</view>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/drawing/draggrad.lzx
===================================================================
--- openlaszlo/branches/devildog/test/drawing/draggrad.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/drawing/draggrad.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -7,7 +7,7 @@
<attribute name="x1" type="number" value="75"/>
<attribute name="y1" type="number" value="75"/>
<attribute name="isRadial" type="boolean" value="true"/>
- <method event="onidle" reference="LzIdle">
+ <handler name="onidle" reference="LzIdle">
this.clear();
this.beginPath();
this.lineTo(this.width, 0);
@@ -40,7 +40,7 @@
this.strokeStyle = 0;
this.lineWidth = 2;
this.stroke();
- </method>
+ </handler>
</class>
<simplelayout/>
<grad x="100" y="200" x0="75" y0="75" x1="${this.getMouse('x')}" y1="${this.getMouse('y')}"/>
@@ -48,7 +48,7 @@
<grad x="0" y="200" x0="0" y0="0" x1="150" y1="150"/>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/drawing/dragon.lzx
===================================================================
--- openlaszlo/branches/devildog/test/drawing/dragon.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/drawing/dragon.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -24,14 +24,14 @@
<attribute name="str" value="" type="string"/>
<turtle name="trtl"/>
<button x="10">Draw
- <method event="onclick">
+ <handler name="onclick">
parent.axiom = "FX";
parent.rulemap = new Array();
parent.rulemap["X"] = "X+YF+";
parent.rulemap["Y"] = "-FX-Y";
parent.trtl.init(parent.x_offset, parent.y_offset, parent.angle,3);
parent.go();
- </method>
+ </handler>
</button>
<method name="go">
this.clear();
@@ -93,7 +93,7 @@
<text> <font color="#0000FF">(<a target="_blank" href="http://www.student.cs.uwaterloo.ca/~rnsolank/fproject.html">Click here for more info</a>)</font></text>
<lsystem id="l" length="3" depth="14" angle="90" width="300" height="520"/>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/drawing/draw_rand.lzx
===================================================================
--- openlaszlo/branches/devildog/test/drawing/draw_rand.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/drawing/draw_rand.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,6 +1,6 @@
<canvas width="800" height="600">
<class name="randView" extends="drawview">
- <method event="oninit">
+ <handler name="oninit">
this.moveTo(100, 100);
this.lineTo(100, 200);
this.quadraticCurveTo(150, 250, 200, 200);
@@ -40,7 +40,7 @@
g.addColorStop(1, 0xffffff);
this.fillStyle = g;
this.fill();
- </method>
+ </handler>
</class>
@@ -48,7 +48,7 @@
<attribute name="iter" init="0"/>
-<method event="onidle" reference="LzIdle">
+<handler name="onidle" reference="LzIdle">
var myx=800*Math.random();
var myy=20 + 580*Math.random();
this.setAttribute("iter", ++this.iter);
@@ -65,12 +65,12 @@
});
del = new LzDelegate ( blah, "deleteNode");
LzTimer.addTimer(del, 1000 );
-</method>
+</handler>
</view>
<text name="goo"/>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/drawing/drawing.lzx
===================================================================
--- openlaszlo/branches/devildog/test/drawing/drawing.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/drawing/drawing.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -2,7 +2,7 @@
<simplelayout axis="x"/>
<drawview width="205" height="230" onmousedown="this.dragger.apply()" onmouseup="this.dragger.remove()" bgcolor="green">
<dragstate name="dragger"/>
- <method event="oncontext">
+ <handler name="oncontext">
this.moveTo(100, 100);
this.lineTo(100, 200);
this.quadraticCurveTo(150, 250, 200, 200);
@@ -42,12 +42,12 @@
g.addColorStop(1, '#ffffff');
this.fillStyle = g;
this.fill();
- </method>
+ </handler>
</drawview>
<!-- test new arc, rect and oval methods -->
<drawview width="200" height="200">
- <method event="oncontext">
+ <handler name="oncontext">
this.beginPath();
this.arc(100, 100, 50, 0, 90);
@@ -59,12 +59,12 @@
this.stroke();
this.closePath();
- </method>
+ </handler>
</drawview>
<!-- test new bezierCurveTo method - from http://developer.mozilla.org/samples/canvas-tutorial/2_6_canvas_beziercurveto.html -->
<drawview width="200" height="200">
- <method event="oncontext">
+ <handler name="oncontext">
this.beginPath();
this.moveTo(75,40);
this.bezierCurveTo(75,37,70,25,50,25);
@@ -74,7 +74,7 @@
this.bezierCurveTo(130,62.5,130,25,100,25);
this.bezierCurveTo(85,25,75,37,75,40);
this.fill();
- </method>
+ </handler>
</drawview>
<!-- this snippet demonstrates LPP-4001. It gives an error in dhtml,
@@ -91,7 +91,7 @@
</drawview>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/drawing/grad_test.lzx
===================================================================
--- openlaszlo/branches/devildog/test/drawing/grad_test.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/drawing/grad_test.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -5,7 +5,7 @@
<attribute name="y0" type="number" value="0"/>
<attribute name="x1" type="number" value="75"/>
<attribute name="y1" type="number" value="75"/>
- <method event="oninit">
+ <handler name="oninit">
this.beginPath();
this.lineTo(150, 0);
this.lineTo(150, 150);
@@ -32,7 +32,7 @@
this.strokeStyle = 0;
this.lineWidth = 2;
this.stroke();
- </method>
+ </handler>
</class>
<simplelayout/>
<view layout="axis:x">
@@ -51,7 +51,7 @@
<grad x0="50" y0="50" x1="100" y1="100"/>
</view>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/drawing/grids.lzx
===================================================================
--- openlaszlo/branches/devildog/test/drawing/grids.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/drawing/grids.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -29,16 +29,17 @@
<view>
<simplelayout/>
<slider minvalue="1" value="10">
- <method event="onvalue">
+ <handler name="onvalue">
dv.setAttribute('it',this.value*10);
dv.update();
- </method>
+ </handler>
</slider>
<slider minvalue="1" value="10">
- <method event="onvalue">
+ <handler name="onvalue">
dv.setAttribute('iv',this.value);
dv.update();
- </method>
+ </handler>
</slider>
</view>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/drawing/illusion.lzx
===================================================================
--- openlaszlo/branches/devildog/test/drawing/illusion.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/drawing/illusion.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,6 +1,6 @@
<canvas width="220" height="220">
<drawview>
- <method event="oninit">
+ <handler name="oninit">
var a = 0;
var y1 = 0;
var x1 = 0;
@@ -15,6 +15,7 @@
this.strokeStyle = 0;
this.lineWidth = 1;
this.stroke();
- </method>
+ </handler>
</drawview>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/drawing/line_play.lzx
===================================================================
--- openlaszlo/branches/devildog/test/drawing/line_play.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/drawing/line_play.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -4,7 +4,7 @@
<attribute name="starty" type="number"/>
<attribute name="length" type="number"/>
<attribute name="angle" type="number"/>
- <method event="oninit">
+ <handler name="oninit">
var a = (angle -90 )* ((2*Math.PI)/360);
var y1 = length * Math.sin(a);
var x1 = length * Math.cos(a);
@@ -16,13 +16,14 @@
this.lineWidth = 1;
this.stroke();
- </method>
+ </handler>
</class>
-<method event="oninit"><![CDATA[
+<handler name="oninit"><![CDATA[
for (var i=0; i != 360 ; i+=10){
new doLine(canvas, {length: 100, startx: 100, starty:100, slope: i});
}
]]>
-</method>
+</handler>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/drawing/many_lines.lzx
===================================================================
--- openlaszlo/branches/devildog/test/drawing/many_lines.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/drawing/many_lines.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -3,7 +3,7 @@
<class name="drawme" extends="drawview">
<attribute name="myx" type="number"/>
<attribute name="myy" type="number"/>
- <method event="oninit">
+ <handler name="oninit">
this.moveTo(100*math.random(), 200*math.random());
this.lineTo(100*math.random(), 200*math.random());
this.closePath();
@@ -16,13 +16,13 @@
this.lineWidth = 5;
this.stroke();
- </method>
+ </handler>
</class>
<view onmousedown="this.dragger.apply()" onmouseup="this.dragger.remove()" bgcolor="green" width="${parent.width}" height="${parent.height}">
<dragstate name="dragger"/>
<attribute name="i" init="0"/>
-<method event="onidle" reference="LzIdle">
+<handler name="onidle" reference="LzIdle">
var myx=800*math.random();
var myy=20 + 580*math.random();
this.setAttribute("i", ++i);
@@ -38,7 +38,8 @@
x:myx
});
-</method>
+</handler>
</view>
<text name="goo"/>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/drawing/many_points.lzx
===================================================================
--- openlaszlo/branches/devildog/test/drawing/many_points.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/drawing/many_points.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -3,7 +3,7 @@
<class name="drawLines" extends="drawview" onmousedown="this.dragger.apply()" onmouseup="this.dragger.remove()" bgcolor="green" width="200" height="200">
<attribute name="it" type="number" value="10"/>
<dragstate name="dragger"/>
- <method event="oninit">
+ <handler name="oninit">
for (var i=0; i != this.it ; i++){
this.moveTo(200*math.random(), 200*math.random());
this.lineTo(200*math.random(), 200*math.random());
@@ -12,52 +12,52 @@
this.strokeStyle = 0xff0000;
this.lineWidth = 1;
this.stroke();
-
- </method>
+ </handler>
</class>
<class name="randOnly" extends="drawview" onmousedown="this.dragger.apply()" onmouseup="this.dragger.remove()" bgcolor="green" width="200" height="200">
<attribute name="it" type="number" value="10"/>
<dragstate name="dragger"/>
- <method event="oninit">
+ <handler name="oninit">
for (var i=0; i != this.it ; i++){
200*math.random();
200*math.random();
200*math.random();
200*math.random();
}
- </method>
+ </handler>
</class>
<view>
<simplelayout/>
<button>100 Lines
- <method event="onclick">
+ <handler name="onclick">
new drawLines( canvas,{ it : 100, x:100 });
- </method>
+ </handler>
</button>
<button>1000 Lines
- <method event="onclick">
+ <handler name="onclick">
new drawLines( canvas,{ it : 1000, x:100, y:200});
- </method>
+ </handler>
</button>
<button>10000 Lines
- <method event="onclick">
+ <handler name="onclick">
new drawLines( canvas,{ it : 10000, x:100, y:400 });
- </method>
+ </handler>
</button>
<button>100 Rand
- <method event="onclick">
+ <handler name="onclick">
new randOnly( canvas,{ it : 100, x:300 });
- </method>
+ </handler>
</button>
<button>1000 Rand
- <method event="onclick">
+ <handler name="onclick">
new randOnly( canvas,{ it : 1000, x:300, y:200});
- </method>
+ </handler>
</button>
<button>10000 Rand
- <method event="onclick">
+ <handler name="onclick">
new randOnly( canvas,{ it : 10000, x:300, y:400 });
- </method>
+ </handler>
</button>
</view>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/drawing/star.lzx
===================================================================
--- openlaszlo/branches/devildog/test/drawing/star.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/drawing/star.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -7,7 +7,7 @@
<attribute name="startangle" type="number" value="0"/>
<attribute name="colors" value="[0x888888,0xaaaaaa]"/>
<attribute name="bordercolors" value="[0x000000,0x000000]"/>
- <method event="oninit">
+ <handler name="oninit">
var a, i, x1, y1, length =0;
var pi = Math.PI;
for (i=0; i != 2 * vertices ; i++){
@@ -30,7 +30,7 @@
this.lineWidth = border;
this.stroke();
}
- </method>
+ </handler>
</class>
<star x="200"
y="200"
@@ -42,4 +42,4 @@
bordercolors="[0xffffff,0xffffff]"
startangle="$once{Math.PI}"/>
</canvas>
-<!-- copyright 2006-2007 laszlo systems -->
\ No newline at end of file
+<!-- copyright 2006-2008 laszlo systems -->
Modified: openlaszlo/branches/devildog/test/extensions/test-richinputtext-default-format.lzx
===================================================================
--- openlaszlo/branches/devildog/test/extensions/test-richinputtext-default-format.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/extensions/test-richinputtext-default-format.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -41,15 +41,15 @@
</text>
<button id="bplain" text="plain" onclick="rte.setText('Underlying all questions of etiology is the fundamental query: who started it? And did they know what they were doing, at the time?');"/>
<button id="bhtml" text="html">
- <method name="doClick" event="onclick">
+ <handler name="onclick">
rte.setHTMLText('There once was a small fish in a small pond. The small pond was at the base of a little hill. Far, far away was the sea. The small fish found a stream leading away from his small pond, and he swam into that stream. The stream flowed down the side of a big hill.');
- </method>
+ </handler>
</button>
<button id="bhtmlparas" text="paragraphs">
- <method name="doClick" event="onclick">
+ <handler name="onclick">
rte.setHTMLText('Aha!\nOmbudsman\n\n\ne e cummings\nReluctant Charging Buffalo');
- </method>
+ </handler>
</button>
<button text="reset" onclick="rte.clearText()"/>
@@ -62,6 +62,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
-* X_LZ_COPYRIGHT_END ****************************************************** -->
\ No newline at end of file
+* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/extensions/test-richinputtext.lzx
===================================================================
--- openlaszlo/branches/devildog/test/extensions/test-richinputtext.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/extensions/test-richinputtext.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -99,9 +99,9 @@
</richinputtext>
<slider name="sizeslider" minvalue="10" maxvalue="32" showvalue="false" value="12">
- <method event="onvalue">
+ <handler name="onvalue">
parent.rich.applyTextAttr("size", this.value, 0, 300);
- </method>
+ </handler>
</slider>
@@ -202,7 +202,7 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2007, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
-<!-- @LZX_VERSION@ -->
\ No newline at end of file
+<!-- @LZX_VERSION@ -->
Modified: openlaszlo/branches/devildog/test/extensions/test_getText_setText.lzx
===================================================================
--- openlaszlo/branches/devildog/test/extensions/test_getText_setText.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/extensions/test_getText_setText.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -4,11 +4,11 @@
<simplelayout axis="y" spacing="5" />
<attribute name="target" value="null" />
<button>test get set. (hit me repeatedly. the text should not change.)
- <method event="onclick">
+ <handler name="onclick">
var str = parent.target.getText();
Debug.write("got str for ", parent.target.id, ":", str);
parent.target.setText(str);
- </method>
+ </handler>
</button>
</class>
@@ -36,3 +36,4 @@
</view>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/format.lzx
===================================================================
--- openlaszlo/branches/devildog/test/format.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/format.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -2,7 +2,7 @@
<debug y="100" height="400" width="600" />
<simplelayout axis="y"/>
<view name="theView">
- <method event="onclick" reference="doit">
+ <handler name="onclick" reference="doit">
__LzDebug.format("This is a control string with no conversions.\n");
__LzDebug.format("Here is a control string with only %%'s in it.\n");
__LzDebug.format("Here is a `%%s'\n -> `%s'\n", 'whee');
@@ -35,7 +35,8 @@
__LzDebug.format("format('%%" + formats[j] +"', %#w)\n -> %1$" + formats[j] + "\n", things[i]);
}
}
- </method>
+ </handler>
</view>
<button name="doit">Do It</button>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/future/preformat-inputtext.lzx
===================================================================
--- openlaszlo/branches/devildog/test/future/preformat-inputtext.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/future/preformat-inputtext.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,7 +1,7 @@
<canvas width="1000" height="800">
<!-- ////////////////////////////////////////////////////////////////
- PREFORMAT text
+ PREFORMAT text
-->
<inputtext id="pfast" y="410" width="400" height="400" resizable="false" bgcolor="#cccccc" >
@@ -71,7 +71,7 @@
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/future/soapdata.lzx
===================================================================
--- openlaszlo/branches/devildog/test/future/soapdata.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/future/soapdata.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -18,7 +18,7 @@
<dataset name="searchdata" type="soap" src="http://api.google.com/search/beta2" namespace="urn:GoogleSearch" method="doGoogleSearch"/>
<resource name="icon">
- <frame src="resources/jpg/logo.jpg" />
+ <frame src="resources/jpg/logo.jpg" />
<frame src="resources/swf/logo.swf" />
</resource>
@@ -89,6 +89,6 @@
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/getters-setters.lzx
===================================================================
--- openlaszlo/branches/devildog/test/getters-setters.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/getters-setters.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -8,52 +8,52 @@
<include href="lzunit/lzunit.lzx" />
<class name="GetterTest" extends="TestCase">
- <method name="testWidthOnObject">
- assertEquals(10, {width: 10}.width);
- </method>
+ <method name="testWidthOnObject">
+ assertEquals(10, {width: 10}.width);
+ </method>
</class>
<class name="SetterTest" extends="TestCase">
<method name="testHeightOnObject">
- var foo = {height: 5};
- foo.height = 42;
+ var foo = {height: 5};
+ foo.height = 42;
assertEquals(42, foo.height);
</method>
</class>
<class name="ViewTest" extends="TestCase">
- <view id="tester" bgcolor="yellow">
- <view width="20" height="20" bgcolor="red" />
- <view x="100" y="120" width="50" height="120" bgcolor="blue" />
- </view>
+ <view id="tester" bgcolor="yellow">
+ <view width="20" height="20" bgcolor="red" />
+ <view x="100" y="120" width="50" height="120" bgcolor="blue" />
+ </view>
- <method name="testGettersOnView">
- assertEquals(tester.getAttribute("x"), tester.x);
- assertEquals(tester.getAttribute("y"), tester.y);
- assertEquals(tester.getAttribute("width"), tester.width);
- assertEquals(tester.getAttribute("height"), tester.height);
- </method>
+ <method name="testGettersOnView">
+ assertEquals(tester.getAttribute("x"), tester.x);
+ assertEquals(tester.getAttribute("y"), tester.y);
+ assertEquals(tester.getAttribute("width"), tester.width);
+ assertEquals(tester.getAttribute("height"), tester.height);
+ </method>
- <method name="testSettersOnView">
- tester.x = 27;
- tester.setAttribute("y", tester.y+152);
- tester.height = 314;
- tester.setAttribute("width", 159);
- assertEquals(tester.getAttribute("x"), tester.x);
- assertEquals(tester.getAttribute("y"), tester.y);
- assertEquals(tester.getAttribute("width"), tester.width);
- assertEquals(tester.getAttribute("height"), tester.height);
- </method>
+ <method name="testSettersOnView">
+ tester.x = 27;
+ tester.setAttribute("y", tester.y+152);
+ tester.height = 314;
+ tester.setAttribute("width", 159);
+ assertEquals(tester.getAttribute("x"), tester.x);
+ assertEquals(tester.getAttribute("y"), tester.y);
+ assertEquals(tester.getAttribute("width"), tester.width);
+ assertEquals(tester.getAttribute("height"), tester.height);
+ </method>
</class>
<TestSuite>
- <GetterTest />
- <SetterTest />
- <ViewTest />
+ <GetterTest />
+ <SetterTest />
+ <ViewTest />
</TestSuite>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/handcursor.lzx
===================================================================
--- openlaszlo/branches/devildog/test/handcursor.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/handcursor.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,15 +1,16 @@
<canvas debug="true" layout="axis:y; spacing: 5">
<checkbox value="true">Global hand cursor
- <method event="onvalue" args="v">
+ <handler name="onvalue" args="v">
LzCursor.showHandCursor(v);
- </method>
+ </handler>
</checkbox>
<button showhandcursor="false">Toggle hand cursor
- <method event="onclick">
+ <handler name="onclick">
this.setAttribute('showhandcursor', ! this.showhandcursor);
- </method>
+ </handler>
</button>
<text showhandcursor="false" onclick="Debug.write( 'hey', this)">Never show hand cursor</text>
<text showhandcursor="true" onclick="Debug.write( 'hey', this)">Always show hand cursor</text>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/hbox-test.lzx
===================================================================
--- openlaszlo/branches/devildog/test/hbox-test.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/hbox-test.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,11 +1,12 @@
<canvas>
<hbox spacing="10">
- <method event="onclick">
+ <handler name="onclick">
this.animate('spacing', this.spacing == 10 ? 0 : 10, 1000);
- </method>
+ </handler>
<text>click</text>
<text>to</text>
<text>animate</text>
<text>spacing</text>
</hbox>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/history/history.lzx
===================================================================
--- openlaszlo/branches/devildog/test/history/history.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/history/history.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -3,17 +3,17 @@
<text text="${LzHistory.offset}"/>
<attribute name="foo" value="null"/>
<attribute name="bar" value="null"/>
- <method event="onfoo" args="f">
+ <handler name="onfoo" args="f">
Debug.write('external call', f);
- </method>
- <method event="oninit">
+ </handler>
+ <handler name="oninit">
LzHistory.setPersist(true);
- </method>
+ </handler>
<class name="histinputtext" extends="inputtext">
- <method event="onblur">
+ <handler name="onblur">
LzHistory.save(this.id, 'text', this.getText())
- </method>
+ </handler>
</class>
<histinputtext id="hist1">A value</histinputtext>
<histinputtext id="hist2">Another value</histinputtext>
@@ -35,7 +35,7 @@
<attribute name="__lzdirty" value="false"/>
<attribute name="__lzhistq" value="[]"/>
<attribute name="__lzcurrstate" value="{}"/>
- <method event="oninit">
+ <handler name="oninit">
if (this.persist) {
if (! this._persistso) {
var lu = LZBrowser.getLoadUrlAsLzUrl();
@@ -44,8 +44,8 @@
}
//this.__lzhistq = this._persistso.data;
}
- </method>
- <method event="onhistory" args="o" reference="LzBrowser">
+ </handler>
+ <handler name="onhistory" args="o" reference="LzBrowser">
//Debug.write('onhistory ', o);
o *= 1;
if (! o) o = 0;
@@ -58,7 +58,7 @@
//Debug.write('restoring state ', o);
o.c.setAttribute(o.n, o.v);
}
- </method>
+ </handler>
<method name="register" args="who, prop, val">
// strip off __ so keys can be listed
var u = who.getUID().substr(2);
@@ -103,6 +103,6 @@
</view-->
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/i18n/validate-jp.lzx
===================================================================
--- openlaszlo/branches/devildog/test/i18n/validate-jp.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/i18n/validate-jp.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -4,7 +4,7 @@
<simplelayout axis="y"/>
<edittext name="ed" >
- <method event="onkeydown" reference="LzKeys" args="keycode">
+ <handler name="onkeydown" reference="LzKeys" args="keycode">
<![CDATA[
var han = "0123456789-";
var zen = "0123456789ー";
@@ -20,7 +20,8 @@
Debug.write( d + " -> " + str );
ed2.setText( str );
]]>
- </method>
+ </handler>
</edittext>
<edittext name="ed2"/>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/imgtag/img-accessibility.lzx
===================================================================
--- openlaszlo/branches/devildog/test/imgtag/img-accessibility.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/imgtag/img-accessibility.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -2,11 +2,11 @@
<debug oninit="this.setWrapLines(true)"/>
<resource name="horse3" src="horse-3.jpg"/>
- <method event="oninit">
+ <handler name="oninit">
//LzBrowser.setClipboard('foo!');
var upddel = new LzDelegate(LzBrowser, 'updateAccessibility');
LzTimer.addTimer(upddel, 500);
- </method>
+ </handler>
<text multiline="true" height="300" width="300" id="bar">
This is a horse, you see on your right. <img align="right" src="horse-2.jpg" alt="A pretty horsey"/>
@@ -15,3 +15,4 @@
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/imgtag/imgtest.lzx
===================================================================
--- openlaszlo/branches/devildog/test/imgtag/imgtest.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/imgtag/imgtest.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -4,11 +4,11 @@
<resource name="horse3" src="horse-3.jpg"/>
- <method event="oninit">
+ <handler name="oninit">
//LzBrowser.setClipboard('foo!');
var upddel = new LzDelegate(LzBrowser, 'updateAccessibility');
LzTimer.addTimer(upddel, 500);
- </method>
+ </handler>
<text multiline="true" height="200" width="300" id="t2"/>
@@ -37,3 +37,4 @@
</TestSuite>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/inputtextscroll.lzx
===================================================================
--- openlaszlo/branches/devildog/test/inputtextscroll.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/inputtextscroll.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -12,21 +12,21 @@
<attribute name="maxheight" value="${this.height + this.lineheight * (this.maxscroll - 1)}"/>
<attribute name="onpos" value="null"/>
<attribute name="pos" value="0" setter="setPos(pos);"/>
- <method event="oninit">
+ <handler name="oninit">
Debug.write('oninit imp', this, this.maxscroll, this.scroll);
- </method>
- <method event="onmaxscroll">
+ </handler>
+ <handler name="onmaxscroll">
Debug.write('onmaxscroll');
- </method>
+ </handler>
<method name="setPos" args="p">
this.setScroll(1 - (p / this.lineheight));
this.pos = p;
if (this.onpos) this.onpos.sendEvent(p);
</method>
- <method event="onscroll">
+ <handler name="onscroll">
this.setPos(-this.lineheight * (this.scroll - 1), true);
- </method>
+ </handler>
</inputtext>
<scrollbar axis="y" scrollattr="pos" scrollmax="${parent.inp.maxheight}"/>
</class>
@@ -36,3 +36,4 @@
<button>test</button>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/jsgen/delegates.lzx
===================================================================
--- openlaszlo/branches/devildog/test/jsgen/delegates.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/jsgen/delegates.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,14 +1,14 @@
<canvas>
<view>
-<method event="onclick">
+<handler name="onclick">
return 1
-</method>
-<method event="onkey" reference="foo">
+</handler>
+<handler name="onkey" reference="foo">
return 2
-</method>
+</handler>
</view>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/leak/comboboxLeak.lzx
===================================================================
--- openlaszlo/branches/devildog/test/leak/comboboxLeak.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/leak/comboboxLeak.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -16,7 +16,7 @@
<view layout="axis:y" y="${canvas.height - this.height}">
<button>make 'em all
- <method event="onclick">
+ <handler name="onclick">
for ( var i=0; i!=30;++i){
new foo( canvas,{ width : 200,
height : 200 ,
@@ -25,18 +25,18 @@
name: 'win'+i
});
}
- </method>
+ </handler>
</button>
<button>Kill 'em all
- <method event="onclick">
+ <handler name="onclick">
for ( var i=0; i!=30;++i){
canvas['win'+i].destroy();
}
- </method>
+ </handler>
</button>
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/leak/dataset_leak.lzx
===================================================================
--- openlaszlo/branches/devildog/test/leak/dataset_leak.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/leak/dataset_leak.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -28,19 +28,19 @@
<view name="content">
</view>
- <method event="oninit">
+ <handler name="oninit">
this.n = [];
this.idel = new LzDelegate( this , "dispatch" );
this.make = true;
- </method>
+ </handler>
- <method event="onrunning">
+ <handler name="onrunning">
if ( this.running ){
this.idel.register( LzIdle, 'onidle' );
} else {
this.idel.unregisterAll();
}
- </method>
+ </handler>
<method name="dispatch">
if ( this.make ){
@@ -178,24 +178,24 @@
</state>
<!-- METHODS -->
- <method event="onmouseover">
+ <handler name="onmouseover">
this.setBGColor( this.hiColor );
- </method>
+ </handler>
- <method event="onmouseout">
+ <handler name="onmouseout">
this.setBGColor( this.normalColor );
- </method>
+ </handler>
- <method event="onmousedown">
+ <handler name="onmousedown">
this.mouseIsDown = true;
calgrid.daySelectionMgr.select(this.classroot);
eventselector.selectData( this );
- </method>
+ </handler>
- <method event="onmouseup">
+ <handler name="onmouseup">
this.mouseIsDown = false;
eventselector.domouseup();
- </method>
+ </handler>
</class>
@@ -235,14 +235,14 @@
<attribute name="mouseIsDown" value="false"/>
- <method event="ondata">
+ <handler name="ondata">
// When a event is current it's selected node attribute is 'true'
// This is the only way that an event becomes the current event,
// which in turn selects the event selector bar
this.selected = this.datapath.getNodeAttribute('selected') == true;
if (this.selected)
eventselector.setSelectedEvent( this ,this.mouseIsDown );
- </method>
+ </handler>
<!-- VIEWS -->
<view name="tl" bgcolor="#FFFFFF"
@@ -265,7 +265,7 @@
<!--This is a little strange, but we have consolidated the
code that handles start times here -->
- <method event="ondata"><![CDATA[
+ <handler name="ondata"><![CDATA[
var o = this.datapath.getNodeAttributes();
if ( classroot['startHour'] == o['hour'] &&
@@ -286,7 +286,7 @@
//if (classroot.classroot.opened)
// classroot.parent.closedlayout.setAttribute('enabled',true);
// classroot.parent.closedlayout.update(true);
- ]]></method>
+ ]]></handler>
</text>
<text name="smalltitletext" fgcolor="#4B5D6C"
@@ -333,7 +333,7 @@
<!--This is a little strange, but we have consolidated the
code that handles end times here -->
- <method event="ondata"><![CDATA[
+ <handler name="ondata"><![CDATA[
var o = this.datapath.getNodeAttributes();
if ( classroot['endHour'] == o['hour'] &&
@@ -354,30 +354,30 @@
classroot.setHeight(22);
}
- ]]></method>
+ ]]></handler>
</view>
</state>
<!-- METHODS -->
- <method event="onmouseover">
+ <handler name="onmouseover">
this.setBGColor( this.hiColor );
- </method>
+ </handler>
- <method event="onmouseout">
+ <handler name="onmouseout">
this.setBGColor( this.normalColor );
- </method>
+ </handler>
- <method event="onmousedown">
+ <handler name="onmousedown">
this.mouseIsDown = true;
calgrid.daySelectionMgr.select(this.classroot);
eventselector.selectData( this );
- </method>
+ </handler>
- <method event="onmouseup">
+ <handler name="onmouseup">
this.mouseIsDown = false;
eventselector.domouseup();
- </method>
+ </handler>
</class>
<view height="100">
@@ -609,6 +609,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/leak/many_leaks.lzx
===================================================================
--- openlaszlo/branches/devildog/test/leak/many_leaks.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/leak/many_leaks.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -28,19 +28,19 @@
<view name="content">
</view>
- <method event="oninit">
+ <handler name="oninit">
this.n = [];
this.idel = new LzDelegate( this , "dispatch" );
this.make = true;
- </method>
+ </handler>
- <method event="onrunning">
+ <handler name="onrunning">
if ( this.running ){
this.idel.register( LzIdle, 'onidle' );
} else {
this.idel.unregisterAll();
}
- </method>
+ </handler>
<method name="dispatch">
if ( this.make ){
@@ -178,24 +178,24 @@
</state>
<!-- METHODS -->
- <method event="onmouseover">
+ <handler name="onmouseover">
this.setBGColor( this.hiColor );
- </method>
+ </handler>
- <method event="onmouseout">
+ <handler name="onmouseout">
this.setBGColor( this.normalColor );
- </method>
+ </handler>
- <method event="onmousedown">
+ <handler name="onmousedown">
this.mouseIsDown = true;
calgrid.daySelectionMgr.select(this.classroot);
eventselector.selectData( this );
- </method>
+ </handler>
- <method event="onmouseup">
+ <handler name="onmouseup">
this.mouseIsDown = false;
eventselector.domouseup();
- </method>
+ </handler>
</class>
@@ -235,14 +235,14 @@
<attribute name="mouseIsDown" value="false"/>
- <method event="ondata">
+ <handler name="ondata">
// When a event is current it's selected node attribute is 'true'
// This is the only way that an event becomes the current event,
// which in turn selects the event selector bar
this.selected = this.datapath.getNodeAttribute('selected') == true;
if (this.selected)
eventselector.setSelectedEvent( this ,this.mouseIsDown );
- </method>
+ </handler>
<!-- VIEWS -->
<view name="tl" bgcolor="#FFFFFF"
@@ -265,7 +265,7 @@
<!--This is a little strange, but we have consolidated the
code that handles start times here -->
- <method event="ondata"><![CDATA[
+ <handler name="ondata"><![CDATA[
var o = this.datapath.getNodeAttributes();
if ( classroot['startHour'] == o['hour'] &&
@@ -286,7 +286,7 @@
//if (classroot.classroot.opened)
// classroot.parent.closedlayout.setAttribute('enabled',true);
// classroot.parent.closedlayout.update(true);
- ]]></method>
+ ]]></handler>
</text>
<text name="smalltitletext" fgcolor="#4B5D6C"
@@ -333,7 +333,7 @@
<!--This is a little strange, but we have consolidated the
code that handles end times here -->
- <method event="ondata"><![CDATA[
+ <handler name="ondata"><![CDATA[
var o = this.datapath.getNodeAttributes();
if ( classroot['endHour'] == o['hour'] &&
@@ -354,30 +354,30 @@
classroot.setHeight(22);
}
- ]]></method>
+ ]]></handler>
</view>
</state>
<!-- METHODS -->
- <method event="onmouseover">
+ <handler name="onmouseover">
this.setBGColor( this.hiColor );
- </method>
+ </handler>
- <method event="onmouseout">
+ <handler name="onmouseout">
this.setBGColor( this.normalColor );
- </method>
+ </handler>
- <method event="onmousedown">
+ <handler name="onmousedown">
this.mouseIsDown = true;
calgrid.daySelectionMgr.select(this.classroot);
eventselector.selectData( this );
- </method>
+ </handler>
- <method event="onmouseup">
+ <handler name="onmouseup">
this.mouseIsDown = false;
eventselector.domouseup();
- </method>
+ </handler>
</class>
<view height="100">
@@ -607,6 +607,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/leak/view_leaks.lzx
===================================================================
--- openlaszlo/branches/devildog/test/leak/view_leaks.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/leak/view_leaks.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,7 +1,7 @@
<canvas width="800" height="600">
<view>
<attribute name="i" value="0"/>
-<method event="onidle" reference="LzIdle">
+<handler name="onidle" reference="LzIdle">
var myx=800*Math.random();
var myy=20 + 580*Math.random();
this.setAttribute("i", ++i);
@@ -18,7 +18,7 @@
});
del = new LzDelegate ( blah, "destroy");
LzTimer.addTimer(del, 1000 );
-</method>
+</handler>
</view>
<text name="goo"/>
<!--
@@ -78,6 +78,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/leak/windowLeak.lzx
===================================================================
--- openlaszlo/branches/devildog/test/leak/windowLeak.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/leak/windowLeak.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -3,7 +3,7 @@
<view layout="axis:y" y="${canvas.height - this.height}">
<button>make 'em all
- <method event="onclick">
+ <handler name="onclick">
for ( var i=0; i!=30;++i){
new foo( canvas,{ width : 200,
height : 200 ,
@@ -12,18 +12,18 @@
name: 'win'+i
});
}
- </method>
+ </handler>
</button>
<button>Kill 'em all
- <method event="onclick">
+ <handler name="onclick">
for ( var i=0; i!=30;++i){
canvas['win'+i].destroy();
}
- </method>
+ </handler>
</button>
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/lfc/animators/animconstraints.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/animators/animconstraints.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/animators/animconstraints.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -18,10 +18,10 @@
<attribute name="text" type="html"/>
<inputtext name="t" text="$once{parent.attrval}"/>
<button text="${parent.setAttr}" >
- <method event="onclick">
+ <handler name="onclick">
var v = parent.t.getText();
parent.setAttribute( 'attrval' , v );
- </method>
+ </handler>
</button>
<simplelayout axis="x"/>
</class>
@@ -52,6 +52,6 @@
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/lfc/clip_and_stretch.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/clip_and_stretch.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/clip_and_stretch.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,7 +1,7 @@
<canvas>
<simplelayout/>
<view width="50" height="50" clip="true" stretches="both">
- <method event="onclick">
+ <handler name="onclick">
if (this.width == 50 ){
this.setAttribute('width', 100);
this.setAttribute('height', 100);
@@ -9,16 +9,17 @@
this.setAttribute('width', 50);
this.setAttribute('height', 50);
}
- </method>
+ </handler>
<view stretches="both" width="100" height="100">
- <method event="oninit">
+ <handler name="oninit">
this.setSource('http:../resources/jpg/k8s.jpg');
- </method>
+ </handler>
</view>
</view>
<view>
- <method event="oninit">
+ <handler name="oninit">
this.setSource('http:../resources/jpg/k8s.jpg');
- </method>
+ </handler>
</view>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/lfc/context-menu.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/context-menu.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/context-menu.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,7 +1,7 @@
<canvas debug="true" width="1800" height="800">
- <method event="oninit">
+ <handler name="oninit">
Debug.showInternalProperties = true;
- </method>
+ </handler>
<debug x="200" fontsize="14" width="600" height="400"/>
<script>
@@ -39,3 +39,4 @@
width="200" height="200" bgcolor="blue"
oninit="setContextMenu(cm2)"/>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/lfc/data/datapath.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/data/datapath.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/data/datapath.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -7,9 +7,9 @@
<dataset name="dptest2" src="http:testdata.xml" type="http" request="true"/>
<class name="dataEventReporter">
- <method event="ondata" args="d">
+ <handler name="ondata" args="d">
classroot.collect( this, d , 'ondata' );
- </method>
+ </handler>
<method name="applyData" args="d">
classroot.collect( this, d , 'applyData' );
</method>
@@ -145,6 +145,6 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/lfc/data/datarepl.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/data/datarepl.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/data/datarepl.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -57,9 +57,9 @@
ondata="Debug.write( 'data!' ) ">
<simplelayout spacing="2" />
<datatester name="encl" clickable="true">
- <method event="onclick">
+ <handler name="onclick">
this.datapath.deleteNode();
- </method>
+ </handler>
</datatester>
</view>
@@ -68,30 +68,30 @@
<attribute name="dpaths" value="[ 'ds:/' , 'ds:/nodea[3]' ,
'ds:/nodeb[2]','ds:/nodeb[1]']"/>
<attribute name="onum" value="1"/>
- <method event="onclick">
+ <handler name="onclick">
Debug.write( 'set outer dpath to ' + this.dpaths[ this.onum ] );
par.setDatapath( this.dpaths[ this.onum] );
this.onum = ++this.onum < 4 ? this.onum : 0;
- </method>
+ </handler>
</button>
<button >
Order
<attribute name="orderpaths" value="[ '@prop' , '@color' , 'text()' ]"/>
<attribute name="onum" value="0"/>
- <method event="onclick">
+ <handler name="onclick">
Debug.write( "sort: " + this.orderpaths[ this.onum ] );
par.encl.setOrder( this.orderpaths[ this.onum] );
this.onum = ++this.onum < 3 ? this.onum : 0;
- </method>
+ </handler>
</button>
<button >
Pooling
- <method event="onclick">
+ <handler name="onclick">
par.encl.pooling = !par.encl.pooling;
Debug.write( "pooling set to : " + par.encl.pooling );
- </method>
+ </handler>
</button>
@@ -101,6 +101,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/lfc/data/datasetwithspace.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/data/datasetwithspace.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/data/datasetwithspace.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -4,9 +4,9 @@
request="true"/>
<datapointer xpath="weatherdata:/">
- <method event="onerror" args="msg">
+ <handler name="onerror" args="msg">
Debug.write('Got error: ' + msg );
- </method>
+ </handler>
</datapointer>
<view datapath="weatherdata:/weather[1]" width="400" height="25">
@@ -20,6 +20,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/lfc/data/dollarpath.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/data/dollarpath.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/data/dollarpath.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -69,14 +69,14 @@
<inputtext name="i4" text="${parent.p.toString()}" />
<inputtext name="i5" text="${parent.l.toString()}" />
<button>update
- <method event="onclick">
+ <handler name="onclick">
parent.setAttribute( "n" , parent.i0.getText() );
parent.setAttribute( "w" , parent.i1.getText() );
parent.setAttribute( "h" , parent.i2.getText() );
parent.setAttribute( "m" , parent.i3.getText() );
parent.setAttribute( "p" , parent.i4.getText() );
parent.setAttribute( "l" , parent.i5.getText() );
- </method>
+ </handler>
</button>
<simplelayout/>
@@ -140,6 +140,6 @@
</TestSuite>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/lfc/data/nonpoolingoptimization.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/data/nonpoolingoptimization.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/data/nonpoolingoptimization.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -49,14 +49,14 @@
</view>
- <method event="onkeyup" reference="LzKeys" args="k">
+ <handler name="onkeyup" reference="LzKeys" args="k">
if ( k == 13 ) {
send.enter();
}
- </method>
+ </handler>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/lfc/data/repldone.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/data/repldone.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/data/repldone.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -42,15 +42,15 @@
<view id="rman">
<datapath id="checkdp">
<attribute name="doneDel" value="null"/>
- <method event="onnodes" args="nodes">
+ <handler name="onnodes" args="nodes">
<![CDATA[
for ( var i = 0; i < nodes.length ; i++ ){
var tnode = nodes[i].getFirstChild();
tnode.setData( tnode.data + "x" );
}
]]>
- </method>
- <method event="onclones" args="clones">
+ </handler>
+ <handler name="onclones" args="clones">
var lastclone = clones[ clones.length - 1 ];
if ( !this.doneDel ){
this.doneDel = new LzDelegate( this, 'replicationDone');
@@ -58,7 +58,7 @@
this.doneDel.unregisterAll();
}
this.doneDel.register( lastclone , "oninit" );
- </method>
+ </handler>
<method name="replicationDone">
Debug.write( 'REPLICATION IS DONE!');
</method>
@@ -68,30 +68,30 @@
<text datapath="text()"/>
<attribute name="waittime" value="100"/>
<node>
- <method event="onconstruct">
+ <handler name="onconstruct">
<![CDATA[
var endtime = parent.waittime + getTimer();
while ( getTimer() < endtime ){
//nop
}
]]>
- </method>
+ </handler>
</node>
</view>
</view>
<button>
<attribute name="toggle" value="false"/>
- <method event="onclick">
+ <handler name="onclick">
if ( toggle ){
rman.setDatapath( "ds1:/top/node" )
} else {
rman.setDatapath( " ds2 :/ top / xnode " )
}
this.toggle = !this.toggle;
- </method>
+ </handler>
</button>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/lfc/data/testdatapath.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/data/testdatapath.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/data/testdatapath.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -59,10 +59,10 @@
</button>
<button >
Set datapath
- <method event="onclick">
+ <handler name="onclick">
changeme.datapath.setNodeText( 'Changed Text' );
changeme.datapath.setNodeName( 'changedname' );
- </method>
+ </handler>
</button>
</datatester>
</view>
@@ -71,6 +71,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/lfc/data/testdatapointer.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/data/testdatapointer.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/data/testdatapointer.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -42,7 +42,7 @@
<simplelayout axis="x" spacing="10" />
<button>setXpath test
<datapointer name="mydp" >
- <method event="onclick" reference="parent">
+ <handler name="onclick" reference="parent">
<![CDATA[
var mya = [ "keys:/row[1]" , null ,
"key[1]" , null ,
@@ -57,13 +57,13 @@
}
]]>
- </method>
+ </handler>
</datapointer>
</button>
<button>Anon dataset
<datapointer name="mydp" xpath="keys:/">
- <method event="onclick" reference="parent">
+ <handler name="onclick" reference="parent">
<![CDATA[
var mya = [ [ "a" , "text1" , { a : 1 , b: "a"} ],
[ "b" , "text2" , { a : 2 , b: "b"} ],
@@ -105,7 +105,7 @@
//modify
]]>
- </method>
+ </handler>
</datapointer>
</button>
<button>test selection
@@ -126,7 +126,7 @@
]]>
</method>
- <method name="processData" event="onclick" reference="parent" >
+ <handler name="onclick" reference="parent" >
// Test next, prev, parent, child
Debug.write("Dataset is : " + this.getDataset());
Debug.write("Load time: " + this.getDataset().getLoadTime());
@@ -147,7 +147,7 @@
assert("Prev", this.selectPrev());
assert("Parent", this.selectParent());
assert("Parent", this.selectParent(), true);
- </method>
+ </handler>
<method name="assert" args="label, result, shouldfail">
if (!result) {
if (shouldfail) return;
@@ -161,6 +161,6 @@
</button>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/lfc/data/testheaderresponse.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/data/testheaderresponse.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/data/testheaderresponse.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -19,11 +19,11 @@
ondata="Debug.write('testheaderresponse: dpready = true'); parent.dpready = true"
/>
- <method event="oninit">
+ <handler name="oninit">
dsheaders.setHeader("content-type", "application/xml");
dsheaders.setQueryType("POST");
dsheaders.doRequest();
- </method>
+ </handler>
<method name="test1">
if ( ! this.dpready ){
@@ -57,7 +57,7 @@
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/lfc/data/testheaders.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/data/testheaders.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/data/testheaders.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,29 +1,29 @@
<canvas debug="true">
<dataset name="ds" src="testheaders.lzx" type="http" querystring="lzt=xml">
- <method event="ondata">
+ <handler name="ondata">
Debug.write( "got data: " );
Debug.write( this.getAllResponseHeaders().serialize( "=" , "\n" ) );
- </method>
+ </handler>
</dataset>
<button>No Headers
- <method event="onclick">
+ <handler name="onclick">
ds.setAttribute( 'getresponseheaders' , false );
ds.doRequest();
- </method>
+ </handler>
</button>
<button>Yes Headers
- <method event="onclick">
+ <handler name="onclick">
ds.setAttribute( 'getresponseheaders' , true );
ds.doRequest();
- </method>
+ </handler>
</button>
<simplelayout/>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/lfc/data/testhttpdata.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/data/testhttpdata.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/data/testhttpdata.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -52,15 +52,15 @@
<dataset name="dataError" src="http:nosuchfile.xml"/>
<class name="testdatapointer" extends="datapointer">
- <method event="ondata">
+ <handler name="ondata">
Debug.format("%s: .ondata(%w)\n", parent.text, arguments[0]);
- </method>
- <method event="onerror">
+ </handler>
+ <handler name="onerror">
Debug.format("%s: .onerror(%w)\n", parent.text, arguments[0]);
- </method>
- <method event="ontimeout">
+ </handler>
+ <handler name="ontimeout">
Debug.format("%s: .ontimeout(%w)\n", parent.text, arguments[0]);
- </method>
+ </handler>
</class>
<view id="tests">
@@ -68,131 +68,131 @@
<button>
Unqueued
<attribute name="rnum" value="0"/>
- <method event="onclick">
+ <handler name="onclick">
canvas.datasets.data1.setQueryString( { rnum : this.rnum++, set: 1} );
Debug.format("%s request: %d\n", this.text, this.rnum );
canvas.datasets.data1.doRequest();
- </method>
+ </handler>
<testdatapointer xpath="data1:/*" />
</button>
<button>
Queued
<attribute name="rnum" value="0"/>
- <method event="onclick">
+ <handler name="onclick">
canvas.datasets.data2.setQueryString( { rnum : this.rnum++, set: 2} );
Debug.format("%s request: %d\n", this.text, this.rnum );
canvas.datasets.data2.doRequest();
- </method>
+ </handler>
<testdatapointer xpath="data2:/*" />
</button>
<button>
No Response Headers
<attribute name="rnum" value="0"/>
- <method event="onclick">
+ <handler name="onclick">
canvas.datasets.data3.setQueryString( { rnum : this.rnum++, set: 3} );
Debug.format("%s request: %d\n", this.text, this.rnum );
canvas.datasets.data3.doRequest();
- </method>
+ </handler>
<testdatapointer xpath="data3:/*" />
</button>
<button>
XML
- <method event="onclick">
+ <handler name="onclick">
Debug.format("%s request\n", this.text);
canvas.datasets.data4.doRequest();
- </method>
+ </handler>
<testdatapointer xpath="data4:/*" />
</button>
<button>
XML with encodings
- <method event="onclick">
+ <handler name="onclick">
Debug.format("%s request\n", this.text);
canvas.datasets.data5.doRequest();
- </method>
+ </handler>
<testdatapointer xpath="data5:/*" />
</button>
<button>
Echo with encondings
- <method event="onclick">
+ <handler name="onclick">
var d6 = canvas.datasets.data6;
d6.setHeader( "XFoo" , "i//%xBar" );
d6.setHeader( "XPlop" , "x slop" );
d6.setQueryString( "hi=there");
Debug.format("%s request\n", this.text);
d6.doRequest();
- </method>
+ </handler>
<testdatapointer xpath="data6:/*">
- <method event="ondata">
+ <handler name="ondata">
Debug.format("%s: .ondata(%w)\n", parent.text, arguments[0]);
Debug.write( "got headers: " );
Debug.write( this.getDataset().getAllResponseHeaders().serialize( ":" , "\n" ));
- </method>
+ </handler>
</testdatapointer>
</button>
<button>
XML, cacheable, encodings
- <method event="onclick">
+ <handler name="onclick">
Debug.format("%s request\n", this.text);
canvas.datasets.data7.doRequest();
- </method>
+ </handler>
<testdatapointer xpath="data7:/*" />
</button>
<button>
Don't Timeout
- <method event="onclick">
+ <handler name="onclick">
var sl = "sleep=10000";
canvas.datasets.data8.setQueryString( sl );
Debug.format("%s request: %s\n", this.text, sl);
canvas.datasets.data8.doRequest();
- </method>
+ </handler>
<testdatapointer xpath="data8:/*" />
</button>
<button>
Redirect
- <method event="onclick">
+ <handler name="onclick">
Debug.format("%s request\n", this.text);
canvas.datasets.data9.doRequest();
- </method>
+ </handler>
<testdatapointer xpath="data9:/*" />
</button>
<button>
Do Timeout
- <method event="onclick">
+ <handler name="onclick">
canvas.datasets.data10.setQueryString("sleep=60000");
Debug.format("%s request\n", this.text);
canvas.datasets.data10.doRequest();
- </method>
+ </handler>
<testdatapointer xpath="data10:/*" />
</button>
<button>
Do Timeout, cacheable
- <method event="onclick">
+ <handler name="onclick">
canvas.datasets.data11.setQueryString("sleep=60000");
Debug.format("%s request\n", this.text);
canvas.datasets.data11.doRequest();
- </method>
+ </handler>
<testdatapointer xpath="data11:/*" />
</button>
<button>
Do Error
- <method event="onclick">
+ <handler name="onclick">
Debug.format("%s request\n", this.text);
canvas.datasets.dataError.doRequest();
- </method>
+ </handler>
<testdatapointer xpath="dataError:/*" />
</button>
<button>
Date
- <method event="onclick">
+ <handler name="onclick">
Debug.format("%s request\n", this.text);
canvas.datasets.data12.doRequest();
- </method>
+ </handler>
<testdatapointer xpath="data12:/*" />
</button>
<button>
Switch Image
<attribute name="nextImage" />
- <method event="onclick">
+ <handler name="onclick">
switch (this.nextImage) {
case 1:
parent.img.loadImg( "Beavis" ,
@@ -231,17 +231,17 @@
this.nextImage = 1;
break;
}
- </method>
+ </handler>
</button>
<button>
Abort Load
- <method event="onclick">
+ <handler name="onclick">
parent.img.loadImg( "matrix",
"http:../../../sample-apps/dashboard/media/video/matrix.swf");
var d = new LzDelegate( parent.img , "unload" );
LzTimer.addTimer( d , 1000 );
- </method>
+ </handler>
</button>
<checkbox name="ccheck">cache in client</checkbox>
<checkbox name="scheck">cache in server</checkbox>
@@ -254,23 +254,23 @@
(parent.scheck.amChecked?"server":"none"));
this.setSource(url, foo);
</method>
- <method event="onload">
+ <handler name="onload">
Debug.format("%s: .ondata(%w)\n", this.imgname, arguments[0]);
- </method>
- <method event="ondata">
+ </handler>
+ <handler name="ondata">
Debug.format("%s: .ondata(%w)\n", this.imgname, arguments[0]);
- </method>
- <method event="onerror">
+ </handler>
+ <handler name="onerror">
Debug.format("%s: .onerror(%w)\n", this.imgname, arguments[0]);
- </method>
- <method event="ontimeout">
+ </handler>
+ <handler name="ontimeout">
Debug.format("%s: .ontimeout(%w)\n", this.imgname, arguments[0]);
- </method>
+ </handler>
</view>
</view>
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/lfc/data/xpath.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/data/xpath.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/data/xpath.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -5,11 +5,11 @@
<view y="200" name="rpar">
<button>
AddOne
- <method event="onclick">
+ <handler name="onclick">
Debug.write( 'hi' );
var fc = somedat.getFirstChild().getFirstChild();
somedat.getFirstChild().insertBefore( fc.cloneNode(true) , fc );
- </method>
+ </handler>
</button>
<text datapath="somedat:/data/record[1]/position()"/>
<text datapath="somedat:/data/record[1]/last()"/>
@@ -147,6 +147,6 @@
</TestSuite>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/lfc/forcereplication.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/forcereplication.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/forcereplication.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -13,7 +13,7 @@
<view>
<simplelayout/>
<button> Switch to forced replication
- <method event="onclick">
+ <handler name="onclick">
<![CDATA[
var newnodes = [];
for ( var i = 0; i < 4; i++ ){
@@ -23,16 +23,16 @@
}
parent.replParent.repl.setNodes( newnodes );
]]>
- </method>
+ </handler>
</button>
<button> Poke replicated data
- <method event="onclick">
+ <handler name="onclick">
var dp = new LzDatapointer( );
dp.setPointer( parent.replParent.subviews[ 1 ].datapath.p );
dp.setNodeText( dp.getNodeText() + "+" );
dp.setPointer( parent.replParent.subviews[ 3 ].datapath.p );
dp.setNodeText( dp.getNodeText() + "+" );
- </method>
+ </handler>
</button>
<view name="replParent" datapath="dsO:/root">
@@ -43,7 +43,7 @@
<view>
<simplelayout/>
<button> Force replication
- <method event="onclick">
+ <handler name="onclick">
<![CDATA[
var newnodes = [];
for ( var i = 0; i < 4; i++ ){
@@ -54,17 +54,17 @@
}
parent.replParent.repl.datapath.setNodes( newnodes );
]]>
- </method>
+ </handler>
</button>
<button> Poke replicated data
- <method event="onclick">
+ <handler name="onclick">
var dp = new LzDatapointer( );
dp.setPointer( parent.replParent.subviews[ 0 ].datapath.p );
dp.setNodeText( dp.getNodeText() + "+" );
dp.setPointer( parent.replParent.subviews[ 1 ].datapath.p );
dp.setNodeAttribute( 'foo' ,
Number( dp.getNodeAttribute( 'foo' ) * 2 ));
- </method>
+ </handler>
</button>
<view name="replParent" datapath="dsO:/root">
@@ -81,7 +81,7 @@
<view>
<simplelayout/>
<button> Force replication (shared parents)
- <method event="onclick">
+ <handler name="onclick">
<![CDATA[
var newnodes = [];
for ( var j = 0; j < 2; j++ ){
@@ -97,17 +97,17 @@
}
parent.replParent.repl.datapath.setNodes( newnodes );
]]>
- </method>
+ </handler>
</button>
<button> Poke replicated data
- <method event="onclick">
+ <handler name="onclick">
var dp = new LzDatapointer( );
dp.setPointer( parent.replParent.subviews[ 0 ].datapath.p );
dp.setNodeText( dp.getNodeText() + "+" );
dp.setPointer( parent.replParent.subviews[ 1 ].datapath.p );
dp.setNodeAttribute( 'foo' ,
Number( dp.getNodeAttribute( 'foo' ) * 2 ));
- </method>
+ </handler>
</button>
<view name="replParent" datapath="dsO:/root">
@@ -122,3 +122,4 @@
</view>
</view>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/lfc/handcursor.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/handcursor.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/handcursor.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -3,25 +3,25 @@
<view width="100" height="100" bgcolor="green">
<text width="100" align="center" valign="middle"
multiline="true">show hand cursor onclick</text>
- <method event="onclick">
+ <handler name="onclick">
LzCursor.showHandCursor(true);
- </method>
+ </handler>
</view>
<view width="100" height="100" bgcolor="red">
<text width="100" align="center" valign="middle">hide hand cursor onclick</text>
- <method event="onclick">
+ <handler name="onclick">
LzCursor.showHandCursor(false);
- </method>
+ </handler>
</view>
<view width="100" height="100" bgcolor="yellow">
<text width="100" align="center" valign="middle"
multiline="true">test mouseover bgcolor change</text>
- <method event="onmouseover">
+ <handler name="onmouseover">
setBGColor(blue);
- </method>
- <method event="onmouseout">
+ </handler>
+ <handler name="onmouseout">
setBGColor(yellow);
- </method>
+ </handler>
</view>
<view width="100" height="100" bgcolor="yellow"
@@ -31,3 +31,4 @@
</view>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/lfc/inittest.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/inittest.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/inittest.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,6 +1,6 @@
<view bgcolor="white" >
<simplelayout/>
- <method event="oninit" reference="canvas">
+ <handler name="oninit" reference="canvas">
var d = new LzDelegate( timef , "tellTime" );
LzIdle.callOnIdle( d );
this.bringToFront();
@@ -12,7 +12,7 @@
//_root.mvncnt++;
//and uncomment this line
//numnodes.setText( "nodes: " +_root.mvncnt );
- </method>
+ </handler>
<text name="timef" width="100">
<method name="tellTime" args="t">
this.setText( "Time taken: " + t );
@@ -21,6 +21,6 @@
<text name="numnodes" width="100"/>
</view>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/lfc/inputtext.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/inputtext.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/inputtext.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,6 +1,6 @@
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
@@ -8,79 +8,79 @@
<inputtext name="foo" bgcolor="yellow">
foo Some input text
- <method event="onblur">
+ <handler name="onblur">
bar.setText(this.getText());
Debug.write('blur on foo');
- </method>
- <method event="onfocus">
+ </handler>
+ <handler name="onfocus">
Debug.write('focus on foo')
- </method>
- <method event="onkeyup" args="k">
+ </handler>
+ <handler name="onkeyup" args="k">
Debug.write('keyup', k)
- </method>
- <method event="onkeydown" args="k">
+ </handler>
+ <handler name="onkeydown" args="k">
Debug.write('keydown', k)
- </method>
- <method event="onselect">
+ </handler>
+ <handler name="onselect">
Debug.write('select')
- </method>
+ </handler>
</inputtext>
<inputtext name="foo2" width="100" bgcolor="yellow">
foo2 Some input text
- <method event="onblur">
+ <handler name="onblur">
bar.setText(this.getText());
Debug.write('blur on foo2');
- </method>
- <method event="onfocus">
+ </handler>
+ <handler name="onfocus">
Debug.write('focus on foo2')
- </method>
- <method event="onkeyup" args="k">
+ </handler>
+ <handler name="onkeyup" args="k">
Debug.write('keyup', k)
- </method>
- <method event="onkeydown" args="k">
+ </handler>
+ <handler name="onkeydown" args="k">
Debug.write('keydown', k)
- </method>
- <method event="onselect">
+ </handler>
+ <handler name="onselect">
Debug.write('select')
- </method>
+ </handler>
</inputtext>
<inputtext name="fubar" width="200" height="200" multiline="true" bgcolor="green">
fubar Some input text
- <method event="onblur">
+ <handler name="onblur">
bar.setText(this.getText());
Debug.write('blur');
- </method>
- <method event="onfocus">
+ </handler>
+ <handler name="onfocus">
Debug.write('focus')
- </method>
- <method event="onkeyup" args="k">
+ </handler>
+ <handler name="onkeyup" args="k">
Debug.write('keyup', k)
- </method>
- <method event="onkeydown" args="k">
+ </handler>
+ <handler name="onkeydown" args="k">
Debug.write('keydown', k)
- </method>
- <method event="onselect">
+ </handler>
+ <handler name="onselect">
Debug.write('select')
- </method>
+ </handler>
</inputtext>
<view width="50" height="50" bgcolor="red">
- <method event="onmousedown">
+ <handler name="onmousedown">
this.setAttribute('bgcolor', 0xffff00);
- </method>
- <method event="onmouseup">
+ </handler>
+ <handler name="onmouseup">
this.setAttribute('bgcolor', 0xff9900);
- </method>
- <method event="onmouseover">
+ </handler>
+ <handler name="onmouseover">
this.setAttribute('bgcolor', 0xff9900);
- </method>
- <method event="onmouseout">
+ </handler>
+ <handler name="onmouseout">
this.setAttribute('bgcolor', 0xff0000);
- </method>
- <method event="onclick">
+ </handler>
+ <handler name="onclick">
Debug.write('text is ' + canvas.foo.getText());
- </method>
+ </handler>
</view>
<!-- See [LPP-434]
@@ -89,8 +89,8 @@
(This does not seem to be a problem anymore [bshine 10.13.06])
-->
<inputtext text="lpp-434" width="100">
- <method event="onmouseup">
- </method>
+ <handler name="onmouseup">
+ </handler>
</inputtext>
<simplelayout axis="x"/>
Modified: openlaszlo/branches/devildog/test/lfc/layer.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/layer.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/layer.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -9,14 +9,14 @@
fontsize="20" >
<text name="a" bgcolor="white" visible="${canvas.a == parent}">A</text>
<text name="b" bgcolor="white" visible="${canvas.b == parent}">B</text>
- <method event="onclick">
+ <handler name="onclick">
if ( !canvas.A || canvas.B ){
canvas.setAttribute( "a" , this );
canvas.setAttribute( "b" , null );
} else {
canvas.setAttribute( "b" , this );
}
- </method>
+ </handler>
<view align="right" width="20" height="20" bgcolor="black"
onclick="parent.animate( 'y' , 100 , 1000 );"/>
@@ -31,34 +31,34 @@
<logo name="lg" bgcolor="white"/>
<view y="200" options="ignorelayout">
<button >Toggle
- <method event="onclick">
+ <handler name="onclick">
if (tlayout.spacing > -la.width ){
tlayout.animate( "spacing" , -la.width , 1000 );
} else {
tlayout.animate( "spacing" , -120 , 1000 );
blayout.update();
}
- </method>
+ </handler>
</button>
<button>A infrontof B
- <method event="onclick">
+ <handler name="onclick">
canvas.a.sendInFrontOf( canvas.b );
- </method>
+ </handler>
</button>
<button>A behind B
- <method event="onclick">
+ <handler name="onclick">
canvas.a.sendBehind( canvas.b );
- </method>
+ </handler>
</button>
<button>A to front
- <method event="onclick">
+ <handler name="onclick">
canvas.a.bringToFront();
- </method>
+ </handler>
</button>
<button>A to back
- <method event="onclick">
+ <handler name="onclick">
canvas.a.sendToBack();
- </method>
+ </handler>
</button>
<simplelayout/>
</view>
@@ -73,6 +73,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/lfc/legals/animatorgroup.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/animatorgroup.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/animatorgroup.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,16 +1,16 @@
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
<canvas width="100%" height="80%">
<view width="20" height="20" bgcolor="red" clip="true">
- <method event="oninit">
+ <handler name="oninit">
//this.animate('width', 100, 5000);
//this.animate('height', 100, 5000);
this.grow.doStart();
- </method>
+ </handler>
<animatorgroup name="grow">
<animator attribute="width" to="100" duration="5000"/>
<animator attribute="height" to="100" duration="5000"/>
Modified: openlaszlo/branches/devildog/test/lfc/legals/class-oninit.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/class-oninit.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/class-oninit.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,6 +1,6 @@
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
@@ -10,9 +10,9 @@
<!-- oninit class method not being called when instance is created -->
<class name="blah">
- <method event="oninit" >
+ <handler name="oninit" >
debug('goobar oninit');
- </method>
+ </handler>
</class>
<blah name="goobar" width="10" height="10" bgcolor="red" x="500"/>
Modified: openlaszlo/branches/devildog/test/lfc/legals/classevent.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/classevent.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/classevent.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,16 +1,16 @@
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
<canvas width="100%" height="80%">
<class name="settest" x="200" width="50" height="50" bgcolor="red">
- <method event="oninit">
+ <handler name="oninit">
Debug.write('init');
this.setAttribute('x', 100);
this.bar();
- </method>
+ </handler>
<method name="bar">
this.setX(300);
Debug.write('x', this.x);
@@ -20,8 +20,8 @@
<settest oninit="Debug.write('instance init');"/>
<view>
- <method event="oninit">
+ <handler name="oninit">
assertEquals('init,x 300,instance init', getLog(), 'Equality test')
- </method>
+ </handler>
</view>
</canvas>
Modified: openlaszlo/branches/devildog/test/lfc/legals/cliptest.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/cliptest.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/cliptest.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,16 +1,16 @@
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
<canvas>
<view width="20" height="20" bgcolor="red" clip="true">
- <method event="oninit">
+ <handler name="oninit">
this.animate('width', 100, 1000);
this.animate('height', 100, 1000);
- </method>
+ </handler>
<view resource="resc/logo.png" x="-20" y="-20"/>
</view>
</canvas>
Modified: openlaszlo/branches/devildog/test/lfc/legals/constraint.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/constraint.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/constraint.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,20 +1,20 @@
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
<canvas height="80%">
<view name="foo" resource="resc/logo.png">
- <method event="onx" args="x">
+ <handler name="onx" args="x">
//Debug.write('onx', x);
this.txt.setText(x);
- </method>
+ </handler>
- <method event="onclick">
+ <handler name="onclick">
this.animate('x', 800, 1000);
- </method>
+ </handler>
<text name="txt" y="150" width="200"/>
</view>
Modified: openlaszlo/branches/devildog/test/lfc/legals/dataman.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/dataman.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/dataman.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -6,11 +6,11 @@
value="$once{new LzDelegate( this.txt, 'sendsearch') }"/>
<inputtext name="txt">
- <method event="onkeyup" args="k" >
+ <handler name="onkeyup" args="k" >
if ( k == 13 ) { //return key
this.sendsearch();
}
- </method>
+ </handler>
<method name="sendsearch" >
var argobj = [
@@ -103,16 +103,16 @@
<!-- just for testing... -->
<dataset name="testds" type="http"/>
- <method event="oninit">
+ <handler name="oninit">
var argobj = [ {argname:"method", argvalue:"flickr.photos.search"}, {argname:"tags", argvalue:"max"} ];
gDataMan.doFlickrRequest(photods, argobj);
- </method>
+ </handler>
<view name="foo">
<view name="bar">
- <method event="ondata" reference="canvas.photods">
+ <handler name="ondata" reference="canvas.photods">
Debug.write('ondata', this);
- </method>
+ </handler>
</view>
</view>
@@ -120,6 +120,6 @@
<search/>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/lfc/legals/datapath.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/datapath.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/datapath.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,6 +1,6 @@
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
@@ -18,7 +18,7 @@
</dataset>
<view name="myp" datapath="dsTest:/root/anode">
- <method event="ondata" args="d">
+ <handler name="ondata" args="d">
var ex = dsTest.getFirstChild().getFirstChild();
Debug.write( 'expecting', ex );
Debug.write( 'got', d );
@@ -28,10 +28,10 @@
if ( ex != this.data ){
Debug.write( "didn't set this.data" );
}
- </method>
+ </handler>
</view>
<view name="myp2" datapath="dsTest:/root/bnode/@y">
- <method event="ondata" args="d">
+ <handler name="ondata" args="d">
Debug.write( 'expecting 2' );
Debug.write( 'got', d );
if ( d != 2 ){
@@ -40,10 +40,10 @@
if ( 2 != this.data ){
Debug.write( "didn't set this.data" );
}
- </method>
+ </handler>
</view>
<view name="myp3" datapath="dsTest:/root/cnode">
- <method event="ondata" args="d">
+ <handler name="ondata" args="d">
var ex = dsTest.getFirstChild().childNodes[ 2 ];
Debug.write( 'expecting', ex );
Debug.write( 'got', d );
@@ -60,18 +60,18 @@
if ( !( ex.getFirstChild() instanceof LzDataText ) ){
Debug.write( 'FAIL!' );
}
- </method>
+ </handler>
</view>
<simplelayout/>
<view datapath="dsTest:/root/repl/element[1-19]/text()">
- <method event="ondata" args="d">
+ <handler name="ondata" args="d">
Debug.write('got', d, 'expecting', 'text');
- </method>
+ </handler>
</view>
<view datapath="dsTest:/root/repl/element[1-19]/@a">
- <method event="ondata" args="d">
+ <handler name="ondata" args="d">
Debug.write('got', d, 'expecting', '1');
- </method>
+ </handler>
</view>
</canvas>
Modified: openlaszlo/branches/devildog/test/lfc/legals/datapointer.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/datapointer.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/datapointer.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,6 +1,6 @@
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
@@ -13,23 +13,23 @@
</dataset>
<datapointer name="myp" xpath="dsTest:/root/anode">
- <method event="ondata" args="d">
+ <handler name="ondata" args="d">
var ex = dsTest.getFirstChild().getFirstChild();
Debug.write( 'expecting', ex );
Debug.write( 'got', d );
if ( d != ex ){
Debug.write( 'FAIL!' );
}
- </method>
+ </handler>
</datapointer>
<datapointer name="myp2" xpath="dsTest:/root/bnode/@y">
- <method event="ondata" args="d">
+ <handler name="ondata" args="d">
Debug.write( 'expecting 2' );
Debug.write( 'got', d );
if ( d != 2 ){
Debug.write( 'FAIL!' );
}
- </method>
+ </handler>
</datapointer>
</canvas>
Modified: openlaszlo/branches/devildog/test/lfc/legals/flicktest.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/flicktest.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/flicktest.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,6 +1,6 @@
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
@@ -80,14 +80,14 @@
/>
<class name="imgfader" opacity="0">
- <method event="onload" args="i">
+ <handler name="onload" args="i">
// info('load', i);
this.animate('opacity', 1, 1000);
- </method>
- <method event="onmouseover">
+ </handler>
+ <handler name="onmouseover">
Debug.write( 'onmouseover', this, this.resource);
big.load(this.resource);
- </method>
+ </handler>
</class>
<method name="doSearch" args="key">
@@ -99,20 +99,21 @@
<inputtext id="inp" width="300" name="inp">
yellow
- <method event="onkeyup" args="k">
+ <handler name="onkeyup" args="k">
if (k == 13) submitbutton.doSearch();
- </method>
+ </handler>
</inputtext>
<text id="submitbutton" x="300" height="30" width="100" bgcolor="#cccccc">
Submit
- <method event="onmousedown">
+ <handler name="onmousedown">
this.setBGColor(0xffcccc);
- </method>
- <method event="onmouseup">
+ </handler>
+ <handler name="onmouseup">
this.setBGColor(0xcccccc);
- </method>
- <method event="onclick" name="doSearch">
+ </handler>
+ <handler name="onclick" method="doSearch" />
+ <method name="doSearch">
this.setBGColor(0xffcccc);
canvas.doSearch(inp.getText());
</method>
@@ -126,10 +127,10 @@
this.setSource(s);
this.setAttribute('opacity', 0);
</method>
- <method event="onload">
+ <handler name="onload">
//info('onload');
this.animate('opacity', 1, 500);
- </method>
+ </handler>
</view>
</canvas>
Modified: openlaszlo/branches/devildog/test/lfc/legals/foo.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/foo.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/foo.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,6 +1,6 @@
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
@@ -30,21 +30,21 @@
<view y="300" >
<inputtext name="foo" width="170" onblur="this.parent.bar.setText('blur: ' + this.getText());" onfocus="this.parent.bar.setText('focus')" onkeyup="this.parent.bar.setText('keyup')" onkeydown="this.parent.bar.setText('keydown')" onselect="this.parent.bar.setText('select')">Some input text</inputtext>
<view width="50" height="50" bgcolor="red">
- <method event="onmousedown">
+ <handler name="onmousedown">
this.setAttribute('bgcolor', 0xffff00);
- </method>
- <method event="onmouseup">
+ </handler>
+ <handler name="onmouseup">
this.setAttribute('bgcolor', 0xff9900);
- </method>
- <method event="onmouseover">
+ </handler>
+ <handler name="onmouseover">
this.setAttribute('bgcolor', 0xff9900);
- </method>
- <method event="onmouseout">
+ </handler>
+ <handler name="onmouseout">
this.setAttribute('bgcolor', 0xff0000);
- </method>
- <method event="onclick">
+ </handler>
+ <handler name="onclick">
this.parent.bar.setText('Text is: ' + this.parent.foo.getText());
- </method>
+ </handler>
</view>
<simplelayout axis="x"/>
<text name="bar" y="40" width="200"/>
@@ -53,18 +53,18 @@
<view y="400" width="20" height="20" bgcolor="red" clip="true">
- <method event="oninit">
+ <handler name="oninit">
this.animate('width', 100, 5000);
this.animate('height', 100, 5000);
- </method>
+ </handler>
<view resource="resc/logo.png" x="-20" y="-20"/>
</view>
<view resource="resc/logo.png" y="500" stretches="both">
- <method event="oninit">
+ <handler name="oninit">
this.animate('width', 200, 5000);
this.animate('height', 200, 5000);
- </method>
+ </handler>
</view>
<text y="200" name="datatext" width="500"/>
Modified: openlaszlo/branches/devildog/test/lfc/legals/fvlogger/logger.js
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/fvlogger/logger.js 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/fvlogger/logger.js 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,9 +1,9 @@
-// copyright 2006 Laszlo Systems, Inc. All rights reserved.
+// copyright 2006, 2008 Laszlo Systems, Inc. All rights reserved.
/*
- fvlogger v1.0
- (c) 2005 davidfmiller
- http://www.fivevoltlogic.com/code/fvlogger/
- see readme.txt for documentation
+ fvlogger v1.0
+ (c) 2005 davidfmiller
+ http://www.fivevoltlogic.com/code/fvlogger/
+ see readme.txt for documentation
*/
// version number
@@ -38,8 +38,8 @@
// retrieves the element whose id is equal to FVL_LOG_ID
function getLogger(id) {
- if (arguments.length == 0) { id = FVL_LOG_ID; }
- return document.getElementById(id);
+ if (arguments.length == 0) { id = FVL_LOG_ID; }
+ return document.getElementById(id);
}
function showDebug() { FVL_showMessages(FVL_DEBUG); }
@@ -51,27 +51,27 @@
// removes all logging information from the logging element
function eraseLog(ask) {
- var debug = getLogger();
- if (! debug) { return false; }
+ var debug = getLogger();
+ if (! debug) { return false; }
- if (ask && ! confirm("Are you sure you wish to erase the log?")) {
- return false;
- }
+ if (ask && ! confirm("Are you sure you wish to erase the log?")) {
+ return false;
+ }
- var ps = debug.getElementsByTagName(FVL_LOG_ELEMENT);
- var length = ps.length;
- for (var i = 0; i < length; i++) { debug.removeChild(ps[length - i - 1]); }
- return true;
+ var ps = debug.getElementsByTagName(FVL_LOG_ELEMENT);
+ var length = ps.length;
+ for (var i = 0; i < length; i++) { debug.removeChild(ps[length - i - 1]); }
+ return true;
}
function getLog() {
- var debug = getLogger();
- if (! debug) { return false; }
+ var debug = getLogger();
+ if (! debug) { return false; }
var out = ''
var ps = debug.getElementsByTagName(FVL_LOG_ELEMENT);
- var length = ps.length;
- for (var i = length - 1; i >= 0; i--) {
+ var length = ps.length;
+ for (var i = length - 1; i >= 0; i--) {
out += ps[length - i - 1].innerHTML;
if (i != 0) out += ',';
}
@@ -85,49 +85,49 @@
//function fatal(message) { FVL_log("" + Array.prototype.join.apply(arguments, [' ']), FVL_FATAL);}
function windowError(message, url, line) {
- FVL_log('Error on line ' + line + ' of document ' + url + ': ' + message, FVL_FATAL);
- return true; //
+ FVL_log('Error on line ' + line + ' of document ' + url + ': ' + message, FVL_FATAL);
+ return true; //
}
// only override the window's error handler if we logging is turned on
if (FVL_LOG_ON) {
- window.onerror = windowError;
+ window.onerror = windowError;
}
//
function FVL_showMessages(level, hideOthers) {
-// alert('showing ' + level);
+// alert('showing ' + level);
- var showAll = false;
- // if no level has been specified, use the default
- if (arguments.length == 0) { level = FVL_DEFAULT_LOG_LEVEL; showAll = true; }
- if (arguments.length < 2) { hideOthers = true; }
+ var showAll = false;
+ // if no level has been specified, use the default
+ if (arguments.length == 0) { level = FVL_DEFAULT_LOG_LEVEL; showAll = true; }
+ if (arguments.length < 2) { hideOthers = true; }
- // retrieve the element and current statements
- var debug = getLogger();
- if (! debug) { return false; }
- var ps = debug.getElementsByTagName("p");
- if (ps.length == 0) { return true; }
+ // retrieve the element and current statements
+ var debug = getLogger();
+ if (! debug) { return false; }
+ var ps = debug.getElementsByTagName("p");
+ if (ps.length == 0) { return true; }
- // get the number of nodes in the list
- var l = ps.length;
+ // get the number of nodes in the list
+ var l = ps.length;
- // get the class name for the specified level
- var lookup = FVL_LOG_CLASSES[level];
+ // get the class name for the specified level
+ var lookup = FVL_LOG_CLASSES[level];
- // loop through all logging statements/<p> elements...
- for (var i = l - 1; i >= 0; i--) {
+ // loop through all logging statements/<p> elements...
+ for (var i = l - 1; i >= 0; i--) {
- // hide all elements by default, if specified
- if (hideOthers) { hide(ps[i]); }
+ // hide all elements by default, if specified
+ if (hideOthers) { hide(ps[i]); }
- // get the class name for this <p>
- var c = getNodeClass(ps[i]);
-// alert(c);
-// alert("Node #" + i + "'s class is:" + c);
- if (c && c.indexOf(lookup) > -1 || showAll) { show(ps[i]); }
- }
+ // get the class name for this <p>
+ var c = getNodeClass(ps[i]);
+// alert(c);
+// alert("Node #" + i + "'s class is:" + c);
+ if (c && c.indexOf(lookup) > -1 || showAll) { show(ps[i]); }
+ }
}
@@ -151,65 +151,65 @@
return;
}
- // check to make sure logging is turned on
- if (! FVL_LOG_ON) { return false; }
+ // check to make sure logging is turned on
+ if (! FVL_LOG_ON) { return false; }
- // retrieve the infrastructure
- if (arguments.length == 1) { level = FVL_INFO;}
- if (level < FVL_DEFAULT_LOG_LEVEL) { return false; }
- var div = getLogger();
- if (! div) { return false; }
+ // retrieve the infrastructure
+ if (arguments.length == 1) { level = FVL_INFO;}
+ if (level < FVL_DEFAULT_LOG_LEVEL) { return false; }
+ var div = getLogger();
+ if (! div) { return false; }
- // append the statement
- var p = document.createElement(FVL_LOG_ELEMENT);
+ // append the statement
+ var p = document.createElement(FVL_LOG_ELEMENT);
- // this is a hack work around a bug in ie
- if (p.getAttributeNode("class")) {
- for (var i = 0; i < p.attributes.length; i++) {
- if (p.attributes[i].name.toUpperCase() == 'CLASS') {
- p.attributes[i].value = FVL_LOG_CLASSES[level];
- }
- }
- } else {
- p.setAttribute("class", FVL_LOG_CLASSES[level]);
- }
- var text = document.createTextNode(message);
- p.appendChild(text);
- div.appendChild(p);
- return true;
+ // this is a hack work around a bug in ie
+ if (p.getAttributeNode("class")) {
+ for (var i = 0; i < p.attributes.length; i++) {
+ if (p.attributes[i].name.toUpperCase() == 'CLASS') {
+ p.attributes[i].value = FVL_LOG_CLASSES[level];
+ }
+ }
+ } else {
+ p.setAttribute("class", FVL_LOG_CLASSES[level]);
+ }
+ var text = document.createTextNode(message);
+ p.appendChild(text);
+ div.appendChild(p);
+ return true;
}
function exampleLogs() {
- // describe the four types of logging messages
- debug('Scatter debug messages throughout your code to provide a high-level overview of what your code is doing, such as which function is currently in scope and the values of loop counters.');
- info('Information messages are the meat and potatoes of logging messages; sprinkle them around to reveal more detailed information about your script\'s execution, such as the values of variables and function/method return values.');
- warn('Warning messages are used to indicate potentially hazardous situations, such as missing function arguments...');
- error('While error messages are used to indicate that something bad is about to happen; note that these kinds of errors are considered to be run-time errors, which are a different type of beast from the parse errors mentioned below.');
+ // describe the four types of logging messages
+ debug('Scatter debug messages throughout your code to provide a high-level overview of what your code is doing, such as which function is currently in scope and the values of loop counters.');
+ info('Information messages are the meat and potatoes of logging messages; sprinkle them around to reveal more detailed information about your script\'s execution, such as the values of variables and function/method return values.');
+ warn('Warning messages are used to indicate potentially hazardous situations, such as missing function arguments...');
+ error('While error messages are used to indicate that something bad is about to happen; note that these kinds of errors are considered to be run-time errors, which are a different type of beast from the parse errors mentioned below.');
// generate an error to demonstrate the fatal error in ie and mozilla browsers
- a
+ a
}
// show a node
function show(target) {
- target.style.display = "";
- return true;
+ target.style.display = "";
+ return true;
}
// hide a node
function hide(target) {
- target.style.display = "none";
- return true;
+ target.style.display = "none";
+ return true;
}
// returns the class attribute of a node
function getNodeClass(obj) {
- var result = false;
+ var result = false;
- if (obj.getAttributeNode("class")) {
- result = obj.attributes.getNamedItem("class").value;
- }
- return result;
+ if (obj.getAttributeNode("class")) {
+ result = obj.attributes.getNamedItem("class").value;
+ }
+ return result;
}
// Debug object so debugging works somewhat similarly in DHTML and SWF
Modified: openlaszlo/branches/devildog/test/lfc/legals/getattrrelative.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/getattrrelative.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/getattrrelative.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,19 +1,19 @@
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
<canvas width="100%" height="300">
<view x="20">
<view bgcolor="blue" x="20" y="50" width="40" height="40">
- <method event="onclick">
+ <handler name="onclick">
Debug.write( yel.sprite.getPos() );
Debug.write( 'blu' , this.x +parent.x, this.y+parent.y );
yel.setX(this.getAttributeRelative('x', yel));
yel.setY(this.getAttributeRelative('y', yel));
Debug.write( 'moved to' , yel.x , yel.y );
- </method>
+ </handler>
</view>
</view>
@@ -33,10 +33,10 @@
<view x="20" y="50">
<view x="20" y="50">
<view x="10" y="10">
- <method event="oninit">
+ <handler name="oninit">
this.setX( gOther.getAttributeRelative( 'x', this ) );
this.setY( gOther.getAttributeRelative( 'y', this ) );
- </method>
+ </handler>
<view bgcolor="yellow" width="20" height="20"/>
</view>
</view>
Modified: openlaszlo/branches/devildog/test/lfc/legals/gettextwidth.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/gettextwidth.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/gettextwidth.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,13 +1,13 @@
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
<canvas height="200">
<text name="foo" visible="false">Add a variable named qs to the browser url and its value should appear below</text>
<text name="bar" width="1000"/>
- <method event="oninit"><![CDATA[
+ <handler name="oninit"><![CDATA[
var i = 0;
var L = 1000;
var t = (new Date()).getTime();
@@ -18,5 +18,5 @@
this.bar.setText('Took '+ t + ' ms to get width of ' + w +' ' + L +' times.');
Debug.write('Took', t, 'ms to get width of',w,L,'times.');
]]>
- </method>
+ </handler>
</canvas>
Modified: openlaszlo/branches/devildog/test/lfc/legals/idle.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/idle.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/idle.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,14 +1,14 @@
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
<canvas>
<text>
- <method event="onidle" reference="LzIdle">
+ <handler name="onidle" reference="LzIdle">
this.setText(new Date());
- </method>
+ </handler>
</text>
</canvas>
Modified: openlaszlo/branches/devildog/test/lfc/legals/initarg.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/initarg.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/initarg.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,14 +1,14 @@
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
<canvas>
<text width="400" multiline="true" height="40">Add a variable named qs to the browser url and its value should appear below</text>
<text name="foo"/>
- <method event="oninit">
+ <handler name="oninit">
foo.setText( LzBrowser.getInitArg( "qs" ) );
- </method>
+ </handler>
<simplelayout/>
</canvas>
Modified: openlaszlo/branches/devildog/test/lfc/legals/inputtext.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/inputtext.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/inputtext.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,6 +1,6 @@
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
@@ -8,79 +8,79 @@
<inputtext name="foo" bgcolor="yellow">
Some input text
- <method event="onblur">
+ <handler name="onblur">
bar.setText(this.getText());
Debug.write('blur');
- </method>
- <method event="onfocus">
+ </handler>
+ <handler name="onfocus">
Debug.write('focus')
- </method>
- <method event="onkeyup" args="k">
+ </handler>
+ <handler name="onkeyup" args="k">
Debug.write('keyup', k)
- </method>
- <method event="onkeydown" args="k">
+ </handler>
+ <handler name="onkeydown" args="k">
Debug.write('keydown', k)
- </method>
- <method event="onselect">
+ </handler>
+ <handler name="onselect">
Debug.write('select')
- </method>
+ </handler>
</inputtext>
<inputtext name="foo2" width="100" bgcolor="yellow">
Some input text
- <method event="onblur">
+ <handler name="onblur">
bar.setText(this.getText());
Debug.write('blur');
- </method>
- <method event="onfocus">
+ </handler>
+ <handler name="onfocus">
Debug.write('focus')
- </method>
- <method event="onkeyup" args="k">
+ </handler>
+ <handler name="onkeyup" args="k">
Debug.write('keyup', k)
- </method>
- <method event="onkeydown" args="k">
+ </handler>
+ <handler name="onkeydown" args="k">
Debug.write('keydown', k)
- </method>
- <method event="onselect">
+ </handler>
+ <handler name="onselect">
Debug.write('select')
- </method>
+ </handler>
</inputtext>
<inputtext name="fubar" width="200" height="200" multiline="true" bgcolor="green">
Some input text
- <method event="onblur">
+ <handler name="onblur">
bar.setText(this.getText());
Debug.write('blur');
- </method>
- <method event="onfocus">
+ </handler>
+ <handler name="onfocus">
Debug.write('focus')
- </method>
- <method event="onkeyup" args="k">
+ </handler>
+ <handler name="onkeyup" args="k">
Debug.write('keyup', k)
- </method>
- <method event="onkeydown" args="k">
+ </handler>
+ <handler name="onkeydown" args="k">
Debug.write('keydown', k)
- </method>
- <method event="onselect">
+ </handler>
+ <handler name="onselect">
Debug.write('select')
- </method>
+ </handler>
</inputtext>
<view width="50" height="50" bgcolor="red">
- <method event="onmousedown">
+ <handler name="onmousedown">
this.setAttribute('bgcolor', 0xffff00);
- </method>
- <method event="onmouseup">
+ </handler>
+ <handler name="onmouseup">
this.setAttribute('bgcolor', 0xff9900);
- </method>
- <method event="onmouseover">
+ </handler>
+ <handler name="onmouseover">
this.setAttribute('bgcolor', 0xff9900);
- </method>
- <method event="onmouseout">
+ </handler>
+ <handler name="onmouseout">
this.setAttribute('bgcolor', 0xff0000);
- </method>
- <method event="onclick">
+ </handler>
+ <handler name="onclick">
Debug.write('text is ' + canvas.foo.getText());
- </method>
+ </handler>
</view>
<simplelayout axis="x"/>
Modified: openlaszlo/branches/devildog/test/lfc/legals/mousecoordinates.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/mousecoordinates.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/mousecoordinates.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,16 +1,16 @@
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
<canvas width="100%" height="80%">
<text>The green box should move to where you click the blue box.</text>
<view width="3000" height="3000" x="100" y="100" bgcolor="0xccccff">
- <method event="onmousedown">
+ <handler name="onmousedown">
this.res.setX(this.getMouse('x'));
this.res.setY(this.getMouse('y'));
- </method>
+ </handler>
<view name="res" bgcolor="green" width="20" height="20"/>
</view>
</canvas>
Modified: openlaszlo/branches/devildog/test/lfc/legals/perfs/create_resource_swf.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/perfs/create_resource_swf.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/perfs/create_resource_swf.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,4 +1,4 @@
-<!-- copyright 2006 Laszlo Systems, Inc. All rights reserved. -->
+<!-- copyright 2006, 2008 Laszlo Systems, Inc. All rights reserved. -->
<canvas width="100%" height="80%" >
<!--
@@ -21,7 +21,7 @@
</method>
</class>
- <method event="oninit"><![CDATA[
+ <handler name="oninit"><![CDATA[
var NUMSPRITES = 1000;
var ts=(new Date()).getTime();
@@ -33,6 +33,6 @@
var ttaken = (new Date()).getTime() - ts;
Debug.write("creation of " + NUMSPRITES + " views took " + ttaken + " ms..")
Debug.write("which is " + ttaken/NUMSPRITES + " ms. per view.");
- ]]></method>
+ ]]></handler>
</canvas>
Modified: openlaszlo/branches/devildog/test/lfc/legals/perfs/create_swf.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/perfs/create_swf.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/perfs/create_swf.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,4 +1,4 @@
-<!-- copyright 2006 Laszlo Systems, Inc. All rights reserved. -->
+<!-- copyright 2006, 2008 Laszlo Systems, Inc. All rights reserved. -->
<canvas width="100%" height="80%" >
<!--
@@ -6,7 +6,7 @@
-->
<class name="SpriteC" />
- <method event="oninit"><![CDATA[
+ <handler name="oninit"><![CDATA[
var NUMSPRITES = 1000;
var ts=(new Date()).getTime();
@@ -18,6 +18,6 @@
var ttaken = (new Date()).getTime() - ts;
Debug.write("creation of " + NUMSPRITES + " views took " + ttaken + " ms..")
Debug.write("which is " + ttaken/NUMSPRITES + " ms. per view.");
- ]]></method>
+ ]]></handler>
</canvas>
Modified: openlaszlo/branches/devildog/test/lfc/legals/replication.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/replication.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/replication.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,6 +1,6 @@
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
@@ -17,27 +17,27 @@
</dataset>
<class name="repme" bgcolor="yellow">
- <method event="ondata" args="d">
+ <handler name="ondata" args="d">
t.setText( d.nodeName );
- </method>
+ </handler>
<text name="t" height="20" width="100"/>
</class>
<view datapath="dsTest:/root" x="20">
<simplelayout/>
<text datapath="*" height="20">
- <method event="ondata">
+ <handler name="ondata">
this.setText( data.nodeName );
- </method>
+ </handler>
</text>
</view>
<view x="200">
<simplelayout/>
<view width="100" height="20" bgcolor="green">
- <method event="onclick">
+ <handler name="onclick">
parent.r.setDatapath( "dsTest:/root/*" );
- </method>
+ </handler>
</view>
<repme name="r" height="20" />
</view>
@@ -45,9 +45,9 @@
<view x="400">
<simplelayout/>
<view width="100" height="20" bgcolor="green">
- <method event="onclick">
+ <handler name="onclick">
parent.r.setDatapath( "dsTestlocal:/rsp/photos/*" );
- </method>
+ </handler>
</view>
<repme name="r" height="20" datapath="dsTestlocal:/rsp/photos/*"/>
</view>
@@ -55,10 +55,10 @@
<view x="600">
<simplelayout/>
<view width="100" height="20" bgcolor="green">
- <method event="onclick">
+ <handler name="onclick">
parent.r.setDatapath( "dsTestload:/photos/*" );
info('parent.r.datapath', parent.r.datapath.p);
- </method>
+ </handler>
</view>
<repme name="r" height="20" datapath="dsTestload:/rsp/photos/*"/>
</view>
Modified: openlaszlo/branches/devildog/test/lfc/legals/scope.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/scope.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/scope.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,6 +1,6 @@
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
@@ -11,8 +11,8 @@
<method name="meth" args="arg">
assertEquals(arg, 'foo', "should be the same")
</method>
- <method event="oninit">
+ <handler name="oninit">
this.meth('foo');
- </method>
+ </handler>
</view>
</canvas>
Modified: openlaszlo/branches/devildog/test/lfc/legals/simpleclass.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/simpleclass.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/simpleclass.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,6 +1,6 @@
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
@@ -20,9 +20,9 @@
<myclass oninit="this.blah('3');"/>
<myclass>
- <method event="oninit">
+ <handler name="oninit">
this.blah('4');
- </method>
+ </handler>
</myclass>
<class name="mysubclass" extends="myclass" oninit="Debug.write('sub');"/>
@@ -34,9 +34,9 @@
<mysubclass oninit="this.blah('6')"/>
<mysubclass>
- <method event="oninit">
+ <handler name="oninit">
this.blah('7');
- </method>
+ </handler>
</mysubclass>
<!-- behavior gets strange here in existing runtime also... >
@@ -47,9 +47,9 @@
<mysubsubclass oninit="Debug.write('8')"/-->
<view>
- <method event="oninit">
+ <handler name="oninit">
assertEquals('1,2,1,3,1,4,1,1,sub,5,1,sub,6,1,sub,7,1,sub', getLog(), 'Equality test')
- </method>
+ </handler>
</view>
<text>
Modified: openlaszlo/branches/devildog/test/lfc/legals/state.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/state.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/state.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,18 +1,18 @@
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
<canvas width="100%" height="80%">
<view width="100" height="100" bgcolor="red">
- <method event="onmousedown">
+ <handler name="onmousedown">
this.wid.apply();
this.foo();
- </method>
- <method event="onmouseup">
+ </handler>
+ <handler name="onmouseup">
this.wid.remove();
- </method>
+ </handler>
<state name="wid">
<attribute name="width" value="200"/>
<view width="10" height="10" bgcolor="yellow">
@@ -25,30 +25,30 @@
</state>
</view>
<view width="100" height="100" x="200" bgcolor="blue">
- <method event="onx" args="x">
+ <handler name="onx" args="x">
if (this.xt) this.xt.setText(x + ', ' + this.y);
- </method>
- <method event="onmousedown">
+ </handler>
+ <handler name="onmousedown">
this.dragger.apply();
- </method>
- <method event="onmouseup">
+ </handler>
+ <handler name="onmouseup">
this.dragger.remove();
- </method>
+ </handler>
<dragstate name="dragger"/>
<text name="xt"/>
</view>
<view width="100" height="100" x="300" bgcolor="green">
<view bgcolor="purple" width="50" height="50">
- <method event="onx">
+ <handler name="onx">
if (this.xt) this.xt.setText(this.x + ', ' + this.y);
- </method>
- <method event="onmousedown">
+ </handler>
+ <handler name="onmousedown">
this.dragger.apply();
- </method>
- <method event="onmouseup">
+ </handler>
+ <handler name="onmouseup">
this.dragger.remove();
- </method>
+ </handler>
<dragstate name="dragger"/>
<text name="xt"/>
</view>
@@ -56,15 +56,15 @@
<view width="100" height="100" x="400" bgcolor="0xffcc00">
<view width="50" height="50" bgcolor="green">
<view bgcolor="purple" width="20" height="20">
- <method event="onx">
+ <handler name="onx">
if (this.xt1) this.xt1.setText(this.x + ', ' + this.y);
- </method>
- <method event="onmousedown">
+ </handler>
+ <handler name="onmousedown">
this.dragger1.apply();
- </method>
- <method event="onmouseup">
+ </handler>
+ <handler name="onmouseup">
this.dragger1.remove();
- </method>
+ </handler>
<dragstate name="dragger1"/>
<text name="xt1"/>
</view>
@@ -72,29 +72,29 @@
</view>
<view x="200" y="200" resource="resc/logo.png">
- <method event="onx" args="x">
+ <handler name="onx" args="x">
if (this.xt) this.xt.setText(x + ', ' + this.y);
- </method>
- <method event="onmousedown">
+ </handler>
+ <handler name="onmousedown">
this.dragger.apply();
- </method>
- <method event="onmouseup">
+ </handler>
+ <handler name="onmouseup">
this.dragger.remove();
- </method>
+ </handler>
<dragstate name="dragger"/>
<text name="xt"/>
</view>
<view x="400" y="200">
- <method event="onx" args="x">
+ <handler name="onx" args="x">
if (this.xt) this.xt.setText(x + ', ' + this.y);
- </method>
- <method event="onmousedown">
+ </handler>
+ <handler name="onmousedown">
this.dragger.apply();
- </method>
- <method event="onmouseup">
+ </handler>
+ <handler name="onmouseup">
this.dragger.remove();
- </method>
+ </handler>
<dragstate name="dragger"/>
<view resource="resc/logo.png"/>
<text name="xt"/>
@@ -102,17 +102,17 @@
</view>
<view x="600" y="200">
- <method event="onx" args="x">
+ <handler name="onx" args="x">
if (this.xt) this.xt.setText(x + ', ' + this.y);
- </method>
+ </handler>
<dragstate name="dragger"/>
<view resource="resc/logo.png">
- <method event="onmousedown">
+ <handler name="onmousedown">
this.parent.dragger.apply();
- </method>
- <method event="onmouseup">
+ </handler>
+ <handler name="onmouseup">
this.parent.dragger.remove();
- </method>
+ </handler>
</view>
<text name="xt"/>
</view>
Modified: openlaszlo/branches/devildog/test/lfc/legals/text.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/text.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/text.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,6 +1,6 @@
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
@@ -16,9 +16,9 @@
<text name="txtclik" onclick="Debug.warn(this);">Clickable</text>
<text name="txtclikresize" resize="true" onclick="this.setText('Something really, really, really, really, really long.'); Debug.warn(this.getText());">Clickable, resize=true</text>
<text multiline="true">
- <method event="oninit">
+ <handler name="oninit">
this.setText('line 1\nline2');
- </method>
+ </handler>
</text>
<text multiline="true" width="40">Some long text that should be forced to wrap</text>
<!--text multiline="true" text="line 1\nline2"/-->
Modified: openlaszlo/branches/devildog/test/lfc/legals/textsize.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/textsize.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/textsize.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,6 +1,6 @@
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
@@ -9,47 +9,47 @@
<view>
<simplelayout axis="x"/>
<text>Foo!
- <method event="oninit">
+ <handler name="oninit">
Debug.write(this.text, this.getTextWidth());
- </method>
+ </handler>
</text>
<text fontstyle="bold">Bold Text
- <method event="oninit">
+ <handler name="oninit">
Debug.write(this.text, this.getTextWidth());
- </method>
+ </handler>
</text>
<text fontsize="14">14pt Text
- <method event="oninit">
+ <handler name="oninit">
Debug.write(this.text, this.getTextWidth());
- </method>
+ </handler>
</text>
<text font="Helvetica">Helvetica
- <method event="oninit">
+ <handler name="oninit">
Debug.write(this.text, this.getTextWidth());
- </method>
+ </handler>
</text>
<text>Longer text!
- <method event="oninit">
+ <handler name="oninit">
Debug.write(this.text, this.getTextWidth());
- </method>
+ </handler>
</text>
</view>
<view>
<simplelayout axis="y"/>
<text>This text
- <method event="oninit">
+ <handler name="oninit">
Debug.write(this.text, this.getTextHeight());
- </method>
+ </handler>
</text>
<inputtext>And this inputtext
- <method event="oninit">
+ <handler name="oninit">
Debug.write(this.text, this.getTextHeight());
- </method>
+ </handler>
</inputtext>
<text>Should stack...
- <method event="oninit">
+ <handler name="oninit">
Debug.write(this.text, this.getTextHeight());
- </method>
+ </handler>
</text>
</view>
</canvas>
Modified: openlaszlo/branches/devildog/test/lfc/legals/timer.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/timer.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/timer.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,15 +1,15 @@
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
<canvas>
<text>
- <method event="oninit">
+ <handler name="oninit">
this.updateDel = new LzDelegate(this, "update");
this.update();
- </method>
+ </handler>
<method name="update">
var t = new Date();
info('update', t);
Modified: openlaszlo/branches/devildog/test/lfc/legals/track.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/track.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/track.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,6 +1,6 @@
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
@@ -11,21 +11,21 @@
<attribute name="trackgroup" type="string" value="${parent.trackgroup}"/>
<view name="spot" bgcolor="${parent.mycolor}"
x="2" y="2" width="18" height="18"/>
- <method event="oninit">
+ <handler name="oninit">
//info('colorspot.init', this.trackgroup);
LzTrack.register(this, this.trackgroup);
- </method>
- <method event="onmousetrackover">
+ </handler>
+ <handler name="onmousetrackover">
//info('colorspot.onmousetrackover', this.trackgroup);
setAttribute('bgcolor', 0xdedede); // hilite: gray
- </method>
- <method event="onmousetrackout">
+ </handler>
+ <handler name="onmousetrackout">
//info('colorspot.onmousetrackout', this.trackgroup);
setAttribute('bgcolor', 0x000000); // normal: black
- </method>
- <method event="onmousetrackup">
+ </handler>
+ <handler name="onmousetrackup">
parent.onnewcolor.sendEvent(this.spot.bgcolor);
- </method>
+ </handler>
</class>
<view bgcolor="0x0000ff" width="20" height="20"
@@ -33,9 +33,9 @@
onmouseup="this.colorpicker.setVisible(false); ">
<view name="colorpicker" visible="false" x="10" y="10">
<attribute name="trackgroup" value="mymenu" type="string"/>
- <method event="onnewcolor" args="newcolor">
+ <handler name="onnewcolor" args="newcolor">
parent.setAttribute('bgcolor', newcolor);
- </method>
+ </handler>
<simplelayout axis="x"/>
<colorspot mycolor="0x0000ff"/>
Modified: openlaszlo/branches/devildog/test/lfc/legals/views/prob.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/views/prob.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/views/prob.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,14 +1,14 @@
<!--
* X_LZ_COPYRIGHT_BEGIN ****************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************-->
<canvas>
<view stretches="both" width="10" height="10"
resource="http:pict5.jpg">
- <method event="onload">
+ <handler name="onload">
Debug.write( "expecting: 229 172 " );
Debug.write( this.resourcewidth , this.resourceheight );
- </method>
+ </handler>
</view>
</canvas>
Modified: openlaszlo/branches/devildog/test/lfc/legals/views/screendraw.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/views/screendraw.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/views/screendraw.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,6 +1,6 @@
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
@@ -9,13 +9,13 @@
<text height="20">The red and green views should
appear at the same time.</text>
- <method event="oninit">
+ <handler name="oninit">
<![CDATA[
//wait a bit before we do the test
var a = this.animate( "height", 10 , 500 );
new LzDelegate( this , "doTest", a , "onstop" );
]]>
- </method>
+ </handler>
<method name="doTest">
<![CDATA[
var et = ( new Date() ).getTime() + 2000;
Modified: openlaszlo/branches/devildog/test/lfc/legals/views/testview.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/legals/views/testview.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/legals/views/testview.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,6 +1,6 @@
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
@@ -17,7 +17,7 @@
<simplelayout axis="x" spacing="50"/>
<view name="container" bgcolor="yellow">
- <method event="oninit">
+ <handler name="oninit">
//gUnit.assert( 1 == 1, "1 == 1" );
gUnit.assert( width = 100 , "container width");
gUnit.assert( height = 100 , "container height");
@@ -25,7 +25,7 @@
gUnit.assert( width == 10 , "content visibility affects width");
gUnit.assert( height == 20 , "content visibility affects height");
this.setVisible( false );
- </method>
+ </handler>
<view name="holder" bgcolor="green" width="10" height="20"/>
<view name="inside" bgcolor="red" x="90" y="80"
width="10" height="20"/>
@@ -42,10 +42,10 @@
<view name="clippedstretches" clip="true" width="100" height="40">
<view stretches="both">
- <method event="oninit">
+ <handler name="oninit">
this.setSource( "pict5.jpg" );
- </method>
- <method event="onload">
+ </handler>
+ <handler name="onload">
gUnit.assert( this.resourcewidth > 0 ,
"resource size set before onload" );
gUnit.assert( this.width == this.resourcewidth,
@@ -54,7 +54,7 @@
this.setY( -200 );
this.setWidth( 400);
this.setHeight( 400);
- </method>
+ </handler>
</view>
</view>
@@ -73,12 +73,12 @@
gUnit.assert( width== 40 , "regular content size" );
</method>
<view width="40" height="40">
- <method event="oninit">
+ <handler name="oninit">
this.setSource( "pict5.jpg" );
- </method>
- <method event="onload">
+ </handler>
+ <handler name="onload">
parent.test();
- </method>
+ </handler>
</view>
</view>
@@ -87,12 +87,12 @@
gUnit.assert( width== 40 , "stretched content size" );
</method>
<view stretches="both" width="40" height="40">
- <method event="oninit">
+ <handler name="oninit">
this.setSource( "pict5.jpg" );
- </method>
- <method event="onload">
+ </handler>
+ <handler name="onload">
parent.test();
- </method>
+ </handler>
</view>
</view>
@@ -101,12 +101,12 @@
gUnit.assert( width== 40 , "clipped content size" );
</method>
<view clip="true" width="40" height="40">
- <method event="oninit">
+ <handler name="oninit">
this.setSource( "pict5.jpg" );
- </method>
- <method event="onload">
+ </handler>
+ <handler name="onload">
parent.test();
- </method>
+ </handler>
</view>
</view>
Modified: openlaszlo/branches/devildog/test/lfc/loaderrors.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/loaderrors.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/loaderrors.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -8,25 +8,25 @@
<text>Stop the server and then click this button.</text>
<button>
Indifferent
- <method event="onclick">
+ <handler name="onclick">
//uses private fields to muck this up
target.setResource( 'http://broke' );
- </method>
+ </handler>
</button>
<simplelayout/>
<view name="target">
- <method event="onerror" args="e">
+ <handler name="onerror" args="e">
Debug.write( 'error: ' + e );
- </method>
- <method event="ontimeout" >
+ </handler>
+ <handler name="ontimeout" >
Debug.write( 'timeout! ' );
- </method>
- <method event="onload" >
+ </handler>
+ <handler name="onload" >
Debug.write( 'load: ' + this.resource );
- </method>
+ </handler>
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/lfc/lztrack/trackgroup.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/lztrack/trackgroup.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/lztrack/trackgroup.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -8,11 +8,11 @@
width="80" height="40">
<attribute name="trackgroup" type="string" value="${parent.trackgroup}"/>
<attribute name="mycolor" value="0x000099"/>
- <method event="oninit">
+ <handler name="oninit">
Debug.write("LzTrack.register(" + this, this.trackgroup + ")");
LzTrack.register(this, this.trackgroup);
- </method>
- <method event="onmousedown">
+ </handler>
+ <handler name="onmousedown">
if (canvas.myglobals.unregister) {
Debug.write("LzTrack.unregister(" + this.trackgroup, this + ")");
this.setAttribute('mycolor', 0xaa0000);
@@ -21,29 +21,29 @@
Debug.write("LzTrack.activate(" + this.trackgroup + ")");
LzTrack.activate(this.trackgroup);
}
- </method>
- <method event="onmouseup">
+ </handler>
+ <handler name="onmouseup">
Debug.write("LzTrack.deactivate(" + this.trackgroup + ")");
LzTrack.deactivate(this.trackgroup);
- </method>
- <method event="onmousetrackover">
+ </handler>
+ <handler name="onmousetrackover">
setAttribute('bgcolor', 0x00dd00);
Debug.write("onmousetrackover", this);
- </method>
- <method event="onmousetrackout">
+ </handler>
+ <handler name="onmousetrackout">
setAttribute('bgcolor', this.mycolor);
Debug.write("onmousetrackout", this);
- </method>
- <method event="onmousetrackup">
+ </handler>
+ <handler name="onmousetrackup">
setAttribute('bgcolor', this.mycolor);
Debug.write("onmousetrackup", this);
- </method>
- <method event="onmouseover">
+ </handler>
+ <handler name="onmouseover">
setAttribute('bgcolor', 0x009900);
- </method>
- <method event="onmouseout">
+ </handler>
+ <handler name="onmouseout">
setAttribute('bgcolor', this.mycolor);
- </method>
+ </handler>
</class>
<view>
@@ -102,7 +102,7 @@
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/lfc/lztrack/trackgroups.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/lztrack/trackgroups.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/lztrack/trackgroups.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -7,21 +7,21 @@
width="80" height="40">
<attribute name="trackgroup" type="string" value="${parent.trackgroup}"/>
<attribute name="mycolor" value="0x000099"/>
- <method event="oninit">
+ <handler name="oninit">
Debug.write("LzTrack.register(" + this, this.trackgroup + ")");
LzTrack.register(this, this.trackgroup);
- </method>
- <method event="onmousetrackover">
+ </handler>
+ <handler name="onmousetrackover">
setAttribute('bgcolor', 0x00dd00);
Debug.write("onmousetrackover", this);
- </method>
- <method event="onmousetrackout">
+ </handler>
+ <handler name="onmousetrackout">
setAttribute('bgcolor', this.mycolor);
Debug.write("onmousetrackout", this);
- </method>
- <method event="onmousetrackup">
+ </handler>
+ <handler name="onmousetrackup">
Debug.write("onmousetrackup", this);
- </method>
+ </handler>
</class>
<text width="500" multiline="true">
@@ -38,7 +38,7 @@
<simplelayout spacing="10"/>
<checkbox text="${'group: ' + parent.trackgroup}">
- <method event="onvalue" args="v">
+ <handler name="onvalue" args="v">
if (v) {
Debug.write('activate: '+parent.trackgroup);
LzTrack.activate(parent.trackgroup);
@@ -46,7 +46,7 @@
Debug.write('deactivate: '+parent.trackgroup);
LzTrack.deactivate(parent.trackgroup);
}
- </method>
+ </handler>
</checkbox>
<trackview id="t1"/>
<trackview id="t2"/>
@@ -59,7 +59,7 @@
<simplelayout spacing="10"/>
<checkbox text="${'groups: twoA and twoB'}">
- <method event="onvalue" args="v">
+ <handler name="onvalue" args="v">
if (v) {
Debug.write('activate: twoA and twoB');
LzTrack.activate("twoA");
@@ -69,25 +69,25 @@
LzTrack.deactivate("twoA");
LzTrack.deactivate("twoB");
}
- </method>
+ </handler>
</checkbox>
<view bgcolor="0xddddff" name="container" width="84">
<attribute name="trackgroup" value="twoA" type="string"/>
- <method event="oninit">
+ <handler name="oninit">
Debug.write("LzTrack.register(" + this, this.trackgroup + ")");
LzTrack.register(this, this.trackgroup);
- </method>
- <method event="onmousetrackover">
+ </handler>
+ <handler name="onmousetrackover">
setAttribute('bgcolor', 0xdddd00);
Debug.write("onmousetrackover", this);
- </method>
- <method event="onmousetrackout">
+ </handler>
+ <handler name="onmousetrackout">
setAttribute('bgcolor', 0xddddff);
Debug.write("onmousetrackout", this);
- </method>
- <method event="onmousetrackup">
+ </handler>
+ <handler name="onmousetrackup">
Debug.write("onmousetrackup", this);
- </method>
+ </handler>
@@ -106,7 +106,7 @@
</view>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/lfc/lzunit-node-initsequence.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/lzunit-node-initsequence.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/lzunit-node-initsequence.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -42,19 +42,19 @@
logitem('constructorder', args['name']);
logitem('sequence', 'construct' + args['name']);
</method>
- <method event="onconstruct">
+ <handler name="onconstruct">
logitem('onconstructorder', this.name);
logitem('sequence', 'onconstruct' + this.name);
- </method>
+ </handler>
<method name="init">
super.init();
logitem('initorder', this.name);
logitem('sequence', 'init' + this.name);
</method>
- <method event="oninit">
+ <handler name="oninit">
logitem('oninitorder', this.name);
logitem('sequence', 'oninit' + this.name);
- </method>
+ </handler>
</class>
<class name="ClassInitTestCase" extends="TestCase">
@@ -294,10 +294,10 @@
sequenceorder = sequenceorder + ',' + 'construct';
</method>
- <method event="onconstruct">
+ <handler name="onconstruct">
onconstructorder = onconstructorder + ',' + this.id;
sequenceorder = sequenceorder + ',' + 'onconstruct';
- </method>
+ </handler>
<method name="init">
super.init();
@@ -305,26 +305,26 @@
sequenceorder = sequenceorder + ',' + 'init';
</method>
- <method event="oninit">
+ <handler name="oninit">
oninitorder = oninitorder + ',' + this.id;
sequenceorder = sequenceorder + ',' + 'oninit';
- </method>
+ </handler>
<node name="a">
<method name="construct" args="parent,args">
super.construct(parent,args);
n2.constructorder = n2.constructorder + ',' + this.name;
</method>
- <method event="onconstruct">
+ <handler name="onconstruct">
n2.onconstructorder = n2.onconstructorder + ',' + this.name;
- </method>
+ </handler>
<method name="init">
super.init();
n2.initorder = n2.initorder + ',' + this.name;
</method>
- <method event="oninit">
+ <handler name="oninit">
n2.oninitorder = n2.oninitorder + ',' + this.name;
- </method>
+ </handler>
</node>
<node name="b">
@@ -332,16 +332,16 @@
super.construct(parent,args);
n2.constructorder = n2.constructorder + ',' + this.name;
</method>
- <method event="onconstruct">
+ <handler name="onconstruct">
n2.onconstructorder = n2.onconstructorder + ',' + this.name;
- </method>
+ </handler>
<method name="init">
super.init();
n2.initorder = n2.initorder + ',' + this.name;
</method>
- <method event="oninit">
+ <handler name="oninit">
n2.oninitorder = n2.oninitorder + ',' + this.name;
- </method>
+ </handler>
</node>
</node>
@@ -380,4 +380,5 @@
</TestSuite>
-</canvas>
\ No newline at end of file
+</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/lfc/multiconstraint.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/multiconstraint.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/multiconstraint.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -15,14 +15,14 @@
delgates.execute(b) -->
</node>
<text>
- <method event="onb" reference="tn">
+ <handler name="onb" reference="tn">
setAttribute( 'text' ,tn.a + '-' + tn.b);
- </method>
+ </handler>
</text>
<simplelayout/>
<button onclick="tn.setAttribute( 'a', 'uhoh')"/>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/lfc/resizerepl.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/resizerepl.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/resizerepl.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -116,17 +116,17 @@
<text valign="middle" datapath="@day" width="100"/>
<view bgcolor="red" options="ignorelayout"
align="right" width="30" height="10">
- <method event="onclick">
+ <handler name="onclick">
if ( parent.height != 40 ){
parent.animate ( 'height', 40 , 500 );
} else {
parent.animate ( 'height', 15 , 500 );
}
- </method>
+ </handler>
</view>
- <method event="ondblclick">
+ <handler name="ondblclick">
parent.selman.select( this );
- </method>
+ </handler>
<method name="setSelected" args="s">
if ( s ){
@@ -155,7 +155,7 @@
<inputtext name="day">20</inputtext>
<button>Show it
<datapointer name="mydp" xpath="ds:/root"/>
- <method event="onclick">
+ <handler name="onclick">
<![CDATA[
var mo = parent.mo.getText();
var day = parent.day.getText();
@@ -171,37 +171,37 @@
}
}
]]>
- </method>
+ </handler>
</button>
<simplelayout axis="x"/>
</view>
<view y="250">
<simplelayout/>
<button>scroll-and-select last
- <method event="onclick">
+ <handler name="onclick">
var rm = repman;
var lastnode = rm.nodes[rm.nodes.length-1];
var ny = rm.getPositionByNode(lastnode);
repman.parent.setY(repman.parent.parent.height - ny - 20);
var cl = rm.getCloneForNode(lastnode);
repman.parent.selman.select(cl);
- </method>
+ </handler>
</button>
<button>scroll-and-select first
- <method event="onclick">
+ <handler name="onclick">
var rm = repman;
Debug.write('rm', rm);
var first = rm.nodes[0];
repman.parent.setY(0);
var cl = rm.getCloneForNode(first);
repman.parent.selman.select(cl);
- </method>
+ </handler>
</button>
</view>
<debug y="0" x="200" width="250" height="400"/>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/lfc/testmethoddepend.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/testmethoddepend.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/testmethoddepend.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -27,13 +27,13 @@
</box>
<box y="50" >
- <method event="onidle" reference="LzIdle" >
+ <handler name="onidle" reference="LzIdle" >
this.setAttributeRelative( "x" , trackbox );
- </method>
+ </handler>
</box>
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/lfc/testnode.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/testnode.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/testnode.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -4,9 +4,9 @@
</script>
<node name="simplenode" oninit="Debug.write( 'hi from ' + this )"/>
<class name="exnode" extends="node">
- <method event="onconstruct">
+ <handler name="onconstruct">
global.excount++;
- </method>
+ </handler>
<method name="mymeth">
Debug.write( "total of " + global.excount + " exnodes" );
</method>
@@ -17,6 +17,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/lfc/testscriptinit.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/testscriptinit.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/testscriptinit.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -15,15 +15,15 @@
<text> Debugger hould display names of new views in order -- a, b , c , d, e
</text>
<button text="make em">
- <method event="onclick">
+ <handler name="onclick">
names =[ "a" , "b" , "c" , "d" , "e" ];
for ( var i =0; i < names.length; i++ ){
new slowinit( canvas , { name : names[ i ] } );
}
- </method>
+ </handler>
</button>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/lfc/textselection.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/textselection.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/textselection.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,9 +1,9 @@
<canvas debug="true">
<inputtext name="inp">
- <method event="ontext">
+ <handler name="ontext">
Debug.write( inp.getSelectionPosition() ,
inp.getSelectionSize())
- </method>
+ </handler>
This is a very long string that I've already typed into an input box.
</inputtext>
<simplelayout/>
@@ -22,10 +22,10 @@
<view height="10" width="200" bgcolor="gray"/>
<inputtext name="inr" multiline="true" width="100" resizable="true"
height="100">
- <method event="ontext">
+ <handler name="ontext">
Debug.write( inr.getSelectionPosition() ,
inr.getSelectionSize())
- </method>
+ </handler>
This is also very long string that I've already typed into an input box.
</inputtext>
<button onclick="inr.setSelection( 1 , 10 );
@@ -40,6 +40,6 @@
Debug.write( inr.getSelectionPosition() , inr.getSelectionSize() )"/>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/lfc/visibility.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lfc/visibility.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lfc/visibility.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -18,7 +18,7 @@
<simplelayout spacing="5"/>
<text>Visible</text>
<radiogroup name="rg" defaultselection="null">
- <method event="onvalue">
+ <handler name="onvalue">
var v;
switch (value){
case "true":
@@ -32,31 +32,31 @@
}
parent.parent.elem.oa.setVisible( v);
- </method>
+ </handler>
<radiobutton>true</radiobutton>
<radiobutton>false</radiobutton>
<radiobutton>null</radiobutton>
</radiogroup>
<button> fade in
- <method event="onclick">
+ <handler name="onclick">
parent.parent.elem.oa.animate( "opacity" , 1, 800 );
- </method>
+ </handler>
</button>
</view>
<view valign="middle" name="elem">
<simplelayout/>
<text>click to fade </text>
<view resource="ra" name="oa" bgcolor="yellow">
- <method event="onclick">
+ <handler name="onclick">
if ( this.opacity == 0 ){
this.animate( "opacity" , 1, 800 );
} else {
this.animate( "opacity" , 0, 800 );
}
- </method>
- <method event="onvisible">
+ </handler>
+ <handler name="onvisible">
Debug.write( this, "visible: " + visible );
- </method>
+ </handler>
</view>
</view>
</view>
@@ -70,7 +70,7 @@
<simplelayout spacing="5"/>
<text>Visible</text>
<radiogroup name="rg" defaultselection="null">
- <method event="onvalue">
+ <handler name="onvalue">
var v;
switch (value){
case "true":
@@ -85,14 +85,14 @@
parent.parent.elem.da.setVisible( v);
parent.parent.elem.db.setVisible( v);
- </method>
+ </handler>
<radiobutton>true</radiobutton>
<radiobutton>false</radiobutton>
<radiobutton>null</radiobutton>
</radiogroup>
<checkbox value="true"> have data
- <method event="onvalue">
+ <handler name="onvalue">
var hasnode = dsTest.getFirstChild();
if ( value ){
if ( ! hasnode ) {
@@ -103,7 +103,7 @@
dsTest.removeChild( hasnode );
}
}
- </method>
+ </handler>
</checkbox>
</view>
<view valign="middle" name="elem" id="v1">
@@ -115,9 +115,9 @@
<text> no datacontrolsvisibility </text>
<view resource="rb" name="da" bgcolor="yellow"
align="center" datapath="dsTest:/node">
- <method event="onvisible">
+ <handler name="onvisible">
Debug.write( this, "visible: " + visible );
- </method>
+ </handler>
</view>
</view>
<view>
@@ -128,9 +128,9 @@
<datapath xpath="dsTest:/node">
<attribute name="datacontrolsvisibility" value="false"/>
</datapath>
- <method event="onvisible">
+ <handler name="onvisible">
Debug.write( this, "visible: " + visible );
- </method>
+ </handler>
</view>
</view>
</view>
@@ -145,7 +145,7 @@
<simplelayout spacing="5"/>
<text>Visible</text>
<radiogroup name="rg" defaultselection="null">
- <method event="onvalue">
+ <handler name="onvalue">
var v;
switch (value){
case "true":
@@ -159,30 +159,30 @@
}
parent.parent.elem.ra.setVisible( v);
- </method>
+ </handler>
<radiobutton>true</radiobutton>
<radiobutton>false</radiobutton>
<radiobutton>null</radiobutton>
</radiogroup>
<button> Add node
- <method event="onclick">
+ <handler name="onclick">
dsRepl.appendChild(new LzDataElement( "node" ));
- </method>
+ </handler>
</button>
<button> Remove node
- <method event="onclick">
+ <handler name="onclick">
dsRepl.removeChild( dsRepl.getFirstChild() );
- </method>
+ </handler>
</button>
</view>
<view valign="middle" name="elem">
<simplelayout axis="x"/>
<view resource="ra" name="ra" bgcolor="yellow">
<datapath xpath="dsRepl:/node" pooling="true"/>
- <method event="onvisible">
+ <handler name="onvisible">
Debug.write( this, "visible: " + visible );
- </method>
+ </handler>
</view>
</view>
</view>
@@ -196,7 +196,7 @@
<simplelayout spacing="5"/>
<text>Visible</text>
<radiogroup name="rg" defaultselection="null">
- <method event="onvalue">
+ <handler name="onvalue">
var v;
switch (value){
case "true":
@@ -210,7 +210,7 @@
}
parent.parent.elem.la.setVisible( v);
- </method>
+ </handler>
<radiobutton>true</radiobutton>
<radiobutton>false</radiobutton>
<radiobutton>null</radiobutton>
@@ -219,35 +219,35 @@
</view>
<view name="elem">
<view name="la" bgcolor="yellow">
- <method event="onload">
+ <handler name="onload">
Debug.write( this.__LZmovieClipRef ==
this.__LZmovieClipRef.mc);
Debug.write( this.__LZmovieClipRef ,
this.__LZmovieClipRef._visible );
Debug.write( this.__LZmovieClipRef.lmc ,
this.__LZmovieClipRef.lmc._visible );
- </method>
- <method event="onvisible">
+ </handler>
+ <handler name="onvisible">
Debug.write( this, "visible: " + visible );
- </method>
+ </handler>
</view>
<view y="80">
<simplelayout/>
<button>load
- <method event="onclick">
+ <handler name="onclick">
Debug.write( parent.parent )
parent.parent.la.setResource( "http:resc-a.swf" );
- </method>
+ </handler>
</button>
<button>set resource
- <method event="onclick">
+ <handler name="onclick">
parent.parent.la.setResource( "rb" );
- </method>
+ </handler>
</button>
<button>error
- <method event="onclick">
+ <handler name="onclick">
parent.parent.la.setResource( "http:fungdummy" );
- </method>
+ </handler>
</button>
</view>
</view>
@@ -255,6 +255,6 @@
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/lpp-1582.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lpp-1582.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lpp-1582.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,11 +1,12 @@
<canvas debug="true">
- <method event="oninit">
+ <handler name="oninit">
LzTrack.register( testarea, "test" );
LzTrack.activate( "test" );
- </method>
+ </handler>
<view name="testarea" width="100" height="100">
- <method event="onmousetrackover">
+ <handler name="onmousetrackover">
Debug.write( "got mouse trackover" );
- </method>
+ </handler>
</view>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/lztest/lztest-animator.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lztest/lztest-animator.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lztest/lztest-animator.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -42,18 +42,18 @@
<attribute name="t_start" value="0"/>
<attribute name="t_elapsed" value="0"/>
- <method event="onrepeat">
+ <handler name="onrepeat">
n_onrepeat++;
- </method>
+ </handler>
- <method event="onstart">
+ <handler name="onstart">
n_onstart++;
var now = new Date();
t_start = now.getTime();
- </method>
+ </handler>
- <method event="onstop">
+ <handler name="onstop">
<![CDATA[
n_onstop++;
@@ -73,7 +73,7 @@
var xerror = 400 - view1.x;
canvas.safeAssertEquals (400, view1.x, "view1.x final failure error=" + xerror + " ");
]]>
- </method>
+ </handler>
</animator>
</view>
@@ -89,15 +89,15 @@
<attribute name="n_onstop" value="0"/>
<attribute name="n_onrepeat" value="0"/>
- <method event="onrepeat">
+ <handler name="onrepeat">
n_onrepeat++;
- </method>
+ </handler>
- <method event="onstart">
+ <handler name="onstart">
n_onstart++;
- </method>
+ </handler>
- <method event="onstop">
+ <handler name="onstop">
<![CDATA[
n_onstop++;
@@ -107,7 +107,7 @@
var xerror = 100 - view2.x;
canvas.safeAssertEquals (100, view2.x, "LPP-1973: view2.x final failure error=" + xerror + " ");
]]>
- </method>
+ </handler>
</animator>
</view>
@@ -248,7 +248,7 @@
</canvas>
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2007, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
Modified: openlaszlo/branches/devildog/test/lztest/lztest-animatorgroup.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lztest/lztest-animatorgroup.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lztest/lztest-animatorgroup.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -36,18 +36,18 @@
<attribute name="t_start" value="0"/>
<attribute name="t_elapsed" value="0"/>
- <method event="onrepeat">
+ <handler name="onrepeat">
n_onrepeat++;
- </method>
+ </handler>
- <method event="onstart" args="v">
+ <handler name="onstart" args="v">
n_onstart++;
var now = new Date();
t_start = now.getTime();
- </method>
+ </handler>
- <method event="onstop">
+ <handler name="onstop">
<![CDATA[
n_onstop++;
@@ -68,7 +68,7 @@
var errorx = 100 - view1.x;
canvas.safeAssertEquals (100, view1.x, "view1.x final failure error=" + errorx);
]]>
- </method>
+ </handler>
<animator id="ag1_a1" attribute="x" from="50" to="100" repeat="2" duration="500" start="false">
@@ -84,18 +84,18 @@
<attribute name="t_start" value="0"/>
<attribute name="t_elapsed" value="0"/>
- <method event="onrepeat">
+ <handler name="onrepeat">
n_onrepeat++;
- </method>
+ </handler>
- <method event="onstart">
+ <handler name="onstart">
n_onstart++;
var now = new Date();
t_start = now.getTime();
- </method>
+ </handler>
- <method event="onstop">
+ <handler name="onstop">
<![CDATA[
n_onstop++;
@@ -115,7 +115,7 @@
var errorx = 100 - view1.x;
canvas.safeAssertEquals (100, view1.x, "view1.x final failure error=" + errorx);
]]>
- </method>
+ </handler>
</animator>
@@ -133,18 +133,18 @@
<attribute name="t_start" value="0"/>
<attribute name="t_elapsed" value="0"/>
- <method event="onrepeat">
+ <handler name="onrepeat">
n_onrepeat++;
- </method>
+ </handler>
- <method event="onstart">
+ <handler name="onstart">
n_onstart++;
var now = new Date();
t_start = now.getTime();
- </method>
+ </handler>
- <method event="onstop">
+ <handler name="onstop">
<![CDATA[
n_onstop++;
@@ -164,7 +164,7 @@
var errory = 175 - view1.y;
canvas.safeAssertEquals (175, view1.y, "view1.y final failure error=" + errory);
]]>
- </method>
+ </handler>
</animator>
</animatorgroup>
@@ -192,14 +192,14 @@
<attribute name="t_start" value="0"/>
<attribute name="t_elapsed" value="0"/>
- <method event="onstart">
+ <handler name="onstart">
n_onstart++;
var now = new Date();
t_start = now.getTime();
- </method>
+ </handler>
- <method event="onstop">
+ <handler name="onstop">
<![CDATA[
n_onstop++;
@@ -227,7 +227,7 @@
canvas.safeAssertEquals (100, view2.x, "view2.x final failure error=" + errorx);
canvas.safeAssertEquals (175, view2.y, "view2.y final failure error=" + errory);
]]>
- </method>
+ </handler>
<animator id="ag2_a1" attribute="x" from="50" to="100" repeat="2" duration="500" start="false"/>
@@ -247,7 +247,7 @@
<view id="view3" bgcolor="red" x="50" y="75" width="50" height="50">
<animatorgroup id="ag3" process="simultaneous" attribute="x" from="50" to="200" repeat="2" duration="500" start="false">
- <method event="onstop">
+ <handler name="onstop">
<![CDATA[
// The following test sometimes failed; especially if you rerun the
// test by reloading the browser page. The error is small (1e-14).
@@ -257,7 +257,7 @@
canvas.safeAssertEquals (250, view3.y, "view3.y final failure");
]]>
- </method>
+ </handler>
<animator id="ag3_a1">
<method name="init">
@@ -337,7 +337,7 @@
</canvas>
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2007, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
Modified: openlaszlo/branches/devildog/test/lztest/lztest-layout.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lztest/lztest-layout.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lztest/lztest-layout.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -48,9 +48,9 @@
sl5.setAttribute ('axis', (sl5.axis == "x") ? "y" : "x");
</method>
<simplelayout id="sl5" axis="x" spacing="10">
- <method event="onaxis" args="axis">
+ <handler name="onaxis" args="axis">
view5.n_onaxis++;
- </method>
+ </handler>
</simplelayout>
<view name="v1" bgcolor="blue" height="30" width="50"/>
<view name="v2" bgcolor="blue" height="30" width="50"/>
@@ -430,7 +430,7 @@
</canvas>
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
Modified: openlaszlo/branches/devildog/test/lztest/lztest-node-initsequence.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lztest/lztest-node-initsequence.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lztest/lztest-node-initsequence.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -65,19 +65,19 @@
logitem('constructorder', args['name']);
logitem('sequence', 'construct' + args['name']);
</method>
- <method event="onconstruct">
+ <handler name="onconstruct">
logitem('onconstructorder', this.name);
logitem('sequence', 'onconstruct' + this.name);
- </method>
+ </handler>
<method name="init">
super.init();
logitem('initorder', this.name);
logitem('sequence', 'init' + this.name);
</method>
- <method event="oninit">
+ <handler name="oninit">
logitem('oninitorder', this.name);
logitem('sequence', 'oninit' + this.name);
- </method>
+ </handler>
</class>
<class name="ClassInitTestCase">
@@ -306,6 +306,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/lztest/lztest-simpleboundslayout.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lztest/lztest-simpleboundslayout.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lztest/lztest-simpleboundslayout.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -21,9 +21,9 @@
sl1.update();
</method>
<simpleboundslayout id="sl1" axis="x" spacing="10">
- <method event="onaxis" args="axis">
+ <handler name="onaxis" args="axis">
n_onaxis++;
- </method>
+ </handler>
</simpleboundslayout>
<view name="v1" bgcolor="blue" height="30" width="50"/>
<view name="v2" bgcolor="blue" height="30" width="50"/>
@@ -101,7 +101,7 @@
</canvas>
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2007, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
Modified: openlaszlo/branches/devildog/test/lztest/lztest-view.lzx
===================================================================
--- openlaszlo/branches/devildog/test/lztest/lztest-view.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/lztest/lztest-view.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -65,7 +65,7 @@
<!-- view10: resource -->
<view name="view10" bgcolor="yellow">
- <method event="onload">
+ <handler name="onload">
var expwidth = view10resources[view10index][0];
var expheight = view10resources[view10index][1];
@@ -80,7 +80,7 @@
view10index = view10index + 1;
view10changed = true;
}
- </method>
+ </handler>
<!-- Idle handler that will setup the next resource to load -->
<handler name="onidle" reference="LzIdle">
@@ -102,13 +102,13 @@
<view name="v1" bgcolor="green" width="10" height="20">
<animator name="a1" attribute="x" from="0" to="100" duration="500" start="false">
- <method event="onstop">
+ <handler name="onstop">
<![CDATA[
LzTestManager.assertEquals (110, view12.width, "view12.width failure (onstop)");
LzTestManager.assertEquals (20, view12.height, "view12.height failure (onstop)");
loctest ('view12.v1 (onstop)', view12.v1, [100,0,10,20]);
]]>
- </method>
+ </handler>
</animator>
@@ -118,27 +118,27 @@
<!-- view13: Stretch/Clipping using a resource -->
<view name="view13" bgcolor="yellow">
- <method event="onload">
+ <handler name="onload">
LzTestManager.assertEquals (30, view13.width, "view13.width failure");
LzTestManager.assertEquals (40, view13.height, "view13.height failure");
- </method>
+ </handler>
<view name="v1" width="30" height="40" clip="true">
- <method event="oninit">
+ <handler name="oninit">
this.setSource( "pict5.jpg" );
- </method>
- <method event="onload">
+ </handler>
+ <handler name="onload">
LzTestManager.assertEquals (30, view13.v1.width, "view13.v1.width failure");
LzTestManager.assertEquals (40, view13.v1.height, "view13.v1.height failure");
- </method>
+ </handler>
</view>
<view name="v2" width="30" height="40" stretches="both">
- <method event="oninit">
+ <handler name="oninit">
this.setSource( "pict5.jpg" );
- </method>
- <method event="onload">
+ </handler>
+ <handler name="onload">
LzTestManager.assertEquals (30, view13.v2.width, "view13.v2.width failure");
LzTestManager.assertEquals (40, view13.v2.height, "view13.v2.height failure");
- </method>
+ </handler>
</view>
</view>
@@ -500,7 +500,7 @@
</canvas>
<!--
/* X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2007, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ******************************************************/
-->
Modified: openlaszlo/branches/devildog/test/perf/contacts/contacts.lzx
===================================================================
--- openlaszlo/branches/devildog/test/perf/contacts/contacts.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/perf/contacts/contacts.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -15,7 +15,7 @@
<!-- The menus for the main window are found in menubar.lzx. -->
<!-- -->
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!--=======================================================================-->
@@ -74,10 +74,10 @@
Starting Laszlo Contacts
</text>
<text x="parent.message.width + 30" y="parent.message.y" width="40">
- <method event="onpercentcreated" reference="canvas" args="p">
+ <handler name="onpercentcreated" reference="canvas" args="p">
pp = Math.floor( 100*p );
this.setText( pp + "%" );
- </method>
+ </handler>
</text>
<view resource="progress" name="progress" align="center" valign="middle"
pixellock="true">
@@ -85,9 +85,9 @@
width="parent.width * canvas.percentcreated - 2"
height="parent.height-2" bgcolor="#0A246A" />
</view>
- <method event="oninit" reference="canvas">
+ <handler name="oninit" reference="canvas">
this.deleteView();
- </method>
+ </handler>
</window>
Modified: openlaszlo/branches/devildog/test/perf/contacts/details.lzx
===================================================================
--- openlaszlo/branches/devildog/test/perf/contacts/details.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/perf/contacts/details.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -7,7 +7,7 @@
<!-- contact. -->
<!-- -->
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<!--=======================================================================-->
@@ -481,5 +481,5 @@
super.openWindow();
</method>
-
+
</window>
Modified: openlaszlo/branches/devildog/test/platform.lzx
===================================================================
--- openlaszlo/branches/devildog/test/platform.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/platform.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -15,9 +15,9 @@
<node id="gvars">
<attribute name="fpver" type="string"/>
<attribute name="testCount" type="number" value="0"/>
- <method event="oninit">
+ <handler name="oninit">
this.setAttribute('fpver','fp'+parseInt(LzBrowser.getVersion()));
- </method>
+ </handler>
</node>
<tabs>
@@ -164,13 +164,13 @@
<datapointer xpath="dset:/tests/" ondata="gvars.setAttribute('testCount',this.getNodeCount())"/>
<datapointer id="srcPointer" xpath="${'dset:/tests/*['+testPointer+']'}" >
<attribute name="testPointer" value="0" type="number"/>
- <method event="ondata">
+ <handler name="ondata">
//func.popUpPage(this.xpathQuery('@src'));
- </method>
+ </handler>
</datapointer>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/pnginclude.lzx
===================================================================
--- openlaszlo/branches/devildog/test/pnginclude.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/pnginclude.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,153 +1,153 @@
<canvas bgcolor="red" width="900" >
- <view x="2">
- <text >
- TEST 1)
- </text>
- <text >
- TEST 2)
- </text>
- <text>
- TEST 3)
- </text>
- <text >
- TEST 4)
- </text>
- <text >
- TEST 5)
- </text>
- <text >
- TEST 6)
- </text>
- <text >
- TEST 7)
- </text>
- <text >
- TEST 8)
- </text>
- <text >
- TEST 9)
- </text>
- <text >
- TEST 10)
- </text>
- <text >
- TEST 11)
- </text>
- <text >
- TEST 12)
- </text>
- <simplelayout axis="y" spacing="3"/>
- </view>
- <view x="52">
- <text >
- OK
- </text>
- <text >
- OK
- </text>
- <text>
- ERROR
- </text>
- <text >
- ERROR
- </text>
- <text >
- ERROR
- </text>
- <text >
- ERROR
- </text>
- <text >
- ERROR
- </text>
- <text >
- ERROR
- </text>
- <text >
- ERROR
- </text>
- <text >
- -----
- </text>
- <text >
- ERROR
- </text>
- <text >
- ERROR
- </text>
- <simplelayout axis="y" spacing="3"/>
- </view>
- <view x="105">
- <text >
- PNG #1 - no alpha channel
- </text>
- <text >
- PNG #2 - image #1 with alpha channel
- </text>
- <text>
- PNG - image #2 ... 1 pixel wide stretched to 200
- </text>
- <text >
- PNG - image #2 ... 2 pixels wide stretched to 200
- </text>
- <text >
- PNG - image #2 ... 10 pixels wide stretched to 200
- </text>
- <text >
- PNG - image #2 ... 10 pixels wide stretched to 200
- with 1 pixel alpha on top
- </text>
- <text >
- PNG - image #2 ... 100 pixels wide stretched to 200
- </text>
- <text >
- PNG - image #2 ... 100 pixels wide stretched to 250
- </text>
- <text >
- PNG - image #2 ... 100 pixels wide stretched to 300
- </text>
- <text >
- PNG #3 - no opacity (what the image should look like)
- </text>
- <text >
- PNG - IMAGE #3 WITH ALPHA CHANNEL
- </text>
- <text >
- PNG - IMAGE #3 WITH FIRST COLUMN OF ALPHA CHANNEL REMOVED
- </text>
- <simplelayout axis="y" spacing="3"/>
- </view>
- <view>
- </view>
- <view x="480" y="1" >
- <view resource="resources/png/test1.png"/>
- <view resource="resources/png/test2.png"/>
- <view resource="resources/png/test3.png"/>
- <view resource="resources/png/test4.png"/>
- <view resource="resources/png/test5.png"/>
- <view resource="resources/png/test6.png"/>
- <view resource="resources/png/test7.png"/>
- <view resource="resources/png/test7.png"/>
- <view resource="resources/png/test7.png"/>
- <view resource="resources/png/test10.png"/>
- <view resource="resources/png/test11.png"/>
- <view resource="resources/png/test12.png"/>
- <simplelayout axis="y" spacing="7"/>
- </view>
- <view x="600" y="1" >
- <view resource="resources/png/test1.png" visible="false"/>
- <view resource="resources/png/test2.png" visible="false"/>
- <view width="200" stretches="width" resource="resources/png/test3.png"/>
- <view width="200" stretches="width" resource="resources/png/test4.png"/>
- <view width="200" stretches="width" resource="resources/png/test5.png"/>
- <view width="200" stretches="width" resource="resources/png/test6.png"/>
- <view width="200" stretches="width" resource="resources/png/test7.png"/>
- <view width="250" stretches="width" resource="resources/png/test7.png"/>
- <view width="300" stretches="width" resource="resources/png/test7.png"/>
- <simplelayout axis="y" spacing="7"/>
- </view>
+ <view x="2">
+ <text >
+ TEST 1)
+ </text>
+ <text >
+ TEST 2)
+ </text>
+ <text>
+ TEST 3)
+ </text>
+ <text >
+ TEST 4)
+ </text>
+ <text >
+ TEST 5)
+ </text>
+ <text >
+ TEST 6)
+ </text>
+ <text >
+ TEST 7)
+ </text>
+ <text >
+ TEST 8)
+ </text>
+ <text >
+ TEST 9)
+ </text>
+ <text >
+ TEST 10)
+ </text>
+ <text >
+ TEST 11)
+ </text>
+ <text >
+ TEST 12)
+ </text>
+ <simplelayout axis="y" spacing="3"/>
+ </view>
+ <view x="52">
+ <text >
+ OK
+ </text>
+ <text >
+ OK
+ </text>
+ <text>
+ ERROR
+ </text>
+ <text >
+ ERROR
+ </text>
+ <text >
+ ERROR
+ </text>
+ <text >
+ ERROR
+ </text>
+ <text >
+ ERROR
+ </text>
+ <text >
+ ERROR
+ </text>
+ <text >
+ ERROR
+ </text>
+ <text >
+ -----
+ </text>
+ <text >
+ ERROR
+ </text>
+ <text >
+ ERROR
+ </text>
+ <simplelayout axis="y" spacing="3"/>
+ </view>
+ <view x="105">
+ <text >
+ PNG #1 - no alpha channel
+ </text>
+ <text >
+ PNG #2 - image #1 with alpha channel
+ </text>
+ <text>
+ PNG - image #2 ... 1 pixel wide stretched to 200
+ </text>
+ <text >
+ PNG - image #2 ... 2 pixels wide stretched to 200
+ </text>
+ <text >
+ PNG - image #2 ... 10 pixels wide stretched to 200
+ </text>
+ <text >
+ PNG - image #2 ... 10 pixels wide stretched to 200
+ with 1 pixel alpha on top
+ </text>
+ <text >
+ PNG - image #2 ... 100 pixels wide stretched to 200
+ </text>
+ <text >
+ PNG - image #2 ... 100 pixels wide stretched to 250
+ </text>
+ <text >
+ PNG - image #2 ... 100 pixels wide stretched to 300
+ </text>
+ <text >
+ PNG #3 - no opacity (what the image should look like)
+ </text>
+ <text >
+ PNG - IMAGE #3 WITH ALPHA CHANNEL
+ </text>
+ <text >
+ PNG - IMAGE #3 WITH FIRST COLUMN OF ALPHA CHANNEL REMOVED
+ </text>
+ <simplelayout axis="y" spacing="3"/>
+ </view>
+ <view>
+ </view>
+ <view x="480" y="1" >
+ <view resource="resources/png/test1.png"/>
+ <view resource="resources/png/test2.png"/>
+ <view resource="resources/png/test3.png"/>
+ <view resource="resources/png/test4.png"/>
+ <view resource="resources/png/test5.png"/>
+ <view resource="resources/png/test6.png"/>
+ <view resource="resources/png/test7.png"/>
+ <view resource="resources/png/test7.png"/>
+ <view resource="resources/png/test7.png"/>
+ <view resource="resources/png/test10.png"/>
+ <view resource="resources/png/test11.png"/>
+ <view resource="resources/png/test12.png"/>
+ <simplelayout axis="y" spacing="7"/>
+ </view>
+ <view x="600" y="1" >
+ <view resource="resources/png/test1.png" visible="false"/>
+ <view resource="resources/png/test2.png" visible="false"/>
+ <view width="200" stretches="width" resource="resources/png/test3.png"/>
+ <view width="200" stretches="width" resource="resources/png/test4.png"/>
+ <view width="200" stretches="width" resource="resources/png/test5.png"/>
+ <view width="200" stretches="width" resource="resources/png/test6.png"/>
+ <view width="200" stretches="width" resource="resources/png/test7.png"/>
+ <view width="250" stretches="width" resource="resources/png/test7.png"/>
+ <view width="300" stretches="width" resource="resources/png/test7.png"/>
+ <simplelayout axis="y" spacing="7"/>
+ </view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/remotedebug/test1.lzx
===================================================================
--- openlaszlo/branches/devildog/test/remotedebug/test1.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/remotedebug/test1.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -15,7 +15,8 @@
<button id="debuggerbutton">Show Debugger</button>
- <method event="onclick" reference="debuggerbutton">
+ <handler name="onclick" reference="debuggerbutton">
new LzDebugWindow();
- </method>
+ </handler>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/resources/lzx/vts.lzx
===================================================================
--- openlaszlo/branches/devildog/test/resources/lzx/vts.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/resources/lzx/vts.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,6 +1,6 @@
<!--
==============
- * Copyright (c) 2001, 2002 Laszlo Systems, Inc.
+ * Copyright (c) 2001, 2002, 2008 Laszlo Systems, Inc.
* All Rights Reserved.
*
* This software is the proprietary information of Laszlo Systems, Inc.
@@ -78,7 +78,7 @@
<method name="openTab" args="tabelement,withAnimation" >
<![CDATA[
- if (this.opennedTab != tabelement) {
+ if (this.opennedTab != tabelement) {
tabelement.open(this.availableWidth,this.slideDuration, withAnimation)
if (this.opennedTab != null) this.opennedTab.close(-this.opennedTab.width + this.opennedTab.minwidth, this.slideDuration);
this.opennedTab = tabelement;
Modified: openlaszlo/branches/devildog/test/rotation/rotatetest.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rotation/rotatetest.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rotation/rotatetest.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,34 +1,34 @@
<canvas width="1000" height="1000" debug="true">
- <resource name="OG" src="olivergray.jpg" />
- <resource name="OP" src="oliverpurplecenter.swf" />
- <resource name="OC" src="olivercropped.jpg" />
- <!-- TEST 1 -->
-
- <view name="oliver_jpg" bgcolor="red" resource="OG" x="100" y="100" onclick="this.animate('rotation',90,1000,true);debug.write('Oliver.jpg WIDTH,HEIGHT=' + this.getWidth() + ',' + this.getHeight())"/>
+ <resource name="OG" src="olivergray.jpg" />
+ <resource name="OP" src="oliverpurplecenter.swf" />
+ <resource name="OC" src="olivercropped.jpg" />
+ <!-- TEST 1 -->
+
+ <view name="oliver_jpg" bgcolor="red" resource="OG" x="100" y="100" onclick="this.animate('rotation',90,1000,true);debug.write('Oliver.jpg WIDTH,HEIGHT=' + this.getWidth() + ',' + this.getHeight())"/>
- <view name="red_view" bgcolor="red" resource="OP" x="400" y="100" onclick="this.animate('rotation',90,1000,true);debug.write('OliverCentered.swf WIDTH,HEIGHT=' + this.getWidth() + ',' + this.getHeight())"/>
-
-
- <view name="green_view" x="400" y="300" bgcolor="green" >
- <view name="oliver_jpg" bgcolor="red" resource="OG" x="${-this.width/2.0}" y="${-this.height/2.0}" onclick="this.parent.animate('rotation',45,1000,true);debug.write( this + 'WIDTH,HEIGHT=' + this.parent.getWidth() + ',' + this.parent.getHeight())"/>
- </view>
+ <view name="red_view" bgcolor="red" resource="OP" x="400" y="100" onclick="this.animate('rotation',90,1000,true);debug.write('OliverCentered.swf WIDTH,HEIGHT=' + this.getWidth() + ',' + this.getHeight())"/>
+
+
+ <view name="green_view" x="400" y="300" bgcolor="green" >
+ <view name="oliver_jpg" bgcolor="red" resource="OG" x="${-this.width/2.0}" y="${-this.height/2.0}" onclick="this.parent.animate('rotation',45,1000,true);debug.write( this + 'WIDTH,HEIGHT=' + this.parent.getWidth() + ',' + this.parent.getHeight())"/>
+ </view>
- <view name="yellow_view" x="400" y="500" bgcolor="yellow" >
- <view name="oliver_crp" bgcolor="red" resource="OC" x="${-this.width/2.0}" y="${-this.height/2.0}" stretches="both" width="100%" height="100%" onclick="this.parent.animate('rotation',45,1000,true);debug.write( this + 'WIDTH,HEIGHT=' + this.getWidth() + ',' + this.getHeight());debug.write( this.parent + 'WIDTH,HEIGHT=' + this.parent.getWidth() + ',' + this.parent.getHeight())"/>
- </view>
-
-
- <view bgcolor="gray" x="600" y="400" width="150" height="30"
- onclick="canvas.yellow_view.animate('height',20,1000,true);
- canvas.yellow_view.animate('rotation',30,1000,true);
- debug.write( canvas.yellow_view + 'WIDTH,HEIGHT=' + canvas.yellow_view.getWidth() + ',' + canvas.yellow_view.getHeight());
- debug.write( canvas.yellow_view.oliver_crp + 'WIDTH,HEIGHT=' + canvas.yellow_view.oliver_crp.getWidth() + ',' + canvas.yellow_view.oliver_crp.getHeight())" >
- <text align="center" y="10" >ROTATE AND EXPAND</text>
- </view>
+ <view name="yellow_view" x="400" y="500" bgcolor="yellow" >
+ <view name="oliver_crp" bgcolor="red" resource="OC" x="${-this.width/2.0}" y="${-this.height/2.0}" stretches="both" width="100%" height="100%" onclick="this.parent.animate('rotation',45,1000,true);debug.write( this + 'WIDTH,HEIGHT=' + this.getWidth() + ',' + this.getHeight());debug.write( this.parent + 'WIDTH,HEIGHT=' + this.parent.getWidth() + ',' + this.parent.getHeight())"/>
+ </view>
+
+
+ <view bgcolor="gray" x="600" y="400" width="150" height="30"
+ onclick="canvas.yellow_view.animate('height',20,1000,true);
+ canvas.yellow_view.animate('rotation',30,1000,true);
+ debug.write( canvas.yellow_view + 'WIDTH,HEIGHT=' + canvas.yellow_view.getWidth() + ',' + canvas.yellow_view.getHeight());
+ debug.write( canvas.yellow_view.oliver_crp + 'WIDTH,HEIGHT=' + canvas.yellow_view.oliver_crp.getWidth() + ',' + canvas.yellow_view.oliver_crp.getHeight())" >
+ <text align="center" y="10" >ROTATE AND EXPAND</text>
+ </view>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/rpc/javarpc/errors.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/javarpc/errors.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/javarpc/errors.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -16,27 +16,27 @@
remoteclassname="org.openlaszlo.test.xmlrpc.ServerErrors">
<!-- handlers -->
- <method event="onerror" args="errmsg">
+ <handler name="onerror" args="errmsg">
Debug.write('onerror:', errmsg)
- </method>
+ </handler>
- <method event="onload">
+ <handler name="onload">
Debug.write('onload:', this.proxy);
- </method>
+ </handler>
<!-- declare remote calls -->
<remotecall funcname="makeException"/>
<remotecall funcname="forceTimeout">
- <method event="ondata" args="msg">
+ <handler name="ondata" args="msg">
Debug.write("returned from forceTimeout: " + msg)
- </method>
+ </handler>
</remotecall>
<remotecall funcname="invokeMe">
- <method event="ondata" args="msg">
+ <handler name="ondata" args="msg">
Debug.write("invokeMe returned: " + msg)
- </method>
+ </handler>
</remotecall>
<remotecall funcname="noAccess"/>
@@ -64,7 +64,7 @@
</view>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/rpc/javarpc/https/serverenv.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/javarpc/https/serverenv.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/javarpc/https/serverenv.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -10,9 +10,9 @@
<list name="env" width="250" height="200">
<textlistitem name="ti" datapath="envDset:/*" text="$path{'name()'}">
- <method event="onselect">
+ <handler name="onselect">
canvas.display.setText(datapath.xpathQuery('text()'))
- </method>
+ </handler>
</textlistitem>
</list>
@@ -27,27 +27,27 @@
<javarpc name="systemprop" scope="none" secure="true" secureport="8443"
remoteclassname="org.openlaszlo.test.xmlrpc.SystemProp">
- <method event="onload">
+ <handler name="onload">
Debug.write('onload invoke');
this.getProperties.invoke();
- </method>
+ </handler>
- <method event="onerror" args="msg">
+ <handler name="onerror" args="msg">
errormsg.setAttribute('text', 'error: ' + msg)
errormsg.open()
- </method>
+ </handler>
<remotecall name="getProperties" funcname="getProperties"
dataobject="$once{envDset}">
- <method event="ondata" args="d">
+ <handler name="ondata" args="d">
Debug.write('data:', d);
- </method>
+ </handler>
</remotecall>
</javarpc>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/rpc/javarpc/https/session-counter.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/javarpc/https/session-counter.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/javarpc/https/session-counter.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -13,25 +13,25 @@
<dataset name="infoDset" />
<sessionrpc name="sessioninfo" secure="true" secureport="8443">
- <method event="ondata" args="data">
+ <handler name="ondata" args="data">
Debug.write('xxx data:', data);
- </method>
+ </handler>
- <method event="onerror" args="mesg">
+ <handler name="onerror" args="mesg">
Debug.write('xxx error:', mesg);
- </method>
+ </handler>
<remotecall funcname="getAttributeNames" dataobject="$once{infoDset}" />
</sessionrpc>
<webapprpc name="webappinfo" secure="true" secureport="8443">
- <method event="ondata" args="data">
+ <handler name="ondata" args="data">
Debug.write('xxx data:', data);
- </method>
+ </handler>
- <method event="onerror" args="mesg">
+ <handler name="onerror" args="mesg">
Debug.write('xxx error:', mesg);
- </method>
+ </handler>
<remotecall funcname="getAttributeNames" dataobject="$once{infoDset}" />
</webapprpc>
@@ -39,21 +39,21 @@
<class name="counter" loadoption="${settings.replace.loadoption}" autoload="false"
remoteclassname="org.openlaszlo.test.xmlrpc.PeerCounter" extends="javarpc">
- <method event="onerror" args="mesg">
+ <handler name="onerror" args="mesg">
Debug.write(this.name, 'onerror:', mesg)
- </method>
+ </handler>
- <method event="ondata" args="data">
+ <handler name="ondata" args="data">
Debug.write(this.name, 'ondata:', data)
- </method>
+ </handler>
- <method event="onload" >
+ <handler name="onload" >
Debug.write(this.name, 'onload:', this.name)
- </method>
+ </handler>
- <method event="onunload" >
+ <handler name="onunload" >
Debug.write(this.name, 'onunload:', this.name)
- </method>
+ </handler>
<remotecall funcname="getCount" />
<remotecall funcname="getPeerNum" />
@@ -71,13 +71,13 @@
<text><b>SETTINGS:</b></text>
<checkbox text="replace on create" name="replace">
<attribute name="loadoption" value="loadcreate" type="string" />
- <method event="onvalue">
+ <handler name="onvalue">
if (this.value) {
this.setAttribute("loadoption", "create");
} else {
this.setAttribute("loadoption", "loadcreate");
}
- </method>
+ </handler>
</checkbox>
<text>Scope:</text>
<radiogroup text="scope" name="scope" >
@@ -106,7 +106,7 @@
</list>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/rpc/javarpc/https/session.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/javarpc/https/session.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/javarpc/https/session.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -8,26 +8,26 @@
<sessionrpc id="session" secure="true" secureport="8443">
- <method event="onload">
+ <handler name="onload">
Debug.write('session object loaded');
- </method>
+ </handler>
- <method event="ondata" args="data">
+ <handler name="ondata" args="data">
Debug.write("default ondata:", data);
- </method>
+ </handler>
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
Debug.write("default onerror:", error);
- </method>
+ </handler>
<remotecall funcname="getId" />
<remotecall name="getIdWithDset" funcname="getId" dataobject="$once{idDset}" />
<remotecall funcname="getMaxInactiveInterval">
- <method event="ondata" args="data">
+ <handler name="ondata" args="data">
Debug.write("remotecall ondata handler data=", data);
- </method>
+ </handler>
</remotecall>
<remotecall funcname="invalidate" />
@@ -87,9 +87,9 @@
<attribute name="myDel" value="null" type="expression" />
- <method event="oninit">
+ <handler name="oninit">
this.myDel = new LzDelegate(this, 'myhandler');
- </method>
+ </handler>
<method name="myhandler" args="data">
Debug.write('myhandler:', data);
@@ -106,9 +106,9 @@
<button text="getmyattr (w/params)" onclick="session.getmyattr.invoke(['myattr'])" />
<button text="getmyattr (w/params and delegate)">
- <method event="onclick">
+ <handler name="onclick">
session.getmyattr.invoke(['myattr'], parent.mydel);
- </method>
+ </handler>
</button>
<button text="getAttributeNames" onclick="session[this.text].invoke()" />
@@ -121,6 +121,6 @@
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/rpc/javarpc/https/webapp.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/javarpc/https/webapp.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/javarpc/https/webapp.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -6,21 +6,21 @@
<webapprpc id="webapp" secure="true" secureport="8443">
- <method event="onload">
+ <handler name="onload">
Debug.write('webapp object loaded');
- </method>
+ </handler>
- <method event="ondata" args="data">
+ <handler name="ondata" args="data">
if (data == LzRPC.t_void) {
Debug.write("default ondata: void");
} else {
Debug.write("default ondata:", data);
}
- </method>
+ </handler>
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
Debug.write("default onerror:", error);
- </method>
+ </handler>
<remotecall funcname="getMajorVersion" />
@@ -92,9 +92,9 @@
<attribute name="myDel" value="null" type="expression" />
- <method event="oninit">
+ <handler name="oninit">
this.myDel = new LzDelegate(this, 'myhandler');
- </method>
+ </handler>
<method name="myhandler" args="data">
Debug.write('myhandler:', data);
@@ -113,9 +113,9 @@
<button text="getmyattr (w/params)" onclick="webapp.getmyattr.invoke(['myattr'])" />
<button text="getmyattr (w/params and delegate)">
- <method event="onclick">
+ <handler name="onclick">
webapp.getmyattr.invoke(['myattr'], parent.mydel);
- </method>
+ </handler>
</button>
<button text="removemyattr" onclick="webapp[this.text].invoke()" />
@@ -126,6 +126,6 @@
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/rpc/javarpc/innerclass.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/javarpc/innerclass.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/javarpc/innerclass.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -12,29 +12,29 @@
remoteclassname="org.openlaszlo.test.xmlrpc.TypeMap">
<remotecall name="getObject" funcname="getObject">
- <method event="ondata" args="res">
+ <handler name="ondata" args="res">
Debug.write("---");
Debug.write("method:", this.name, "type:", typeof(res))
Debug.write("returned:", res);
- </method>
+ </handler>
</remotecall>
- <method event="onerror" args="err">
+ <handler name="onerror" args="err">
Debug.write("---");
Debug.write("onerror:", err)
- </method>
+ </handler>
- <method event="onload">
+ <handler name="onload">
Debug.write("---");
Debug.write("typemap created:");
Debug.write(this.proxy);
this.getObject.invoke()
- </method>
+ </handler>
</javarpc>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/rpc/javarpc/serverenv.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/javarpc/serverenv.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/javarpc/serverenv.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -10,9 +10,9 @@
<list name="env" width="250" height="200">
<textlistitem name="ti" datapath="envDset:/*" text="$path{'name()'}">
- <method event="onselect">
+ <handler name="onselect">
canvas.display.setText(datapath.xpathQuery('text()'))
- </method>
+ </handler>
</textlistitem>
</list>
@@ -27,27 +27,27 @@
<javarpc name="systemprop" scope="none"
remoteclassname="org.openlaszlo.test.xmlrpc.SystemProp">
- <method event="onload">
+ <handler name="onload">
Debug.write('onload invoke');
this.getProperties.invoke();
- </method>
+ </handler>
- <method event="onerror" args="msg">
+ <handler name="onerror" args="msg">
errormsg.setAttribute('text', 'error: ' + msg)
errormsg.open()
- </method>
+ </handler>
<remotecall name="getProperties" funcname="getProperties"
dataobject="$once{envDset}">
- <method event="ondata" args="d">
+ <handler name="ondata" args="d">
Debug.write('data:', d);
- </method>
+ </handler>
</remotecall>
</javarpc>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/rpc/javarpc/session-counter.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/javarpc/session-counter.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/javarpc/session-counter.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -13,25 +13,25 @@
<dataset name="infoDset" />
<sessionrpc name="sessioninfo">
- <method event="ondata" args="data">
+ <handler name="ondata" args="data">
Debug.write('xxx data:', data);
- </method>
+ </handler>
- <method event="onerror" args="mesg">
+ <handler name="onerror" args="mesg">
Debug.write('xxx error:', mesg);
- </method>
+ </handler>
<remotecall funcname="getAttributeNames" dataobject="$once{infoDset}" />
</sessionrpc>
<webapprpc name="webappinfo">
- <method event="ondata" args="data">
+ <handler name="ondata" args="data">
Debug.write('xxx data:', data);
- </method>
+ </handler>
- <method event="onerror" args="mesg">
+ <handler name="onerror" args="mesg">
Debug.write('xxx error:', mesg);
- </method>
+ </handler>
<remotecall funcname="getAttributeNames" dataobject="$once{infoDset}" />
</webapprpc>
@@ -39,21 +39,21 @@
<class name="counter" loadoption="${settings.replace.loadoption}" autoload="false"
remoteclassname="org.openlaszlo.test.xmlrpc.PeerCounter" extends="javarpc">
- <method event="onerror" args="mesg">
+ <handler name="onerror" args="mesg">
Debug.write(this.name, 'onerror:', mesg)
- </method>
+ </handler>
- <method event="ondata" args="data">
+ <handler name="ondata" args="data">
Debug.write(this.name, 'ondata:', data)
- </method>
+ </handler>
- <method event="onload" >
+ <handler name="onload" >
Debug.write(this.name, 'onload:', this.name)
- </method>
+ </handler>
- <method event="onunload" >
+ <handler name="onunload" >
Debug.write(this.name, 'onunload:', this.name)
- </method>
+ </handler>
<remotecall funcname="getCount" />
<remotecall funcname="getPeerNum" />
@@ -71,13 +71,13 @@
<text><b>SETTINGS:</b></text>
<checkbox text="replace on create" name="replace">
<attribute name="loadoption" value="loadcreate" type="string" />
- <method event="onvalue">
+ <handler name="onvalue">
if (this.value) {
this.setAttribute("loadoption", "create");
} else {
this.setAttribute("loadoption", "loadcreate");
}
- </method>
+ </handler>
</checkbox>
<text>Scope:</text>
<radiogroup text="scope" name="scope">
@@ -106,7 +106,7 @@
</list>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/rpc/javarpc/session.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/javarpc/session.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/javarpc/session.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -8,26 +8,26 @@
<sessionrpc id="session">
- <method event="onload">
+ <handler name="onload">
Debug.write('session object loaded');
- </method>
+ </handler>
- <method event="ondata" args="data">
+ <handler name="ondata" args="data">
Debug.write("default ondata:", data);
- </method>
+ </handler>
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
Debug.write("default onerror:", error);
- </method>
+ </handler>
<remotecall funcname="getId" />
<remotecall name="getIdWithDset" funcname="getId" dataobject="$once{idDset}" />
<remotecall funcname="getMaxInactiveInterval">
- <method event="ondata" args="data">
+ <handler name="ondata" args="data">
Debug.write("remotecall ondata handler data=", data);
- </method>
+ </handler>
</remotecall>
<remotecall funcname="invalidate" />
@@ -87,9 +87,9 @@
<attribute name="myDel" value="null" type="expression" />
- <method event="oninit">
+ <handler name="oninit">
this.myDel = new LzDelegate(this, 'myhandler');
- </method>
+ </handler>
<method name="myhandler" args="data">
Debug.write('myhandler:', data);
@@ -106,9 +106,9 @@
<button text="getmyattr (w/params)" onclick="session.getmyattr.invoke(['myattr'])" />
<button text="getmyattr (w/params and delegate)">
- <method event="onclick">
+ <handler name="onclick">
session.getmyattr.invoke(['myattr'], parent.mydel);
- </method>
+ </handler>
</button>
<button text="getAttributeNames" onclick="session[this.text].invoke()" />
@@ -121,6 +121,6 @@
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/rpc/javarpc/test-count.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/javarpc/test-count.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/javarpc/test-count.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -58,7 +58,7 @@
<javarpc name="counter" loadoption="create" scope="session"
remoteclassname="org.openlaszlo.test.xmlrpc.PeerCounter">
- <method event="onload">
+ <handler name="onload">
parent.assertTrue(this['proxy'])
var dp = parent.cur_meth.dupePointer()
do {
@@ -68,13 +68,13 @@
parent.setAttribute('tested_object', this.proxy);
parent.callNext();
- </method>
+ </handler>
</javarpc>
</class>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</library>
Modified: openlaszlo/branches/devildog/test/rpc/javarpc/test-databinding.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/javarpc/test-databinding.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/javarpc/test-databinding.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -21,48 +21,48 @@
<javarpc name="remote" scope="session" id="xxx"
remoteclassname="org.openlaszlo.test.xmlrpc.TypeMap">
- <method event="onerror" args="msg">
+ <handler name="onerror" args="msg">
canvas.setAttribute('runTests', canvas.runTests + 1)
parent.onerror.sendEvent(msg);
- </method>
+ </handler>
<remotecall funcname="getMappedObject" dataobject="$once{mapDset}">
- <method event="ondata">
+ <handler name="ondata">
classroot.assertTrue(mapDset.childNodes != null)
- </method>
+ </handler>
</remotecall>
<remotecall funcname="getList" dataobject="$once{listDset}">
- <method event="ondata">
+ <handler name="ondata">
classroot.assertTrue(listDset.childNodes != null)
- </method>
+ </handler>
</remotecall>
<remotecall funcname="getDouble" dataobject="$once{scalarDset}">
- <method event="ondata" args="data">
+ <handler name="ondata" args="data">
classroot.assertTrue(scalarDset.childNodes != null)
classroot.assertTrue(scalarDset.childNodes[0].data == data)
- </method>
+ </handler>
</remotecall>
- <method event="onload">
+ <handler name="onload">
classroot.assertTrue( ( this.proxy != null ) );
this.getDouble.invoke()
this.getMappedObject.invoke()
this.getList.invoke()
- </method>
+ </handler>
- <method event="onerror" args="err">
+ <handler name="onerror" args="err">
classroot.error(err)
- </method>
+ </handler>
</javarpc>
</class>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/rpc/javarpc/test-typemap.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/javarpc/test-typemap.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/javarpc/test-typemap.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -18,13 +18,13 @@
<class name="inspector" extends="remotecall">
<attribute name="exp_type" type="string"/>
- <method event="ondata" args="d">
+ <handler name="ondata" args="d">
parent.parent.assertEquals(this.exp_type, typeof(d))
- </method>
+ </handler>
- <method event="onerror" args="msg">
+ <handler name="onerror" args="msg">
parent.onerror.sendEvent("in " + this.name + " >>> " + msg)
- </method>
+ </handler>
</class>
<class name="TypeMapSyncTester" extends="SyncTester">
@@ -100,12 +100,12 @@
<inspector funcname="callWithMap" exp_type="boolean"/>
<inspector funcname="callWithList" exp_type="boolean"/>
- <method event="onerror" args="err">
+ <handler name="onerror" args="err">
canvas.setAttribute('runTests', canvas.runTests + 1)
parent.error(err)
- </method>
+ </handler>
- <method event="onload">
+ <handler name="onload">
parent.assertTrue(this['proxy'])
var dp = parent.cur_meth.dupePointer()
do {
@@ -118,13 +118,13 @@
parent.setAttribute('tested_object', this.proxy);
parent.callNext();
- </method>
+ </handler>
</javarpc>
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/rpc/javarpc/webapp.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/javarpc/webapp.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/javarpc/webapp.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -6,21 +6,21 @@
<webapprpc id="webapp">
- <method event="onload">
+ <handler name="onload">
Debug.write('webapp object loaded');
- </method>
+ </handler>
- <method event="ondata" args="data">
+ <handler name="ondata" args="data">
if (data == LzRPC.t_void) {
Debug.write("default ondata: void");
} else {
Debug.write("default ondata:", data);
}
- </method>
+ </handler>
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
Debug.write("default onerror:", error);
- </method>
+ </handler>
<remotecall funcname="getMajorVersion" />
@@ -92,9 +92,9 @@
<attribute name="myDel" value="null" type="expression" />
- <method event="oninit">
+ <handler name="oninit">
this.myDel = new LzDelegate(this, 'myhandler');
- </method>
+ </handler>
<method name="myhandler" args="data">
Debug.write('myhandler:', data);
@@ -113,9 +113,9 @@
<button text="getmyattr (w/params)" onclick="webapp.getmyattr.invoke(['myattr'])" />
<button text="getmyattr (w/params and delegate)">
- <method event="onclick">
+ <handler name="onclick">
webapp.getmyattr.invoke(['myattr'], parent.mydel);
- </method>
+ </handler>
</button>
<button text="removemyattr" onclick="webapp[this.text].invoke()" />
@@ -126,6 +126,6 @@
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/rpc/soap/accented.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/soap/accented.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/soap/accented.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -3,31 +3,31 @@
<debug x="280" width="470" height="370" />
<soap name="accented" wsdl="http://localhost:8080/lps-dev/test/rpc/soap/java/AccentedTest.jws?wsdl">
- <method event="onload">
+ <handler name="onload">
Debug.write('accented test soap service stub loaded');
stuff.setVisible(true);
- </method>
+ </handler>
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
Debug.write('error:', error);
- </method>
+ </handler>
<remotecall funcname="getJapaneseChars" >
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
Debug.write('japanese: "' + value + '"');
- </method>
+ </handler>
</remotecall>
<remotecall funcname="getAccentedChars" >
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
Debug.write('latin: "' + value + '"');
- </method>
+ </handler>
</remotecall>
<remotecall funcname="getArrayListOfString" >
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
Debug.write('array latin: "' + value + '"');
- </method>
+ </handler>
</remotecall>
</soap>
@@ -40,6 +40,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2005 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2005, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/rpc/soap/amazon.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/soap/amazon.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/soap/amazon.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -10,7 +10,7 @@
<attribute name="myobject1" value="null" type="expression" />
<attribute name="myobject2" value="null" type="expression" />
- <method event="onload">
+ <handler name="onload">
Debug.write('amazon soap service stub loaded');
this.setAttribute('myobject1', new amazon.proto.KeywordRequest());
@@ -32,31 +32,31 @@
this.myobject2.devtag = 'your-dev-tag';
this.myobject2.format = 'xml';
this.myobject2.version = '1.0';
- </method>
+ </handler>
<!-- if error isn't handled by remotecall, the error is propogated up to
soap -->
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
Debug.write('error:', error);
- </method>
+ </handler>
<remotecall name="myKSR1" funcname="KeywordSearchRequest"
dataobject="$once{amazonDset1}">
<param value="${canvas.amazon.myobject1}" />
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
Debug.write('one:', value);
- </method>
+ </handler>
</remotecall>
<remotecall name="myKSR2" funcname="KeywordSearchRequest"
inforeturnvalue="true">
<param value="${canvas.amazon.myobject2}" />
- <method event="ondata" args="retval">
+ <handler name="ondata" args="retval">
Debug.write('two(seqnum=' + retval.seqnum + '):', retval.data);
- </method>
+ </handler>
</remotecall>
</soap>
@@ -77,32 +77,32 @@
<button text="myksr1 invoke w/params"
onclick="amazon.myKSR1.invoke([ canvas.amazon.myobject1 ])" />
<button text="myksr2 invoke">
- <method event="onclick">
+ <handler name="onclick">
var seqnum = amazon.myKSR2.invoke();
Debug.write('request seqnum:', seqnum);
- </method>
+ </handler>
</button>
<button text="myksr2 invoke w/params">
- <method event="onclick">
+ <handler name="onclick">
var seqnum = amazon.myKSR2.invoke([ canvas.amazon.myobject2 ]);
Debug.write('request seqnum:', seqnum);
- </method>
+ </handler>
</button>
<button text="myksr2 invoke w/params and delegate">
- <method event="onclick">
+ <handler name="onclick">
var seqnum =
amazon.myKSR2.invoke([ canvas.amazon.myobject2 ],
canvas.mydel);
Debug.write('request seqnum:', seqnum);
- </method>
+ </handler>
</button>
<button text="invoke KeywordSearchRequest proxy function">
- <method event="onclick">
+ <handler name="onclick">
var seqnum =
amazon.proxy.KeywordSearchRequest([ canvas.amazon.myobject1 ],
canvas.mydel);
Debug.write('request(seqnum=' + seqnum + ')');
- </method>
+ </handler>
</button>
<view bgcolor="red" layout="axis: y" >
<view>
@@ -122,6 +122,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/rpc/soap/context.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/soap/context.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/soap/context.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -7,22 +7,22 @@
<!-- Amazon SOAP service object -->
<soap name="amazon" wsdl="http://soap.amazon.com/schemas3/AmazonWebServices.wsdl">
- <method event="onload">
+ <handler name="onload">
Debug.write('amazon soap service stub loaded');
status.setVisible(false);
- </method>
+ </handler>
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
debug.write('amazon onerror:', error);
status.setVisible(false);
erralert.setAttribute('text', 'error loading amazon: ' + error);
erralert.open();
- </method>
+ </handler>
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
debug.write('amazon ondata:', value);
status.setVisible(false);
- </method>
+ </handler>
</soap>
@@ -34,26 +34,26 @@
<!-- search button -->
<button text="search">
- <method event="onclick">
+ <handler name="onclick">
status.setVisible(true);
if (! this.myKSR1.invoke() ) {
status.setVisible(false);
}
- </method>
+ </handler>
<!-- this can also be declared inside of myKSR1 -->
- <method event="ondata" args="data">
+ <handler name="ondata" args="data">
status.setVisible(false);
Debug.write('got data:', data);
- </method>
+ </handler>
<!-- this can also be declared inside of myKSR1 -->
- <method event="onerror" args="errmsg">
+ <handler name="onerror" args="errmsg">
status.setVisible(false);
Debug.write('got error:', errmsg);
erralert.setAttribute('text', 'error: ' + errmsg)
erralert.open();
- </method>
+ </handler>
<remotecall name="myKSR1" funcname="KeywordSearchRequest"
remotecontext="$once{canvas.amazon}"
@@ -96,6 +96,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/rpc/soap/dictionary.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/soap/dictionary.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/soap/dictionary.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -5,13 +5,13 @@
<dataset name="dictDset" />
<soap name="dictionary" wsdl="http://services.aonaware.com/DictService/DictService.asmx?WSDL">
- <method event="onload">
+ <handler name="onload">
Debug.write('dictionary soap service stub loaded');
- </method>
+ </handler>
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
Debug.write('error:', error);
- </method>
+ </handler>
<remotecall name="define" funcname="Define" dataobject="$once{dictDset}">
<param>
@@ -40,12 +40,12 @@
<tabs id="definitions" x="20" y="85" height="300" width="550"
datapath="dictDset:/item[1]/DefineResponse/DefineResult/Definitions" >
<tabpane datapath="Definition">
- <method event="ondata">
+ <handler name="ondata">
var pos = this.datapath.xpathQuery('position()');
var word = this.datapath.xpathQuery('Word/text()');
this.setAttribute('text', pos + '. ' + word.toLowerCase());
- </method>
+ </handler>
<view width="${parent.parent.width - 20}"
height="$once{parent.parent.height - 50}" clip="true">
<text datapath="WordDefinition[1]/text()" multiline="true"
@@ -58,7 +58,7 @@
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/rpc/soap/dotnet-data.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/soap/dotnet-data.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/soap/dotnet-data.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -20,36 +20,36 @@
<attribute name="loaded" type="boolean" value="false" />
- <method event="onload">
+ <handler name="onload">
Debug.write(this.name + ' loaded');
this.loaded = true;
- </method>
+ </handler>
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
status.setText('error: ', error);
- </method>
+ </handler>
- <method event="ontimeout" args="error">
+ <handler name="ontimeout" args="error">
status.setText('timeout');
- </method>
+ </handler>
<remotecall funcname="GetTitleAuthors" dataobject="$once{authors}" >
<param value="'<GetTitleAuthors/>'" />
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
status.setText('');
- </method>
+ </handler>
</remotecall>
</soap>
<button name="op" >GetAuthors
- <method event="onclick"><![CDATA[
+ <handler name="onclick"><![CDATA[
if (!canvas.dataservice.loaded) return;
var del = new LzDelegate(this, 'handler');
canvas.dataservice.GetTitleAuthors.invoke();
status.setText('Invoking...');
- ]]></method>
+ ]]></handler>
</button>
@@ -67,6 +67,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/rpc/soap/dotnet-math.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/soap/dotnet-math.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/soap/dotnet-math.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -11,10 +11,10 @@
<class name="myremotecall" extends="remotecall">
<param value="${maths.makedoc(this.parent.funcname, a.text, b.text)}" />
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
Debug.write(this.funcname, ": ", value);
result.setText(value);
- </method>
+ </handler>
</class>
<soap name="maths"
@@ -32,18 +32,18 @@
return s;
]]></method>
- <method event="onload">
+ <handler name="onload">
Debug.write(this.name + ' loaded');
this.loaded = true;
- </method>
+ </handler>
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
Debug.write('error:', error);
- </method>
+ </handler>
- <method event="ontimeout" args="error">
+ <handler name="ontimeout" args="error">
Debug.write('timeout:', error);
- </method>
+ </handler>
<myremotecall funcname="Add" />
<myremotecall funcname="Subtract" />
@@ -58,7 +58,7 @@
<textlistitem>Subtract</textlistitem>
<textlistitem>Divide</textlistitem>
- <method event="onselect"><![CDATA[
+ <handler name="onselect"><![CDATA[
if (!canvas.maths.loaded) return;
var del = new LzDelegate(this, 'handler');
if (this.value != null) {
@@ -69,7 +69,7 @@
canvas.maths[this.value].invoke();
}
}
- ]]></method>
+ ]]></handler>
<method name="handler" args="d">
Debug.write('handle ', d);
@@ -80,6 +80,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/rpc/soap/geography.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/soap/geography.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/soap/geography.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -5,19 +5,19 @@
<soap name="geography"
wsdl="http://arcweb.esri.com/services/v2/PlaceFinderSample.wsdl">
- <method event="onload">
+ <handler name="onload">
Debug.write('geography soap service stub loaded');
- </method>
+ </handler>
<!-- if unhandled errors cascade up to soap service object. -->
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
Debug.write('error:', error);
- </method>
+ </handler>
<remotecall name="getTypes" funcname="getTypes" >
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
Debug.write('geography types:', value);
- </method>
+ </handler>
</remotecall>
</soap>
@@ -28,6 +28,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/rpc/soap/google.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/soap/google.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/soap/google.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,37 +1,37 @@
<canvas debug="true" height="800" width="1000">
- <method event="oninit">
+ <handler name="oninit">
if (Debug['setWrapLines']) {
Debug.setWrapLines(true);
}
Debug.showInternalProperties = true;
- </method>
+ </handler>
<debug x="280" width="470" height="370" />
<dataset name="googleDset" />
<soap name="google" wsdl="http://api.google.com/GoogleSearch.wsdl">
- <method event="onload">
+ <handler name="onload">
Debug.write('google soap service stub loaded');
- </method>
+ </handler>
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
Debug.write('error:', error);
- </method>
+ </handler>
<remotecall name="spellcheck" funcname="doSpellingSuggestion">
<param value="'2TKUw4ZQFHJ84ByemZK0EXV0Lj+7xGOx'" />
<param value="'check spelling'" />
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
Debug.write('spell check result:\n', value);
- </method>
+ </handler>
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
Debug.write('spell check error:\n', error);
- </method>
+ </handler>
</remotecall>
<remotecall name="search" funcname="doGoogleSearch"
@@ -48,9 +48,9 @@
<param value="''" />
<param value="''" />
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
Debug.write('one:', value);
- </method>
+ </handler>
</remotecall>
</soap>
@@ -66,7 +66,7 @@
</view>
</view>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/rpc/soap/https/amazon.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/soap/https/amazon.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/soap/https/amazon.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -11,7 +11,7 @@
<attribute name="myobject1" value="null" type="expression" />
<attribute name="myobject2" value="null" type="expression" />
- <method event="onload">
+ <handler name="onload">
Debug.write('amazon soap service stub loaded');
this.setAttribute('myobject1', new amazon.proto.KeywordRequest());
@@ -33,30 +33,30 @@
this.myobject2.devtag = 'your-dev-tag';
this.myobject2.format = 'xml';
this.myobject2.version = '1.0';
- </method>
+ </handler>
<!-- if error isn't handled by remotecall, the error is propogated up to
soap -->
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
Debug.write('error:', error);
- </method>
+ </handler>
<remotecall name="myKSR1" funcname="KeywordSearchRequest"
dataobject="amazonDset1">
<param value="${canvas.amazon.myobject1}" />
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
Debug.write('one:', value);
- </method>
+ </handler>
</remotecall>
<remotecall name="myKSR2" funcname="KeywordSearchRequest">
<param value="${canvas.amazon.myobject2}" />
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
Debug.write('two:', value);
- </method>
+ </handler>
</remotecall>
</soap>
@@ -82,9 +82,9 @@
<button text="myksr2 invoke w/params and delegate"
onclick="amazon.myKSR2.invoke([ canvas.amazon.myobject2 ], canvas.mydel)" />
<button text="invoke KeywordSearchRequest proxy function">
- <method event="onclick">
+ <handler name="onclick">
amazon.proxy.KeywordSearchRequest([ canvas.amazon.myobject1 ], canvas.mydel);
- </method>
+ </handler>
</button>
<view bgcolor="red" layout="axis: y" >
<view>
@@ -104,6 +104,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/rpc/soap/https/context.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/soap/https/context.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/soap/https/context.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -7,22 +7,22 @@
<!-- Amazon SOAP service object -->
<soap name="amazon" wsdl="http://soap.amazon.com/schemas3/AmazonWebServices.wsdl"
secure="true" secureport="8443">
- <method event="onload">
+ <handler name="onload">
Debug.write('amazon soap service stub loaded');
status.setVisible(false);
- </method>
+ </handler>
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
debug.write('amazon onerror:', error);
status.setVisible(false);
erralert.setAttribute('text', 'error loading amazon: ' + error);
erralert.open();
- </method>
+ </handler>
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
debug.write('amazon ondata:', value);
status.setVisible(false);
- </method>
+ </handler>
</soap>
@@ -34,26 +34,26 @@
<!-- search button -->
<button text="search">
- <method event="onclick">
+ <handler name="onclick">
status.setVisible(true);
if (! this.myKSR1.invoke() ) {
status.setVisible(false);
}
- </method>
+ </handler>
<!-- this can also be declared inside of myKSR1 -->
- <method event="ondata" args="data">
+ <handler name="ondata" args="data">
status.setVisible(false);
Debug.write('got data:', data);
- </method>
+ </handler>
<!-- this can also be declared inside of myKSR1 -->
- <method event="onerror" args="errmsg">
+ <handler name="onerror" args="errmsg">
status.setVisible(false);
Debug.write('got error:', errmsg);
erralert.setAttribute('text', 'error: ' + errmsg)
erralert.open();
- </method>
+ </handler>
<remotecall name="myKSR1" funcname="KeywordSearchRequest"
remotecontext="$once{canvas.amazon}"
@@ -96,6 +96,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/rpc/soap/https/geography.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/soap/https/geography.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/soap/https/geography.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -6,19 +6,19 @@
wsdl="http://arcweb.esri.com/services/v2/PlaceFinderSample.wsdl"
secure="true" secureport="8443">
- <method event="onload">
+ <handler name="onload">
Debug.write('geography soap service stub loaded');
- </method>
+ </handler>
<!-- if unhandled errors cascade up to soap service object. -->
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
Debug.write('error:', error);
- </method>
+ </handler>
<remotecall name="getTypes" funcname="getTypes" >
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
Debug.write('geography types:', value);
- </method>
+ </handler>
</remotecall>
</soap>
@@ -29,6 +29,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/rpc/soap/https/google.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/soap/https/google.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/soap/https/google.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -7,13 +7,13 @@
<soap name="google" wsdl="http://api.google.com/GoogleSearch.wsdl"
secure="true" secureport="8443">
- <method event="onload">
+ <handler name="onload">
Debug.write('google soap service stub loaded');
- </method>
+ </handler>
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
Debug.write('error:', error);
- </method>
+ </handler>
<remotecall name="search" funcname="doGoogleSearch"
dataobject="googleDset">
@@ -29,9 +29,9 @@
<param value="''" />
<param value="''" />
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
Debug.write('one:', value);
- </method>
+ </handler>
</remotecall>
</soap>
@@ -46,7 +46,7 @@
</view>
</view>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/rpc/soap/https/version/version.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/soap/https/version/version.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/soap/https/version/version.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -5,23 +5,23 @@
<soap name="version" secure="true" secureport="8443"
wsdl="https://localhost:8443/axis/services/Version?wsdl">
- <method event="onload">
+ <handler name="onload">
Debug.write('axis version soap service loaded');
- </method>
+ </handler>
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
debug.write('error:', error);
- </method>
+ </handler>
<remotecall funcname="getVersion">
- <method event="ondata" args="version">
+ <handler name="ondata" args="version">
debug.write('version:', version);
- </method>
+ </handler>
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
debug.write('getVersion error:', error);
- </method>
+ </handler>
</remotecall>
</soap>
@@ -42,4 +42,5 @@
</text>
<button text="get axis version" onclick="version.getVersion.invoke()" />
-</canvas>
\ No newline at end of file
+</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/rpc/soap/lps-test.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/soap/lps-test.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/soap/lps-test.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -31,106 +31,106 @@
</method>
<soap name="lpstest" wsdl="http://localhost:8080/legals3/test/rpc/soap/java/LPSTest.jws?wsdl">
- <method event="onload">
+ <handler name="onload">
Debug.write('lps test soap service stub loaded');
- </method>
+ </handler>
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
Debug.write('error:', error);
- </method>
+ </handler>
<remotecall name="test_version" funcname="version" >
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
canvas.assert_equal('test_version', value, "LPS-SOAP service test v 0.1");
- </method>
+ </handler>
</remotecall>
<remotecall name="test_boolean_boolean" funcname="boolean_boolean" >
<param value="true" />
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
canvas.assert_equal('test_boolean_boolean', value, false);
- </method>
+ </handler>
</remotecall>
<remotecall name="test_int_float" funcname="int_float" >
<param value="259" />
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
canvas.assert_equal('test_int_float', value, 259.0);
- </method>
+ </handler>
</remotecall>
<remotecall name="test_int_double" funcname="int_double" >
<param value="259" />
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
canvas.assert_equal('test_int_double', value, 259.0);
- </method>
+ </handler>
</remotecall>
<remotecall name="test_float_float" funcname="float_float" >
<param value="259" />
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
canvas.assert_equal('test_float_float', value, 259.0);
- </method>
+ </handler>
</remotecall>
<remotecall name="test_double_double" funcname="double_double" >
<param value="259" />
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
canvas.assert_equal('test_double_double', value, 259.0);
- </method>
+ </handler>
</remotecall>
<remotecall name="testStringArray" funcname="strings"
dataobject="$once{stringdata}">
<param value="'Foobar Baz'" />
<param value="6" />
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
<![CDATA[
for (var i = 0; i < 6; i++) {
canvas.assert_equal('testStringArray', value[i], "Foobar Baz");
}
]]>
- </method>
+ </handler>
</remotecall>
<remotecall name="testObjectArray" funcname="objects"
dataobject="$once{objectsdata}">
<param value="'Foobar Baz'" />
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
<![CDATA[
for (var i = 0; i < 6; i++) {
canvas.assert_equal('testObjectArray', value[i], "Foobar Baz");
}
]]>
- </method>
+ </handler>
</remotecall>
<remotecall name="testNObjectArray" funcname="nobjects"
dataobject="$once{objectsdata}">
<param value="'Klondike Bar'" />
<param value="10" />
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
<![CDATA[
for (var i = 0; i < 10; i++) {
canvas.assert_equal('testObjectArray', value[i], "Klondike Bar");
}
]]>
- </method>
+ </handler>
</remotecall>
<remotecall name="testReverse" funcname="reverse" >
<param value="'foobar baz'" />
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
canvas.assert_equal('testReverse', value, "zab raboof");
- </method>
+ </handler>
</remotecall>
<remotecall name="test_void" funcname="void_void" >
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
Debug.write('void value', value);
- </method>
+ </handler>
</remotecall>
</soap>
@@ -139,7 +139,7 @@
<simplelayout axis="x"/>
<view layout="spacing: 5">
- <method event="onload" reference="canvas.lpstest">
+ <handler name="onload" reference="canvas.lpstest">
lpstest.test_version.invoke();
lpstest.test_boolean_boolean.invoke();
lpstest.test_int_float.invoke();
@@ -155,7 +155,7 @@
lpstest.test_void.invoke();
- </method>
+ </handler>
<button text="objects" onclick="lpstest.testObjectArray.invoke()" />
<view bgcolor="#ffcccc" layout="axis: y; spacing: 4" >
<datapath xpath="objectsdata:/item" pooling="true" />
@@ -175,6 +175,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/rpc/soap/temperature.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/soap/temperature.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/soap/temperature.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -5,28 +5,28 @@
<soap name="temperature"
wsdl="http://developerdays.com/cgi-bin/tempconverter.exe/wsdl/ITempConverter">
- <method event="onload">
+ <handler name="onload">
Debug.write('temperature soap service stub loaded');
- </method>
+ </handler>
<!-- if error isn't handled by remotecall, the error is propogated up to
soap -->
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
Debug.write('error:', error);
- </method>
+ </handler>
<remotecall name="ftoc" funcname="FtoC" >
<param value="100" />
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
Debug.write('f is 100, c is', value);
- </method>
+ </handler>
</remotecall>
<remotecall name="ctof" funcname="CtoF" >
<param value="0" />
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
Debug.write('c is 0, f is', value);
- </method>
+ </handler>
</remotecall>
</soap>
@@ -38,6 +38,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/rpc/soap/two-soap-objects.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/soap/two-soap-objects.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/soap/two-soap-objects.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -10,7 +10,7 @@
<attribute name="myobject1" value="null" type="expression" />
<attribute name="isloaded" value="false" />
- <method event="onload">
+ <handler name="onload">
this.setAttribute('isloaded', true);
Debug.write('amazon soap service stub loaded');
@@ -23,26 +23,26 @@
this.myobject1.devtag = 'your-dev-tag';
this.myobject1.format = 'xml';
this.myobject1.version = '1.0';
- </method>
+ </handler>
<!-- if error isn't handled by remotecall, the error is propogated up to
soap -->
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
Debug.write('error:', error);
- </method>
+ </handler>
</soap>
<soap name="google" wsdl="http://api.google.com/GoogleSearch.wsdl">
<attribute name="isloaded" value="false" />
- <method event="onload">
+ <handler name="onload">
this.setAttribute('isloaded', true);
Debug.write('google soap service stub loaded');
- </method>
+ </handler>
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
Debug.write('error:', error);
- </method>
+ </handler>
</soap>
<view layout="spacing: 5" visible="${amazon.isloaded && google.isloaded}">
@@ -51,9 +51,9 @@
<remotecall name="myKSR1" funcname="KeywordSearchRequest"
dataobject="$once{amazonDset1}" remotecontext="$once{amazon}">
<param value="${canvas.amazon.myobject1}" />
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
Debug.write('amazon keyword search result:', value);
- </method>
+ </handler>
</remotecall>
</button>
@@ -72,9 +72,9 @@
<param value="''" />
<param value="''" />
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
Debug.write('google search result:', value);
- </method>
+ </handler>
</remotecall>
</button>
@@ -86,13 +86,13 @@
<param value="'2TKUw4ZQFHJ84ByemZK0EXV0Lj+7xGOx'" />
<param value="'check spelling'" />
- <method event="ondata" args="value">
+ <handler name="ondata" args="value">
Debug.write('spell check result:\n', value);
- </method>
+ </handler>
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
Debug.write('spell check error:\n', error);
- </method>
+ </handler>
</remotecall>
</button>
@@ -112,6 +112,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/rpc/xmlrpc/https/meerkat.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/xmlrpc/https/meerkat.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/xmlrpc/https/meerkat.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -11,21 +11,21 @@
<xmlrpc name="meerkat" secure="true" secureport="8443"
service="http://www.oreillynet.com/meerkat/xml-rpc/server.php">
- <method event="onload">
+ <handler name="onload">
canvas.meerkat.getCategories.invoke();
status.setVisible(true);
- </method>
+ </handler>
- <method event="ondata" args="data">
+ <handler name="ondata" args="data">
Debug.write('ondata:', data);
status.setVisible(false);
- </method>
+ </handler>
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
Debug.write('onerror:', error);
errormsg.setAttribute('text', 'Server error: ' + error + '\nPlease try again.')
errormsg.open()
- </method>
+ </handler>
<remotecall name="getChannelsByCategory"
funcname="meerkat.getChannelsByCategory" />
@@ -50,13 +50,13 @@
placement="item" />
<datapath>
- <method event="onclones">
+ <handler name="onclones">
Debug.write('replicating')
if (!this['doneDel']) {
this.doneDel = new LzDelegate(this, 'openOH')
this.doneDel.register(clones[ clones.length - 1 ], 'oninit')
}
- </method>
+ </handler>
<method name="openOH">
Debug.write('clones done');
</method>
@@ -84,7 +84,7 @@
<!-- Category level -->
<datatree datapath="item">
- <method event="onclick">
+ <handler name="onclick">
// make remotecall only if we haven't made it before
if ( ! this.del ) {
@@ -97,12 +97,12 @@
return;
}
this.setAttribute('open', ! this.open)
- </method>
+ </handler>
<!-- Channels this category contains -->
<datatree datapath="element/item" bkg="0xe0e0e0" yindent="25">
- <method event="onclick">
+ <handler name="onclick">
// make remotecall only if we haven't made it before
if ( ! this.isloaded ) {
this.del = new LzDelegate(this, "gotData")
@@ -116,7 +116,7 @@
return;
}
this.setAttribute('open', ! this.open)
- </method>
+ </handler>
<!-- And finally, list of articles in the channel. -->
<datatree name="articles" datapath="element/item" bkg="white">
@@ -153,15 +153,15 @@
<!--
<button name="browse" text="Browse" x="100" y="405">
- <method event="onclick" >
+ <handler name="onclick" >
canvas.meerkat.getCategories.invoke();
status.setVisible(true);
- </method>
+ </handler>
</button>
-->
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/rpc/xmlrpc/meerkat.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/xmlrpc/meerkat.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/xmlrpc/meerkat.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -11,21 +11,21 @@
<xmlrpc name="meerkat"
service="http://www.oreillynet.com/meerkat/xml-rpc/server.php">
- <method event="onload">
+ <handler name="onload">
canvas.meerkat.getCategories.invoke();
status.setVisible(true);
- </method>
+ </handler>
- <method event="ondata" args="data">
+ <handler name="ondata" args="data">
Debug.write('ondata:', data);
status.setVisible(false);
- </method>
+ </handler>
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
Debug.write('onerror:', error);
errormsg.setAttribute('text', 'Server error: ' + error + '\nPlease try again.')
errormsg.open()
- </method>
+ </handler>
<remotecall name="getChannelsByCategory"
funcname="meerkat.getChannelsByCategory" />
@@ -50,13 +50,13 @@
placement="item" />
<datapath>
- <method event="onclones">
+ <handler name="onclones">
Debug.write('replicating')
if (!this['doneDel']) {
this.doneDel = new LzDelegate(this, 'openOH')
this.doneDel.register(clones[ clones.length - 1 ], 'oninit')
}
- </method>
+ </handler>
<method name="openOH">
Debug.write('clones done');
</method>
@@ -84,7 +84,7 @@
<!-- Category level -->
<datatree datapath="item">
- <method event="onclick">
+ <handler name="onclick">
// make remotecall only if we haven't made it before
if ( ! this.del ) {
@@ -97,12 +97,12 @@
return;
}
this.setAttribute('open', ! this.open)
- </method>
+ </handler>
<!-- Channels this category contains -->
<datatree datapath="element/item" bkg="0xe0e0e0" yindent="25">
- <method event="onclick">
+ <handler name="onclick">
// make remotecall only if we haven't made it before
if ( ! this.isloaded ) {
this.del = new LzDelegate(this, "gotData")
@@ -116,7 +116,7 @@
return;
}
this.setAttribute('open', ! this.open)
- </method>
+ </handler>
<!-- And finally, list of articles in the channel. -->
<datatree name="articles" datapath="element/item" bkg="white">
@@ -153,15 +153,15 @@
<!--
<button name="browse" text="Browse" x="100" y="405">
- <method event="onclick" >
+ <handler name="onclick" >
canvas.meerkat.getCategories.invoke();
status.setVisible(true);
- </method>
+ </handler>
</button>
-->
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/rpc/xmlrpc/serverenv.lzx
===================================================================
--- openlaszlo/branches/devildog/test/rpc/xmlrpc/serverenv.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/rpc/xmlrpc/serverenv.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -14,9 +14,9 @@
<list name="env" width="250" height="200">
<textlistitem name="ti" datapath="envDset:/*" text="$path{'name()'}">
- <method event="onselect">
+ <handler name="onselect">
canvas.ta.display.setText(datapath.xpathQuery('text()'))
- </method>
+ </handler>
</textlistitem>
</list>
@@ -25,29 +25,29 @@
<xmlrpc name="systemprop" service="http://localhost:8181/RPC2">
- <method event="onload">
+ <handler name="onload">
Debug.write('systemprop xlmrpc loaded');
this.getEnv.invoke();
- </method>
+ </handler>
- <method event="onerror" args="error">
+ <handler name="onerror" args="error">
var mesg = error + ' -- was serverenv.sh run?';
Debug.write('error:', mesg);
errormsg.setAttribute('text', mesg)
errormsg.open()
- </method>
+ </handler>
<remotecall name="getEnv" funcname="localservice.getProperties"
dataobject="$once{envDset}">
- <method event="ondata" args="d">
+ <handler name="ondata" args="d">
Debug.write('data:', d);
- </method>
+ </handler>
</remotecall>
</xmlrpc>
</view>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/smoke/all_setters.lzl
===================================================================
--- openlaszlo/branches/devildog/test/smoke/all_setters.lzl 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/smoke/all_setters.lzl 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,131 +1,131 @@
<library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<include href="lzunit/lzunit.lzx" />
<class name="ViewTest" extends="TestCase">
- <view name="tester" bgcolor="yellow" visible="false"/>
- <method name="testSettersOnView">
+ <view name="tester" bgcolor="yellow" visible="false"/>
+ <method name="testSettersOnView">
<!-- do all the sets -->
- // tester.setAttribute("clip",1);
- tester.setAttribute("x",1);
- tester.setAttribute("y",1);
- // tester.setAttribute("width",1);
- // tester.setAttribute("height",1);
- tester.setAttribute("rotation",1);
- tester.setAttribute("opacity",1);
- // tester.setAttribute("alpha",1);
- tester.setAttribute("visible",1);
- // tester.setAttribute("align",1);
- // tester.setAttribute("valign",1);
- //tester.setAttribute("source",1);
- tester.setAttribute("bgcolor",1);
- // tester.setAttribute("resource",1);
- // tester.setAttribute("clickable",true);
- // tester.setAttribute("pixellock",1);
- // tester.setAttribute("cursor",1);
- // tester.setAttribute("fgcolor",1);
- // tester.setAttribute("font",1);
- // tester.setAttribute("stretches",true);
- // tester.setAttribute("play",1);
- // tester.setAttribute("selected",1);
- // tester.setAttribute("xscale",1);
- // tester.setAttribute("yscale",1);
+ // tester.setAttribute("clip",1);
+ tester.setAttribute("x",1);
+ tester.setAttribute("y",1);
+ // tester.setAttribute("width",1);
+ // tester.setAttribute("height",1);
+ tester.setAttribute("rotation",1);
+ tester.setAttribute("opacity",1);
+ // tester.setAttribute("alpha",1);
+ tester.setAttribute("visible",1);
+ // tester.setAttribute("align",1);
+ // tester.setAttribute("valign",1);
+ //tester.setAttribute("source",1);
+ tester.setAttribute("bgcolor",1);
+ // tester.setAttribute("resource",1);
+ // tester.setAttribute("clickable",true);
+ // tester.setAttribute("pixellock",1);
+ // tester.setAttribute("cursor",1);
+ // tester.setAttribute("fgcolor",1);
+ // tester.setAttribute("font",1);
+ // tester.setAttribute("stretches",true);
+ // tester.setAttribute("play",1);
+ // tester.setAttribute("selected",1);
+ // tester.setAttribute("xscale",1);
+ // tester.setAttribute("yscale",1);
<!-- do all the tests -->
- //assertEquals(tester.getAttribute("clip"), tester.clip);
- assertEquals(tester.getAttribute("x"), tester.x);
- assertEquals(tester.getAttribute("y"), tester.y);
- //assertEquals(tester.getAttribute("width"), tester.width);
- //assertEquals(tester.getAttribute("height"), tester.height);
- assertEquals(tester.getAttribute("rotation"), tester.rotation);
- assertEquals(tester.getAttribute("opacity"), tester.opacity);
- //assertEquals(tester.getAttribute("alpha"), tester.alpha);
- assertEquals(tester.getAttribute("visible"), tester.visible);
- //assertEquals(tester.getAttribute("align"), tester.align);
- //assertEquals(tester.getAttribute("valign"), tester.valign);
- //assertEquals(tester.getAttribute("source"), tester.source);
- assertEquals(tester.getAttribute("bgcolor"), tester.bgcolor);
- //assertEquals(tester.getAttribute("resource"), tester.resource);
- //assertEquals(tester.getAttribute("clickable"), tester.clickable);
- //assertEquals(tester.getAttribute("pixellock"), tester.pixellock);
- //assertEquals(tester.getAttribute("cursor"), tester.cursor);
- //assertEquals(tester.getAttribute("fgcolor"), tester.fgcolor);
- //assertEquals(tester.getAttribute("font"), tester.font);
- //assertEquals(tester.getAttribute("stretches"), tester.stretches);
- assertEquals(tester.getAttribute("play"), tester.play);
- //assertEquals(tester.getAttribute("selected"), tester.selected);
+ //assertEquals(tester.getAttribute("clip"), tester.clip);
+ assertEquals(tester.getAttribute("x"), tester.x);
+ assertEquals(tester.getAttribute("y"), tester.y);
+ //assertEquals(tester.getAttribute("width"), tester.width);
+ //assertEquals(tester.getAttribute("height"), tester.height);
+ assertEquals(tester.getAttribute("rotation"), tester.rotation);
+ assertEquals(tester.getAttribute("opacity"), tester.opacity);
+ //assertEquals(tester.getAttribute("alpha"), tester.alpha);
+ assertEquals(tester.getAttribute("visible"), tester.visible);
+ //assertEquals(tester.getAttribute("align"), tester.align);
+ //assertEquals(tester.getAttribute("valign"), tester.valign);
+ //assertEquals(tester.getAttribute("source"), tester.source);
+ assertEquals(tester.getAttribute("bgcolor"), tester.bgcolor);
+ //assertEquals(tester.getAttribute("resource"), tester.resource);
+ //assertEquals(tester.getAttribute("clickable"), tester.clickable);
+ //assertEquals(tester.getAttribute("pixellock"), tester.pixellock);
+ //assertEquals(tester.getAttribute("cursor"), tester.cursor);
+ //assertEquals(tester.getAttribute("fgcolor"), tester.fgcolor);
+ //assertEquals(tester.getAttribute("font"), tester.font);
+ //assertEquals(tester.getAttribute("stretches"), tester.stretches);
+ assertEquals(tester.getAttribute("play"), tester.play);
+ //assertEquals(tester.getAttribute("selected"), tester.selected);
<!-- do it again with hardcoding -->
- //assertEquals(1, tester.getAttribute("clip"),"clip");
- assertEquals(1, tester.getAttribute("x"),"x");
- assertEquals(1, tester.getAttribute("y"),"y");
- // assertEquals(1, tester.getAttribute("width"),"width");
- // assertEquals(1, tester.getAttribute("height"),"height");
- assertEquals(1, tester.getAttribute("rotation"),"rotation");
- assertEquals(1, tester.getAttribute("opacity"),"opacity");
- // assertEquals(1, tester.getAttribute("alpha"),"alpha");
- assertEquals(1, tester.getAttribute("visible"),"visible");
- // assertEquals(1, tester.getAttribute("align"),"align");
- // assertEquals(1, tester.getAttribute("valign"),"valign");
- // assertEquals(1, tester.getAttribute("source"),"source");
- assertEquals(1, tester.getAttribute("bgcolor"),"bgcolor");
- // assertEquals(1, tester.getAttribute("resource"),"resource");
- // assertEquals(true, tester.getAttribute("clickable"),"clickable");
- // assertEquals(1, tester.getAttribute("pixellock"),"pixellock");
- // assertEquals(1, tester.getAttribute("cursor"),"cursor");
- // assertEquals(1, tester.getAttribute("fgcolor"),"fgcolor");
- // assertEquals(1, tester.getAttribute("font"),"font");
- // assertEquals(true, tester.getAttribute("stretches"),"stretches");
- // assertEquals(1, tester.getAttribute("play"),"play");
- // assertEquals(1, tester.getAttribute("selected"),"selected");
- // assertEquals(1, tester.getAttribute("xscale"),"xscale");
- // assertEquals(1, tester.getAttribute("yscale"),"yscale");
+ //assertEquals(1, tester.getAttribute("clip"),"clip");
+ assertEquals(1, tester.getAttribute("x"),"x");
+ assertEquals(1, tester.getAttribute("y"),"y");
+ // assertEquals(1, tester.getAttribute("width"),"width");
+ // assertEquals(1, tester.getAttribute("height"),"height");
+ assertEquals(1, tester.getAttribute("rotation"),"rotation");
+ assertEquals(1, tester.getAttribute("opacity"),"opacity");
+ // assertEquals(1, tester.getAttribute("alpha"),"alpha");
+ assertEquals(1, tester.getAttribute("visible"),"visible");
+ // assertEquals(1, tester.getAttribute("align"),"align");
+ // assertEquals(1, tester.getAttribute("valign"),"valign");
+ // assertEquals(1, tester.getAttribute("source"),"source");
+ assertEquals(1, tester.getAttribute("bgcolor"),"bgcolor");
+ // assertEquals(1, tester.getAttribute("resource"),"resource");
+ // assertEquals(true, tester.getAttribute("clickable"),"clickable");
+ // assertEquals(1, tester.getAttribute("pixellock"),"pixellock");
+ // assertEquals(1, tester.getAttribute("cursor"),"cursor");
+ // assertEquals(1, tester.getAttribute("fgcolor"),"fgcolor");
+ // assertEquals(1, tester.getAttribute("font"),"font");
+ // assertEquals(true, tester.getAttribute("stretches"),"stretches");
+ // assertEquals(1, tester.getAttribute("play"),"play");
+ // assertEquals(1, tester.getAttribute("selected"),"selected");
+ // assertEquals(1, tester.getAttribute("xscale"),"xscale");
+ // assertEquals(1, tester.getAttribute("yscale"),"yscale");
- </method>
+ </method>
</class>
<class name="ATextTest" extends="TestCase">
- <text name="tester" bgcolor="yellow">Some Text</text>
+ <text name="tester" bgcolor="yellow">Some Text</text>
<method name="testSettersOnText">
- // tester.setAttribute("label",1);
- // tester.setAttribute("text","newText");
- // tester.setAttribute("fgcolor",1);
+ // tester.setAttribute("label",1);
+ // tester.setAttribute("text","newText");
+ // tester.setAttribute("fgcolor",1);
// tester.setAttribute("font",1);
- // tester.setAttribute("fontsize",1);
- // tester.setAttribute("fontstyle","bold");
- // tester.setAttribute("resize",1);
- // tester.setAttribute("yscroll",1);
- // tester.setAttribute("xscroll",1);
- // tester.setAttribute("selectable",1);
- tester.setAttribute("bgcolor",1);
+ // tester.setAttribute("fontsize",1);
+ // tester.setAttribute("fontstyle","bold");
+ // tester.setAttribute("resize",1);
+ // tester.setAttribute("yscroll",1);
+ // tester.setAttribute("xscroll",1);
+ // tester.setAttribute("selectable",1);
+ tester.setAttribute("bgcolor",1);
- //assertEquals(tester.getAttribute("label"),tester.label);
- assertEquals(tester.getAttribute("text"),tester.text);
- //assertEquals(tester.getAttribute("fgcolor"),tester.fgcolor);
- //assertEquals(tester.getAttribute("font"),tester.font);
- assertEquals(tester.getAttribute("fontsize"),tester.fontsize);
- assertEquals(tester.getAttribute("fontstyle"),tester.fontstyle);
- assertEquals(tester.getAttribute("resize"),tester.resize);
- assertEquals(tester.getAttribute("yscroll"),tester.yscroll);
- assertEquals(tester.getAttribute("xscroll"),tester.xscroll);
- //assertEquals(tester.getAttribute("selectable"),tester.selectable);
- assertEquals(tester.getAttribute("bgcolor"),tester.bgcolor);
+ //assertEquals(tester.getAttribute("label"),tester.label);
+ assertEquals(tester.getAttribute("text"),tester.text);
+ //assertEquals(tester.getAttribute("fgcolor"),tester.fgcolor);
+ //assertEquals(tester.getAttribute("font"),tester.font);
+ assertEquals(tester.getAttribute("fontsize"),tester.fontsize);
+ assertEquals(tester.getAttribute("fontstyle"),tester.fontstyle);
+ assertEquals(tester.getAttribute("resize"),tester.resize);
+ assertEquals(tester.getAttribute("yscroll"),tester.yscroll);
+ assertEquals(tester.getAttribute("xscroll"),tester.xscroll);
+ //assertEquals(tester.getAttribute("selectable"),tester.selectable);
+ assertEquals(tester.getAttribute("bgcolor"),tester.bgcolor);
- // assertEquals(1, tester.getAttribute("label"),"label");
- // assertEquals("newText", mdtester.getAttribute("text"),"text");
- // assertEquals(1, tester.getAttribute("fgcolor"),"fgcolor");
- // assertEquals(1, tester.getAttribute("font"),"font");
- // assertEquals(1, tester.getAttribute("fontsize"),"fontsize");
- // assertEquals("bold", tester.getAttribute("fontstyle"),"fontstyle");
- // assertEquals(1, tester.getAttribute("resize"),"resize");
- // assertEquals(1, tester.getAttribute("yscroll"),"yscroll");
- // assertEquals(1, tester.getAttribute("xscroll"),"xscroll");
- // assertEquals(1, tester.getAttribute("selectable"),"selectable");
- assertEquals(1, tester.getAttribute("bgcolor"),"bgcolor");
+ // assertEquals(1, tester.getAttribute("label"),"label");
+ // assertEquals("newText", mdtester.getAttribute("text"),"text");
+ // assertEquals(1, tester.getAttribute("fgcolor"),"fgcolor");
+ // assertEquals(1, tester.getAttribute("font"),"font");
+ // assertEquals(1, tester.getAttribute("fontsize"),"fontsize");
+ // assertEquals("bold", tester.getAttribute("fontstyle"),"fontstyle");
+ // assertEquals(1, tester.getAttribute("resize"),"resize");
+ // assertEquals(1, tester.getAttribute("yscroll"),"yscroll");
+ // assertEquals(1, tester.getAttribute("xscroll"),"xscroll");
+ // assertEquals(1, tester.getAttribute("selectable"),"selectable");
+ assertEquals(1, tester.getAttribute("bgcolor"),"bgcolor");
</method>
</class>
</library>
Modified: openlaszlo/branches/devildog/test/smoke/bitwise.lzl
===================================================================
--- openlaszlo/branches/devildog/test/smoke/bitwise.lzl 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/smoke/bitwise.lzl 2008-02-06 19:57:39 UTC (rev 7965)
@@ -3,22 +3,22 @@
I hope this works... -md 2/12/03
-->
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<library>
<class name="BitwiseTest" extends="TestCase">
- <method name="testBitwiseOperators">
+ <method name="testBitwiseOperators">
<![CDATA[
- assertEquals( 12 & 4 , 4); // AND
- assertEquals( 9 | 10 , 11); // OR
- assertEquals( 9 ^ 10 , 3); // XOR
- assertEquals( ~0x0f , -16); // NOT
- assertEquals( 7 << 1 , 14); // Shift Left
- assertEquals( 7 >> 1 , 3); // Shift Right with sign
- assertEquals( -1 >>> 4 , 0x0fffffff); // Shift Right with Zero Fill
+ assertEquals( 12 & 4 , 4); // AND
+ assertEquals( 9 | 10 , 11); // OR
+ assertEquals( 9 ^ 10 , 3); // XOR
+ assertEquals( ~0x0f , -16); // NOT
+ assertEquals( 7 << 1 , 14); // Shift Left
+ assertEquals( 7 >> 1 , 3); // Shift Right with sign
+ assertEquals( -1 >>> 4 , 0x0fffffff); // Shift Right with Zero Fill
]]>
- </method>
+ </method>
</class>
</library>
Modified: openlaszlo/branches/devildog/test/smoke/canvas-attributes.lzl
===================================================================
--- openlaszlo/branches/devildog/test/smoke/canvas-attributes.lzl 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/smoke/canvas-attributes.lzl 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,11 +1,11 @@
<library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
- <method event="oninit">
+ <handler name="oninit">
canvas.canvas_oninit_run=true;
- </method>
+ </handler>
<attribute name="canvas_attr" value="'canvas_attr'"/>
<method name="canvas_method">return 'canvas_method'</method>
Modified: openlaszlo/branches/devildog/test/smoke/constraint.lzl
===================================================================
--- openlaszlo/branches/devildog/test/smoke/constraint.lzl 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/smoke/constraint.lzl 2008-02-06 19:57:39 UTC (rev 7965)
@@ -2,7 +2,7 @@
Trying something with new constraints
-->
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
@@ -21,34 +21,34 @@
<class name="ConstraintTest" extends="TestCase">
- <cereal name="post" brand="captain.crunch"/>
- <cereal name="kellog" brand="${captain.crunch}"/>
+ <cereal name="post" brand="captain.crunch"/>
+ <cereal name="kellog" brand="${captain.crunch}"/>
- <view name="honey">
- <attribute name="comb" value="${captain.crunch}"/>
- <attribute name="honey" value="captain.crunch" type="string"/>
- </view>
+ <view name="honey">
+ <attribute name="comb" value="${captain.crunch}"/>
+ <attribute name="honey" value="captain.crunch" type="string"/>
+ </view>
- <view name="comb">
- <attribute name="honey" value="${crunch.captain}"/>
- <attribute name="comb" value="${this.honey}"/>
- </view>
+ <view name="comb">
+ <attribute name="honey" value="${crunch.captain}"/>
+ <attribute name="comb" value="${this.honey}"/>
+ </view>
- <method name="testConstraintReference1">
- assertEquals( captain.crunch ,1);
- assertEquals( honey.comb, 1);
- assertEquals( honey.honey, "captain.crunch");
- </method>
+ <method name="testConstraintReference1">
+ assertEquals( captain.crunch ,1);
+ assertEquals( honey.comb, 1);
+ assertEquals( honey.honey, "captain.crunch");
+ </method>
- <method name="testConstraintReference2">
- crunch.setAttribute( "captain", 10);
- assertEquals( comb.honey, 10 );
- assertEquals( comb.comb, 10 );
- </method>
- <method name="testConstraintReference3">
- assertEquals( post.brand, 'captain.crunch');
- assertEquals( kellog.brand, '1' );
- </method>
+ <method name="testConstraintReference2">
+ crunch.setAttribute( "captain", 10);
+ assertEquals( comb.honey, 10 );
+ assertEquals( comb.comb, 10 );
+ </method>
+ <method name="testConstraintReference3">
+ assertEquals( post.brand, 'captain.crunch');
+ assertEquals( kellog.brand, '1' );
+ </method>
</class>
</library>
Modified: openlaszlo/branches/devildog/test/smoke/regression.lzl
===================================================================
--- openlaszlo/branches/devildog/test/smoke/regression.lzl 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/smoke/regression.lzl 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,6 +1,6 @@
<library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
<include href="lzunit/lzunit.lzx" />
@@ -631,17 +631,17 @@
<method name="applyData" args="d">
parent.appliedTermData = d
</method>
- <method event="ondata" args="d">
+ <handler name="ondata" args="d">
parent.eventTermData = d
- </method>
+ </handler>
</view>
<view datapath="bug1664:/node/@attribute">
<method name="applyData" args="d">
parent.appliedData = d
</method>
- <method event="ondata" args="d">
+ <handler name="ondata" args="d">
parent.eventData = d
- </method>
+ </handler>
</view>
<method name="testFoo">
assertEquals('foo', appliedData)
@@ -717,7 +717,9 @@
</class>
<class name="bug_1767" extends="TestCase">
- <method event="onmouseover"/>
+ <handler name="onmouseover">
+ // Just to cause clickability
+ </handler>
<method name="testClickable">
assertTrue(this.clickable)
</method>
@@ -765,9 +767,9 @@
<attribute name="value" value="1"/>
<attribute name="gotinit" value="false"/>
- <method event="oninit">
+ <handler name="oninit">
this.gotinit = true;
- </method>
+ </handler>
<method name="applyData" args="d">
classroot.assertTrue(this.gotinit)
@@ -823,9 +825,9 @@
</class>
<class name="bug_2131" extends="TestCase">
- <method event="onfxindent">
+ <handler name="onfxindent">
assertTrue(1 > 0)
- </method>
+ </handler>
<method name="testStateAttr">
mys.apply()
@@ -971,7 +973,9 @@
assertNotUndefined(inside.onwidth)
</method>
- <method event="onwidth" reference="inside"/>
+ <handler name="onwidth" reference="inside">
+ // Just to create a delegate to look for
+ </handler>
</class>
<dataset name="bug3285">
Modified: openlaszlo/branches/devildog/test/snippets/class-library.lzx
===================================================================
--- openlaszlo/branches/devildog/test/snippets/class-library.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/snippets/class-library.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,14 +1,14 @@
<library>
<class name="myclass" bgcolor="#ffccff"
- width="${this.textview.width}"
- height="${this.textview.height}" fontsize="20">
+ width="${this.textview.width}"
+ height="${this.textview.height}" fontsize="20">
<attribute name="text" type="text"/>
<text name="textview" resize="true" text="${parent.text}"/>
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/snippets/class-resource-library.lzx
===================================================================
--- openlaszlo/branches/devildog/test/snippets/class-resource-library.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/snippets/class-resource-library.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -3,12 +3,12 @@
<resource name="aswf" src="../resources/swf/logo.swf"/>
<class resource="aswf"
name="myclass" bgcolor="#ffccff"
- width="${this.textview.width}"
- height="${this.textview.height}" fontsize="20">
+ width="${this.textview.width}"
+ height="${this.textview.height}" fontsize="20">
</class>
</library>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
-* X_LZ_COPYRIGHT_END ****************************************************** -->
\ No newline at end of file
+* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/snippets/double-init.lzx
===================================================================
--- openlaszlo/branches/devildog/test/snippets/double-init.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/snippets/double-init.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -17,16 +17,16 @@
<import name="lib" href="test-canvas-init-library.lzx" stage="late" onload="foo()"/>
- <method event="oninit">
+ <handler name="oninit">
_root.Debug.write("canvas got oninit event");
- </method>
+ </handler>
<view id="mainview" width="50" height="50" bgcolor="blue"/>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/snippets/drawview-library.lzx
===================================================================
--- openlaszlo/branches/devildog/test/snippets/drawview-library.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/snippets/drawview-library.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -2,7 +2,7 @@
<class name="drawme" extends="drawview">
<attribute name="myx" type="number"/>
<attribute name="myy" type="number"/>
- <method event="oninit">
+ <handler name="oninit">
this.moveTo(100*math.random(), 200*math.random());
this.lineTo(100*math.random(), 200*math.random());
this.quadraticCurveTo(150*math.random(), 250*math.random(), 200*math.random(), 200*math.random());
@@ -42,6 +42,7 @@
g.addColorStop(1, parseInt(0xffffff)*math.random());
this.fillStyle = g;
this.fill();
- </method>
+ </handler>
</class>
</library>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/snippets/import-globals.lzx
===================================================================
--- openlaszlo/branches/devildog/test/snippets/import-globals.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/snippets/import-globals.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -23,15 +23,15 @@
<import name="lib" href="import-globals-lib.lzx" stage="late" onload="foo()"/>
- <method event="oninit">
+ <handler name="oninit">
Debug.write("canvas got oninit event");
- </method>
+ </handler>
<view id="mainview" width="50" height="50" bgcolor="blue"/>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
- * Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+ * Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/solo/nullbug.lzx
===================================================================
--- openlaszlo/branches/devildog/test/solo/nullbug.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/solo/nullbug.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,6 +1,6 @@
<canvas bgcolor="0xeaeaea" width="800" proxied="false">
- <dataset name="ds_folders" src="config-laszlo.xml" request="true"/>
+ <dataset name="ds_folders" src="config-laszlo.xml" request="true"/>
<debug height="500" width="600"/>
<class name="configurator" extends="node" initstage="early">
<!--- path to the config file -->
@@ -41,3 +41,4 @@
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/solo/textimage.lzx
===================================================================
--- openlaszlo/branches/devildog/test/solo/textimage.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/solo/textimage.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -7,9 +7,10 @@
</view>
<button y="200">Swap Text
<attribute name="ind" value="$once{1}"/>
- <method event="onclick">
+ <handler name="onclick">
if (++ind == 3) ind = 1
parent.fooText.setDatapath('ds:/data/message['+ind+']')
- </method>
+ </handler>
</button>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/swf6text.lzx
===================================================================
--- openlaszlo/branches/devildog/test/swf6text.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/swf6text.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -3,24 +3,24 @@
<font name="Helvetica" src="helmetr.ttf" />
<debug x="400" height="400" width="400"/>
<text font="Helvetica" fontsize="18" resize="true">
- <method event="oninit">
+ <handler name="oninit">
if (canvas.runtime != 'swf6') {
this.setText('canvas.runtime = '+canvas.runtime+', but this example must be run as flash6, make sure to put lzr=swf6 in the URL!');
} else {
this.setText('canvas.runtime is swf6, ahh what a great feeling');
}
- </method>
+ </handler>
</text>
<class name="swf6text">
- <method event="onconstruct">
+ <handler name="onconstruct">
this.makeContainerResource();
Debug.write( 'mcref' , this.__LZmovieClipRef );
this.__LZmovieClipRef.createTextField( "$swf6text" , 0, 0, this.height, this.width, 40 );
this.__LZtext = this.__LZmovieClipRef['$swf6text'];
Debug.write( 'swf6text' , this.__LZtext );
- </method>
+ </handler>
<method name="setTextFormat" args="tf">
this.__LZText.setTextFormat(tf);
</method>
@@ -39,7 +39,7 @@
<swf6text name="bar" height="60" width="400">
- <method event="oninit">
+ <handler name="oninit">
var tf = this.__LZText;
tf.border = true;
tf.embedFonts = false;
@@ -54,11 +54,11 @@
this.setText("Foobar is foo plus bar");
this.__LZText.type = 'input';
Debug.write(this.getNewTextFormat());
- </method>
+ </handler>
</swf6text>
<swf6text name="baz" height="60" width="400">
- <method event="oninit">
+ <handler name="oninit">
var tf = this.__LZText;
tf.border = true;
tf.embedFonts = true;
@@ -70,13 +70,13 @@
this.__LZText.type = 'input';
Debug.write(this.getNewTextFormat());
- </method>
+ </handler>
</swf6text>
<simplelayout/>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/swf9/hello.lzx
===================================================================
--- openlaszlo/branches/devildog/test/swf9/hello.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/swf9/hello.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -8,10 +8,10 @@
</method>
</text>
- <method event="oninit" >
+ <handler name="oninit" >
var d = new LzDelegate( canvas.mytimer , "tellTime" );
LzIdle.callOnIdle( d );
- </method>
+ </handler>
<view x="200" y="10" resource="testmedia/cherry.png"
onclick="this.animate('rotation', 45, 1000, true)">
Modified: openlaszlo/branches/devildog/test/tabslider.lzx
===================================================================
--- openlaszlo/branches/devildog/test/tabslider.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/tabslider.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -4,11 +4,11 @@
<include href="base/basetabslider.lzx"/>
<window id="wd" title="TabSlider with Toggle" x="100" y="0" width="200" height="300" resizable="true" >
<basetabslider id="tslider"
- height="${immediateparent.height}"
- width="${immediateparent.width}"
- spacing="2"
- mintabheight="20"
- slideduration="333" >
+ height="${immediateparent.height}"
+ width="${immediateparent.width}"
+ spacing="2"
+ mintabheight="20"
+ slideduration="333" >
<basetabelement clickable="true" id="t1_1" name="t1" bgcolor="red" selected="true"/>
<basetabelement clickable="true" id="t1_2" bgcolor="blue" minheight="30"/>
<basetabelement clickable="true" id="t1_3" bgcolor="green" minheight="60"/>
@@ -45,6 +45,6 @@
<button text="Add Blue Tab" onclick="new basetabelement(tslider2,{bgcolor:0x0000FF, clickable:'true'})" y="50"/>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/test-edittext.lzx
===================================================================
--- openlaszlo/branches/devildog/test/test-edittext.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/test-edittext.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -13,51 +13,51 @@
<constantlayout axis="x" value="10"/>
<simplelayout spacing="10" inset="10"/>
<edittext id="a"
- onfocus="this.settext( 'this.field.fixedsize = ' + this.field.fixedsize )"
- >(a) text in tag</edittext>
+ onfocus="this.settext( 'this.field.fixedsize = ' + this.field.fixedsize )"
+ >(a) text in tag</edittext>
<edittext id="b" text="(b) text as attribute"
- onfocus="this.settext( 'this.field.fixedsize = ' + this.field.fixedsize )"
- ></edittext>
+ onfocus="this.settext( 'this.field.fixedsize = ' + this.field.fixedsize )"
+ ></edittext>
<edittext id="c" text="(c) fixed size: width=100, height=20"
width="100" height="20"
- onfocus="this.settext( 'this.field.fixedsize = ' + this.field.fixedsize )"
- ></edittext>
+ onfocus="this.settext( 'this.field.fixedsize = ' + this.field.fixedsize )"
+ ></edittext>
<edittext id="d" text="(d) multiline, custom font\nfixed size: width=100, height=60" font="vera"
width="100" height="60" multiline="true"
- onfocus="this.settext( 'this.field.fixedsize = ' + this.field.fixedsize )"
- ></edittext>
+ onfocus="this.settext( 'this.field.fixedsize = ' + this.field.fixedsize )"
+ ></edittext>
<edittext id="e1" width="200" text="(e1) width=200 and no height"
- onfocus="this.settext( 'this.field.fixedsize = ' + this.field.fixedsize )"
- />
+ onfocus="this.settext( 'this.field.fixedsize = ' + this.field.fixedsize )"
+ />
<edittext id="e2" height="20" text="(e2) height=20 and no width"
- onfocus="this.settext( 'this.field.fixedsize = ' + this.field.fixedsize )"
- />
+ onfocus="this.settext( 'this.field.fixedsize = ' + this.field.fixedsize )"
+ />
<edittext id="f" font="lzt"
multiline="true"
- onfocus="this.settext( 'this.field.fixedsize = ' + this.field.fixedsize )"
- >(f) multiline, no width/height<br/>one<br/>two<br/>three</edittext>
+ onfocus="this.settext( 'this.field.fixedsize = ' + this.field.fixedsize )"
+ >(f) multiline, no width/height<br/>one<br/>two<br/>three</edittext>
<edittext text="fgcolor has no effect"
- onfocus="this.settext( 'this.field.fixedsize = ' + this.field.fixedsize )"
- />
+ onfocus="this.settext( 'this.field.fixedsize = ' + this.field.fixedsize )"
+ />
<view>
<simplelayout spacing="20" axis="x"/>
<edittext id="d1" password="true" text="password"
- onfocus="this.settext( 'this.field.fixedsize = ' + this.field.fixedsize )"
- />
+ onfocus="this.settext( 'this.field.fixedsize = ' + this.field.fixedsize )"
+ />
</view>
<view datapath="ds:/">
<constantlayout axis="x" value="10"/>
<simplelayout spacing="5"/>
<edittext datapath="item/text()" width="200"
- onfocus="this.settext( 'this.field.fixedsize = ' + this.field.fixedsize )"
- />
+ onfocus="this.settext( 'this.field.fixedsize = ' + this.field.fixedsize )"
+ />
</view>
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/text/font2.lzx
===================================================================
--- openlaszlo/branches/devildog/test/text/font2.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/text/font2.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -6,7 +6,7 @@
<simplelayout spacing="5" />
<view name="a">
<text name="t">
- w
+ w
</text>
<!--red line is width from server -->
<view width="1" height="10" x="${this.parent.t.width}" bgcolor="red"/>
@@ -73,6 +73,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/text/fonts.lzx
===================================================================
--- openlaszlo/branches/devildog/test/text/fonts.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/text/fonts.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -16,7 +16,7 @@
<splash/>
<font name="lztahoe8" src="lztahoe8.ttf">
- <face src="lztahoe8b.ttf" style="bold" />
+ <face src="lztahoe8b.ttf" style="bold" />
</font>
<!-- Import some fonts. -->
@@ -25,7 +25,7 @@
</font>
<font name="Chevara" src="chevarar.ttf">
- <face src="chevaraor.ttf" style="bold" />
+ <face src="chevaraor.ttf" style="bold" />
</font>
<font name="Conga" src="congar.ttf">
@@ -33,32 +33,32 @@
</font>
<font name="Helvetica-Condensed">
- <face src="helmetcb.ttf" style="bold" />
- <face src="helmetcbi.ttf" style="bold italic" />
- <face src="helmetci.ttf" style="italic" />
- <face src="helmetcr.ttf" />
+ <face src="helmetcb.ttf" style="bold" />
+ <face src="helmetcbi.ttf" style="bold italic" />
+ <face src="helmetci.ttf" style="italic" />
+ <face src="helmetcr.ttf" />
</font>
<font name="Helvetica">
- <face src="helmetr.ttf"/>
- <face src="helmetb.ttf" style="bold" />
- <face src="helmeti.ttf" style="italic" />
- <face src="helmetbi.ttf" style="bold italic" />
+ <face src="helmetr.ttf"/>
+ <face src="helmetb.ttf" style="bold" />
+ <face src="helmeti.ttf" style="italic" />
+ <face src="helmetbi.ttf" style="bold italic" />
</font>
<font name="Times Roman">
- <face src="timmonsr.ttf" />
- <face src="timmonsb.ttf" style="bold" />
- <face src="timmonsi.ttf" style="italic" />
- <face src="timmonsbi.ttf" style="bold italic" />
+ <face src="timmonsr.ttf" />
+ <face src="timmonsb.ttf" style="bold" />
+ <face src="timmonsi.ttf" style="italic" />
+ <face src="timmonsbi.ttf" style="bold italic" />
</font>
<!-- Fonts from the examples directory -->
<font src="../resources/ttf/clawless.ttf" name="Clawless" >
- <face src="../resources/ttf/clawless.ttf" style="bold" />
+ <face src="../resources/ttf/clawless.ttf" style="bold" />
</font>
<font src="../resources/ttf/kitchen.ttf" name="Kitchen" >
- <face src="../resources/ttf/kitchen.ttf" style="bold" />
+ <face src="../resources/ttf/kitchen.ttf" style="bold" />
</font>
<!-- Laszlo Pixel Font (8) -->
@@ -251,6 +251,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/text/french-ext.lzx
===================================================================
--- openlaszlo/branches/devildog/test/text/french-ext.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/text/french-ext.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,9 +1,9 @@
<canvas width="1200" >
<debug x="200" fontsize="12"/>
-<method event="oninit">
+<handler name="oninit">
Debug.setWrapLines(true);
Debug.showInternalProperties = true;
-</method>
+</handler>
@@ -20,3 +20,4 @@
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/text/input-text.lzx
===================================================================
--- openlaszlo/branches/devildog/test/text/input-text.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/text/input-text.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -7,10 +7,10 @@
<canvas width="1000" height="800">
<font name="Helvetica">
- <face src="helmetcb.ttf" style="bold" />
- <face src="helmetcbi.ttf" style="bold italic" />
- <face src="helmetci.ttf" style="italic" />
- <face src="helmetcr.ttf" />
+ <face src="helmetcb.ttf" style="bold" />
+ <face src="helmetcbi.ttf" style="bold italic" />
+ <face src="helmetci.ttf" style="italic" />
+ <face src="helmetcr.ttf" />
</font>
<view id="v1">
@@ -40,6 +40,6 @@
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/text/key_events.lzx
===================================================================
--- openlaszlo/branches/devildog/test/text/key_events.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/text/key_events.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -7,23 +7,23 @@
<!-- </method>-->
<debug y="70"/>
<class name="myinput" extends="inputtext">
- <method event="onfocus">
+ <handler name="onfocus">
Debug.write("name="+this.name);
Debug.write('multiline='+this.multiline+" resizable="
+ this.resizable + " fixedsize="+this.fixedsize);
- </method>
- <method event="onkeyup" args="k">
+ </handler>
+ <handler name="onkeyup" args="k">
Debug.write('onkeyup '+ k + " " + this.name);
- </method>
- <method event="onkeydown" args="k">
+ </handler>
+ <handler name="onkeydown" args="k">
// shiftDown = LzKeys.isKeyDown("shift");
Debug.write('onkeydown '+ k + " " + this.name);
//_root.debug.write("...shiftDown="+shiftDown);
- </method>
- <method event="onkeypress" args="k">
+ </handler>
+ <handler name="onkeypress" args="k">
//Debug.write('onkeypress '+ k + " " + this.name);
//Debug.write('onkeypress '+ k + " " + this.name);
- </method>
+ </handler>
</class>
<view>
@@ -157,7 +157,7 @@
</view>
<simplelayout />
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/text/resize.lzx
===================================================================
--- openlaszlo/branches/devildog/test/text/resize.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/text/resize.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -18,93 +18,93 @@
<canvas width="1024" height="800">
<window title="Text Resize Tests" width="400" height="200" resizable="true">
- <text multiline="true" height="40" width="360" >Default text: Clicking the button sets the text string at runtime, but text will not resize its width automatically</text>
- <view>
- <simplelayout axis="x" spacing="10" />
- <button text="test1" onclick="parent.parent.test1()" />
- <button text="test2" onclick="parent.parent.test2()" />
- <button text="test3" onclick="parent.parent.test3()" />
- </view>
- <simplelayout axis="y" spacing="10" />
- <method name="test1">
- this.t1.setText("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
- </method>
- <method name="test2">
- this.t1.setText("1234");
- </method>
- <method name="test3">
- this.t1.setText("1234567890");
- </method>
- <text bgcolor="#ffcccc" name="t1">Initial text from server.</text>
+ <text multiline="true" height="40" width="360" >Default text: Clicking the button sets the text string at runtime, but text will not resize its width automatically</text>
+ <view>
+ <simplelayout axis="x" spacing="10" />
+ <button text="test1" onclick="parent.parent.test1()" />
+ <button text="test2" onclick="parent.parent.test2()" />
+ <button text="test3" onclick="parent.parent.test3()" />
+ </view>
+ <simplelayout axis="y" spacing="10" />
+ <method name="test1">
+ this.t1.setText("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
+ </method>
+ <method name="test2">
+ this.t1.setText("1234");
+ </method>
+ <method name="test3">
+ this.t1.setText("1234567890");
+ </method>
+ <text bgcolor="#ffcccc" name="t1">Initial text from server.</text>
</window>
<window title="Text Resize Tests" width="400" height="200" resizable="true" y="200" >
- <text>resize="true": Text should resize automatically at runtime</text>
- <view>
- <simplelayout axis="x" spacing="10" />
- <button text="test1" onclick="parent.parent.test1()" />
- <button text="test2" onclick="parent.parent.test2()" />
- <button text="test3" onclick="parent.parent.test3()" />
- </view>
- <simplelayout axis="y" spacing="10" />
- <method name="test1">
- this.t1.setText("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
- </method>
- <method name="test2">
- this.t1.setText("1234");
- </method>
- <method name="test3">
- this.t1.setText("1234567890");
- </method>
- <text resize="true" bgcolor="#ffcccc" name="t1">Initial text from server.</text>
+ <text>resize="true": Text should resize automatically at runtime</text>
+ <view>
+ <simplelayout axis="x" spacing="10" />
+ <button text="test1" onclick="parent.parent.test1()" />
+ <button text="test2" onclick="parent.parent.test2()" />
+ <button text="test3" onclick="parent.parent.test3()" />
+ </view>
+ <simplelayout axis="y" spacing="10" />
+ <method name="test1">
+ this.t1.setText("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
+ </method>
+ <method name="test2">
+ this.t1.setText("1234");
+ </method>
+ <method name="test3">
+ this.t1.setText("1234567890");
+ </method>
+ <text resize="true" bgcolor="#ffcccc" name="t1">Initial text from server.</text>
</window>
<window title="Text Resize Tests" width="400" height="200" resizable="true" x="400" y="0">
- <text>sizeToHeight="true": Clicking the button sets the text string at runtime</text>
- <view>
- <simplelayout axis="x" spacing="10" />
- <button text="test1" onclick="parent.parent.test1()" />
- <button text="test2" onclick="parent.parent.test2()" />
- <button text="test3" onclick="parent.parent.test3()" />
- </view>
- <simplelayout axis="y" spacing="10" />
- <method name="test1">
- this.t1.setText("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
- </method>
- <method name="test2">
+ <text>sizeToHeight="true": Clicking the button sets the text string at runtime</text>
+ <view>
+ <simplelayout axis="x" spacing="10" />
+ <button text="test1" onclick="parent.parent.test1()" />
+ <button text="test2" onclick="parent.parent.test2()" />
+ <button text="test3" onclick="parent.parent.test3()" />
+ </view>
+ <simplelayout axis="y" spacing="10" />
+ <method name="test1">
+ this.t1.setText("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
+ </method>
+ <method name="test2">
<![CDATA[
- this.t1.sizeToHeight = true;
- this.t1.setText("1234\n<b>56</b>78\n9101112");
+ this.t1.sizeToHeight = true;
+ this.t1.setText("1234\n<b>56</b>78\n9101112");
]]>
- </method>
- <method name="test3">
- this.t1.setText("1234567890");
- </method>
- <text multiline="true" bgcolor="#ffcccc" name="t1">Initial <b>text</b> from server.</text>
- <inputtext bgcolor="#ffcccc" name="t2">Initial text from server.</inputtext>
+ </method>
+ <method name="test3">
+ this.t1.setText("1234567890");
+ </method>
+ <text multiline="true" bgcolor="#ffcccc" name="t1">Initial <b>text</b> from server.</text>
+ <inputtext bgcolor="#ffcccc" name="t2">Initial text from server.</inputtext>
</window>
<dataset name="foo">
<bar>
- <blah>1. This is some text</blah>
- <blah>2. This is some more text</blah>
- <blah>3. This is even more and more text which is so very long</blah>
+ <blah>1. This is some text</blah>
+ <blah>2. This is some more text</blah>
+ <blah>3. This is even more and more text which is so very long</blah>
</bar>
</dataset>
<window title="Text Resize Tests" width="400" height="200" resizable="true" x="400" y="200">
- <simplelayout axis="y" />
- <text>datapath test: text should size its width automatically, resize="true"</text>
+ <simplelayout axis="y" />
+ <text>datapath test: text should size its width automatically, resize="true"</text>
<text resize="true" bgcolor="#ccffff" name="key" width="30" datapath="foo:/bar/blah/text()" />
<simplelayout axis="y" spacing="4"/>
</window>
<window title="Text Resize Tests" width="400" height="200" resizable="true" x="0" y="400">
- <simplelayout axis="y" />
- <text>datapath test: text will be fixed width, truncated</text>
+ <simplelayout axis="y" />
+ <text>datapath test: text will be fixed width, truncated</text>
<text width="90" bgcolor="#ccffff" name="key" datapath="foo:/bar/blah/text()" />
<simplelayout axis="y" spacing="4"/>
</window>
@@ -115,6 +115,6 @@
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/text/scroll.lzx
===================================================================
--- openlaszlo/branches/devildog/test/text/scroll.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/text/scroll.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -28,9 +28,9 @@
if (this.onpos) this.onpos.sendEvent(p);
}
</method>
- <method event="onscroll">
+ <handler name="onscroll">
this.setPos(-this.lineheight * (this.scroll - 1), true);
- </method>
+ </handler>
</inputtext>
<scrollbar axis="y" scrollattr="pos"
stepsize="${parent.inp.lineheight}"
@@ -62,9 +62,9 @@
if (this.onpos) this.onpos.sendEvent(p);
}
</method>
- <method event="onscroll">
+ <handler name="onscroll">
this.setPos(-this.lineheight * (this.scroll - 1), true);
- </method>
+ </handler>
</text>
<scrollbar axis="y" scrollattr="pos"
stepsize="${parent.field.lineheight}"
@@ -102,3 +102,4 @@
</scrolltext>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/text/tilde.lzx
===================================================================
--- openlaszlo/branches/devildog/test/text/tilde.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/text/tilde.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -7,9 +7,9 @@
</font>
<font name="Chevara" src="chevarar.ttf">
- <face src="chevaraor.ttf" style="bold" />
+ <face src="chevaraor.ttf" style="bold" />
</font>
- <view>
+ <view>
<simplelayout axis="y" spacing="10" />
<view width="400" font="Chevara" fontsize="14">
<simplelayout axis="y" spacing="10" />
@@ -29,7 +29,7 @@
</view>
</view>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
</canvas>
Modified: openlaszlo/branches/devildog/test/text/whitespace2.lzx
===================================================================
--- openlaszlo/branches/devildog/test/text/whitespace2.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/text/whitespace2.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -2,10 +2,10 @@
<font name="Times Roman">
- <face src="timmonsr.ttf" />
- <face src="timmonsb.ttf" style="bold" />
- <face src="timmonsi.ttf" style="italic" />
- <face src="timmonsbi.ttf" style="bold italic" />
+ <face src="timmonsr.ttf" />
+ <face src="timmonsb.ttf" style="bold" />
+ <face src="timmonsi.ttf" style="italic" />
+ <face src="timmonsbi.ttf" style="bold italic" />
</font>
<splash/>
@@ -36,6 +36,6 @@
</view>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/undefined.lzx
===================================================================
--- openlaszlo/branches/devildog/test/undefined.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/undefined.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -9,9 +9,9 @@
var obj = {x: 1, f: false, n: null}
Debug.write("Expect no warning")
-var x = obj.x; // no warning
+var x = obj.x; // no warning
Debug.write("Expect reference to undefined property y")
-var py = obj.y; // undefined property
+var py = obj.y; // undefined property
Debug.write("Expect no warning")
var pf = obj.f;
Debug.write("Expect no warning")
@@ -19,35 +19,35 @@
Debug.write("Expect undefined object does not have a property x")
// TODO: [2002-10-28 ptw] Remove when compiler fixed
Debug.write("Also spurious reference to undefined property x")
-var pz = undef.x; // undefined object
+var pz = undef.x; // undefined object
Debug.write("Expect only one warning per above")
// TODO: [2002-10-28 ptw] Remove when compiler fixed
Debug.write("including spurious undefined property x")
// Test that only one warning is printed
for (var i = 0; i < 10; i++) {
- undef.x; // undefined object
+ undef.x; // undefined object
}
Debug.write("Expect call to undefined function undef")
-undef(); // call to undefined object
+undef(); // call to undefined object
Debug.write("Expect call to undefined method undef")
-obj.undef(); // call to undefined method
+obj.undef(); // call to undefined method
Debug.write("Expect undefined object does not have a property a")
-undef.a(); // undefined object call
+undef.a(); // undefined object call
Debug.write("Expect call to non-function obj (type object)")
-obj(); // call to non-function
+obj(); // call to non-function
function f() {}
Debug.write("Expect no warning")
-f(); // no warning
+f(); // no warning
f.p = 1;
Debug.write("Expect no warning")
-var fp = f.p; // no warning
+var fp = f.p; // no warning
]]></script>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/vbox-test.lzx
===================================================================
--- openlaszlo/branches/devildog/test/vbox-test.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/vbox-test.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,11 +1,12 @@
<canvas>
<vbox>
- <method event="onclick">
+ <handler name="onclick">
this.animate('spacing', this.spacing == 10 ? 0 : 10, 1000);
- </method>
+ </handler>
<text>click</text>
<text>to</text>
<text>animate</text>
<text>spacing</text>
</vbox>
</canvas>
+<!-- Copyright 2008 Laszlo Systems, Inc. All Rights Reserved. Use is subject to license terms. -->
Modified: openlaszlo/branches/devildog/test/video/test-camera-mute-multiple.lzx
===================================================================
--- openlaszlo/branches/devildog/test/video/test-camera-mute-multiple.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/video/test-camera-mute-multiple.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,5 +1,5 @@
<!-- X_LZ_COPYRIGHT_BEGIN ************************************************
-* Copyright 2006-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ************************************************** -->
@@ -30,11 +30,11 @@
value="${parent.v.c.show}"
>
- <method event="onvalue"><![CDATA[
+ <handler name="onvalue"><![CDATA[
//Debug.write("Setting camera show", this.value);
classroot.v.c.setAttribute("show", this.value);
]]>
- </method>
+ </handler>
</checkbox>
Modified: openlaszlo/branches/devildog/test/video/test-camera.lzx
===================================================================
--- openlaszlo/branches/devildog/test/video/test-camera.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/video/test-camera.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,5 +1,5 @@
<!-- X_LZ_COPYRIGHT_BEGIN ************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ************************************************** -->
@@ -14,13 +14,13 @@
<attribute name="index" value="null"/>
- <method event="onclick"><![CDATA[
+ <handler name="onclick"><![CDATA[
gCamera.setAttribute("deviceindex", this.index);
if (!gCamera.show) {
gCamera.setAttribute("show", true);
}
]]>
- </method>
+ </handler>
</class>
@@ -32,7 +32,7 @@
>
- <method event="oninit"> <![CDATA[
+ <handler name="oninit"> <![CDATA[
var a =
gCamera.getCameraNames();
@@ -49,7 +49,7 @@
Debug.write(c);
}
]]>
- </method>
+ </handler>
</class>
Modified: openlaszlo/branches/devildog/test/video/test-live-sep.lzx
===================================================================
--- openlaszlo/branches/devildog/test/video/test-live-sep.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/video/test-live-sep.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,5 +1,5 @@
<!-- X_LZ_COPYRIGHT_BEGIN ************************************************
-* Copyright 2006 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ************************************************** -->
@@ -53,7 +53,7 @@
value="${(cam.show == false) ? 'broadcast' : 'stop'}"
/>
- <method event="onclick"><![CDATA[
+ <handler name="onclick"><![CDATA[
if (cam.show == false) {
live.stream.setAttribute('url', parent.username.text);
live.stream.broadcast();
@@ -63,7 +63,7 @@
cam.setAttribute('show', false);
}
]]>
- </method>
+ </handler>
</button>
Modified: openlaszlo/branches/devildog/test/video/test-live.lzx
===================================================================
--- openlaszlo/branches/devildog/test/video/test-live.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/video/test-live.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,5 +1,5 @@
<!-- X_LZ_COPYRIGHT_BEGIN ************************************************
-* Copyright 2006-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ************************************************** -->
@@ -47,7 +47,7 @@
value="${cam.show == false ? 'Broadcast' : 'Stop'}"
/>
- <method event="onclick"><![CDATA[
+ <handler name="onclick"><![CDATA[
if (cam.show == false) {
cam.setAttribute("show", true);
live.stream.broadcast();
@@ -56,7 +56,7 @@
cam.setAttribute("show", false);
}
]]>
- </method>
+ </handler>
</button>
Modified: openlaszlo/branches/devildog/test/video/test-muting-and-playing.lzx
===================================================================
--- openlaszlo/branches/devildog/test/video/test-muting-and-playing.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/video/test-muting-and-playing.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -1,5 +1,5 @@
<!-- X_LZ_COPYRIGHT_BEGIN ************************************************
-* Copyright 2006-2007 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2006-2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ************************************************** -->
@@ -70,7 +70,7 @@
value="${(s1.broadcasting == false) ? 'broadcast' : 'stop broadcasting'}"
/>
- <method event="onclick"><![CDATA[
+ <handler name="onclick"><![CDATA[
if (cam.show == false) {
live.stream.setAttribute('url', parent.username.text);
live.stream.broadcast();
@@ -80,7 +80,7 @@
cam.setAttribute('show', false);
}
]]>
- </method>
+ </handler>
</button>
Modified: openlaszlo/branches/devildog/test/vtabslider.lzx
===================================================================
--- openlaszlo/branches/devildog/test/vtabslider.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/vtabslider.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -2,12 +2,12 @@
<include href="resources/lzx/vts.lzx"/>
<window id="wd" title="TabSlider Demo" x="100" y="100" width="300" height="200" resizable="true" >
<tabslider id="tslider"
- bgcolor="white"
- height="${immediateparent.height}"
- width="${immediateparent.width}"
- spacing="2"
- minTabWidth="20"
- slideDuration="333" >
+ bgcolor="white"
+ height="${immediateparent.height}"
+ width="${immediateparent.width}"
+ spacing="2"
+ minTabWidth="20"
+ slideDuration="333" >
<tabelement bgcolor="red" />
<tabelement bgcolor="blue" />
<tabelement bgcolor="red" />
@@ -17,6 +17,6 @@
<button text="Add Green Tab" onclick="new tabelement(tslider,{bgcolor:0x00FF00}); " />
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
Modified: openlaszlo/branches/devildog/test/wide_data.lzx
===================================================================
--- openlaszlo/branches/devildog/test/wide_data.lzx 2008-02-06 05:17:39 UTC (rev 7964)
+++ openlaszlo/branches/devildog/test/wide_data.lzx 2008-02-06 19:57:39 UTC (rev 7965)
@@ -4,29 +4,29 @@
<window height="300" width="600">
<simplelayout axis="y" spacing="1"/>
<view name="column" bgcolor="yellow" height="500"
- datapath="data:/data/industry[1]" options="lazyreplication">
+ datapath="data:/data/industry[1]" options="lazyreplication">
<text name="title" width="199" datapath="@code"/>
<simplelayout axis="y" spacing="1"/>
<view>
- <view name="header" bgcolor="blue">
- <text width="199">Company Name</text>
- <text x="200" width="199">1-Day Price Chg %</text>
- <text x="400" width="199">Market Cap</text>
- </view>
- <simplelayout axis="y" spacing="1"/>
- <view>
- <simplelayout axis="y" spacing="1"/>
- <view name="row" datapath="company" bgcolor="green" options="lazyreplication">
- <text name="coname" width="199" datapath="@name"/>
- <text x="200" name="oneday" width="199" datapath="@oneday"/>
- <text x="400" name="cap" width="199" datapath="@cap"/>
- </view>
- </view>
+ <view name="header" bgcolor="blue">
+ <text width="199">Company Name</text>
+ <text x="200" width="199">1-Day Price Chg %</text>
+ <text x="400" width="199">Market Cap</text>
+ </view>
+ <simplelayout axis="y" spacing="1"/>
+ <view>
+ <simplelayout axis="y" spacing="1"/>
+ <view name="row" datapath="company" bgcolor="green" options="lazyreplication">
+ <text name="coname" width="199" datapath="@name"/>
+ <text x="200" name="oneday" width="199" datapath="@oneday"/>
+ <text x="400" name="cap" width="199" datapath="@cap"/>
+ </view>
+ </view>
</view>
</view>
</window>
</canvas>
<!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc. All Rights Reserved. *
+* Copyright 2001-2004, 2008 Laszlo Systems, Inc. All Rights Reserved. *
* Use is subject to license terms. *
* X_LZ_COPYRIGHT_END ****************************************************** -->
More information about the Laszlo-checkins
mailing list