<?xml version='1.0'?>

<element name='commandset'>
<documentation>http://www.xulplanet.com/tutorials/xultu/commandupdate.html</documentation>
<reference>http://www.xulplanet.com/reference/elemref/ref_commandset.html</reference>
  This element is not displayed and serves as a container for command elements.        In addition, this element can serve as a command updater, which is used to  update the enabled state of one or more commands when certain events occur.  A common use of the command updater is to update the cut, copy, and paste  menu items as the user selects text.  
<html><![CDATA[
<p>  This element is not displayed and serves as a container for command elements.  </p>  <p>  In addition, this element can serve as a command updater, which is used to  update the enabled state of one or more commands when certain events occur.  A common use of the command updater is to update the cut, copy, and paste  menu items as the user selects text.  </p>
]]></html>

<attr name='commandupdater' type='boolean'>
  If true, the commandset is used for updating commands. Typically, this  is used to update menu commands such as Undo and Cut based on when  an event occurs. For example, since the Cut command is only valid when  something is selected, a command updater might be used when the select  event occurs.
</attr>
<attr name='events' type='comma separated list'>
  A comma separated list of event names that the command updater will update upon.  If this attribute is not specified, or you set it to the value '*', all events  are valid. Valid events are listed below, or you can use your own events. You can  send a custom event by calling the UpdateCommands method of the   command dispatcher .
<value name='focus'>
    Occurs when the focused element changes.
</value>
<value name='select'>
    Occurs when the selected text changed.
</value>
<value name='clipboard'>
    Occurs when the clipboard is changed.
</value>
<value name='undo'>
    Occurs when the undo buffer is changed.
</value>
</attr>
<attr name='oncommandupdate' type='script code'>
  This event occurs when a command update occurs. You would use this to update  the disabled status of items.
</attr>
<attr name='targets' type='comma separated list of element ids'>
  A comma separated list of element ids that the command updater will update upon.  If this attribute is not specified, or you set it to the value '*', all elements  are valid. The command update will only occur when the event occurs to one of  the specified elements.
</attr>
</element>
