<COMMAND> : Command Button

Java class : leon.view.LyCommand

ROLE

A command button allows executing an action.
There are predefined types of command giving information about the nature of the action to execute (closing, cancellation, help, etc.).

ATTRIBUTES

<!ATTLIST COMMAND
	  id NMTOKEN #REQUIRED
	  template NMTOKEN #IMPLIED
	  label CDATA #REQUIRED
	  image CDATA #IMPLIED
	  enabled ( true | false) "true"
	  action ( CANCEL | SUBMIT | RESET | HELP | OTHER | CLOSE) "OTHER"
	  font CDATA #IMPLIED
	  color CDATA #IMPLIED
	  fontColor CDATA #IMPLIED>
Attribute Mand. Description Default
id yes Identifier of the command button.  
template no COMMAND.template  
label yes Text of the command button.  
image no Image of the command button.  
enabled no Indicates whether the command button is enabled or not. true
action no Type of action generated by the command button.
The following types of action are supported:
CANCEL Action of cancellation type (example: on a modification form).
SUBMIT Action of validation type (example: on a creation form).
RESET Action of reset type (example: on a modification form).
HELP Action of help type.
OTHER Action which type does not belong to any predefined type.
CLOSE Action of closing the window type.
OTHER
font no COMMAND.font  
color no COMMAND.color  
fontColor no COMMAND.fontColor  

ELEMENTS

<!ELEMENT COMMAND 
	  (CONSTRAINT?)>
Element Mand. Mult. Description
CONSTRAINT no no Positioning constraints in the including area.

SAMPLE

<!-- Validation command button -->
<COMMAND id="_validate" label="Validate" image="validate.gif" action="SUBMIT"/>