[Laszlo-dev] [Resent] For Review: Change 20070705-ptw-R Summary: Move formatToString into LFC
Henry Minsky
henry.minsky at gmail.com
Mon Jul 9 17:23:31 PDT 2007
I'm looking at it now..
On 7/9/07, P T Withington <ptw at pobox.com> wrote:
>
> [Resent: Henry, will you have a chance to look at this, or do you
> want me to check in so you can review 'in situ'?]
>
> Change 20070705-ptw-R by ptw at dueling-banjos.local on 2007-07-05
> 14:42:10 EDT
> in /Users/ptw/OpenLaszlo/legals
> for http://svn.openlaszlo.org/openlaszlo/branches/legals
>
> Summary: Move formatToString into LFC
>
> New Features: lz.text has a new method, `format` that implements most
> of `printf` for setting the text (content).
>
> Bugs Fixed:
> LPP-3073 'Move Format and formatToString from Debug to LFC'
>
> Technical Reviewer: hminsky (pending)
> QA Reviewer: frisco (pending)
> Doc Reviewer: jgrandy, jsundman (pending)
>
> Documentation:
> Here is an example of using the text `format` method to set the
> contents of a text node.
>
> <canvas>
> <class name="clickClock" extends="text">
> <attribute name="dayTable"
> value='["Sunday", "Monday", "Tuesday",
> "Wednesday", "Thursday", "Friday", "Saturday"]'
> />
> <handler name="onclick">
> var now = new Date;
> this.format("You clicked me at %02d:%02d:%02d on %s",
> now.getHours(),
> now.getMinutes(),
> now.getSeconds(),
> dayTable[now.getDay()]);
> </handler>
> </class>
> <clickClock>
> Click Me!
> </clickClock>
> </canvas>
>
> Release Notes:
>
> Details:
> lztext: Duplicated debugger format tests for text
>
> debugger/LzFormat, compiler/LzFormatter: moved pad and
> formatToString out of debugger into compiler as a mixin.
>
> core/Library: moved class support to compiler.
>
> LzText: mix in LzFormatter, add format method.
>
> LaszloLibrary, compiler/Library: compiler runtime support is 3
> files now: runtime, class, and formatter.
>
> Parser.jjt: add `mixin` as an alias for `trait` and `with` as an
> alias for `inherits`. This will allow us to transition to the new
> approved syntax for mixins.
>
> Tests:
> ant lztest, smokecheck
>
> Files:
> M test/smoke/lztext.lzl
> M WEB-INF/lps/lfc/debugger/LzFormat.lzs
> M WEB-INF/lps/lfc/core/Library.lzs
> D WEB-INF/lps/lfc/core/Class.lzs
> M WEB-INF/lps/lfc/views/LzText.lzs
> M WEB-INF/lps/lfc/LaszloLibrary.lzs
> A WEB-INF/lps/lfc/compiler/LzFormatter.lzs
> A WEB-INF/lps/lfc/compiler/Library.lzs
> A + WEB-INF/lps/lfc/compiler/Class.lzs
> M WEB-INF/lps/server/sc/src/org/openlaszlo/sc/Parser.jjt
>
> Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20070705-ptw-
> R.tar
>
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20070709/4d08ef32/attachment.html
More information about the Laszlo-dev
mailing list