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 2007/05/03 13:11:44 UTC
svn commit: r534792 - in
/myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago:
component/TreeModelBuilder.java
renderkit/html/scarborough/standard/tag/TreeNodeRenderer.java
Author: lofwyr
Date: Thu May 3 04:11:43 2007
New Revision: 534792
URL: http://svn.apache.org/viewvc?view=rev&rev=534792
Log:
fix style bugs
Modified:
myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/TreeModelBuilder.java
myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeNodeRenderer.java
Modified: myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/TreeModelBuilder.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/TreeModelBuilder.java?view=diff&rev=534792&r1=534791&r2=534792
==============================================================================
--- myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/TreeModelBuilder.java (original)
+++ myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/component/TreeModelBuilder.java Thu May 3 04:11:43 2007
@@ -1,5 +1,22 @@
package org.apache.myfaces.tobago.component;
+/*
+ * 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.
+ */
+
import org.apache.myfaces.tobago.model.MixedTreeModel;
/**
Modified: myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeNodeRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeNodeRenderer.java?view=diff&rev=534792&r1=534791&r2=534792
==============================================================================
--- myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeNodeRenderer.java (original)
+++ myfaces/tobago/trunk/sandbox/src/main/java/org/apache/myfaces/tobago/renderkit/html/scarborough/standard/tag/TreeNodeRenderer.java Thu May 3 04:11:43 2007
@@ -226,7 +226,8 @@
throws IOException {
String menuOpen = ResourceManagerUtil.getImageWithPath(facesContext, "image/treeMenuOpen.gif");
String menuClose = ResourceManagerUtil.getImageWithPath(facesContext, "image/treeMenuClose.gif");
- String onclick = "new_tobagoTreeNodeToggle(this.parentNode, '" + treeId + "', null, null, '" + menuOpen + "', '" + menuClose + "')";
+ String onclick = "new_tobagoTreeNodeToggle(this.parentNode, '" + treeId + "', null, null, '"
+ + menuOpen + "', '" + menuClose + "')";
String src = expanded ? menuOpen : menuClose;
writer.startElement(IMG);
writer.writeClassAttribute("tobago-tree-menu-icon");
@@ -411,7 +412,8 @@
if (this.isFolder) {
// FIXME: change the icons when klick on the icon
str += '<img class="tobago-tree-menu-icon" id="' + this.id + '-menuIcon"'
- + 'src="' + (this.expanded ? this.treeResources.getImage("treeMenuOpen.gif") : this.treeResources.getImage("treeMenuClose.gif")) + ' " '
+ + 'src="' + (this.expanded ? this.treeResources.getImage("treeMenuOpen.gif")
+ : this.treeResources.getImage("treeMenuClose.gif")) + ' " '
+ 'onclick="toggle(this.parentNode, \'' + this.treeHiddenId
+ '\', null, null, \'' + this.treeResources.getImage("treeMenuOpen.gif")
+ '\', \'' + this.treeResources.getImage("treeMenuClose.gif")
@@ -511,4 +513,4 @@
return str;
};
-*/
\ No newline at end of file
+*/