comm.BaseCommView Class
The superclass for displaying a message history.
Constructor
comm.BaseCommView
(
-
params
Parameters:
-
params
Objectan object with information for displaying the view
-
parentElem
HTMLDivElementthe HTMLDivElement where the view resides
-
message
Stringa message to display when no output has been generated
-
id
Stringthe prefix id for the element
-
haveInput
Booleanwhether the view is display-only or not
-
Item Index
Methods
Methods
resetLines
(
-
lines
Sets new content for the display
Parameters:
-
lines
Arraya list of objects with three attributes: source(the player name attached to the event), message(the contents of the line), and className(the color of the object)
setController
(
-
controller
Sets the controller and action for the input element
Parameters:
-
controller
ObjectThe controller