[kune-commits] r963 - in trunk/src/main/java/org/ourproject/kune/workspace/client: skel socialnet tags

vjrj vjrj at ourproject.org
Sat Nov 22 20:18:45 CET 2008


Author: vjrj
Date: 2008-11-22 20:18:43 +0100 (Sat, 22 Nov 2008)
New Revision: 963

Modified:
   trunk/src/main/java/org/ourproject/kune/workspace/client/skel/SummaryPanel.java
   trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryPanel.java
   trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryPresenter.java
   trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPanel.java
   trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPresenter.java
   trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryPresenter.java
   trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryView.java
   trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPanel.java
   trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPresenter.java
Log:
Complete - task TagSummary not show when empty and we add a tag 


Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/skel/SummaryPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/skel/SummaryPanel.java	2008-11-22 16:44:37 UTC (rev 962)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/skel/SummaryPanel.java	2008-11-22 19:18:43 UTC (rev 963)
@@ -53,12 +53,14 @@
 
     public void addInSummary() {
         ws.addInSummary(this);
-        this.expand();
+        // this.expand();
+        doLayoutIfNeeded();
     }
 
     public void doLayoutIfNeeded() {
         if (super.isRendered()) {
             super.doLayout();
+            ws.refreshSummary();
         }
     }
 
@@ -66,6 +68,5 @@
     public void setVisible(final boolean visible) {
         super.setVisible(visible);
         doLayoutIfNeeded();
-        ws.refreshSummary();
     }
 }

Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryPanel.java	2008-11-22 16:44:37 UTC (rev 962)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryPanel.java	2008-11-22 19:18:43 UTC (rev 963)
@@ -155,6 +155,7 @@
 
     public void showBuddiesNotVisible() {
         flowPanel.add(noBuddiesPublic);
+        super.doLayoutIfNeeded();
     }
 
     private void doAction(final ActionItem<UserSimpleDTO> actionItem) {

Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryPresenter.java	2008-11-22 16:44:37 UTC (rev 962)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/BuddiesSummaryPresenter.java	2008-11-22 19:18:43 UTC (rev 963)
@@ -130,6 +130,7 @@
                 view.show();
             } else {
                 view.showBuddiesNotVisible();
+                view.show();
             }
         } else {
             view.hide();

Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPanel.java	2008-11-22 16:44:37 UTC (rev 962)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPanel.java	2008-11-22 19:18:43 UTC (rev 963)
@@ -132,6 +132,6 @@
     public void showMembersNotVisible() {
         noMembersPublic.setVisible(true);
         gridMenuPanel.setVisible(false);
+        doLayoutIfNeeded();
     }
-
 }

Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPresenter.java	2008-11-22 16:44:37 UTC (rev 962)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPresenter.java	2008-11-22 19:18:43 UTC (rev 963)
@@ -237,8 +237,8 @@
             } else {
                 view.clear();
                 view.showMembersNotVisible();
+                view.setVisible(true);
             }
         }
     }
-
 }

Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryPresenter.java	2008-11-22 16:44:37 UTC (rev 962)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryPresenter.java	2008-11-22 19:18:43 UTC (rev 963)
@@ -77,10 +77,6 @@
         this.view = view;
     }
 
-    private void hide() {
-        view.hide();
-    }
-
     @SuppressWarnings("unchecked")
     private void setState(final StateAbstractDTO state) {
         final ParticipationDataDTO participation = state.getParticipation();
@@ -100,9 +96,9 @@
             view.addItem(createGridItem(collabCategory, group, rights, unJoinMenuItem));
         }
         if (numAdmins > 0 || numCollaborators > 0) {
-            view.show();
+            view.setVisible(true);
         } else {
-            hide();
+            view.setVisible(false);
         }
     }
 }

Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryView.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryView.java	2008-11-22 16:44:37 UTC (rev 962)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/ParticipationSummaryView.java	2008-11-22 19:18:43 UTC (rev 963)
@@ -30,10 +30,8 @@
 
     void clear();
 
-    void hide();
-
     void setTheme(WsTheme oldTheme, WsTheme newTheme);
 
-    void show();
+    void setVisible(boolean b);
 
 }

Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPanel.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPanel.java	2008-11-22 16:44:37 UTC (rev 962)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPanel.java	2008-11-22 19:18:43 UTC (rev 963)
@@ -50,7 +50,7 @@
         super.add(vp);
         // super.setBorderStylePrimaryName("k-dropdownouter-tags");
         flowPanel.addStyleName("kune-Margin-Small-trbl");
-        ws.addInSummary(this);
+        addInSummary();
     }
 
     public void addTag(final String name, Long count, String style) {

Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPresenter.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPresenter.java	2008-11-22 16:44:37 UTC (rev 962)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/tags/TagsSummaryPresenter.java	2008-11-22 19:18:43 UTC (rev 963)
@@ -86,7 +86,6 @@
     void setState(final StateContainerDTO state) {
         if (state.getTagCloudResult() != null && state.getTagCloudResult().getTagCountList().size() > 0) {
             Log.debug(state.getTagCloudResult().toString());
-            view.setVisible(true);
             setCloud(state.getTagCloudResult());
         } else {
             view.setVisible(false);
@@ -104,5 +103,6 @@
             int size = Math.round((MINSIZE + (tagCount.getCount() - min) * step));
             view.addTag(tagCount.getName(), tagCount.getCount(), "kune-ft" + size + "px");
         }
+        view.setVisible(true);
     }
 }




More information about the kune-commits mailing list