From tchemit@users.nuiton.org Wed Jan 26 15:22:12 2011
From: tchemit@users.nuiton.org
To: jaxx-commits@list.nuiton.org
Subject: [Jaxx-commits] r2174 -
	trunk/jaxx-compiler/src/main/java/jaxx/compiler/tags/swing
Date: Wed, 26 Jan 2011 15:22:12 +0100
Message-ID: <20110126142212.58FD11691C@nuiton.codelutin.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============2780430715882714146=="

--===============2780430715882714146==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Author: tchemit
Date: 2011-01-26 15:22:12 +0100 (Wed, 26 Jan 2011)
New Revision: 2174

Url: http://nuiton.org/repositories/revision/jaxx/2174

Log:
reformat code

Modified:
   trunk/jaxx-compiler/src/main/java/jaxx/compiler/tags/swing/TableHandler.ja=
va

Modified: trunk/jaxx-compiler/src/main/java/jaxx/compiler/tags/swing/TableHan=
dler.java
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/jaxx-compiler/src/main/java/jaxx/compiler/tags/swing/TableHandler.j=
ava	2011-01-26 14:14:52 UTC (rev 2173)
+++ trunk/jaxx-compiler/src/main/java/jaxx/compiler/tags/swing/TableHandler.j=
ava	2011-01-26 14:22:12 UTC (rev 2174)
@@ -50,15 +50,32 @@
     }
=20
     @Override
-    public void setAttribute(CompiledObject object, String propertyName, Str=
ing stringValue, boolean inline, JAXXCompiler compiler) throws CompilerExcept=
ion {
+    public void setAttribute(CompiledObject object,
+                             String propertyName,
+                             String stringValue,
+                             boolean inline,
+                             JAXXCompiler compiler) throws CompilerException=
 {
         try {
             if (object instanceof CompiledTable) {
-                CellHandler.setAttribute(((CompiledTable) object).getTableCo=
nstraints(), propertyName, stringValue);
+                CellHandler.setAttribute(
+                        ((CompiledTable) object).getTableConstraints(),
+                        propertyName,
+                        stringValue
+                );
             } else {
-                super.setAttribute(object, propertyName, stringValue, inline=
, compiler);
+                super.setAttribute(object,
+                                   propertyName,
+                                   stringValue,
+                                   inline,
+                                   compiler);
             }
         } catch (UnsupportedAttributeException e) {
-            super.setAttribute(object, propertyName, stringValue, inline, co=
mpiler);
+            super.setAttribute(object,
+                               propertyName,
+                               stringValue,
+                               inline,
+                               compiler
+            );
         }
     }
=20
@@ -70,7 +87,9 @@
         private GridBagConstraints cellConstraints;
         private boolean emptyCell;
=20
-        public CompiledTable(String id, ClassDescriptor objectClass, JAXXCom=
piler compiler) throws CompilerException {
+        public CompiledTable(String id,
+                             ClassDescriptor objectClass,
+                             JAXXCompiler compiler) throws CompilerException=
 {
             super(id, objectClass, compiler);
             tableConstraints =3D new GridBagConstraints();
             tableConstraints.gridx =3D -1;
@@ -79,7 +98,9 @@
         }
=20
         @Override
-        public void addChild(CompiledObject child, String constraints, JAXXC=
ompiler compiler) throws CompilerException {
+        public void addChild(CompiledObject child,
+                             String constraints,
+                             JAXXCompiler compiler) throws CompilerException=
 {
             if (constraints !=3D null) {
                 compiler.reportError("Table does not accept constraints");
             }
@@ -89,7 +110,8 @@
                 return;
             }
             if (!emptyCell) {
-                compiler.reportError("Table cells may only have one child co=
mponent");
+                compiler.reportError(
+                        "Table cells may only have one child component");
             }
             while (rowSpans.size() < c.gridx + c.gridwidth) {
                 rowSpans.add(null);
@@ -131,7 +153,8 @@
         public void newCell() {
             emptyCell =3D true;
             rowConstraints.gridx++;
-            while (rowConstraints.gridx < rowSpans.size() && rowSpans.get(ro=
wConstraints.gridx) > 0) {
+            while (rowConstraints.gridx < rowSpans.size() &&
+                   rowSpans.get(rowConstraints.gridx) > 0) {
                 rowConstraints.gridx++;
             }
             cellConstraints =3D (GridBagConstraints) rowConstraints.clone();
@@ -139,7 +162,8 @@
     }
=20
     @Override
-    public CompiledObject createCompiledObject(String id, JAXXCompiler compi=
ler) throws CompilerException {
+    public CompiledObject createCompiledObject(String id,
+                                               JAXXCompiler compiler) throws=
 CompilerException {
         return new CompiledTable(id, getBeanClass(), compiler);
     }
 }


--===============2780430715882714146==--


