- open notes module window

This commit is contained in:
Richard Alam 2013-01-01 22:19:58 +00:00
parent 00ea34d0b0
commit b8ccabd292
4 changed files with 45 additions and 4 deletions

View File

@ -30,9 +30,13 @@
<mx:Script>
<![CDATA[
import org.bigbluebutton.common.LogUtil;
import com.asfusion.mate.events.Dispatcher;
import org.bigbluebutton.common.LogUtil;
import org.bigbluebutton.modules.notes.events.NotesModuleStartEvent;
private var _moduleName:String = "Layout Module";
private var _dispatcher:Dispatcher = new Dispatcher();
private function onCreationComplete():void {
LogUtil.debug(_moduleName + " initialized");
@ -43,7 +47,7 @@
}
public function start(attributes:Object):void {
_dispatcher.dispatchEvent(new NotesModuleStartEvent());
}
public function stop():void {

View File

@ -38,6 +38,7 @@
<EventHandlers type="{NotesModuleStartEvent.NOTES_MODULE_START}">
<ObjectBuilder generator="{NotesMessageService}" cache="global" constructorArguments="{scope.dispatcher}"/>
<ObjectBuilder generator="{NotesEventMapDelegate}" cache="global" constructorArguments="{scope.dispatcher}"/>
</EventHandlers>
<EventHandlers type="{SaveNoteEvent.SAVE_NOTE}">

View File

@ -0,0 +1,29 @@
package org.bigbluebutton.modules.notes.maps
{
import com.asfusion.mate.events.Dispatcher;
import flash.events.IEventDispatcher;
import org.bigbluebutton.common.events.OpenWindowEvent;
import org.bigbluebutton.modules.notes.views.NotesWindow;
public class NotesEventMapDelegate
{
private var _notesWindow:NotesWindow;
private var _dispatcher:IEventDispatcher;
public function NotesEventMapDelegate(dispatcher:IEventDispatcher)
{
_dispatcher = dispatcher;
openNotesWindow();
}
public function openNotesWindow():void {
_notesWindow = new NotesWindow();
var event:OpenWindowEvent = new OpenWindowEvent(OpenWindowEvent.OPEN_WINDOW_EVENT);
event.window = _notesWindow;
_dispatcher.dispatchEvent(event);
}
}
}

View File

@ -1,6 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<ns:MDIWindow xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:ns="http://code.google.com/p/flexlib/"
implements="org.bigbluebutton.common.IBbbModuleWindow"
layout="absolute" width="400" height="300">
<mx:Script>
<![CDATA[
public function getPrefferedPosition():String{
return "top-left";
}
]]>
</mx:Script>
</ns:MDIWindow>