You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2009/07/17 10:47:34 UTC
svn commit: r795014 - in
/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago:
component/AbstractUIGridLayout.java layout/math/PartitionEquation.java
taglib/decl/HasSpacing.java
Author: lofwyr
Date: Fri Jul 17 08:47:34 2009
New Revision: 795014
URL: http://svn.apache.org/viewvc?rev=795014&view=rev
Log:
checkstyle
Modified:
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUIGridLayout.java
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/math/PartitionEquation.java
myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/decl/HasSpacing.java
Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUIGridLayout.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUIGridLayout.java?rev=795014&r1=795013&r2=795014&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUIGridLayout.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/AbstractUIGridLayout.java Fri Jul 17 08:47:34 2009
@@ -97,11 +97,13 @@
LayoutComponent component = temp.getComponent();
// horizontal
- int hIndex = horizontal.addComponent(horizontalIndices[i], cell.getColumnSpan(), getColumnSpacing().getPixel());
+ int hIndex
+ = horizontal.addComponent(horizontalIndices[i], cell.getColumnSpan(), getColumnSpacing().getPixel());
cell.getComponent().setHorizontalIndex(hIndex);
// vertical
- int vIndex = vertical.addComponent(verticalIndices[j], cell.getRowSpan(), getRowSpacing().getPixel());
+ int vIndex
+ = vertical.addComponent(verticalIndices[j], cell.getRowSpan(), getRowSpacing().getPixel());
cell.getComponent().setVerticalIndex(vIndex);
if (component instanceof LayoutContainer) {
Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/math/PartitionEquation.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/math/PartitionEquation.java?rev=795014&r1=795013&r2=795014&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/math/PartitionEquation.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/math/PartitionEquation.java Fri Jul 17 08:47:34 2009
@@ -65,7 +65,7 @@
row[i] = 0.0;
}
// the last variable contains a constant, this is here the sum of spaces between cells.
- row[row.length - 1] = + (span - 1) * outerSpacing - (end - begin - 1) * innerSpacing;
+ row[row.length - 1] = (span - 1) * outerSpacing - (end - begin - 1) * innerSpacing;
for (i = parent; i < parent + span; i++) {
row[i] = -1.0;
Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/decl/HasSpacing.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/decl/HasSpacing.java?rev=795014&r1=795013&r2=795014&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/decl/HasSpacing.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/decl/HasSpacing.java Fri Jul 17 08:47:34 2009
@@ -40,7 +40,8 @@
@TagAttribute
@UIComponentTagAttribute(
type = "org.apache.myfaces.tobago.layout.Measure",
- defaultCode = "getCellspacing() != null ? getCellspacing() : org.apache.myfaces.tobago.config.ThemeConfig.getMeasure(getFacesContext(), this, \"columnSpacing\")")
+ defaultCode = "getCellspacing() != null ? getCellspacing() : "
+ + "org.apache.myfaces.tobago.config.ThemeConfig.getMeasure(getFacesContext(), this, \"columnSpacing\")")
void setColumnSpacing(String columnSpacing);
/**
@@ -49,6 +50,7 @@
@TagAttribute
@UIComponentTagAttribute(
type = "org.apache.myfaces.tobago.layout.Measure",
- defaultCode = "getCellspacing() != null ? getCellspacing() : org.apache.myfaces.tobago.config.ThemeConfig.getMeasure(getFacesContext(), this, \"rowSpacing\")")
+ defaultCode = "getCellspacing() != null ? getCellspacing() : "
+ + "org.apache.myfaces.tobago.config.ThemeConfig.getMeasure(getFacesContext(), this, \"rowSpacing\")")
void setRowSpacing(String rowSpacing);
}