<MESSAGE> : Message

Java class : leon.view.LyMessage

ROLE

A message is placed inside a message bar.
It allows displaying a text and an image.

ATTRIBUTES

<!ATTLIST MESSAGE
	  id NMTOKEN #REQUIRED
	  template NMTOKEN #IMPLIED
	  label CDATA #REQUIRED
	  image CDATA #IMPLIED
	  controller CDATA #IMPLIED
	  size NMTOKEN "0"
	  align ( LEFT | RIGHT | CENTER) "LEFT"
	  font CDATA #IMPLIED
	  color CDATA #IMPLIED
	  fontColor CDATA #IMPLIED>
Attribute Mand. Description Default
id yes Identifier of the message bar.  
template no MESSAGE.template  
label yes Text of the message.  
image no Image associated to the message.  
controller no Reference of the controller that manages the message (i.e. handles user demands and refresh content).  
size no Size of the message.
The expected value is a positive integer value corresponding to a weight (the weights of the different messages contained in the message bar allow performing the barycentric distribution of the space allocated to each of them).
A negative or null value is equivalent to the value 1.
0
align no Alignment of the message. LEFT
font no MESSAGE.font  
color no MESSAGE.color  
fontColor no MESSAGE.fontColor  

SAMPLE

<MESSAGE label="9 objects (none is selected)" size="10" align="RIGHT"/>