<command name = NMTOKEN (optionally preceded by a command namespace) > Content: class | menu | macro | process </command> <class> Content: Java class name </class>
<command name="xhtml.preview"> <class>com.xmlmind.xmleditext.xhtml.Preview</class> </command>
In the above example, custom command
com.xmlmind.xmleditext.xhtml.Preview written in Java™ is registered by XXE under the name
Child elements of
Register command implemented in the Java™ language by class
class (implements interface
com.xmlmind.xmledit.gadget.Command -- See Chapter 4, Writing a command in ).
Define a popup menu of commands. This special type of command, typically invoked from contextual macro-commands, is intended to be used to specify contextual popup menus, redefining or extending the standard right-click popup menu. See Chapter 3, Menu commands in .
Define a macro-command which is, to make it simple, a sequence of native commands, menu commands, process commands or other macro-commands. See Chapter 4, Macro commands in .
Define a process command, which is an arbitrarily complex transformation of part or all of the document being edited. See Chapter 5, Process commands in .