Fixed Issue 117
git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@2030 af16638f-c34d-0410-8cfa-b39d5352b314
This commit is contained in:
parent
58576a3282
commit
f424098adb
@ -23,10 +23,12 @@
|
||||
<MDIWindow xmlns="flexlib.mdi.containers.*"
|
||||
xmlns:mx="http://www.adobe.com/2006/mxml"
|
||||
title="Log Window" creationComplete="displayLogMessages();"
|
||||
width="700" height="200" showCloseButton="true">
|
||||
width="700" height="200" showCloseButton="true" xmlns:text="flash.text.*">
|
||||
|
||||
<mx:Script>
|
||||
<![CDATA[
|
||||
import mx.controls.TextArea;
|
||||
import flexlib.controls.Highlighter;
|
||||
import org.bigbluebutton.util.logging.Logger;
|
||||
import mx.logging.Log;
|
||||
import mx.logging.LogEventLevel;
|
||||
@ -35,6 +37,8 @@
|
||||
|
||||
[Bindable]
|
||||
public var logs:Logger;
|
||||
private var highlighter:Highlighter;
|
||||
private var textField:TextField;
|
||||
|
||||
private function changeTarget():void {
|
||||
if (!chkFlag.selected) {
|
||||
@ -44,22 +48,38 @@
|
||||
}
|
||||
}
|
||||
|
||||
private function filterTarget():void {
|
||||
logs.changeFilterTarget(idFilter.text.split(","));
|
||||
}
|
||||
|
||||
private function displayLogMessages():void {
|
||||
this.textField = this.getTextField(this.txtOutput);
|
||||
highlighter = new Highlighter(this.textField);
|
||||
txtOutput.text = logs.messages
|
||||
}
|
||||
|
||||
private function filter():void{
|
||||
this.highlighter.reset();
|
||||
this.highlighter.highlightWordInstances(idFilter.text, false);
|
||||
}
|
||||
|
||||
public function getTextField(component:TextArea):TextField{
|
||||
var len:int = component.numChildren;
|
||||
var r:TextField;
|
||||
for(var i:int=0; i<len; i++){
|
||||
var thisChild:DisplayObject = component.getChildAt(i);
|
||||
if(thisChild is TextField){
|
||||
r = thisChild as TextField;
|
||||
}
|
||||
}
|
||||
return r;
|
||||
}
|
||||
|
||||
|
||||
]]>
|
||||
</mx:Script>
|
||||
<mx:TextArea id="txtOutput" text="" updateComplete="txtOutput.verticalScrollPosition = txtOutput.maxVerticalScrollPosition + 1;"
|
||||
width="100%" height="100%"/>
|
||||
width="100%" height="100%"/>
|
||||
<mx:ApplicationControlBar id="chatCtrlBar" width="100%" height="10%">
|
||||
<mx:HBox>
|
||||
<mx:Label text="Filter Categories:" />
|
||||
<mx:TextInput id="idFilter" text="*" change="filterTarget()"/>
|
||||
<mx:TextInput id="idFilter" text="*" change="filter()"/>
|
||||
</mx:HBox>
|
||||
<mx:HBox>
|
||||
<mx:Label text="Turn Logging Off"/>
|
||||
|
Loading…
Reference in New Issue
Block a user