r2174 - trunk/jaxx-compiler/src/main/java/jaxx/compiler/tags/swing
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.java Modified: trunk/jaxx-compiler/src/main/java/jaxx/compiler/tags/swing/TableHandler.java =================================================================== --- trunk/jaxx-compiler/src/main/java/jaxx/compiler/tags/swing/TableHandler.java 2011-01-26 14:14:52 UTC (rev 2173) +++ trunk/jaxx-compiler/src/main/java/jaxx/compiler/tags/swing/TableHandler.java 2011-01-26 14:22:12 UTC (rev 2174) @@ -50,15 +50,32 @@ } @Override - public void setAttribute(CompiledObject object, String propertyName, String stringValue, boolean inline, JAXXCompiler compiler) throws CompilerException { + public void setAttribute(CompiledObject object, + String propertyName, + String stringValue, + boolean inline, + JAXXCompiler compiler) throws CompilerException { try { if (object instanceof CompiledTable) { - CellHandler.setAttribute(((CompiledTable) object).getTableConstraints(), 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, compiler); + super.setAttribute(object, + propertyName, + stringValue, + inline, + compiler + ); } } @@ -70,7 +87,9 @@ private GridBagConstraints cellConstraints; private boolean emptyCell; - public CompiledTable(String id, ClassDescriptor objectClass, JAXXCompiler compiler) throws CompilerException { + public CompiledTable(String id, + ClassDescriptor objectClass, + JAXXCompiler compiler) throws CompilerException { super(id, objectClass, compiler); tableConstraints = new GridBagConstraints(); tableConstraints.gridx = -1; @@ -79,7 +98,9 @@ } @Override - public void addChild(CompiledObject child, String constraints, JAXXCompiler compiler) throws CompilerException { + public void addChild(CompiledObject child, + String constraints, + JAXXCompiler compiler) throws CompilerException { if (constraints != null) { compiler.reportError("Table does not accept constraints"); } @@ -89,7 +110,8 @@ return; } if (!emptyCell) { - compiler.reportError("Table cells may only have one child component"); + 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 = true; rowConstraints.gridx++; - while (rowConstraints.gridx < rowSpans.size() && rowSpans.get(rowConstraints.gridx) > 0) { + while (rowConstraints.gridx < rowSpans.size() && + rowSpans.get(rowConstraints.gridx) > 0) { rowConstraints.gridx++; } cellConstraints = (GridBagConstraints) rowConstraints.clone(); @@ -139,7 +162,8 @@ } @Override - public CompiledObject createCompiledObject(String id, JAXXCompiler compiler) throws CompilerException { + public CompiledObject createCompiledObject(String id, + JAXXCompiler compiler) throws CompilerException { return new CompiledTable(id, getBeanClass(), compiler); } }
participants (1)
-
tchemit@users.nuiton.org