Author: hqm
Date: 2008-03-24 19:01:17 -0700 (Mon, 24 Mar 2008)
New Revision: 8382

Modified:
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/compiler/LzFormatter.lzs
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/dummyclasses.js
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/data/Library.lzs
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/helpers/LzState.lzs
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/services/Library.lzs
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/services/LzModeManager.lzs
   
openlaszlo/branches/devildog/WEB-INF/lps/lfc/services/platform/dhtml/LzModeManager.js
   
openlaszlo/branches/devildog/WEB-INF/lps/lfc/services/platform/swf/LzModeManager.as
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloCanvas.js
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloView.lzs
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzInputText.lzs
   openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzText.lzs
Log:
Change 20080324-hqm-V by [EMAIL PROTECTED] on 2008-03-24 22:00:20 EDT
    in /Users/hqm/openlaszlo/devildog2/WEB-INF/lps/lfc
    for http://svn.openlaszlo.org/openlaszlo/branches/devildog/WEB-INF/lps/lfc

Summary:  more merging of swf8/swf9 LFC

New Features:

Bugs Fixed:

Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:

for swf9, the data library is commented out and dummy classes are called
to get it to compile
    

Tests:

swf8/dhtml smokecheck, calendar





Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/compiler/LzFormatter.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/compiler/LzFormatter.lzs       
2008-03-25 01:54:27 UTC (rev 8381)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/compiler/LzFormatter.lzs       
2008-03-25 02:01:17 UTC (rev 8382)
@@ -21,13 +21,13 @@
   var message = '';
   var length = 0;
 
-  function LzMessage (message) {
-    if (arguments.length > 0) {
+  function LzMessage (message = null) {
+    if (message != null) {
       this.appendInternal('' + message, message);
     }
   }
 
-  function appendInternal (str, obj) {
+  function appendInternal (str, obj = null) {
     this.message += str;
     this.length = this.message.length;
   }
@@ -54,6 +54,7 @@
  */
 mixin LzFormatter {
 
+
   /**
    * pad or trim a string to a specified length
    *

Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/dummyclasses.js
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/dummyclasses.js   
2008-03-25 01:54:27 UTC (rev 8381)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/dummyclasses.js   
2008-03-25 02:01:17 UTC (rev 8382)
@@ -28,51 +28,10 @@
 
 */
 
-/*
-public class LzParsedPath {
-    public static function trim(rp:String):String { return rp; }
-}
 
-public class LzDataset {
-    public static var slashPat = "/";
-}
-*/
+#include "core/dummydata.js"
 
 
-
-/*
-public class LzDataAttrBind {
-    public function LzDataAttrBind(a:*,b:*,c:*) { }
-}
-
-public class LzDatapath {
-    public function LzDatapath (...rest) { }
-}
-*/
-
-/*
-class LzDataElement  extends LzDataNode {
-    public var children = [];
-    public function  LzDataElement (name , cattrs) {
-    }
-
-    public function setChildNodes(l) {
-        children.push(l);
-        trace("setChildNodes", l);
-    }
-
-}
-*/
-
-/*
-class LzDataText  extends LzDataNode {
-    public function LzDataText (nv) {
-        
-    }
-
-}
-*/
-
 public class LzCSSStyle {
 
     public static  function  getPropertyValueFor(a:*, b:*):* { return null;}
@@ -95,6 +54,16 @@
     public static function toAbsoluteURL(url, secure) {
         return null;
     }
+
+    public static function getLoadURL() {
+        return null;
+    }
+
+    public static function getVersion() {
+        return null;
+    }
+
+
 }
 
 public class LzFocus {
@@ -134,3 +103,7 @@
     }
               }#
 }
+
+class LzTimer {
+    static function addTimer( ...rest ) { }
+}

Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/data/Library.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/data/Library.lzs       
2008-03-25 01:54:27 UTC (rev 8381)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/data/Library.lzs       
2008-03-25 02:01:17 UTC (rev 8382)
@@ -8,7 +8,8 @@
   */
 
 if ($swf9) {
-#include "data/LzDataNode.js"
+    /*
+      #include "data/LzDataNode.js"
 #include "data/LzMiniNode.js"
 #include "data/LzDataElement.js"
 #include "data/LzDataText.js"
@@ -29,6 +30,7 @@
 
 #include "data/LzLazyReplicationManager.js"
 #include "data/LzResizeReplicationManager.js"
+    */
 } else {
 #include "data/LzDataNode.lzs"
 #include "data/LzMiniNode.lzs"

Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/helpers/LzState.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/helpers/LzState.lzs    
2008-03-25 01:54:27 UTC (rev 8381)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/helpers/LzState.lzs    
2008-03-25 02:01:17 UTC (rev 8382)
@@ -140,11 +140,11 @@
   */
 function $lzc$set___LZsourceLocation(v) { this.__LZsetProperty(v, 
'__LZsourceLocation'); }
 /** @access private */
-var heldargs;
+var heldArgs;
 var handlerMethodNames;
 /** @access private */
 var releasedconstraints;
-var appliedchildren;
+var appliedChildren;
 var isapplied = false;
 
 /**

Modified: 
openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as    
2008-03-25 01:54:27 UTC (rev 8381)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as    
2008-03-25 02:01:17 UTC (rev 8382)
@@ -47,7 +47,7 @@
         public var password:Boolean = false;
         public var scrollheight:Number = 0;
 
-        public function LzTextSprite (newowner = null) {
+        public function LzTextSprite (newowner = null, args = null) {
             super(newowner,false);
             // owner:*, isroot:Boolean
             this.textfield = createTextField(0,0,400,20);

Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/services/Library.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/services/Library.lzs   
2008-03-25 01:54:27 UTC (rev 8381)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/services/Library.lzs   
2008-03-25 02:01:17 UTC (rev 8382)
@@ -11,7 +11,7 @@
 #include "services/LzGlobalMouse.lzs"
 
 if ($swf9) {
-    #include "services/LzModeManager.lzs"
+    #include "services/LzModeManager.js"
 } else {
     #include "services/LzModeManager.lzs"
 }

Modified: 
openlaszlo/branches/devildog/WEB-INF/lps/lfc/services/LzModeManager.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/services/LzModeManager.lzs     
2008-03-25 01:54:27 UTC (rev 8381)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/services/LzModeManager.lzs     
2008-03-25 02:01:17 UTC (rev 8382)
@@ -47,28 +47,19 @@
   * @devnote Manages the modal states of views and also notifies views ( that 
have
   * registered with it ) when their focus has changed.
   */
-public class LzModeManagerBase {
+var LzModeManager = new Object();
 
-if ($swf9)  {
-      #passthrough (toplevel:true) {  
-
-  import flash.utils.*;
-
-}#
-}
-
 /** Sent when the mode changes. */
- var onmode = LzDeclaredEvent;
+LzModeManager.onmode = LzDeclaredEvent;
 
 /** @access private */
- var __LZlastclick = null;
- var __LZlastClickTime = 0;
- var willCall = false;
- var eventsLocked = false;
+LzModeManager.__LZlastclick = null;
+LzModeManager.willCall = false;
+LzModeManager.eventsLocked = false;
 
- var modeArray = new Array();
+LzModeManager.modeArray = new Array();
 
- function toString (){
+LzModeManager.toString = function (){
     return "mode manager";
 }
 
@@ -77,12 +68,14 @@
   * Pushes the view onto the stack of modal views
   * @param LzView view: The view intending to have modal iteraction
   */
- function makeModal ( view ) {
-     this.modeArray.push( view );
-    if (this.onmode.ready) this.onmode.sendEvent( view );
-    var f = LzFocus.getFocus();
-    if ( f && ! f.childOf( view ) ){
-        LzFocus.clearFocus();
+LzModeManager.makeModal = function ( view ) {
+    if (this.modeArray.length == 0 || !this.hasMode( view )) {
+        this.modeArray.push( view );
+        if (this.onmode.ready) this.onmode.sendEvent( view );
+        var f = LzFocus.getFocus();
+        if ( f && ! f.childOf( view ) ){
+            LzFocus.clearFocus();
+        }
     }
 }
 
@@ -90,13 +83,13 @@
   * Removes the view (and all the views below it) from the stack of modal views
   * @param LzView view: The view to be released of modal interaction
   */
- function release ( view ) {
+LzModeManager.release = function ( view ) {
     //releases all views past this one in the modelist as well
     for ( var i = this.modeArray.length-1 ; i >=0 ; i-- ){
         if ( this.modeArray[ i ] == view ){
             this.modeArray.splice( i , this.modeArray.length - i );
             var newmode = this.modeArray[ i - 1 ];
-            if (onmode.ready) onmode.sendEvent( newmode || null );
+            if (this.onmode.ready) this.onmode.sendEvent( newmode || null );
             var f = LzFocus.getFocus();
             if ( newmode && f && ! f.childOf( newmode ) ){
                 LzFocus.clearFocus();
@@ -109,10 +102,10 @@
 /**
   * Clears all modal views from the stack
   */
- function releaseAll ( ) {
+LzModeManager.releaseAll = function ( ) {
     // reset array to remove all views
     this.modeArray = new Array();
-    if (onmode.ready) onmode.sendEvent( null );
+    if (this.onmode.ready) this.onmode.sendEvent( null );
 }
 
 /**
@@ -122,18 +115,17 @@
   * @param LzView view: the view that received the event
   * @param String eventStr: the event string
   */
- function handleMouseEvent ( view, eventStr ) {
+LzModeManager.handleMouseEvent= function ( view, eventStr ) {
+    //Debug.warn("%w, %w", view , eventStr);
+
     if (eventStr == "onmouseup") LzTrack.__LZmouseup();
 
+
     var dosend = true;
     var isinputtext = false;
 
-    if ($swf9) {
-    } else {
-    // TODO [hqm 2008-01] What is this supposed to be doing, and where is 
_findInputtextSelection defined??
-        if (view == null ) {  // check if the mouse event is in a inputtext
-            view = this.__findInputtextSelection(); 
-        }
+    if (view == null ) {  // check if the mouse event is in a inputtext
+        view = this.__findInputtextSelection(); 
     }
 
     LzGlobalMouse.__mouseEvent(eventStr, view);
@@ -160,13 +152,13 @@
 
     if ( dosend ){
         //check for double-click
-        if ( this.eventStr == "onclick" ){
+        if ( eventStr == "onclick" ){
             if ( this.__LZlastclick == view  &&
                ('ondblclick' in view && view.ondblclick) && 
                (view.ondblclick.getDelegateCount() > 0) &&
                 (getTimer() - this.__LZlastClickTime)< view.DOUBLE_CLICK_TIME 
){
                     //this is a double-click
-                    this.eventStr = "ondblclick";
+                    eventStr = "ondblclick";
                     this.__LZlastclick = null;
             } else {
                 this.__LZlastclick = view;
@@ -185,24 +177,17 @@
 
     //this on matters for onmouseup and onmousedown, but it's easier to just
     //set it regardless
-    if ($swf9) {
-    // TODO [hqm 2008-01] I don't know what this is for... 
-    //   this[ "haveGlobal" + eventStr ] = false;
-    } else {
-        this[ "haveGlobal" + eventStr ] = false;
-    }
+    this[ "haveGlobal" + eventStr ] = false;
 
 }
 
-    function __findInputtextSelection  () { return null};
-
 /**
   * return true if the given view is allowed to receive the focus
   * any view that is a child of the view that has the mode may be focused
   * other views may not
   * @access private
   */
- function __LZallowFocus ( view ) {
+LzModeManager.__LZallowFocus= function ( view ) {
     var len = this.modeArray.length;
     return len == 0 || view.childOf ( this.modeArray[len-1] );
 }
@@ -210,15 +195,15 @@
 /**
   * Prevents all mouse events from firing.
   * */
- function globalLockMouseEvents (){
-     this.eventsLocked = true;
+LzModeManager.globalLockMouseEvents = function (){
+    this.eventsLocked = true;
 }
 
 /**
   * Restore normal mouse event firing.
   * */
- function globalUnlockMouseEvents (){
-     this.eventsLocked = false;
+LzModeManager.globalUnlockMouseEvents = function (){
+    this.eventsLocked = false;
 }
 
 /**
@@ -227,7 +212,7 @@
   * @return Boolean: true if the view is in the modelist
   * 
   */
- function hasMode ( view ){
+LzModeManager.hasMode = function ( view ){
     for ( var i = this.modeArray.length -1 ; i >= 0; i-- ){
         if ( view == this.modeArray[ i ] ){
             return true;
@@ -239,9 +224,9 @@
 /**
   * @access private
   */
- function getModalView ( ){
+LzModeManager.getModalView = function ( ){
     return this.modeArray[ this.modeArray.length - 1] || null;
 }
-}
 
-
+// Register for callbacks from the kernel
+LzMouseKernel.setCallback(LzModeManager, 'rawMouseEvent');

Modified: 
openlaszlo/branches/devildog/WEB-INF/lps/lfc/services/platform/dhtml/LzModeManager.js
===================================================================
--- 
openlaszlo/branches/devildog/WEB-INF/lps/lfc/services/platform/dhtml/LzModeManager.js
       2008-03-25 01:54:27 UTC (rev 8381)
+++ 
openlaszlo/branches/devildog/WEB-INF/lps/lfc/services/platform/dhtml/LzModeManager.js
       2008-03-25 02:01:17 UTC (rev 8382)
@@ -9,30 +9,22 @@
   * @subtopic Services
   */
 
-public class LzModeManagerClass extends LzModeManagerBase {
+LzModeManager.rawMouseEvent = function(me) {
+    this.handleMouseEvent( null , me );
+}
 
-    function rawMouseEvent (me) {
-        this.handleMouseEvent( null , me );
-    }
-
-    function handleMouseButton (view, eventName) {
-        this.handleMouseEvent( view , eventName );
-    }
+LzModeManager.handleMouseButton = function(view, eventName) {
+    this.handleMouseEvent( view , eventName );
+}
     
-    /**
-     * Finds the view for if the mouse event occurred in an input text field 
-     * TODO: implement
-     * @access private
-     */
-    override function __findInputtextSelection  () {
-        if (LzInputTextSprite.prototype.__focusedSprite 
-            && LzInputTextSprite.prototype.__focusedSprite.owner) {
-            return LzInputTextSprite.prototype.__focusedSprite.owner;
-        }
+/**
+  * Finds the view for if the mouse event occurred in an input text field 
+  * TODO: implement
+  * @access private
+  */
+LzModeManager.__findInputtextSelection = function () {
+    if (LzInputTextSprite.prototype.__focusedSprite 
+        && LzInputTextSprite.prototype.__focusedSprite.owner) {
+        return LzInputTextSprite.prototype.__focusedSprite.owner;
     }
 }
-
-var LzModeManager:LzModeManagerClass = new LzModeManagerClass();
-// Register for callbacks from the kernel
-LzMouseKernel.setCallback(LzModeManager, 'rawMouseEvent');
-

Modified: 
openlaszlo/branches/devildog/WEB-INF/lps/lfc/services/platform/swf/LzModeManager.as
===================================================================
--- 
openlaszlo/branches/devildog/WEB-INF/lps/lfc/services/platform/swf/LzModeManager.as
 2008-03-25 01:54:27 UTC (rev 8381)
+++ 
openlaszlo/branches/devildog/WEB-INF/lps/lfc/services/platform/swf/LzModeManager.as
 2008-03-25 02:01:17 UTC (rev 8382)
@@ -10,18 +10,16 @@
   */
 
 /** */
-public class LzModeManagerClass extends LzModeManagerBase {
+LzModeManager.clickStream = new Array();
+LzModeManager.clstDel = new LzDelegate( LzModeManager , "checkClickStream" );
 
-static var clickStream = new Array();
-static var clstDel = new LzDelegate( LzModeManager , "checkClickStream" );
+LzModeManager.clstDict ={ onmouseup : 1 , onmousedown: 2 };
 
-static var  clstDict ={ onmouseup : 1 , onmousedown: 2 };
-
 /**
   * Called by clickable movieclip
   * @access private
   */
-static function handleMouseButton  ( view , eventStr){
+LzModeManager.handleMouseButton = function ( view , eventStr){
     //Debug.write('handleMouseButton', view, eventStr);
     this.clickStream.push( this.clstDict[ eventStr ] + 2);
 
@@ -39,7 +37,7 @@
   * 
   * @access private
   */
-static function rawMouseEvent  ( eName ) {
+LzModeManager.rawMouseEvent = function ( eName ) {
     // If applicable, update the current sprite's insertion position/size.
     var focus = Selection.getFocus();
     if (focus) {
@@ -60,12 +58,12 @@
     this.callNext();
 }
 
-static var WAIT_FOR_CLICK = 4;
+LzModeManager.WAIT_FOR_CLICK = 4;
 /**
   * Cleanup method for raw mouseup
   * @access private
   */
-static function checkClickStream  (){
+LzModeManager.checkClickStream = function (){
     this.willCall = false;
 
     //clickstream that looks like this
@@ -132,7 +130,7 @@
 /**
   * @access private
   */
-static function callNext  (){
+LzModeManager.callNext = function (){
     if ( !this.willCall ){
         this.willCall = true;
         LzIdle.callOnIdle( this.clstDel );
@@ -143,7 +141,7 @@
   * Finds the view for if the mouse event occurred in an input text field 
   * @access private
   */
-override static function __findInputtextSelection  () {
+LzModeManager.__findInputtextSelection = function () {
     var ss = Selection.getFocus();
     if ( ss != null ){
         var focusview = eval(ss + '.__lzview');
@@ -151,7 +149,3 @@
         if ( focusview != undefined ) return focusview;
     } 
 }
-}
-var LzModeManager:LzModeManagerClass = new LzModeManagerClass();
-// Register for callbacks from the kernel
-LzMouseKernel.setCallback(LzModeManager, 'rawMouseEvent');

Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloCanvas.js
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloCanvas.js  
2008-03-25 01:54:27 UTC (rev 8381)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloCanvas.js  
2008-03-25 02:01:17 UTC (rev 8382)
@@ -87,7 +87,9 @@
 
 
 
-function LzCanvas ( args ) {
+function LzCanvas ( parent, args ) {
+    super(null, args);
+
     // TODO: [2006-05-19 ptw] The original did not do this, should we?
     // super(null, args);
     // No, we can't.  But you have to be aware that if you futz with
@@ -285,8 +287,12 @@
   * called.
   * @access private
   */
-override function setResource ( ) {
-    Object.error("You can't set a resource for the canvas.");
+override function setResource (v ) {
+    if ($swf9) {
+        //
+    } else {
+        Object.error("You can't set a resource for the canvas.");
+    }
 }
 
 
@@ -358,7 +364,13 @@
   */
 override function __LZinstantiationDone (){
     this.percentcreated = 1;
-    this.updatePercentCreated = null;
+
+    if ($swf9) {
+        // 
+    } else {
+        this.updatePercentCreated = null;
+    }
+
     if (this.onpercentcreated.ready) this.onpercentcreated.sendEvent( 
this.percentcreated );
 
     if ( this.initdelay > 0 ){
@@ -453,7 +465,7 @@
 /**
   * @access private
   */
-override function setWidth ( ){
+override function setWidth (v){
     if ( $debug ){
         Debug.error( "setWidth cannot be called on the canvas." );
     }
@@ -469,7 +481,7 @@
 /**
   * @access private
   */
-override function setX ( ){
+override function setX ( v, force = null){
     if ( $debug ){
         Debug.error( "setX cannot be called on the canvas." );
     }
@@ -478,7 +490,7 @@
 /**
   * @access private
   */
-override function setHeight ( ){
+override function setHeight (v ){
     if ( $debug ){
         Debug.error( "setHeight cannot be called on the canvas." );
     }
@@ -487,7 +499,7 @@
 /**
   * @access private
   */
-override function setY ( ){
+override function setY ( v, force = null){
     if ( $debug ){
         Debug.error( "setY cannot be called on the canvas." );
     }

Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloView.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloView.lzs   
2008-03-25 01:54:27 UTC (rev 8381)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloView.lzs   
2008-03-25 02:01:17 UTC (rev 8382)
@@ -1728,7 +1728,7 @@
                    //last three entries are just to track staleness
 
     var i = mtrix.length - 1;
-    while ( mtrix[ i ] == this.__LZlastmtrix[ i ] ){
+    while ( mtrix[ i ] == LzView.__LZlastmtrix[ i ] ){
         if ( i-- == 0 ) {
             return this.__LZstoredbounds;
         }
@@ -1764,7 +1764,7 @@
     o.y = this.y + o.yoffset;
 
     this.__LZstoredbounds = o;
-    this.__LZlastmtrix = mtrix;
+    LzView.__LZlastmtrix = mtrix;
 
     return o;
 }
@@ -2596,7 +2596,7 @@
   * begin playing at the current frame.
   * @param Boolean rel: If true, f is relative to the current frame.  
Otherwise f is relative to the beginning of the resource.
   */
-function play (f, rel = null){
+function play (f = null, rel = null){
     this.sprite.play(f, rel);
 }
 
@@ -2606,7 +2606,7 @@
   * stop at the current frame.
   * @param Boolean rel: If true, f is relative to the current frame.  
Otherwise it is relative to the start position of the resource.
   */
-function stop (f, rel = null){
+function stop (f = null, rel = null){
     this.sprite.stop(f, rel);
 }
 
@@ -2785,7 +2785,7 @@
   * Activate/inactivate children for accessibility
   * @param Boolean s: If true, activate the current view and all of its 
children
   */
-function setAAActive ( s, mc ){
+function setAAActive ( s, mc = null){
     if (this.capabilities.accessibility) {
         this.sprite.setAAActive(s, mc);
     } else if ($debug) {

Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzInputText.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzInputText.lzs  
2008-03-25 01:54:27 UTC (rev 8381)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzInputText.lzs  
2008-03-25 02:01:17 UTC (rev 8382)
@@ -72,6 +72,14 @@
   */
 dynamic public class LzInputText extends LzText {
 
+  function LzInputText ( parent:* , attrs:* , children:* = null, instcall:*  = 
null) {
+    super(parent,attrs,children,instcall);
+  }
+
+
+
+
+
 /** @access private
   * @modifiers override 
   */
@@ -120,7 +128,7 @@
 /**
   * @access private
   */
-override function destroy (recursiveCall) {
+override function destroy( recursiveCall = null){
     if (this._onfocusDel) {
         this._onfocusDel.unregisterAll();
         this._onfocusDel = null;
@@ -148,12 +156,14 @@
   */
 override function __makeSprite(args) {
     this.sprite = new LzInputTextSprite(this, args);
-    // TODO [hqm 2008-03] fix this when compiler can handle type casts properly
+    // TODO [hqm 2008-03] fix this when compiler can handle type casts 
properly.
+    // We can remove 'tsprite' and 'isprite' then.
     if ($swf9) {
         this.isprite = LzInputTextSprite(this.sprite);
     } else {
         this.isprite = this.sprite;
     }
+    this.tsprite = this.sprite;
 
 }
 
@@ -241,7 +251,7 @@
   * setText sets the text of the field to display
   * @param String t: the string to which to set the text
   */
-override function setText ( t ){
+override function setText ( t, force = null){
     // force to a string
     t += '';
     if (this.maxlength != null && t.length > this.maxlength){

Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzText.lzs
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzText.lzs       
2008-03-25 01:54:27 UTC (rev 8381)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzText.lzs       
2008-03-25 02:01:17 UTC (rev 8382)
@@ -81,6 +81,13 @@
     var thickness = 0;
     var tsprite:LzTextSprite = null;
     
+    function LzText ( parent:* , attrs:* , children:* = null, instcall:*  = 
null) {
+        super(parent,attrs,children,instcall);
+    }
+
+
+
+
     
 
     var password;
@@ -359,7 +366,6 @@
     } else {
         this.tsprite = this.sprite;
     }
-    console.log('this.tsprite', this.tsprite, this);
 }
 
 
@@ -876,7 +882,7 @@
 /**
   * @access private
   */
-override function setFontName ( fname ){
+override function setFontName ( fname ,prop = null){
     this.tsprite.setFontName(fname);
     this.fontname = fname;
     // force recompute of height if needed


_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins

Reply via email to