dom/interfaces/xul/nsIDOMXULElement.idl

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:f4897ee36f89
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6 #include "nsIDOMElement.idl"
7
8 interface nsIRDFCompositeDataSource;
9 interface nsIXULTemplateBuilder;
10 interface nsIRDFResource;
11 interface nsIControllers;
12 interface nsIBoxObject;
13
14
15 [scriptable, uuid(e89578c8-64ec-4047-984a-cce1b1735543)]
16 interface nsIDOMXULElement : nsIDOMElement
17 {
18 attribute DOMString className;
19
20 // Layout properties
21 attribute DOMString align;
22 attribute DOMString dir;
23 attribute DOMString flex;
24 attribute DOMString flexGroup;
25 attribute DOMString ordinal;
26 attribute DOMString orient;
27 attribute DOMString pack;
28
29 // Properties for hiding elements.
30 attribute boolean hidden;
31 attribute boolean collapsed;
32
33 // Property for hooking up to broadcasters
34 attribute DOMString observes;
35
36 // Properties for hooking up to popups
37 attribute DOMString menu;
38 attribute DOMString contextMenu;
39 attribute DOMString tooltip;
40
41 // Width/height properties
42 attribute DOMString width;
43 attribute DOMString height;
44 attribute DOMString minWidth;
45 attribute DOMString minHeight;
46 attribute DOMString maxWidth;
47 attribute DOMString maxHeight;
48
49 // Persistence
50 attribute DOMString persist;
51
52 // Position properties for
53 // * popups - these are screen coordinates
54 // * other elements - these are client coordinates relative to parent stack.
55 attribute DOMString left;
56 attribute DOMString top;
57
58 // XUL Template Builder
59 attribute DOMString datasources;
60 attribute DOMString ref;
61
62 // Tooltip and status info
63 attribute DOMString tooltipText;
64 attribute DOMString statusText;
65
66 attribute boolean allowEvents;
67
68 readonly attribute nsIRDFCompositeDataSource database;
69 readonly attribute nsIXULTemplateBuilder builder;
70 readonly attribute nsIRDFResource resource;
71 readonly attribute nsIControllers controllers;
72 readonly attribute nsIBoxObject boxObject;
73
74 void focus();
75 void blur();
76 void click();
77 void doCommand();
78
79 nsIDOMNodeList getElementsByAttribute(in DOMString name,
80 in DOMString value);
81
82 nsIDOMNodeList getElementsByAttributeNS(in DOMString namespaceURI,
83 in DOMString name,
84 in DOMString value);
85 };

mercurial