package
{
import mx.core.mx_internal;
import mx.controls.TextArea;
import mx.logging.targets.LineFormattedTarget;
use namespace mx_internal;
/**
* The professional_flex_code_26_TracePanelTarget
extends the
* LineFormattedTarget
class to provide
* a basic output mechanism. This target requires a
* reference to a TextArea
object. The
* professional_flex_code_26_TracePanelTarget
uses the reference to
* the TextArea
object to output message
* line by line.
*
* @see mx.logging.targets.LineFormattedTarget
*/
public class professional_flex_code_26_TracePanelTarget extends LineFormattedTarget {
/**
* Constructor.
*
* @param console Reference to a TextArea
* object that will display the output
* of the messages.
*/
public function professional_flex_code_26_TracePanelTarget( console:TextArea ) {
super();
this.console = console;
}
/**
* @private
*/
private var console:TextArea;
/**
* The internalLog
method handles the
* sending of messages.
*
* @param message The message to be logged by this target.
*/
override mx_internal function internalLog(message:String):void
{
console.text += message + "\n";
}
}
}