myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r924186 - in /myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag: TreeListboxRenderer.java TreeNodeRenderer.java
Date Wed, 17 Mar 2010 08:07:55 GMT
Author: lofwyr
Date: Wed Mar 17 08:07:55 2010
New Revision: 924186

URL: http://svn.apache.org/viewvc?rev=924186&view=rev
Log:
checkstyle

Modified:
    myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeListboxRenderer.java
    myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeNodeRenderer.java

Modified: myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeListboxRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeListboxRenderer.java?rev=924186&r1=924185&r2=924186&view=diff
==============================================================================
--- myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeListboxRenderer.java
(original)
+++ myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeListboxRenderer.java
Wed Mar 17 08:07:55 2010
@@ -116,7 +116,7 @@ public class TreeListboxRenderer extends
     Style scrollDivStyle = new Style();
     scrollDivStyle.setWidth(Measure.valueOf(6 * 160)); // todo: depth * width of a select

     scrollDivStyle.setHeight(style.getHeight() // todo: what, when there is no scrollbar?

-        .subtract(15));// // todo: scrollbar height
+        .subtract(15)); // todo: scrollbar height
     scrollDivStyle.setPosition(Position.ABSOLUTE);
     writer.writeStyleAttribute(scrollDivStyle);
     
@@ -154,4 +154,4 @@ public class TreeListboxRenderer extends
     int last = clientId.lastIndexOf(':') + 1;
     return clientId.substring(last);
   }
-}
\ No newline at end of file
+}

Modified: myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeNodeRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeNodeRenderer.java?rev=924186&r1=924185&r2=924186&view=diff
==============================================================================
--- myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeNodeRenderer.java
(original)
+++ myfaces/tobago/trunk/theme/scarborough/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeNodeRenderer.java
Wed Mar 17 08:07:55 2010
@@ -114,7 +114,7 @@ public class TreeNodeRenderer extends Co
     if (tree instanceof UITree || tree instanceof UITreeMenu) {
       encodeBeginMenuAndNormal(facesContext, node, tree, tree instanceof UITreeMenu);
     } else { // if (tree instanceof UITreeListbox)
-      encodeBeginListbox(facesContext, node, (UITreeListbox)tree);
+      encodeBeginListbox(facesContext, node, (UITreeListbox) tree);
     }
   }
 
@@ -128,7 +128,7 @@ public class TreeNodeRenderer extends Co
 
     if (level > 0) { // root will not rendered as an option
       writer.startElement(HtmlConstants.OPTION, null);
-      writer.writeAttribute(HtmlAttributes.VALUE, node.getValue().toString(), true);// XXX
converter?
+      writer.writeAttribute(HtmlAttributes.VALUE, node.getValue().toString(), true); // XXX
converter?
       writer.writeIdAttribute(id);
       writer.writeAttribute(HtmlAttributes.SELECTED, expanded);
       writer.writeText("(" + level + ") " + node.getLabel());
@@ -199,9 +199,9 @@ public class TreeNodeRenderer extends Co
     boolean showJunctions = false;
     boolean showRootJunction = false;
     if (tree instanceof UITree) {
-      showIcons = ((UITree)tree).isShowIcons();
-      showJunctions = ((UITree)tree).isShowJunctions();
-      showRootJunction = ((UITree)tree).isShowRootJunction();
+      showIcons = ((UITree) tree).isShowIcons();
+      showJunctions = ((UITree) tree).isShowJunctions();
+      showRootJunction = ((UITree) tree).isShowRootJunction();
     }
     boolean showRoot = tree.isShowRoot();
 



Mime
View raw message