HIERARCHICAL POSITIONED EVENT DISPATCH
First Claim
1. In an electronic device, a method comprising:
- displaying, at a display of the electronic device, a layout of views; and
in response to detecting, via a user input component of the electronic device, a positioned event in association with the layout;
identifying a terminal view of the layout of views based on a location of the positioned event;
constructing an ancestor chain of one or more ancestor views of the terminal view from the layout; and
sequentially dispatching the positioned event in the ancestor chain starting at a root view of the ancestor chain.
2 Assignments
0 Petitions
Accused Products
Abstract
An electronic device (102) includes a display (104) to display a layout (108) of views, a user input component (212, 214, 216) to receive input representative of a positioned event (118), and a positioned event handler component (226) to detect the positioned event. The electronic device further includes a registry management component (230) to identify a terminal view (122) of the layout of views based on a location of the positioned event and a view tree management component (228) to construct an ancestor chain (126) of one or more ancestor views of the terminal view from the layout. The positioned event handler component is to sequentially dispatch the positioned event in the ancestor chain starting at a root view (110) of the ancestor chain.
-
Citations
20 Claims
-
1. In an electronic device, a method comprising:
-
displaying, at a display of the electronic device, a layout of views; and in response to detecting, via a user input component of the electronic device, a positioned event in association with the layout; identifying a terminal view of the layout of views based on a location of the positioned event; constructing an ancestor chain of one or more ancestor views of the terminal view from the layout; and sequentially dispatching the positioned event in the ancestor chain starting at a root view of the ancestor chain. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9)
-
-
10. An electronic device comprising:
-
a display to display a layout of views; a user input component to receive input representative of a positioned event; a positioned event handler component to detect the positioned event; a registry management component to identify a terminal view of the layout of views based on a location of the positioned event; a view tree management component to construct an ancestor chain of one or more ancestor views of the terminal view from the layout; and wherein the positioned event handler component is to sequentially dispatch the positioned event in the ancestor chain starting at a root view of the ancestor chain. - View Dependent Claims (11, 12, 13, 14, 15, 16, 17)
-
-
18. In an electronic device, a method comprising:
-
providing a data structure representing positions of views of a layout of views at a display of the electronic device; identifying a first terminal view overlapping a location of a first positioned event at the electronic device based on the data structure, the first terminal view positioned at least partially outside of a bounding box of a parent view of the first terminal view; and dispatching the first positioned event through a first chain of views including the first terminal view and the parent view of the first terminal view. - View Dependent Claims (19, 20)
-
Specification