Generic declaration of bindings between events and event handlers regardless of runtime structure
First Claim
1. A method, in a data processing system, for binding an event handler with an event in association with a component of a hierarchical structure, comprising:
- receiving, in a processor of the data processing system, a structure document specifying an event type, an event handler, and a binding of the event handler with the event type;
associating, by the processor, based on the structure document, the event type and event handler, specified in the structure document, with one or more nodes of a hierarchical model of the hierarchical structure stored in a storage device of the data processing system;
binding, by the processor, the event handler with the event type for the one or more nodes in accordance with the hierarchical model based on the binding of the event handler with the event type specified in the structure document; and
generating, by the processor, one or more objects for implementing the hierarchical structure in a framework corresponding to the hierarchical model, wherein the structure document specifies the event binding of the event handler with the event type in a declarative manner.
1 Assignment
0 Petitions
Accused Products
Abstract
Mechanisms for binding an event handler with an event in association with a component of a hierarchical structure are provided. The mechanisms receive a structure document specifying an event, an event handler, and a binding of the event handler with the event. The mechanisms further associate the event and event handler with one or more nodes of a hierarchical model of the hierarchical structure stored in a storage device of the data processing system. Moreover, the mechanisms bind the event handler with the event for the one or more nodes in accordance with the hierarchical model. In addition, the mechanisms generate one or more objects for implementing the hierarchical structure in a framework corresponding to the hierarchical model. The structure document specifies the event binding of the event handler with the event type in a declarative manner.
-
Citations
20 Claims
-
1. A method, in a data processing system, for binding an event handler with an event in association with a component of a hierarchical structure, comprising:
-
receiving, in a processor of the data processing system, a structure document specifying an event type, an event handler, and a binding of the event handler with the event type; associating, by the processor, based on the structure document, the event type and event handler, specified in the structure document, with one or more nodes of a hierarchical model of the hierarchical structure stored in a storage device of the data processing system; binding, by the processor, the event handler with the event type for the one or more nodes in accordance with the hierarchical model based on the binding of the event handler with the event type specified in the structure document; and generating, by the processor, one or more objects for implementing the hierarchical structure in a framework corresponding to the hierarchical model, wherein the structure document specifies the event binding of the event handler with the event type in a declarative manner. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A computer program product comprising a non-transitory computer recordable medium having a computer readable program recorded thereon, wherein the computer readable program, when executed on a computing device, causes the computing device to:
-
receive a structure document specifying an event type, an event handler, and a binding of the event handler with the event type; associate, based on the structure document, the event type and event handler, specified in the structure document, with one or more nodes of a hierarchical model of a hierarchical structure; bind the event handler with the event type for the one or more nodes in accordance with the hierarchical model based on the binding of the event handler with the event type specified in the structure document; and generate one or more objects for implementing the hierarchical structure in a framework corresponding to the hierarchical model, wherein the structure document specifies the event binding of the event handler with the event type in a declarative manner. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19)
-
-
20. An apparatus, comprising:
-
a processor; and a memory coupled to the processor, wherein the memory comprises instructions which, when executed by the processor, cause the processor to; receive a structure document specifying an event type, an event handler, and a binding of the event handler with the event type; associate, based on the structure document, the event type and event handler, specified in the structure document, with one or more nodes of a hierarchical model of a hierarchical structure; bind the event handler with the event type for the one or more nodes in accordance with the hierarchical model based on the binding of the event handler with the event type specified in the structure document; and generate one or more objects for implementing the hierarchical structure in a framework corresponding to the hierarchical model, wherein the structure document specifies the event binding of the event handler with the event type in a declarative manner.
-
Specification