1. /*
  2. * Copyright (c) 2000 World Wide Web Consortium,
  3. * (Massachusetts Institute of Technology, Institut National de
  4. * Recherche en Informatique et en Automatique, Keio University). All
  5. * Rights Reserved. This program is distributed under the W3C's Software
  6. * Intellectual Property License. This program is distributed in the
  7. * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  8. * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  9. * PURPOSE.
  10. * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  11. */
  12. package org.w3c.dom.events;
  13. import org.w3c.dom.views.AbstractView;
  14. /**
  15. * The <code>UIEvent</code> interface provides specific contextual information
  16. * associated with User Interface events.
  17. * <p>See also the <a href='http://www.w3.org/TR/2000/REC-DOM-Level-2-Events-20001113'>Document Object Model (DOM) Level 2 Events Specification</a>.
  18. * @since DOM Level 2
  19. */
  20. public interface UIEvent extends Event {
  21. /**
  22. * The <code>view</code> attribute identifies the <code>AbstractView</code>
  23. * from which the event was generated.
  24. */
  25. public AbstractView getView();
  26. /**
  27. * Specifies some detail information about the <code>Event</code>,
  28. * depending on the type of event.
  29. */
  30. public int getDetail();
  31. /**
  32. * The <code>initUIEvent</code> method is used to initialize the value of
  33. * a <code>UIEvent</code> created through the <code>DocumentEvent</code>
  34. * interface. This method may only be called before the
  35. * <code>UIEvent</code> has been dispatched via the
  36. * <code>dispatchEvent</code> method, though it may be called multiple
  37. * times during that phase if necessary. If called multiple times, the
  38. * final invocation takes precedence.
  39. * @param typeArgSpecifies the event type.
  40. * @param canBubbleArgSpecifies whether or not the event can bubble.
  41. * @param cancelableArgSpecifies whether or not the event's default
  42. * action can be prevented.
  43. * @param viewArgSpecifies the <code>Event</code>'s
  44. * <code>AbstractView</code>.
  45. * @param detailArgSpecifies the <code>Event</code>'s detail.
  46. */
  47. public void initUIEvent(String typeArg,
  48. boolean canBubbleArg,
  49. boolean cancelableArg,
  50. AbstractView viewArg,
  51. int detailArg);
  52. }