incubator-xap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtu...@apache.org
Subject svn commit: r453623 - /incubator/xap/trunk/src/xap/xml/XmlTokens.js
Date Fri, 06 Oct 2006 14:50:09 GMT
Author: mturyn
Date: Fri Oct  6 07:50:09 2006
New Revision: 453623

URL: http://svn.apache.org/viewvc?view=rev&rev=453623
Log:
Fixed errors, made it work ("with" statements weren't working).

Modified:
    incubator/xap/trunk/src/xap/xml/XmlTokens.js

Modified: incubator/xap/trunk/src/xap/xml/XmlTokens.js
URL: http://svn.apache.org/viewvc/incubator/xap/trunk/src/xap/xml/XmlTokens.js?view=diff&rev=453623&r1=453622&r2=453623
==============================================================================
--- incubator/xap/trunk/src/xap/xml/XmlTokens.js (original)
+++ incubator/xap/trunk/src/xap/xml/XmlTokens.js Fri Oct  6 07:50:09 2006
@@ -19,7 +19,7 @@
 /**
  * 
  * Interface containing all the possible XML token
- * names and some of the XML token values that Nexaweb supports.
+ * names and some of the XML token values that XAL supports.
  * This is provided to support plug-in writers who should 
  * re-use Nexaweb XML tokens whenever possible.
  * 
@@ -32,7 +32,11 @@
 };
 Xap.setupClassAsSubclassOf("xap.xml.XmlTokens", "Object");
 /*public static final String*/
-xap.xml.XmlTokens.START = "start", xap.xml.XmlTokens.END = "end", xap.xml.XmlTokens.CENTER
= "center";
+xap.xml.XmlTokens.START = "start";
+
+xap.xml.XmlTokens.END = "end";
+
+xap.xml.XmlTokens.CENTER = "center";
 /**
  * @public 
  **/
@@ -382,11 +386,18 @@
  **/
 xap.xml.XmlTokens.TAB_ALIGNMENT = "tabAlignment";
 /*public static final String[]*/
-with (xap.xml.XmlTokens) {
-	xap.xml.XmlTokens.TAB_PLACEMENT_NAMES = [TOP, RIGHT, BOTTOM, LEFT];
-	/*public static final String[]*/
-	xap.xml.XmlTokens.TAB_ALIGNMENT_NAMES = [START, END];
-}
+xap.xml.XmlTokens.TAB_PLACEMENT_NAMES = [
+								xap.xml.XmlTokens.TOP, 
+								xap.xml.XmlTokens.RIGHT, 
+								xap.xml.XmlTokens.BOTTOM, 
+								xap.xml.XmlTokens.LEFT
+												];
+/*public static final String[]*/
+xap.xml.XmlTokens.TAB_ALIGNMENT_NAMES = [
+								xap.xml.XmlTokens.START,
+								xap.xml.XmlTokens.END
+											];
+
 /*public static final */
 xap.xml.XmlTokens.HORIZONTAL_SEPARATOR = "horizontalSeparator";
 /*public static final String*/
@@ -482,9 +493,13 @@
 /*public static final String*/
 xap.xml.XmlTokens.END_TEXT_POSITION = "endSelectTextPosition";
 /*public static final String[]*/
-with (xap.xml.XmlTokens) {
-	xap.xml.XmlTokens.GRID_ALIGN_NAMES = [START, CENTER, END, "fill"];
-}
+xap.xml.XmlTokens.GRID_ALIGN_NAMES = [
+									xap.xml.XmlTokens.START, 
+									xap.xml.XmlTokens.CENTER, 
+									xap.xml.XmlTokens.END, 
+									"fill"
+											];
+
 	
 //TODO all these names are retarded
 /*public static final String*/
@@ -580,7 +595,7 @@
 /*public static final String*/
 xap.xml.XmlTokens.BORDER_POSITION_EAST = "east";
 /*public static final String*/
-xap.xml.XmlTokens.BORDER_POSITION_CENTER = CENTER;
+xap.xml.XmlTokens.BORDER_POSITION_CENTER = xap.xml.XmlTokens.CENTER;
 /*public static final String*/
 xap.xml.XmlTokens.BORDER_POSITION_NORTH = "north";
 /*public static final String*/
@@ -590,13 +605,17 @@
 /*public static final String*/
 xap.xml.XmlTokens.PACK = "pack";
 /*public static final String[]*/
-with (xap.xml.XmlTokens) {
-	xap.xml.XmlTokens.PACK_NAMES = [START, CENTER, END];
-}
-/*public static final String[]*/
-with (xap.xml.XmlTokens) {
-	xap.xml.XmlTokens.BOX_ALIGN_NAMES = [START, CENTER, END, "stretch"];
-}
+xap.xml.XmlTokens.PACK_NAMES = [xap.xml.XmlTokens.START, 
+								xap.xml.XmlTokens.CENTER, 
+								xap.xml.XmlTokens.END
+								];
+xap.xml.XmlTokens.BOX_ALIGN_NAMES = [
+										xap.xml.XmlTokens.START, 
+										xap.xml.XmlTokens.CENTER, 
+										xap.xml.XmlTokens.END, 
+										"stretch"
+									];
+
 /*public static final String*/
 xap.xml.XmlTokens.SHOW = "show";
 /*public static final String*/
@@ -634,9 +653,11 @@
  * An array of "horizontal" and "vertical"
  *
  */
-with (xap.xml.XmlTokens) {
-	xap.xml.XmlTokens.ORIENTATION_NAMES = [HORIZONTAL, VERTICAL];
-}
+xap.xml.XmlTokens.ORIENTATION_NAMES = [
+										xap.xml.XmlTokens.HORIZONTAL, 
+										xap.xml.XmlTokens.VERTICAL
+										];
+
 /**
  * "id"
  *
@@ -1078,21 +1099,42 @@
  **/
 xap.xml.XmlTokens.ON_COMMAND = "onCommand";
 /*public static final String[]*/
-with (xap.xml.XmlTokens) {
 	// onCreate is from UiCOntentHandler
 	// onLoad is from McoNamespaceHandler
-	xap.xml.XmlTokens.ON_EVENT_NAMES = 
-	[
-	ON_BEFORE_ACTIVE_LOST, ON_COLLAPSE, ON_COMMAND, 
-	ON_CONTEXT_MENU, "onCreate", ON_DRAG_DROP, 
-	ON_DRAG_END, ON_DRAG_START, ON_EXPAND, ON_EDIT, 
-	ON_FIRST_EXPAND, ON_ACTIVE_LOST, ON_ACTIVE_GAINED, 
-	ON_KEY_PRESS, ON_KEY_DOWN, ON_KEY_UP, "onLoad", 
-	ON_MOUSE_DOWN, ON_MOUSE_DB_CLICK, ON_MOUSE_DRAG, 
-	ON_MOUSE_MOVE, ON_MOUSE_OUT, ON_MOUSE_OVER, 
-	ON_MOUSE_UP, ON_NATIVE_DRAG_ENTER, ON_NATIVE_DROP, 
-	ON_SELECT, ON_POSITION_CHANGE, ON_STATE_CHANGE, 
-	ON_TEXT_CHANGE, ON_WINDOW_CLOSE, ON_WINDOW_CLOSING
-	] ;
-}
+xap.xml.XmlTokens.ON_EVENT_NAMES = 
+				[
+					xap.xml.XmlTokens.ON_BEFORE_ACTIVE_LOST,
+					xap.xml.XmlTokens.ON_COLLAPSE,
+					xap.xml.XmlTokens.ON_COMMAND,
+					xap.xml.XmlTokens.ON_CONTEXT_MENU,
+					"onCreate",
+					xap.xml.XmlTokens.ON_DRAG_DROP,
+					xap.xml.XmlTokens.ON_DRAG_END,
+					xap.xml.XmlTokens.ON_DRAG_START,
+					xap.xml.XmlTokens.ON_EXPAND,
+					xap.xml.XmlTokens.ON_EDIT,
+					xap.xml.XmlTokens.ON_FIRST_EXPAND,
+					xap.xml.XmlTokens.ON_ACTIVE_LOST,
+					xap.xml.XmlTokens.ON_ACTIVE_GAINED,
+					xap.xml.XmlTokens.ON_KEY_PRESS,
+					xap.xml.XmlTokens.ON_KEY_DOWN,
+					xap.xml.XmlTokens.ON_KEY_UP,
+					"onLoad",
+					xap.xml.XmlTokens.ON_MOUSE_DOWN,
+					xap.xml.XmlTokens.ON_MOUSE_DB_CLICK,
+					xap.xml.XmlTokens.ON_MOUSE_DRAG,
+					xap.xml.XmlTokens.ON_MOUSE_MOVE,
+					xap.xml.XmlTokens.ON_MOUSE_OUT,
+					xap.xml.XmlTokens.ON_MOUSE_OVER,
+					xap.xml.XmlTokens.ON_MOUSE_UP,
+					xap.xml.XmlTokens.ON_NATIVE_DRAG_ENTER,
+					xap.xml.XmlTokens.ON_NATIVE_DROP,
+					xap.xml.XmlTokens.ON_SELECT,
+					xap.xml.XmlTokens.ON_POSITION_CHANGE,
+					xap.xml.XmlTokens.ON_STATE_CHANGE,
+					xap.xml.XmlTokens.ON_TEXT_CHANGE,
+					xap.xml.XmlTokens.ON_WINDOW_CLOSE,
+					xap.xml.XmlTokens.ON_WINDOW_CLOSING
+					] ;
+
 



Mime
View raw message