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 2015/05/28 10:00:52 UTC

svn commit: r1682161 - in /myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html: BootstrapClass.java standard/standard/tag/SheetRenderer.java

Author: lofwyr
Date: Thu May 28 08:00:51 2015
New Revision: 1682161

URL: http://svn.apache.org/r1682161
Log:
TOBAGO-1368: Create a new theme which uses Bootstrap
 - Style of sheet

Modified:
    myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/BootstrapClass.java
    myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SheetRenderer.java

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/BootstrapClass.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/BootstrapClass.java?rev=1682161&r1=1682160&r2=1682161&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/BootstrapClass.java (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/BootstrapClass.java Thu May 28 08:00:51 2015
@@ -74,7 +74,9 @@ public enum BootstrapClass implements Cs
   ROW("row"),
   SR_ONLY("sr-only"),
   TABLE("table"),
-  TABLE_HOVER("table-hover");
+  TABLE_BORDERED("table-bordered"),
+  TABLE_HOVER("table-hover"),
+  TABLE_STRIPED("table-striped");
 
   private final String name;
 

Modified: myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SheetRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SheetRenderer.java?rev=1682161&r1=1682160&r2=1682161&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SheetRenderer.java (original)
+++ myfaces/tobago/branches/tobago-3.0.x/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/html/standard/standard/tag/SheetRenderer.java Thu May 28 08:00:51 2015
@@ -237,8 +237,11 @@ public class SheetRenderer extends Layou
     writer.writeAttribute(HtmlAttributes.CELLSPACING, "0", false);
     writer.writeAttribute(HtmlAttributes.CELLPADDING, "0", false);
     writer.writeAttribute(HtmlAttributes.SUMMARY, "", false);
-    writer.writeClassAttribute(Classes.create(sheet, "bodyTable").getStringValue() + " "
-        + BootstrapClass.TABLE.getName() + " " + BootstrapClass.TABLE_HOVER.getName()); // XXX
+    writer.writeClassAttribute(Classes.create(sheet, "bodyTable").getStringValue()
+        + " " + BootstrapClass.TABLE.getName()
+        + " " + BootstrapClass.TABLE_BORDERED.getName()
+        + " " + BootstrapClass.TABLE_STRIPED.getName()
+        + " " + BootstrapClass.TABLE_HOVER.getName()); // XXX
 
     writeColgroup(writer, columnWidths);
 
@@ -774,7 +777,9 @@ public class SheetRenderer extends Layou
     writer.writeAttribute(HtmlAttributes.CELLPADDING, "0", false);
     writer.writeAttribute(HtmlAttributes.SUMMARY, "", false);
     writer.writeClassAttribute(
-        Classes.create(sheet, "headerTable").getStringValue() + " " + BootstrapClass.TABLE.getName());
+        Classes.create(sheet, "headerTable").getStringValue()
+            + " " + BootstrapClass.TABLE.getName()
+            + " " + BootstrapClass.TABLE_BORDERED.getName());
 
     writeColgroup(writer, columnWidths);