Subversion Repositories Applications.papyrus

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2150 mathias 1
if(!dojo._hasResource["dijit.Toolbar"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code.
2
dojo._hasResource["dijit.Toolbar"] = true;
3
dojo.provide("dijit.Toolbar");
4
 
5
dojo.require("dijit._Widget");
6
dojo.require("dijit._Container");
7
dojo.require("dijit._Templated");
8
 
9
dojo.declare(
10
	"dijit.Toolbar",
11
	[dijit._Widget, dijit._Templated, dijit._KeyNavContainer],
12
{
13
	templateString:
14
		'<div class="dijit dijitToolbar" waiRole="toolbar" tabIndex="${tabIndex}" dojoAttachPoint="containerNode">' +
15
//			'<table style="table-layout: fixed" class="dijitReset dijitToolbarTable">' + // factor out style
16
//				'<tr class="dijitReset" dojoAttachPoint="containerNode"></tr>'+
17
//			'</table>' +
18
		'</div>',
19
 
20
	tabIndex: "0",
21
 
22
	postCreate: function(){
23
		this.connectKeyNavHandlers(
24
			this.isLeftToRight() ? [dojo.keys.LEFT_ARROW] : [dojo.keys.RIGHT_ARROW],
25
			this.isLeftToRight() ? [dojo.keys.RIGHT_ARROW] : [dojo.keys.LEFT_ARROW]
26
		);
27
	},
28
 
29
	startup: function(){
30
		this.startupKeyNavChildren();
31
	}
32
}
33
);
34
 
35
// Combine with dijit.MenuSeparator??
36
dojo.declare(
37
	"dijit.ToolbarSeparator",
38
	[ dijit._Widget, dijit._Templated ],
39
{
40
	// summary
41
	//	A line between two menu items
42
	templateString: '<div class="dijitToolbarSeparator dijitInline"></div>',
43
	postCreate: function(){ dojo.setSelectable(this.domNode, false); },
44
	isFocusable: function(){ return false; }
45
});
46
 
47
}