myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bom...@apache.org
Subject svn commit: r698207 - in /myfaces/tobago/branches/tobago-1.0.x/theme: richmond/src/main/resources/org/apache/myfaces/tobago/renderkit/html/richmond/standard/style/ scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/...
Date Tue, 23 Sep 2008 15:53:49 GMT
Author: bommel
Date: Tue Sep 23 08:53:48 2008
New Revision: 698207

URL: http://svn.apache.org/viewvc?rev=698207&view=rev
Log:
(TOBAGO-176) Starting with a tabNavigationBar
reduce the size of tabNavigationBar in speyside
rename css class tabnavigationbar to tabNavigationBar

Added:
    myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TabNavigationBarRenderer.java
  (with props)
Modified:
    myfaces/tobago/branches/tobago-1.0.x/theme/richmond/src/main/resources/org/apache/myfaces/tobago/renderkit/html/richmond/standard/style/style.css
    myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/BoxToolBarRenderer.java
    myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TabGroupRenderer.java
    myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla/style/style.css
    myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/msie/style/style.css
    myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/style.css
    myfaces/tobago/branches/tobago-1.0.x/theme/speyside/src/main/resources/org/apache/myfaces/tobago/renderkit/html/speyside/standard/property/tobago-theme-config.properties
    myfaces/tobago/branches/tobago-1.0.x/theme/speyside/src/main/resources/org/apache/myfaces/tobago/renderkit/html/speyside/standard/style/style.css

Modified: myfaces/tobago/branches/tobago-1.0.x/theme/richmond/src/main/resources/org/apache/myfaces/tobago/renderkit/html/richmond/standard/style/style.css
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/theme/richmond/src/main/resources/org/apache/myfaces/tobago/renderkit/html/richmond/standard/style/style.css?rev=698207&r1=698206&r2=698207&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/richmond/src/main/resources/org/apache/myfaces/tobago/renderkit/html/richmond/standard/style/style.css
(original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/richmond/src/main/resources/org/apache/myfaces/tobago/renderkit/html/richmond/standard/style/style.css
Tue Sep 23 08:53:48 2008
@@ -370,6 +370,15 @@
   background: #FFCC66 url(../image/toolbarButtonBoxFacetSelectEnabled.gif) repeat-x top;
 }
 
+.tobago-tabNavigationBar-button-selected-enabled {
+  cursor: pointer;
+  margin: 0px;
+  border-left: 1px solid #808080;
+  border-right: 1px solid #FFFFFF;
+  background: #FFCC66 url(../image/toolbarButtonBoxFacetSelectEnabled.gif) repeat-x top;
+}
+
+
 .tobago-toolBar-button-enabled {
   cursor: pointer;
 }

Modified: myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/BoxToolBarRenderer.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/BoxToolBarRenderer.java?rev=698207&r1=698206&r2=698207&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/BoxToolBarRenderer.java
(original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/BoxToolBarRenderer.java
Tue Sep 23 08:53:48 2008
@@ -34,7 +34,6 @@
     } else {
       return attribute;
     }
-
   }
 
   @Override
@@ -47,18 +46,20 @@
     }
   }
 
-
+  @Override
   protected String getHoverClasses(boolean first, boolean last) {
     return "tobago-toolBar-button-hover tobago-toolBar-button-box-facet-hover"
         + (last ? " tobago-box-toolBar-button-hover-last" : "");
   }
 
+  @Override
   protected String getTableClasses(boolean selected, boolean disabled) {
     return
         "tobago-toolbar-button-table tobago-boxToolbar-button-table-box-facet tobago-toolbar-button-table-box-facet-"
             + (selected ? "selected-" : "") + (disabled ? "disabled" : "enabled");
   }
 
+  @Override
   protected String getDivClasses(boolean selected, boolean disabled) {
     return "tobago-toolbar-button tobago-toolbar-button-box-facet tobago-toolbar-button-box-facet-"
         + (selected ? "selected-" : "") + (disabled ? "disabled" : "enabled");

Modified: myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TabGroupRenderer.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/TabGroupRenderer.java?rev=698207&r1=698206&r2=698207&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TabGroupRenderer.java
(original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TabGroupRenderer.java
Tue Sep 23 08:53:48 2008
@@ -356,7 +356,7 @@
     UIToolBar toolBar = (UIToolBar) application.createComponent(UIToolBar.COMPONENT_TYPE);
     toolBar.setId(facesContext.getViewRoot().createUniqueId());
     //toolBar.setLabelPosition(UIToolBar.LABEL_OFF);
-    toolBar.setRendererType("BoxToolBar");
+    toolBar.setRendererType("TabNavigationBar");
     toolBar.setTransient(true);
     //toolBar.setIconSize(AbstractUIToolBar.ICON_OFF);
     toolBar.getChildren().add(scrollLeft);
@@ -504,9 +504,8 @@
     map.put("width", navigationBarWidth);
     map.put("left", width);
     writer.writeStyleAttribute(map);
-    writer.writeClassAttribute("tobago-tabnavigationbar");
-    toolbar.setRendererType("BoxToolBar");
-
+    writer.writeClassAttribute("tobago-tabNavigationBar");
+    
     RenderUtil.encode(facesContext, toolbar);
     writer.endElement(HtmlConstants.DIV);
   }

Added: 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=698207&view=auto
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TabNavigationBarRenderer.java
(added)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TabNavigationBarRenderer.java
Tue Sep 23 08:53:48 2008
@@ -0,0 +1,27 @@
+package org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+public class TabNavigationBarRenderer extends BoxToolBarRenderer {
+
+  @Override
+  protected String getDivClasses(boolean selected, boolean disabled) {
+    return "tobago-toolbar-button tobago-tabNavigationBar-button tobago-tabNavigationBar-button-"
+        + (selected ? "selected-" : "") + (disabled ? "disabled" : "enabled");
+  }
+}

Propchange: myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TabNavigationBarRenderer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TabNavigationBarRenderer.java
------------------------------------------------------------------------------
    svn:keywords = Date Author Id Revision HeadURL

Modified: myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla/style/style.css
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla/style/style.css?rev=698207&r1=698206&r2=698207&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla/style/style.css
(original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/mozilla/style/style.css
Tue Sep 23 08:53:48 2008
@@ -47,6 +47,6 @@
   height: 17px;
 }
 
-div.tobago-tabnavigationbar {
+div.tobago-tabNavigationBar {
   top: -2px;
 }
\ No newline at end of file

Modified: myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/msie/style/style.css
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/msie/style/style.css?rev=698207&r1=698206&r2=698207&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/msie/style/style.css
(original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/msie/style/style.css
Tue Sep 23 08:53:48 2008
@@ -90,7 +90,7 @@
   top: -1px;
 }
 
-div.tobago-tabnavigationbar {
+div.tobago-tabNavigationBar {
   margin-right: 6px;
   top: -1px;
 }

Modified: myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/style.css
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/style.css?rev=698207&r1=698206&r2=698207&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/style.css
(original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/scarborough/src/main/resources/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/style/style.css
Tue Sep 23 08:53:48 2008
@@ -75,7 +75,7 @@
   padding: 11px 11px;
 }
 
-div.tobago-tabnavigationbar {
+div.tobago-tabNavigationBar {
   border-bottom-color: #DDEEFF;
   border-bottom-style: solid;
   border-bottom-width: 1px;
@@ -942,6 +942,10 @@
   font-family: arial, helvetica, sans-serif;
 }
 
+.tobago-tabNavigationBar-button {
+  float: left;
+}
+
 .tobago-toolbar-button-box-facet {
   float: left;
 }
@@ -970,6 +974,17 @@
   background: #c2d3e4;
 }
 
+.tobago-tabNavigationBar-button-selected-enabled {
+  cursor: pointer;
+  margin: 0px;
+  border-right: 1px solid #ddeeff;
+  border-left: 1px solid #6688aa;
+  border-bottom: 1px solid #ddeeff;
+  border-top: 1px solid #6688aa;
+  background: #c2d3e4;
+}
+
+
 .tobago-toolBar-button-disabled {
   color: #778899;
 }

Modified: myfaces/tobago/branches/tobago-1.0.x/theme/speyside/src/main/resources/org/apache/myfaces/tobago/renderkit/html/speyside/standard/property/tobago-theme-config.properties
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/theme/speyside/src/main/resources/org/apache/myfaces/tobago/renderkit/html/speyside/standard/property/tobago-theme-config.properties?rev=698207&r1=698206&r2=698207&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/speyside/src/main/resources/org/apache/myfaces/tobago/renderkit/html/speyside/standard/property/tobago-theme-config.properties
(original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/speyside/src/main/resources/org/apache/myfaces/tobago/renderkit/html/speyside/standard/property/tobago-theme-config.properties
Tue Sep 23 08:53:48 2008
@@ -40,7 +40,7 @@
 TabGroup.paddingWidth=23
 TabGroup.headerHeight=19
 TabGroup.tabLabelExtraWidth=10
-TabGroup.navigationBarWidth=60
+TabGroup.navigationBarWidth=40
 
 Tab.paddingWidth=0
 Tab.paddingHeight=0

Modified: myfaces/tobago/branches/tobago-1.0.x/theme/speyside/src/main/resources/org/apache/myfaces/tobago/renderkit/html/speyside/standard/style/style.css
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/theme/speyside/src/main/resources/org/apache/myfaces/tobago/renderkit/html/speyside/standard/style/style.css?rev=698207&r1=698206&r2=698207&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/theme/speyside/src/main/resources/org/apache/myfaces/tobago/renderkit/html/speyside/standard/style/style.css
(original)
+++ myfaces/tobago/branches/tobago-1.0.x/theme/speyside/src/main/resources/org/apache/myfaces/tobago/renderkit/html/speyside/standard/style/style.css
Tue Sep 23 08:53:48 2008
@@ -148,7 +148,7 @@
   box-sizing: border-box;
 }
 
-div.tobago-tabnavigationbar {
+div.tobago-tabNavigationBar {
   border-right-color: transparent;
   border-right-style: solid;
   border-right-width: 1px;
@@ -709,6 +709,11 @@
   color: #660000;
 }
 
+.tobago-tabNavigationBar-button {
+  float: left;
+  padding:0;
+}
+
 .tobago-toolbar-button-table-disabled {
   color: #808080;
 }



Mime
View raw message