<BOOLEAN> : Input Field of Boolean Type

Java class : leon.view.LyBoolean

ROLE

An input field of boolean type allows displaying a graphical component with a three state checkbox :
not specified (empty),
true (checked with a green sign),
false (with a red cross).
It is possible to specify a label for each of these states and to make a negation of the boolean value.

ATTRIBUTES

<!ATTLIST BOOLEAN
	  id NMTOKEN #IMPLIED
	  template NMTOKEN #IMPLIED
	  labelChecked CDATA #IMPLIED
	  imageChecked CDATA #IMPLIED
	  labelUnchecked CDATA #IMPLIED
	  imageUnchecked CDATA #IMPLIED
	  labelEmpty CDATA #IMPLIED
	  imageEmpty CDATA #IMPLIED
	  not ( true | false) "false"
	  status ( CHECKED | UNCHECKED | EMPTY) "EMPTY"
	  bean CDATA #IMPLIED
	  font CDATA #IMPLIED
	  color CDATA #IMPLIED
	  fontColor CDATA #IMPLIED
	  nCols NMTOKEN #IMPLIED
	  backgroundImage CDATA #IMPLIED
	  hooverImage CDATA #IMPLIED>
Attribute Mand. Description Default
id no BOOLEAN.id  
template no BOOLEAN.template  
labelChecked no Label of the field for CHECKED state.  
imageChecked no Image used when checked.  
labelUnchecked no Label of the field for UNCHECKED state.  
imageUnchecked no Image used when unchecked.  
labelEmpty no Label of the field for EMPTY state.  
imageEmpty no Image used when null (the boolean is neither checked, nor unchecked).  
not no Indicates if the field value is the negation of its boolean value:
if its state is CHECKED, its value is false;
if its state is UNCHECKED, its value is true;
if its state is EMPTY, its value is the one of the EMPTY state.
false
status no Indicates the status of the boolean field:
CHECKED if the field is checked with a green sign;
UNCHECKED if the field is checked with a red cross;
EMPTY if the field is not specified.
EMPTY
bean no Allows specifying the name of a Java class that replaces the default graphical component.  
font no BOOLEAN.font  
color no BOOLEAN.color  
fontColor no BOOLEAN.fontColor  
nCols no Size of the images used for displaying values of the boolean. -1
backgroundImage no BOOLEAN.backgroundImage  
hooverImage no BOOLEAN.hooverImage  

SAMPLE

<!-- Boolean with three states -->
<BOOLEAN 
	labelChecked="Yes" 
	labelUnchecked="No" 
	labelEmpty="Empty"/>