nsIDOMXULElement.idl 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. #include "nsIDOMElement.idl"
  6. interface nsIRDFCompositeDataSource;
  7. interface nsIXULTemplateBuilder;
  8. interface nsIRDFResource;
  9. interface nsIControllers;
  10. interface nsIBoxObject;
  11. [uuid(75435ab3-6863-42a1-ade3-025393d9e80e)]
  12. interface nsIDOMXULElement : nsIDOMElement
  13. {
  14. // Layout properties
  15. attribute DOMString align;
  16. attribute DOMString dir;
  17. attribute DOMString flex;
  18. attribute DOMString flexGroup;
  19. attribute DOMString ordinal;
  20. attribute DOMString orient;
  21. attribute DOMString pack;
  22. // Properties for hiding elements.
  23. attribute boolean hidden;
  24. attribute boolean collapsed;
  25. // Property for hooking up to broadcasters
  26. attribute DOMString observes;
  27. // Properties for hooking up to popups
  28. attribute DOMString menu;
  29. attribute DOMString contextMenu;
  30. attribute DOMString tooltip;
  31. // Width/height properties
  32. attribute DOMString width;
  33. attribute DOMString height;
  34. attribute DOMString minWidth;
  35. attribute DOMString minHeight;
  36. attribute DOMString maxWidth;
  37. attribute DOMString maxHeight;
  38. // Persistence
  39. attribute DOMString persist;
  40. // Position properties for
  41. // * popups - these are screen coordinates
  42. // * other elements - these are client coordinates relative to parent stack.
  43. attribute DOMString left;
  44. attribute DOMString top;
  45. // XUL Template Builder
  46. attribute DOMString datasources;
  47. attribute DOMString ref;
  48. // Tooltip and status info
  49. attribute DOMString tooltipText;
  50. attribute DOMString statusText;
  51. attribute boolean allowEvents;
  52. readonly attribute nsIRDFCompositeDataSource database;
  53. readonly attribute nsIXULTemplateBuilder builder;
  54. readonly attribute nsIRDFResource resource;
  55. readonly attribute nsIControllers controllers;
  56. readonly attribute nsIBoxObject boxObject;
  57. void focus();
  58. void blur();
  59. void click();
  60. void doCommand();
  61. nsIDOMNodeList getElementsByAttribute(in DOMString name,
  62. in DOMString value);
  63. nsIDOMNodeList getElementsByAttributeNS(in DOMString namespaceURI,
  64. in DOMString name,
  65. in DOMString value);
  66. };