Author: hqm
Date: 2008-01-15 14:15:06 -0800 (Tue, 15 Jan 2008)
New Revision: 7837
Modified:
openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LaszloAnimation.js
openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LaszloLayout.js
openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LzAnimatorGroup.js
openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzNode.js
openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LFCApplication.as
openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloCanvas.js
openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloView.js
openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzText.js
Log:
Change 20080115-hqm-6 by [EMAIL PROTECTED] on 2008-01-15 17:13:34 EST
in /cygdrive/c/users/hqm/openlaszlo/devildog2
for http://svn.openlaszlo.org/openlaszlo/branches/devildog
Summary: write setters initialization code to not refer to constructor
New Features:
Bugs Fixed:
Technical Reviewer: (pending)
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
needed to rewrite the setters code to not reference constructor, it was causing
some error when trying some experiments to compile LzNode as a non-dynamic
class.
Tests:
Modified:
openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LaszloAnimation.js
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LaszloAnimation.js
2008-01-15 20:04:26 UTC (rev 7836)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LaszloAnimation.js
2008-01-15 22:15:06 UTC (rev 7837)
@@ -40,17 +40,20 @@
ConstructorMap[tagname] = LzAnimator;
static var getters = new LzInheritedHash(LzAnimatorGroup.getters);
- getters = LzAnimator.getters;
-
static var defaultattrs = new
LzInheritedHash(LzAnimatorGroup.defaultattrs);
- defaultattrs = LzAnimator.defaultattrs;
-
static var options = new LzInheritedHash(LzAnimatorGroup.options);
- options = LzAnimator.options;
-
static var setters = new LzInheritedHash(LzAnimatorGroup.setters);
- setters = LzAnimator.setters;
+ static var __LZdelayedSetters:* = new
LzInheritedHash(LzAnimatorGroup.__LZdelayedSetters);
+ static var earlySetters:* = new
LzInheritedHash(LzAnimatorGroup.earlySetters);
+ override function installSetters () {
+ this.setters = LzAnimator.setters;
+ this.getters = LzAnimator.getters;
+ this.defaultattrs = LzAnimator.defaultattrs;
+ this.options = LzAnimator.options;
+ this.__LZdelayedSetters = LzAnimator.__LZdelayedSetters;
+ this.earlySetters = LzAnimator.earlySetters;
+ }
function LzAnimator ( parent:* , attrs:* , children:* = null, instcall:*
= null) {
super(parent,attrs,children,instcall);
Modified:
openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LaszloLayout.js
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LaszloLayout.js
2008-01-15 20:04:26 UTC (rev 7836)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LaszloLayout.js
2008-01-15 22:15:06 UTC (rev 7837)
@@ -68,17 +68,21 @@
ConstructorMap[tagname] = LzLayout;
static var getters = new LzInheritedHash(LzNode.getters);
- getters = LzLayout.getters;
-
static var defaultattrs = new LzInheritedHash(LzNode.defaultattrs);
- defaultattrs = LzLayout.defaultattrs;
-
static var options = new LzInheritedHash(LzNode.options);
- options = LzLayout.options;
-
static var setters = new LzInheritedHash(LzNode.setters);
- setters = LzLayout.setters;
+ static var __LZdelayedSetters:* = new
LzInheritedHash(LzNode.__LZdelayedSetters);
+ static var earlySetters:* = new LzInheritedHash(LzNode.earlySetters);
+ override function installSetters () {
+ this.setters = LzLayout.setters;
+ this.getters = LzLayout.getters;
+ this.defaultattrs = LzLayout.defaultattrs;
+ this.options = LzLayout.options;
+ this.__LZdelayedSetters = LzLayout.__LZdelayedSetters;
+ this.earlySetters = LzLayout.earlySetters;
+ }
+
function LzLayout ( parent:* , attrs:* , children:* = null, instcall:* =
null) {
super(parent,attrs,children,instcall);
}
@@ -93,7 +97,7 @@
*/
//locked is set to 2 in the prototype of the layout. This is a special
signal that the layout is locked temporarily until it resolves its references
var locked = 2;
- setters.locked = "__LZsetLocked";
+ LzLayout.setters.locked = "__LZsetLocked";
/** Array holding the views under this layout's control.
*
Modified:
openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LzAnimatorGroup.js
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LzAnimatorGroup.js
2008-01-15 20:04:26 UTC (rev 7836)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/controllers/LzAnimatorGroup.js
2008-01-15 22:15:06 UTC (rev 7837)
@@ -50,17 +50,22 @@
ConstructorMap[tagname] = LzAnimatorGroup;
static var getters = new LzInheritedHash(LzNode.getters);
- getters = LzAnimatorGroup.getters;
-
static var defaultattrs = new LzInheritedHash(LzNode.defaultattrs);
- defaultattrs = LzAnimatorGroup.defaultattrs;
-
static var options = new LzInheritedHash(LzNode.options);
- options = LzAnimatorGroup.options;
-
static var setters = new LzInheritedHash(LzNode.setters);
- setters = LzAnimatorGroup.setters;
+ static var __LZdelayedSetters:* = new
LzInheritedHash(LzNode.__LZdelayedSetters);
+ static var earlySetters:* = new
LzInheritedHash(LzAnimatorGroup.earlySetters);
+ override function installSetters () {
+ this.setters = LzAnimatorGroup.setters;
+ this.getters = LzAnimatorGroup.getters;
+ this.defaultattrs = LzAnimatorGroup.defaultattrs;
+ this.options = LzAnimatorGroup.options;
+ this.__LZdelayedSetters = LzAnimatorGroup.__LZdelayedSetters;
+ this.earlySetters = LzAnimatorGroup.earlySetters;
+ }
+
+
/** The name of the attribute whose value is animated. This
* attribute is required on an animator, unless the animator is
* inside an animatorgroup that specifies an attribute.
@@ -90,8 +95,8 @@
* @lzxdefault "true"
*/
var start = true;
- setters.start = "setStart";
- defaultattrs.start = true;
+ LzAnimatorGroup.setters.start = "setStart";
+ LzAnimatorGroup.defaultattrs.start = true;
/** The start value for the animation. Defaults to the
* targeted attribute's current value.
@@ -113,7 +118,7 @@
* @lzxtype xsd:float {minInclusive="0"} | constraint
*/
var duration;
- setters.duration = "setDuration";
+ LzAnimatorGroup.setters.duration = "setDuration";
/**
* @type Boolean
@@ -146,7 +151,7 @@
* @since 1.1
*/
var repeat;
- // setters.repeat = "defaultSet";
+ // LzAnimatorGroup.setters.repeat = "defaultSet";
/** The paused state of the animator. If true, the animator will stop. When
* changed to false, the animator will resume from its current location.
@@ -181,14 +186,14 @@
* @type string
*/
var process = "sequential";
- // setters.process = "defaultSet";
+ // LzAnimatorGroup.setters.process = "defaultSet";
/** The object to animate
*
* @type string
*/
- setters.target = "setTarget";
+ LzAnimatorGroup.setters.target = "setTarget";
/** If true, the running animator will pause. If false
* it will resume
@@ -196,9 +201,9 @@
* @type boolean
*/
- setters.paused = "pause";
+ LzAnimatorGroup.setters.paused = "pause";
-//setters.view = "defaultSet";
+//LzAnimatorGroup.setters.view = "defaultSet";
/** The active-state of the animator. If true, the animator is currently
processing its animation.
* This field is read-only.
@@ -248,7 +253,7 @@
*
* @modifiers override
*/
-defaultattrs.ignoreplacement = true;
+LzAnimatorGroup.defaultattrs.ignoreplacement = true;
/**
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzNode.js
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzNode.js 2008-01-15
20:04:26 UTC (rev 7836)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/core/LzNode.js 2008-01-15
22:15:06 UTC (rev 7837)
@@ -58,6 +58,15 @@
static var tagname = 'node';
ConstructorMap[tagname] = LzNode;
+ function installSetters () {
+ this.setters = LzNode.setters;
+ this.getters = LzNode.getters;
+ this.defaultattrs = LzNode.defaultattrs;
+ this.options = LzNode.options;
+ this.__LZdelayedSetters = LzNode.__LZdelayedSetters;
+ this.earlySetters = LzNode.earlySetters;
+ }
+
/**
* @param LzNode parent: a node above this one in the hierarchy -- not
* necessarily the immediate parent -- that will decide where this node goes
@@ -68,13 +77,9 @@
* @access private
*/
function LzNode ( parent:* , attrs:* , children:* = null, instcall:* =
null){
- this.setters = this.constructor.setters;
- this.getters = this.constructor.getters;
- this.defaultattrs = this.constructor.defaultattrs;
- this.options = this.constructor.options;
- this.__LZdelayedSetters = this.constructor.__LZdelayedSetters;
- this.earlySetters = this.constructor.earlySetters;
+ installSetters();
+ //trace('devildog2 LzNode construct this.setters = ',
lzutils.objAsString(this.setters));
this.__LZUID = "__U" + ++LzNode.__UIDs;
this.__LZdeferDelegates = true;
@@ -684,7 +689,7 @@
*/
function construct ( parent , args ){
if (parent == null) {
- trace("LzNode construct parent == null, args=",
lzutils.objAsString(args));
+ //trace("LzNode construct parent == null, args=",
lzutils.objAsString(args));
}
var lp = parent; // lp == lexical parent
@@ -730,7 +735,7 @@
this.immediateparent = ip;
if (ip == null) {
- trace(" immediateparent == null", this, 'parent=', parent);
+ //trace(" immediateparent == null", this, 'parent=', parent);
}
} else {
@@ -1144,7 +1149,8 @@
// TODO [hqm 2008-01] enable this warning unconditionally for now for
swf9 debugging
// if ($debug) {
if ((! x) || (! (x is Class))) {
- trace('Class for tag ', e.name, ' has not been defined yet', x); }
+ //trace('Class for tag ', e.name, ' has not been defined yet', x);
+ }
//}
}#
Modified:
openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LFCApplication.as
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LFCApplication.as
2008-01-15 20:04:26 UTC (rev 7836)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/kernel/swf9/LFCApplication.as
2008-01-15 22:15:06 UTC (rev 7837)
@@ -40,7 +40,7 @@
LzIdleKernel.addCallback( this, '__idleupdate' );
- var idleTimerPeriod = 16; // msecs
+ var idleTimerPeriod = 31; // msecs
trace('idle timer period = ', idleTimerPeriod , 'msecs');
LzIdleKernel.startTimer( idleTimerPeriod );
}
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloCanvas.js
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloCanvas.js
2008-01-15 20:04:26 UTC (rev 7836)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloCanvas.js
2008-01-15 22:15:06 UTC (rev 7837)
@@ -18,20 +18,21 @@
ConstructorMap[tagname] = LzCanvas;
static var getters = new LzInheritedHash(LzView.getters);
- getters = LzCanvas.getters;
-
static var defaultattrs = new LzInheritedHash(LzView.defaultattrs);
- defaultattrs = LzCanvas.defaultattrs;
-
static var options = new LzInheritedHash(LzView.options);
- options = LzCanvas.options;
-
static var setters = new LzInheritedHash(LzView.setters);
- setters = LzCanvas.setters;
+ static var __LZdelayedSetters:* = new
LzInheritedHash(LzView.__LZdelayedSetters);
+ static var earlySetters:* = new LzInheritedHash(LzView.earlySetters);
+ override function installSetters () {
+ this.setters = LzCanvas.setters;
+ this.getters = LzCanvas.getters;
+ this.defaultattrs = LzCanvas.defaultattrs;
+ this.options = LzCanvas.options;
+ this.__LZdelayedSetters = LzCanvas.__LZdelayedSetters;
+ this.earlySetters = LzCanvas.earlySetters;
+ }
-
-
var resourcetable:*;
var _lzinitialsubviews:*;
var totalnodes:*;
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloView.js
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloView.js
2008-01-15 20:04:26 UTC (rev 7836)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LaszloView.js
2008-01-15 22:15:06 UTC (rev 7837)
@@ -17,28 +17,25 @@
ConstructorMap[tagname] = LzView;
static var getters = new LzInheritedHash(LzNode.getters);
- getters = LzView.getters;
-
static var defaultattrs = new LzInheritedHash(LzNode.defaultattrs);
- defaultattrs = LzView.defaultattrs;
-
static var options = new LzInheritedHash(LzNode.options);
- options = LzView.options;
-
static var setters = new LzInheritedHash(LzNode.setters);
- setters = LzView.setters;
-
- setters.clip = -1;
- setters.x ="setX";
- setters.y = "setY";
-
static var __LZdelayedSetters:* = new
LzInheritedHash(LzNode.__LZdelayedSetters);
- __LZdelayedSetters = LzView.__LZdelayedSetters;
-
static var earlySetters:* = new LzInheritedHash(LzNode.earlySetters);
- earlySetters = LzView.earlySetters;
+ LzView.setters.clip = -1;
+ LzView.setters.x ="setX";
+ LzView.setters.y = "setY";
+ override function installSetters () {
+ this.setters = LzView.setters;
+ this.getters = LzView.getters;
+ this.defaultattrs = LzView.defaultattrs;
+ this.options = LzView.options;
+ this.__LZdelayedSetters = LzView.__LZdelayedSetters;
+ this.earlySetters = LzView.earlySetters;
+ }
+
function LzView ( parent:* , attrs:* , children:* = null, instcall:* =
null) {
super(parent,attrs,children,instcall);
}
@@ -260,7 +257,7 @@
var ip = this.immediateparent;
if (ip == null) {
- trace("LzView.construct immediateparent == null", this.id);
+ //trace("LzView.construct immediateparent == null", this.id);
}
if (ip) {
@@ -318,7 +315,7 @@
*/
function __makeSprite(args) {
this.sprite = new LzSprite(this, false, args);
- trace("LzView.__makeSprite", sprite, args);
+ //trace("LzView.__makeSprite", sprite, args);
}
/**
@@ -339,15 +336,15 @@
* @param LzView s: The new subview
*/
function addSubview ( s ){
- trace('entering addSubview ', this.sprite, s, s.sprite);
+ //trace('entering addSubview ', this.sprite, s, s.sprite);
if (this.sprite) {
- trace('adding subview ', this.sprite, s, s.sprite);
+ //trace('adding subview ', this.sprite, s, s.sprite);
this.sprite.addChildSprite(s.sprite);
}
if ( s.addedToParent ) return;
- trace(' .... adding to subviews list');
+ // trace(' .... adding to subviews list');
// Don't use the prototype's default subviews array, it is a
// sentinel which lives on the prototype and is shared by all
// instances, make a new one if you want to push a view.
@@ -376,7 +373,7 @@
if (this.immediateparent) {
this.immediateparent.addSubview( this );
} else {
- trace("LaszloView.__LZinstantiationDone immediateparent = null");
+ // trace("LaszloView.__LZinstantiationDone immediateparent =
null");
}
//this.callInherited( '__LZinstantiationDone' , arguments.callee );
@@ -412,13 +409,13 @@
var clip = false;
-setters.rotation= "setRotation";
-setters.opacity = "setOpacity";
+LzView.setters.rotation= "setRotation";
+LzView.setters.opacity = "setOpacity";
/** @access private */
-setters.alpha = "setOpacity";
-setters.visible = "setVisible"
+LzView.setters.alpha = "setOpacity";
+LzView.setters.visible = "setVisible"
/** @access private */
-setters.visibility = "setVisibility"
+LzView.setters.visibility = "setVisibility"
/**
* @lzxtype "left" | "center" | "right" | constraint
@@ -426,7 +423,7 @@
* @keywords final
*/
var align = "left"
-setters.align = "setAlign"
+LzView.setters.align = "setAlign"
/**
* Creates a constraint on the view's y position which is a function
@@ -436,7 +433,7 @@
* @lzxdefault "top"
*/
var valign = "top"
-setters.valign = "setValign"
+LzView.setters.valign = "setValign"
/** The URL from which to load the resource for this
* view. If this attribute is set, the media for the view is loaded
@@ -453,11 +450,11 @@
* a setter. [bshine 2007.11.07]
* @access private
*/
-setters.source = "setSource";
+LzView.setters.source = "setSource";
/** The background color of the canvas.
* @lzxtype token
*/
-setters.bgcolor = "setBGColor";
+LzView.setters.bgcolor = "setBGColor";
/** Sets the name of this views resource, or the URL from which it should
* be loaded.
@@ -466,20 +463,20 @@
/// TODO HQM 01 2008 remove this dupe declaration of 'resource' from the
source when merging
//var resource;
-setters.resource = "setResource";
+LzView.setters.resource = "setResource";
/** If true, this view intercepts click events; otherwise they are passed
* to its container. This defaults to true if the view defines a mouse
* event handler or a cursor.
* @lzxtype boolean
*/
-setters.clickable = "setClickable";
+LzView.setters.clickable = "setClickable";
/** Setting clickRegion to a vector-based SWF turns the SWF shape into a
clickable hotspot.
* @access public
* @lzxtype string
*/
var clickregion;
-setters.clickregion = "__LZsetClickRegion";
+LzView.setters.clickregion = "__LZsetClickRegion";
/** The cursor to display when the mouse is over this view. Any
* resource can be used as a cursor. This attribute can be set for
* any view with clickable=true, or any view whose class defaults
@@ -487,14 +484,14 @@
* @lzxtype token
*/
var cursor;
-setters.cursor = "setCursor";
+LzView.setters.cursor = "setCursor";
/** A color to use to render object that appears inside this view,
* which includes any vector or bitmap art in the view's resource
* and any contained views.
* @lzxtype color
*/
var fgcolor;
-setters.fgcolor = "setColor";
+LzView.setters.fgcolor = "setColor";
/** The font to use for any @c{<text>} or @c{<inputtext>} elements that
* appear inside this view. Like all the font properties
* (<code>fontstyle</code> and <code>fontsize</code> too) these
@@ -505,7 +502,7 @@
* @lzxtype string
*/
var font;
-setters.font = "setFontName" ;
+LzView.setters.font = "setFontName" ;
/** The style to use to render text fields that appear inside of
* this view. One of "plain", "bold" , "italic" or "bolditalic".
@@ -529,54 +526,54 @@
* @lzxdefault "none"
*/
var stretches = "none";
-setters.stretches = "stretchResource";
+LzView.setters.stretches = "stretchResource";
/** If true, the resource attached to this view begins playing when
* the view is instantiated.
* @lzxtype boolean
*/
-setters.play = "setPlay";
+LzView.setters.play = "setPlay";
/** Show or hide the handcursor for this view, if clickable */
-setters.showhandcursor = "setShowHandCursor";
+LzView.setters.showhandcursor = "setShowHandCursor";
var layout;
-setters.layout = "setLayout";
+LzView.setters.layout = "setLayout";
/** Activate/inactivate children for accessibility
* @type Boolean
* @lzxtype boolean
*/
var aaactive;
-setters.aaactive = "setAAActive";
+LzView.setters.aaactive = "setAAActive";
/** Set accessibility name
* @type String
* @lzxtype string
*/
var aaname;
-setters.aaname = "setAAName";
+LzView.setters.aaname = "setAAName";
/** Set accessibility description
* @type String
* @lzxtype string
*/
var aadescription;
-setters.aadescription = "setAADescription";
+LzView.setters.aadescription = "setAADescription";
/** Set accessibility tab order
* @type Number
* @lzxtype number
*/
var aatabindex;
-setters.aatabindex = "setAATabIndex";
+LzView.setters.aatabindex = "setAATabIndex";
/** Set accessibility silencing/unsilencing
* @type Boolean
* @lzxtype boolean
*/
var aasilent;
-setters.aasilent = "setAASilent";
+LzView.setters.aasilent = "setAASilent";
-__LZdelayedSetters.layout = "setLayout";
+LzView.__LZdelayedSetters.layout = "setLayout";
-earlySetters.clickregion = 7;
-earlySetters.stretches = 8;
+LzView.earlySetters.clickregion = 7;
+LzView.earlySetters.stretches = 8;
/** A value to be added to the
* <attribute>x</attribute> position of this view before drawing
@@ -585,14 +582,14 @@
* internal coordinate system.
* @type Number
*/
-setters.xoffset = "setXOffset";
+LzView.setters.xoffset = "setXOffset";
/** A value to be added to the <attribute>y</attribute> position of this view
* before drawing it. This affects the apparent rotation point of the view, as
* well as its apparent <attribute>y</attribute> position. It does not affect
the view's width or its
* internal coordinate system.
* @type Number
*/
-setters.yoffset = "setYOffset";
+LzView.setters.yoffset = "setYOffset";
/** @access private */
var sprite:LzSprite = null;
@@ -668,7 +665,7 @@
* @lzxtype sizeExpression
*/
var width:Number = 0;
-setters.width = "setWidth";
+LzView.setters.width = "setWidth";
/**
* The height of the view
@@ -677,7 +674,7 @@
* @lzxtype sizeExpression
*/
var height:Number = 0;
-setters.height = "setHeight";
+LzView.setters.height = "setHeight";
/** If stretches is not set to none, the width
* that this view would be if it weren't stretched. This attribute can be used
@@ -750,7 +747,7 @@
* know what frame the resource is showing while it is playing.
*/
var frame = 0;
-setters.frame = "setResourceNumber";
+LzView.setters.frame = "setResourceNumber";
/** @keywords deprecated
* @access private
Modified: openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzText.js
===================================================================
--- openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzText.js
2008-01-15 20:04:26 UTC (rev 7836)
+++ openlaszlo/branches/devildog/WEB-INF/lps/lfc/views/LzText.js
2008-01-15 22:15:06 UTC (rev 7837)
@@ -80,17 +80,21 @@
var tsprite:LzTextSprite;
static var getters = new LzInheritedHash(LzView.getters);
- getters = LzText.getters;
-
static var defaultattrs = new LzInheritedHash(LzView.defaultattrs);
- defaultattrs = LzText.defaultattrs;
-
static var options = new LzInheritedHash(LzView.options);
- options = LzText.options;
-
static var setters = new LzInheritedHash(LzView.setters);
- setters = LzText.setters;
+ static var __LZdelayedSetters:* = new
LzInheritedHash(LzView.__LZdelayedSetters);
+ static var earlySetters:* = new LzInheritedHash(LzView.earlySetters);
+ override function installSetters () {
+ this.setters = LzText.setters;
+ this.getters = LzText.getters;
+ this.defaultattrs = LzText.defaultattrs;
+ this.options = LzText.options;
+ this.__LZdelayedSetters = LzText.__LZdelayedSetters;
+ this.earlySetters = LzText.earlySetters;
+ }
+
function LzText ( parent:* , attrs:* = null , children:* = null,
instcall:* = null) {
super(parent,attrs,children,instcall);
@@ -99,17 +103,17 @@
/*
if (LzSprite.capabilities.advancedfonts) {
- setters.antiAliasType = "setAntiAliasType";
- defaultattrs.antiAliasType = "normal";
+ LzText.setters.antiAliasType = "setAntiAliasType";
+ LzText.defaultattrs.antiAliasType = "normal";
- setters.gridFit = "setGridFit";
- defaultattrs.gridfit = "subpixel";
+ LzText.setters.gridFit = "setGridFit";
+ LzText.defaultattrs.gridfit = "subpixel";
- setters.sharpness = "setSharpness";
- defaultattrs.sharpness = 0;
+ LzText.setters.sharpness = "setSharpness";
+ LzText.defaultattrs.sharpness = 0;
- setters.thickness = "setThickness";
- defaultattrs.thickness = 0;
+ LzText.setters.thickness = "setThickness";
+ LzText.defaultattrs.thickness = 0;
}
*/
@@ -175,7 +179,7 @@
return 0;
}
-defaultattrs.pixellock = true;
+LzText.defaultattrs.pixellock = true;
/**
* If true, the lines of text are wrapped to fit within the text
@@ -380,23 +384,23 @@
/**
* @access private
*/
-setters.text = "setText";
+LzText.setters.text = "setText";
/**
* @access private
*/
-setters.resize = "setResize";
+LzText.setters.resize = "setResize";
/**
* @access private
*/
-setters.multiline = -1;
+LzText.setters.multiline = -1;
/**
* @access private
*/
-setters.yscroll = "setYScroll";
+LzText.setters.yscroll = "setYScroll";
/**
* @access private
*/
-setters.xscroll = "setXScroll";
+LzText.setters.xscroll = "setXScroll";
/**
* If true, the text is selectable
@@ -405,8 +409,8 @@
* @modifiers virtual
*/
// no var decl since this is a virtual field
-setters.selectable = "setSelectable";
-defaultattrs.selectable = false;
+LzText.setters.selectable = "setSelectable";
+LzText.defaultattrs.selectable = false;
/**
* @lzxtype numberExpression
@@ -414,7 +418,7 @@
*/
var maxlength;
/** @access private */
-setters.maxlength = "setMaxLength";
+LzText.setters.maxlength = "setMaxLength";
/**
* @lzxtype string
@@ -422,10 +426,10 @@
*/
var pattern;
/** @access private */
-setters.pattern = "setPattern";
+LzText.setters.pattern = "setPattern";
-defaultattrs.clip = true;
+LzText.defaultattrs.clip = true;
/**
* setResize set behavior of text field width when new text is added.
@@ -616,15 +620,15 @@
/**
* @access private
*/
-setters.font = "setFontName";
+LzText.setters.font = "setFontName";
/**
* @access private
*/
-setters.fontsize = "setFontSize";
+LzText.setters.fontsize = "setFontSize";
/**
* @access private
*/
-setters.fontstyle = "setFontStyle";
+LzText.setters.fontstyle = "setFontStyle";
/**
* @access private
_______________________________________________
Laszlo-checkins mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins