[kune-commits] r814 - in trunk/src/main/java/org/ourproject/kune:
platf/client/ui/gridmenu workspace/client/socialnet
vjrj
vjrj at ourproject.org
Wed Jul 23 06:36:17 CEST 2008
Author: vjrj
Date: 2008-07-23 06:36:14 +0200 (Wed, 23 Jul 2008)
New Revision: 814
Modified:
trunk/src/main/java/org/ourproject/kune/platf/client/ui/gridmenu/GridMenuPanel.java
trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPanelNew.java
Log:
Incomplete - task 14: Make users in GroupSummary Draggable to emite (not totally working until emite update to GridMenuPanel new class)
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-23 04:11:58 UTC (rev 813)
+++ trunk/src/main/java/org/ourproject/kune/platf/client/ui/gridmenu/GridMenuPanel.java 2008-07-23 04:36:14 UTC (rev 814)
@@ -85,6 +85,11 @@
this(emptyText, gridDragConfiguration, null, false, false, false, false, false);
}
+ public GridMenuPanel(final String emptyText, final GridDragConfiguration dragConf, final boolean grouped,
+ final boolean withCounters, final boolean withTopBar, final boolean withBottomBar, final boolean withEndIcon) {
+ this(emptyText, dragConf, null, grouped, withCounters, withTopBar, withBottomBar, withEndIcon);
+ }
+
public GridMenuPanel(final String emptyText, final GridDragConfiguration gridDragConfiguration,
final GridDropConfiguration gridDropConfiguration, final boolean grouped, final boolean withCounters,
final boolean withTopBar, final boolean withBottomBar, final boolean withEndIcon) {
@@ -116,6 +121,11 @@
this(emptyText, null, gridDropConfiguration, false, false, false, false, false);
}
+ public GridMenuPanel(final String emptyText, final GridDropConfiguration dropConf, final boolean grouped,
+ final boolean withCounters, final boolean withTopBar, final boolean withBottomBar, final boolean withEndIcon) {
+ this(emptyText, null, dropConf, grouped, withCounters, withTopBar, withBottomBar, withEndIcon);
+ }
+
public void addItem(final GridItem<T> gridItem) {
createGridIfNeeded();
final String id = gridItem.getId();
Modified: trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPanelNew.java
===================================================================
--- trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPanelNew.java 2008-07-23 04:11:58 UTC (rev 813)
+++ trunk/src/main/java/org/ourproject/kune/workspace/client/socialnet/GroupMembersSummaryPanelNew.java 2008-07-23 04:36:14 UTC (rev 814)
@@ -5,6 +5,7 @@
import org.ourproject.kune.platf.client.dto.GroupDTO;
import org.ourproject.kune.platf.client.ui.DropDownPanel;
import org.ourproject.kune.platf.client.ui.gridmenu.GridButton;
+import org.ourproject.kune.platf.client.ui.gridmenu.GridDragConfiguration;
import org.ourproject.kune.platf.client.ui.gridmenu.GridItem;
import org.ourproject.kune.platf.client.ui.gridmenu.GridMenuPanel;
import org.ourproject.kune.workspace.client.i18n.I18nUITranslationService;
@@ -12,6 +13,7 @@
import org.ourproject.kune.workspace.client.ui.newtmp.skel.WorkspaceSkeleton;
import org.ourproject.kune.workspace.client.ui.newtmp.themes.WsTheme;
+import com.calclab.emiteuimodule.client.users.UserGridPanel;
import com.gwtext.client.core.EventObject;
import com.gwtext.client.widgets.BoxComponent;
import com.gwtext.client.widgets.Button;
@@ -35,8 +37,12 @@
super.setHeaderTitle(i18n.t("People and groups collaborating in this group"));
super.setBorderStylePrimaryName("k-dropdownouter-members");
super.addStyleName("kune-Margin-Medium-t");
+
+ final GridDragConfiguration dragConf = new GridDragConfiguration(UserGridPanel.USER_GROUP_DD, i18n
+ .t("Drop in the chat area to start a chat.")
+ + "<br/>" + i18n.t("Drop into a room to invite the user to join the chat room"));
gridMenuPanel = new GridMenuPanel<GroupDTO>(i18n.t("This is an orphaned project, if you are interested "
- + "please request to join to work on it"), true, true, false, true, false);
+ + "please request to join to work on it"), dragConf, true, true, false, true, false);
final EntitySummary entitySummary = ws.getEntitySummary();
entitySummary.addInSummary(this);
entitySummary.addListener(new ContainerListenerAdapter() {
More information about the kune-commits
mailing list