Packagenet.user1.reactor.ui
Classpublic class ChatIncomingTextArea
InheritanceChatIncomingTextArea Inheritance AutoScrollTextArea Inheritance mx.controls.TextArea

Since : ReactorGUI 1.0.0

A TextArea in which to display incoming messages in a chat interface. Each ChatIncomingTextArea object must be connected to a Reactor Room object and a Reactor MessageManager object. To add a regular chat message to a ChatIncomingTextArea, send a ChatMessages.CHAT message to the specified room. For example,
   theRoom.sendMessage(ChatMessages.CHAT, "Hello world!");
   
To add a private message to a ChatIncomingTextArea, send a ChatMessages.PRIVATE_CHAT message to a specific client. For example,
   theClient.sendMessage(ChatMessages.PRIVATE_CHAT, "How old are you?");
   



Public Variables
 VariableDefined By
 InheritedmaxLength : int
The maximum allowed number of characters for the text field.
AutoScrollTextArea
  messageManager : MessageManager
A Reactor MessageManager reference used to receive private chat messages.
ChatIncomingTextArea
  room : Room
A Reactor Room reference used to receive chat messages.
ChatIncomingTextArea
 Inheritedtext : String
[override] [write-only] The text field's content.
AutoScrollTextArea
Public Methods
 MethodDefined By
  
Constructor
ChatIncomingTextArea
 Inherited
appendText(value:String):void
Adds new text to the end of the text field, truncating characters if necessary.
AutoScrollTextArea
  
displayMessage(message:String):void
Displays a line of text in the incoming chat text field.
ChatIncomingTextArea
  
dispose():void
[override] Disposes of the resources used by this object, preparing it for garbage collection.
ChatIncomingTextArea
Variable Descriptions
messageManagervariable
messageManager:MessageManager

Since : ReactorGUI 1.0.0

A Reactor MessageManager reference used to receive private chat messages.


Implementation
    public function get messageManager():MessageManager
    public function set messageManager(value:MessageManager):void
roomvariable 
room:Room

Since : ReactorGUI 1.0.0

A Reactor Room reference used to receive chat messages.


Implementation
    public function get room():Room
    public function set room(value:Room):void
Constructor Description
ChatIncomingTextArea()Constructor
public function ChatIncomingTextArea()

Constructor

Method Descriptions
displayMessage()method
public function displayMessage(message:String):void

Displays a line of text in the incoming chat text field.

Parameters

message:String

dispose()method 
override public function dispose():void

Since : ReactorGUI 1.0.0

Disposes of the resources used by this object, preparing it for garbage collection.