[kune-commits] r807 - trunk/src/main/java/org/ourproject/kune/platf/client/ui/gridmenu

vjrj vjrj at ourproject.org
Sun Jul 20 22:48:23 CEST 2008


Author: vjrj
Date: 2008-07-20 22:48:21 +0200 (Sun, 20 Jul 2008)
New Revision: 807

Modified:
   trunk/src/main/java/org/ourproject/kune/platf/client/ui/gridmenu/GridMenuPanel.java
Log:
Incomplete - task 9: New DropDown+ GridMenuPanel 


Modified: trunk/src/main/java/org/ourproject/kune/platf/client/ui/gridmenu/GridMenuPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/platf/client/ui/gridmenu/GridMenuPanel.java	2008-07-20 20:33:37 UTC (rev 806)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/gridmenu/GridMenuPanel.java	2008-07-20 20:48:21 UTC (rev 807)
@@ -325,6 +325,10 @@
 	final ColumnConfig endIconColumn = new ColumnConfig("EndIcon", END_ICON_HTML, 24, false, endIconHtmlRenderer,
 		END_ICON_HTML);
 	final ColumnConfig groupColumn = new ColumnConfig(GROUP, GROUP, 0);
+	// Fixed widths?
+	iconColumn.setFixed(true);
+	titleColumn.setFixed(false);
+	endIconColumn.setFixed(true);
 	final ColumnConfig[] columnsConfigs = withEndIcon ? new ColumnConfig[] { iconColumn, titleColumn,
 		endIconColumn, groupColumn } : new ColumnConfig[] { iconColumn, titleColumn, groupColumn };
 	columnModel = new ColumnModel(columnsConfigs);
@@ -365,12 +369,13 @@
 	    final String groupEndIconHtmlTpl = "{[values.rs[0].data[\"" + GROUP_ENDICON_HTML + "\"]]}";
 	    // http://www.gwt-ext.com/forum/viewtopic.php?f=7&t=1388&p=6789&hilit=setGroupTextTpl#p6789
 	    if (withCounters) {
-		groupView.setGroupTextTpl("<span ext:qtip=\"{[values.rs[0].data[\"" + GROUP_TOOLTIP
-			+ "\"]]}\">{[values.rs[0].data[\"" + GROUP + "\"]]} ({[values.rs.length]})</span>"
+		groupView.setGroupTextTpl("<span style=\"overflow: hidden;\" ext:qtip=\"{[values.rs[0].data[\""
+			+ GROUP_TOOLTIP + "\"]]}\">{[values.rs[0].data[\"" + GROUP
+			+ "\"]]} ({[values.rs.length]})</span>" + groupEndIconHtmlTpl);
+	    } else {
+		groupView.setGroupTextTpl("<span style=\"overflow: hidden;\" ext:qtip=\"{[values.rs[0].data[\""
+			+ GROUP_TOOLTIP + "\"]]}\">{[values.rs[0].data[\"" + GROUP + "\"]]}</span>"
 			+ groupEndIconHtmlTpl);
-	    } else {
-		groupView.setGroupTextTpl("<span ext:qtip=\"{[values.rs[0].data[\"" + GROUP_TOOLTIP
-			+ "\"]]}\">{[values.rs[0].data[\"" + GROUP + "\"]]}</span>" + groupEndIconHtmlTpl);
 	    }
 	    // Other sample with condition:
 	    // view.setGroupTextTpl("{text} ({[values.rs.length]}




More information about the kune-commits mailing list