r954 - in trunk/src/main/java/org/ourproject/kune: chat/client chat/client/cnt docs/client/ctx
Author: vjrj Date: 2008-11-17 11:27:04 +0100 (Mon, 17 Nov 2008) New Revision: 954 Added: trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoom.java trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoomPanel.java trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoomPresenter.java trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoomView.java Removed: trunk/src/main/java/org/ourproject/kune/chat/client/cnt/room/ trunk/src/main/java/org/ourproject/kune/docs/client/ctx/admin/ Modified: trunk/src/main/java/org/ourproject/kune/chat/client/ChatClientModule.java Log: Incomplete - task New Register of type_id and capabilities Modified: trunk/src/main/java/org/ourproject/kune/chat/client/ChatClientModule.java =================================================================== --- trunk/src/main/java/org/ourproject/kune/chat/client/ChatClientModule.java 2008-11-17 10:18:11 UTC (rev 953) +++ trunk/src/main/java/org/ourproject/kune/chat/client/ChatClientModule.java 2008-11-17 10:27:04 UTC (rev 954) @@ -18,9 +18,9 @@ * */package org.ourproject.kune.chat.client; -import org.ourproject.kune.chat.client.cnt.room.ChatRoom; -import org.ourproject.kune.chat.client.cnt.room.ChatRoomPanel; -import org.ourproject.kune.chat.client.cnt.room.ChatRoomPresenter; +import org.ourproject.kune.chat.client.cnt.ChatRoom; +import org.ourproject.kune.chat.client.cnt.ChatRoomPanel; +import org.ourproject.kune.chat.client.cnt.ChatRoomPresenter; import org.ourproject.kune.chat.client.ctx.ChatContext; import org.ourproject.kune.chat.client.ctx.ChatContextPresenter; import org.ourproject.kune.chat.client.ctx.room.AddRoom; Copied: trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoom.java (from rev 949, trunk/src/main/java/org/ourproject/kune/chat/client/cnt/room/ChatRoom.java) =================================================================== --- trunk/src/main/java/org/ourproject/kune/chat/client/cnt/room/ChatRoom.java 2008-11-11 13:33:36 UTC (rev 949) +++ trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoom.java 2008-11-17 10:27:04 UTC (rev 954) @@ -0,0 +1,23 @@ +/* + * + * Copyright (C) 2007-2008 The kune development team (see CREDITS for details) + * This file is part of kune. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ +package org.ourproject.kune.chat.client.cnt; + +public interface ChatRoom { +} Property changes on: trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoom.java ___________________________________________________________________ Name: svn:mergeinfo + Copied: trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoomPanel.java (from rev 949, trunk/src/main/java/org/ourproject/kune/chat/client/cnt/room/ChatRoomPanel.java) =================================================================== --- trunk/src/main/java/org/ourproject/kune/chat/client/cnt/room/ChatRoomPanel.java 2008-11-11 13:33:36 UTC (rev 949) +++ trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoomPanel.java 2008-11-17 10:27:04 UTC (rev 954) @@ -0,0 +1,35 @@ +/* + * + * Copyright (C) 2007-2008 The kune development team (see CREDITS for details) + * This file is part of kune. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ +package org.ourproject.kune.chat.client.cnt; + +import org.ourproject.kune.platf.client.services.I18nTranslationService; +import org.ourproject.kune.workspace.client.cnt.FoldableContentPanel; +import org.ourproject.kune.workspace.client.skel.WorkspaceSkeleton; + +public class ChatRoomPanel extends FoldableContentPanel implements ChatRoomView { + + public ChatRoomPanel(final WorkspaceSkeleton ws, I18nTranslationService i18n) { + super(ws, i18n); + } + + public void setInfo(String info) { + setLabel(info); + } +} Copied: trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoomPresenter.java (from rev 949, trunk/src/main/java/org/ourproject/kune/chat/client/cnt/room/ChatRoomPresenter.java) =================================================================== --- trunk/src/main/java/org/ourproject/kune/chat/client/cnt/room/ChatRoomPresenter.java 2008-11-11 13:33:36 UTC (rev 949) +++ trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoomPresenter.java 2008-11-17 10:27:04 UTC (rev 954) @@ -0,0 +1,62 @@ +/* + * + * Copyright (C) 2007-2008 The kune development team (see CREDITS for details) + * This file is part of kune. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ +package org.ourproject.kune.chat.client.cnt; + +import org.ourproject.kune.chat.client.ChatClientTool; +import org.ourproject.kune.platf.client.actions.ActionRegistry; +import org.ourproject.kune.platf.client.actions.toolbar.ActionContentToolbar; +import org.ourproject.kune.platf.client.dto.StateContainerDTO; +import org.ourproject.kune.platf.client.dto.StateToken; +import org.ourproject.kune.platf.client.state.Session; +import org.ourproject.kune.platf.client.state.StateManager; +import org.ourproject.kune.workspace.client.cnt.FoldableContentPresenter; +import org.ourproject.kune.workspace.client.i18n.I18nUITranslationService; +import org.ourproject.kune.workspace.client.site.Site; + +public class ChatRoomPresenter extends FoldableContentPresenter implements ChatRoom { + + private ChatRoomView view; + private final I18nUITranslationService i18n; + + public ChatRoomPresenter(StateManager stateManager, Session session, I18nUITranslationService i18n, + ActionContentToolbar toolbar, final ActionRegistry<StateToken> actionRegistry) { + super(ChatClientTool.NAME, stateManager, session, toolbar, actionRegistry); + this.i18n = i18n; + } + + public void init(final ChatRoomView view) { + super.init(view); + this.view = view; + } + + @Override + protected void setState(StateContainerDTO state) { + if (state.getTypeId().equals(ChatClientTool.TYPE_ROOT)) { + if (state.getRootContainer().getChilds().size() == 0) { + view.setInfo(i18n.t("This group has no chat rooms.")); + } else { + view.setInfo(""); + } + } else { + view.setInfo("History of room conversations ..." + Site.IN_DEVELOPMENT); + } + super.setState(state); + } +} Property changes on: trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoomPresenter.java ___________________________________________________________________ Name: svn:mergeinfo + Copied: trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoomView.java (from rev 949, trunk/src/main/java/org/ourproject/kune/chat/client/cnt/room/ChatRoomView.java) =================================================================== --- trunk/src/main/java/org/ourproject/kune/chat/client/cnt/room/ChatRoomView.java 2008-11-11 13:33:36 UTC (rev 949) +++ trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoomView.java 2008-11-17 10:27:04 UTC (rev 954) @@ -0,0 +1,27 @@ +/* + * + * Copyright (C) 2007-2008 The kune development team (see CREDITS for details) + * This file is part of kune. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ +package org.ourproject.kune.chat.client.cnt; + +import org.ourproject.kune.workspace.client.cnt.AbstractContentView; + +public interface ChatRoomView extends AbstractContentView { + + void setInfo(String info); +} Property changes on: trunk/src/main/java/org/ourproject/kune/chat/client/cnt/ChatRoomView.java ___________________________________________________________________ Name: svn:mergeinfo +
participants (1)
-
vjrj