myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r927755 - in /myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout: Measure.java PixelMeasure.java
Date Fri, 26 Mar 2010 10:03:23 GMT
Author: lofwyr
Date: Fri Mar 26 10:03:23 2010
New Revision: 927755

URL: http://svn.apache.org/viewvc?rev=927755&view=rev
Log:
add method: divide

Modified:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/Measure.java
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/PixelMeasure.java

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/Measure.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/Measure.java?rev=927755&r1=927754&r2=927755&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/Measure.java
(original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/Measure.java
Fri Mar 26 10:03:23 2010
@@ -105,6 +105,8 @@ public abstract class Measure implements
 
   public abstract Measure multiply(int times);
 
+  public abstract Measure divide(int times);
+
   /**
    * @deprecated since 1.5.0, please use subtractNotNegative
    */

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/PixelMeasure.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/PixelMeasure.java?rev=927755&r1=927754&r2=927755&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/PixelMeasure.java
(original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/layout/PixelMeasure.java
Fri Mar 26 10:03:23 2010
@@ -66,6 +66,10 @@ public final class PixelMeasure extends 
     return pixelValueOf(pixel * times);
   }
 
+  public Measure divide(int times) {
+    return pixelValueOf(pixel / times);
+  }
+
   public Measure subtractNotNegative(Measure m) {
     if (m == null) {
       return this;



Mime
View raw message