myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bom...@apache.org
Subject svn commit: r698639 - /myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TabNavigationBarRenderer.java
Date Wed, 24 Sep 2008 16:39:19 GMT
Author: bommel
Date: Wed Sep 24 09:39:18 2008
New Revision: 698639

URL: http://svn.apache.org/viewvc?rev=698639&view=rev
Log:
(TOBAGO-176) Starting with a tabNavigationBar
more specified css for TabNavigationBar

Modified:
    myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TabNavigationBarRenderer.java

Modified: myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TabNavigationBarRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TabNavigationBarRenderer.java?rev=698639&r1=698638&r2=698639&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TabNavigationBarRenderer.java
(original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TabNavigationBarRenderer.java
Wed Sep 24 09:39:18 2008
@@ -21,7 +21,20 @@
 
   @Override
   protected String getDivClasses(boolean selected, boolean disabled) {
-    return "tobago-toolbar-button tobago-tabNavigationBar-button tobago-tabNavigationBar-button-"
+    return "tobago-tabNavigationBar-button tobago-tabNavigationBar-button-"
         + (selected ? "selected-" : "") + (disabled ? "disabled" : "enabled");
   }
+
+  @Override
+  protected String getHoverClasses(boolean first, boolean last) {
+    return "tobago-tabNavigationBar-button-hover"
+        + (last ? " tobago-box-toolBar-button-hover-last" : "");
+  }
+
+  protected String getTableClasses(boolean selected, boolean disabled) {
+    return
+        "tobago-tabNavigationBar-button-table tobago-tabNavigationBar-button-"
+            + (selected ? "selected-" : "") + (disabled ? "disabled" : "enabled");
+  }
+
 }



Mime
View raw message