<COMMANDS> : Command Bar

Java class : leon.view.LyCommands

ROLE

A command bar allows displaying a set of command buttons (Validate, Cancel, Close, etc.).
This bar is generally located at the bottom of a page or window.

ATTRIBUTES

<!ATTLIST COMMANDS
	  id NMTOKEN #IMPLIED
	  template NMTOKEN #IMPLIED
	  border ( NONE | IN | OUT | SOLID | RAISED | LOWERED) "IN"
	  align ( LEFT | RIGHT | CENTER) "CENTER"
	  font CDATA #IMPLIED
	  color CDATA #IMPLIED
	  fontColor CDATA #IMPLIED>
Attribute Mand. Description Default
id no Identifier of the command bar.  
template no COMMANDS.template  
border no Style of the border used for the command bar. IN
align no Indicates the alignment of the buttons in the command bar (left, right, or centered).
The default value is center.
CENTER
font no COMMANDS.font  
color no COMMANDS.color  
fontColor no COMMANDS.fontColor  

ELEMENTS

<!ELEMENT COMMANDS 
	  ((COMMAND | SEP)*,
	   CONSTRAINT?)>
Element Mand. Mult. Description
COMMAND yes no Commands contained in the command bar.
SEP yes no Separator used to organize commands within the command bar.
CONSTRAINT no no Positioning constraint of the comman bar.

SAMPLE

<!-- Command bar with 3 command buttons (validation, cancellation and help) -->
<COMMANDS>
	<COMMAND id="_validate" label="Validate" image="validate.gif" action="SUBMIT"/>
	<COMMAND id="_cancel" label="Cancel" image="cancel.gif" action="CANCEL"/>
	<COMMAND id="_help" label="Help" image="help.gif" action="HELP"/>
</COMMANDS>