widgets.xbl
Summary
This file describes the Mozile editor widget and toolbar widget in Mozilla's XBL and XUL languages.
Version: 0.7.0
Author: James A. Overton
<?xml version="1.0" encoding="UTF-8"?>
<!--
-->
<bindings id="document"
xmlns="http://www.mozilla.org/xbl"
xmlns:xbl="http://www.mozilla.org/xbl"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<binding id="toolbar">
<content>
<xul:hbox id="mozileToolbar" collapsed="true" flex="1"/>
<children/>
</content>
<implementation>
<constructor>
var toolbar = document.getAnonymousElementByAttribute(this, "id", "mozileToolbar");
mozile.toolbar = toolbar;
</constructor>
</implementation>
<handlers>
<handler event="command">
var command = event.originalTarget.getAttribute("oncommand");
if(!command || command=="") {
var id = event.originalTarget.getAttribute("id");
mozile.executeCommand(id, event);
}
eval(command);
</handler>
</handlers>
</binding>
<binding id="editor">
<content>
<children/>
</content>
<implementation>
<constructor>
mozile.registerEditor(this);
</constructor>
</implementation>
<handlers>
<handler event="focus">
mozile.showToolbar();
mozile.setCurrentEditor(this);
</handler>
<handler event="blur">
mozile.hideToolbar();
</handler>
<handler event="keypress">
mozile.handleKeypress(event);
</handler>
<handler event="keyup">
mozile.handleKeyup(event);
</handler>
<handler event="click">
</handler>
<handler event="mousepress">
</handler>
<handler event="mouseup">
mozile.updateToolbar();
</handler>
<handler event="select">
var command = event.originalTarget.getAttribute("oncommand");
eval(command);
</handler>
</handlers>
</binding>
</bindings>
Documentation generated by
JSDoc on Wed Jun 29 22:15:33 2005