Automated binding for object oriented programming user interface components
First Claim
1. A method for automated binding of an application user interface to the data manipulated by the user interface, the method comprising:
- responsive to instantiating an application user interface, constructing a binder object for at least one component in the application user interface;
registering the binder object with a notification dispatcher as a data change and state change listener of the model for the moniker of the user interface component;
mediating with the binder object the exchange of data between the at least one component and a corresponding field in the model;
registering the binder with the user interface component, with the binder being registered as a listener for various events that the user interface component can generate;
synthesizing method names with the binder;
locating the methods in the model that match the synthesized method names; and
searching for and binding to an appropriate method that returns the current state of a field in the model;
whereby the step of searching for and binding includes automatically dynamically interrogating the application user interface at run time to discover a method running therein and, assigning a moniker to a discovered method, the moniker being formed by appending at least one of a predetermined suffice and a predetermined prefix, to the discovered method name.
4 Assignments
0 Petitions
Accused Products
Abstract
A method, system, and computer program product for automated binding of an application user interface to the data that it manipulates in an object oriented programming system is provided. In one embodiment, responsive to instantiating an application user interface, a binder object is constructed for at least one component in the application user interface. The binder mediates the exchange of data between the component and the corresponding field in the model. The binder monitors the component for data change events and monitors the model for data change and state change events from the field. The binding is specified by a moniker that is shared by the component and the field. Using the moniker, the binder synthesizes method names to get and set the field value and retrieve the field'"'"'s state. The binder then locates and invokes, using introspection, the methods in the model that match the synthesized method names.
-
Citations
36 Claims
-
1. A method for automated binding of an application user interface to the data manipulated by the user interface, the method comprising:
-
responsive to instantiating an application user interface, constructing a binder object for at least one component in the application user interface; registering the binder object with a notification dispatcher as a data change and state change listener of the model for the moniker of the user interface component; mediating with the binder object the exchange of data between the at least one component and a corresponding field in the model; registering the binder with the user interface component, with the binder being registered as a listener for various events that the user interface component can generate; synthesizing method names with the binder; locating the methods in the model that match the synthesized method names; and searching for and binding to an appropriate method that returns the current state of a field in the model; whereby the step of searching for and binding includes automatically dynamically interrogating the application user interface at run time to discover a method running therein and, assigning a moniker to a discovered method, the moniker being formed by appending at least one of a predetermined suffice and a predetermined prefix, to the discovered method name. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16)
-
-
17. A computer readable recordable type media storing computer program instructions, which when executed cause a computer to:
-
construct a binder object for at least one component in the application user interface responsive to instantiating an application user interface; register the binder object with a notification dispatcher as a data change and state change listener of the model for the moniker of the user interface component; mediate with the binder object the exchange of data between the at least one component and a corresponding field in the model; register the binder with the user interface component, with the binder being registered as a listener for various events that the user interface component can generate; synthesize method names with the binder; locate methods in the model that match the synthesized method names; and dynamically search the at least one component of the application user interface at run time, for methods running therein and, assigning a moniker to a discovered method, the moniker being formed by appending at least one of a predetermined suffice and a predetermined prefix, to the discovered method name and bind to an appropriate method that returns the current state of a field in the model. - View Dependent Claims (18, 19, 20, 21, 22, 23, 24, 25, 26)
-
-
27. A system for automated binding of an application user interface to the data manipulated by the user interface, the system comprising:
-
a processor; and memory operatively coupled to the processor, the memory storing program instructions, which when executed cause the processor to; construct a binder object for at least one component in the application user interface, responsive to instantiating an application user interface; mediate with the binder object the exchange of data between the at least one component and a corresponding field in the model; register the binder object with a notification dispatcher as a data change and state change listener of the model for the moniker of the user interface component; register the binder with the user interface component, with the binder being registered as a listener for various events that the user interface component can generate; synthesize method names with the binder; locate at run time by dynamically interrogating the at least one component of the application user interface, methods in the model that match the synthesized method names; and search for and bind to an appropriate method that returns the current state of a field in the model, the binding being comprised of assigning a moniker to the at least one component of the application user interface and the appending of at least one of a prefix and a suffix to use in locating a corresponding method in the model. - View Dependent Claims (28, 29, 30, 31, 32, 33, 34, 35, 36)
-
Specification