git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@1920 af16638f-c34d-0410-8cfa-b39d5352b314
This commit is contained in:
parent
1fdcd1a6ad
commit
9f6e717e21
@ -21,6 +21,8 @@ package org.bigbluebutton.modules.chat.view
|
||||
{
|
||||
import flash.events.Event;
|
||||
|
||||
import flexlib.events.SuperTabEvent;
|
||||
|
||||
import mx.core.Container;
|
||||
|
||||
import org.bigbluebutton.modules.chat.ChatModuleConstants;
|
||||
@ -52,6 +54,7 @@ package org.bigbluebutton.modules.chat.view
|
||||
_chatWindow.name = _module.username;
|
||||
_chatWindow.addEventListener(ChatWindow.SEND_MESSAGE, onSendChatMessage);
|
||||
_chatWindow.addEventListener(ChatModuleConstants.OPEN_CHAT_BOX, onOpenChatBox);
|
||||
_chatWindow.addEventListener(SuperTabEvent.TAB_CLOSE, onUserClosedTab);
|
||||
}
|
||||
|
||||
private function time() : String
|
||||
@ -176,5 +179,10 @@ package org.bigbluebutton.modules.chat.view
|
||||
sendNotification(ChatModuleConstants.OPEN_CHAT_BOX, chatBox);
|
||||
return facade.retrieveMediator(owner) as ChatBoxMediator;
|
||||
}
|
||||
|
||||
private function onUserClosedTab(e:SuperTabEvent):void{
|
||||
var name:String = _chatWindow.tabNav.getChildAt(e.tabIndex).name;
|
||||
facade.removeMediator(name);
|
||||
}
|
||||
}
|
||||
}
|
@ -25,10 +25,12 @@
|
||||
width="590" height="300" showCloseButton="false"
|
||||
focusEnd="setFocusOff()"
|
||||
creationComplete="init()"
|
||||
implements="org.bigbluebutton.common.IBbbModuleWindow" xmlns:components="org.bigbluebutton.modules.chat.view.components.*">
|
||||
implements="org.bigbluebutton.common.IBbbModuleWindow" xmlns:components="org.bigbluebutton.modules.chat.view.components.*" xmlns:code="http://code.google.com/p/flexlib/">
|
||||
|
||||
<mx:Script>
|
||||
<![CDATA[
|
||||
import flexlib.events.SuperTabEvent;
|
||||
import flexlib.controls.tabBarClasses.SuperTab;
|
||||
import org.bigbluebutton.modules.chat.model.business.UserVO;
|
||||
import mx.controls.Alert;
|
||||
import org.bigbluebutton.modules.chat.ChatModuleConstants;
|
||||
@ -53,6 +55,11 @@
|
||||
private function init():void{
|
||||
addParticipant(new UserVO("All", "0"));
|
||||
dispatchEvent(new Event(ChatModuleConstants.OPEN_CHAT_BOX));
|
||||
callLater(initNonCloseTab);
|
||||
}
|
||||
|
||||
private function initNonCloseTab():void{
|
||||
tabNav.setClosePolicyForTab(0, SuperTab.CLOSE_NEVER);
|
||||
}
|
||||
|
||||
public function setFocusOn(component:UIComponent):void
|
||||
@ -146,10 +153,14 @@
|
||||
}
|
||||
return "unknown user";
|
||||
}
|
||||
|
||||
private function onTabClose(e:SuperTabEvent):void{
|
||||
dispatchEvent(e);
|
||||
}
|
||||
|
||||
]]>
|
||||
</mx:Script>
|
||||
<mx:TabNavigator id="tabNav" width="100%" height="100%" change="updateTabNav()"/>
|
||||
<code:SuperTabNavigator id="tabNav" width="100%" height="100%" change="updateTabNav()" tabClose="onTabClose(event)"/>
|
||||
|
||||
<mx:ApplicationControlBar id="chatCtrlBar" width="100%" height="10%">
|
||||
<mx:TextInput id="txtMsg" width="100%" enter="sendMessages()"/>
|
||||
|
@ -105,7 +105,7 @@ package org.bigbluebutton.modules.deskShare.view
|
||||
}
|
||||
break;
|
||||
case DeskShareModuleConstants.OPEN_WINDOW:
|
||||
_window.title = "Desk Share";
|
||||
_window.title = "Deskop Sharing";
|
||||
_window.xPosition = 675;
|
||||
_window.yPosition = 310;
|
||||
facade.sendNotification(DeskShareModuleConstants.ADD_WINDOW, _window);
|
||||
@ -171,11 +171,9 @@ package org.bigbluebutton.modules.deskShare.view
|
||||
_window.videoHolder.y = 20;
|
||||
|
||||
_window.dimensionsBox.visible = false;
|
||||
_window.height = 600;//_window.videoHeight + 73;
|
||||
_window.width = 500;//_window.videoWidth + 12;
|
||||
_window.height = 600;
|
||||
_window.width = 500;
|
||||
_window.canvas.visible = true;
|
||||
//_window.canvas.width = videoWidth;
|
||||
//_window.canvas.height = videoHeight;
|
||||
_window.ns = new NetStream(proxy.getConnection());
|
||||
_window.ns.addEventListener(AsyncErrorEvent.ASYNC_ERROR, onAsyncError);
|
||||
_window.ns.client = this;
|
||||
|
Loading…
Reference in New Issue
Block a user