Claims (38)
1. Считываемая компьютером среда, имеющая выполняемые компьютером команды для управления свойствами пользовательского интерфейса с помощью данных, содержащие1. A computer-readable medium having computer-executable instructions for managing user interface properties using data containing
создание привязки, связывающей целевое свойство со значением данных источника, иcreating a binding linking the target property to the value of the source data, and
по получении извещения об изменении значения данных источника, отражение изменения в целевом свойстве на основании привязки.upon receipt of a notice of a change in the value of the source data, the reflection of the change in the target property based on the binding.
2. Считываемая компьютером среда по п.1, отличающаяся тем, что целевое свойство включает в себя свойство пользовательского интерфейса.2. Machine-readable medium according to claim 1, characterized in that the target property includes a user interface property.
3. Считываемая компьютером среда по п.1, отличающаяся тем, что дополнительно содержит применение преобразования к значению данных источника до отражения изменения в целевом свойстве.3. The computer-readable medium according to claim 1, characterized in that it further comprises applying a transform to the value of the source data before reflecting the change in the target property.
4. Считываемая компьютером среда по п.1, отличающаяся тем, что создание привязки включает в себя задание типа привязки для привязки.4. Machine-readable medium according to claim 1, characterized in that the creation of the binding includes setting the type of binding for the binding.
5. Считываемая компьютером среда по п.4, отличающаяся тем, что тип привязки включает в себя первый тип привязки, в соответствии с которым целевое свойство обновляется на основании значения данных источника при активации привязки.5. The computer-readable medium according to claim 4, characterized in that the type of binding includes the first type of binding, according to which the target property is updated based on the value of the source data when the binding is activated.
6. Считываемая компьютером среда по п.4, отличающаяся тем, что тип привязки включает в себя второй тип привязки, в соответствии с которым целевое свойство обновляется при изменении значения данных источника.6. Machine-readable medium according to claim 4, characterized in that the type of binding includes a second type of binding, according to which the target property is updated when the value of the source data changes.
7. Считываемая компьютером среда по п.1, отличающаяся тем, что дополнительно содержит обновление значения данных источника после изменения цели в отношении целевого свойства.7. Machine-readable medium according to claim 1, characterized in that it further comprises updating the source data value after changing the target in relation to the target property.
8. Считываемая компьютером среда по п.7, отличающаяся тем, что обновление значения данных источника осуществляется асинхронно, почти немедленно после изменения цели.8. The computer-readable medium according to claim 7, characterized in that the update of the source data value is carried out asynchronously, almost immediately after changing the target.
9. Считываемая компьютером среда по п.7, отличающаяся тем, что обновление значения данных источника осуществляется асинхронно при потере фокусировки на целевом свойстве.9. The computer-readable medium according to claim 7, characterized in that the updating of the source data value is carried out asynchronously when the focus is lost on the target property.
10. Считываемая компьютером среда по п.7, отличающаяся тем, что обновление значения данных источника осуществляется в явном виде приложением.10. Machine-readable medium according to claim 7, characterized in that the update of the source data value is carried out explicitly by the application.
11. Считываемая компьютером среда по п.1, отличающаяся тем, что создание привязки задается с использованием кода.11. Machine-readable medium according to claim 1, characterized in that the creation of the binding is set using the code.
12. Считываемая компьютером среда по п.1, отличающаяся тем, что создание привязки задается с использованием языка разметки.12. Machine-readable medium according to claim 1, characterized in that the creation of the binding is set using a markup language.
13. Считываемая компьютером среда по п.1, отличающаяся тем, что дополнительно содержит создание другой привязки, связывающей целевое свойство с другим значением данных источника.13. Machine-readable medium according to claim 1, characterized in that it further comprises creating another binding linking the target property with a different value of the source data.
14. Считываемая компьютером среда по п.1, отличающаяся тем, что значение данных источника связывается с источником данных.14. Machine-readable medium according to claim 1, characterized in that the value of the source data is associated with the data source.
15. Считываемая компьютером среда по п.14, отличающаяся тем, что источник данных задается посредством XPath в XML, либо столбца в ADO, либо отражения.15. The computer-readable medium of claim 14, wherein the data source is specified by means of XPath in XML, or a column in ADO, or reflection.
16. Компьютерная система для управления свойствами пользовательского интерфейса с помощью данных, содержащая процессор и память, выделяемую для множества выполняемых компьютером команд, загружаемых в память для выполнения процессором, причем выполняемые компьютером команды осуществляют способ, содержащий этапы, на которых создают привязку, связывающую целевое свойство со значением данных источника, и по получении извещения об изменении значения данных источника, отражают изменение в целевом свойстве на основании привязки.16. A computer system for managing user interface properties using data, comprising a processor and memory allocated to a plurality of computer-executable instructions loaded into memory for execution by a processor, the computer-executing instructions implementing a method comprising the steps of creating a binding linking a target property with the value of the source data, and upon receipt of a notification of a change in the value of the source data, reflect the change in the target property based on the binding.
17. Компьютерная система по п.16, отличающаяся тем, что целевое свойство включает в себя свойство пользовательского интерфейса.17. The computer system according to clause 16, wherein the target property includes a user interface property.
18. Компьютерная система по п.16, отличающаяся тем, что дополнительно содержит применение преобразования к значению данных источника до отражения изменения в целевом свойстве.18. The computer system according to clause 16, characterized in that it further comprises applying a transform to the value of the source data to reflect the change in the target property.
19. Компьютерная система по п.16, отличающаяся тем, что создание привязки включает в себя задание типа привязки для привязки.19. The computer system according to clause 16, characterized in that the creation of the binding includes setting the type of binding for the binding.
20. Компьютерная система по п.19, отличающаяся тем, что тип привязки включает в себя первый тип привязки, в соответствии с которым целевое свойство обновляется на основании значения данных источника при активации привязки.20. The computer system according to claim 19, characterized in that the type of binding includes the first type of binding, according to which the target property is updated based on the value of the source data when the binding is activated.
21. Компьютерная система по п.19, отличающаяся тем, что тип привязки включает в себя второй тип привязки, в соответствии с которым целевое свойство обновляется при изменении значения данных источника.21. The computer system according to claim 19, characterized in that the type of binding includes a second type of binding, according to which the target property is updated when the value of the source data changes.
22. Компьютерная система по п.16, отличающаяся тем, что дополнительно содержит обновление значения данных источника после изменения цели до целевого свойства.22. The computer system according to clause 16, characterized in that it further comprises updating the value of the source data after changing the target to the target property.
23. Компьютерная система по п.22, отличающаяся тем, что обновление значения данных источника осуществляется асинхронно почти сразу после изменения цели.23. The computer system according to item 22, wherein the updating of the value of the source data is asynchronous almost immediately after changing the target.
24. Компьютерная система по п.22, отличающаяся тем, что обновление значения данных источника осуществляется асинхронно при потере фокусировки на целевом свойстве.24. The computer system of claim 22, wherein the updating of the source data value is asynchronous when the focus is lost on the target property.
25. Компьютерная система по п.22, отличающаяся тем, что обновление значения данных источника осуществляется в явном виде приложением.25. The computer system according to item 22, wherein the updating of the source data value is carried out explicitly by the application.
26. Компьютерная система по п.16, отличающаяся тем, что создание привязки задается с использованием кода.26. The computer system according to clause 16, wherein the creation of the binding is set using the code.
27. Компьютерная система по п.16, отличающаяся тем, что создание привязки задается с использованием языка разметки.27. The computer system according to clause 16, wherein the binding is set using a markup language.
28. Считываемая компьютером среда, имеющая выполняемые компьютером команды для управления свойствами пользовательского интерфейса с помощью данных, содержащие часть логики для манипулирования значением данных в приложении, часть пользовательского интерфейса в составе приложения, причем часть пользовательского интерфейса отвечает за отображение на экране свойства пользовательского интерфейса, при этом часть пользовательского интерфейса не зависит от части логики, и по меньшей мере одна спецификация привязки, причем спецификация привязки описывает взаимосвязь между свойством пользовательского интерфейса и значением данных так, что позволяет извещать код системного уровня об изменении значения данных, так что код системного уровня мог предписывать части пользовательского интерфейса отражать изменение свойства пользовательского интерфейса.28. A computer-readable medium having computer-executable instructions for managing user interface properties using data, comprising part of the logic for manipulating the data value in the application, part of the user interface as part of the application, and part of the user interface responsible for displaying the user interface properties on the screen, this part of the user interface does not depend on part of the logic, and at least one specification is binding, and the specification for binding describes the relationship between a user interface property and a data value so that it can notify the system level code of a change in the data value, so that the system level code could instruct parts of the user interface to reflect a change in the user interface property.
29. Считываемая компьютером среда по п.28, отличающаяся тем, что спецификация привязки задается с использованием кода.29. The computer-readable medium of claim 28, wherein the binding specification is set using code.
30. Считываемая компьютером среда по п.28, отличающаяся тем, что спецификация привязки задается с использованием языка разметки.30. The computer-readable medium of claim 28, wherein the binding specification is specified using a markup language.
31. Считываемая компьютером среда по п.28, отличающаяся тем, что спецификация привязки идентифицирует элемент данных источника, путь к значению данных в элементе данных источника, целевой элемент пользовательского интерфейса и свойство пользовательского интерфейса на целевом элементе пользовательского интерфейса.31. The computer-readable medium of claim 28, wherein the binding specification identifies the source data element, the path to the data value in the source data element, the target user interface element, and the user interface property on the target user interface element.
32. Считываемая компьютером среда по п.31, отличающаяся тем, что спецификация привязки дополнительно идентифицирует преобразование, применяемое к значению данных до отражения изменения в свойстве пользовательского интерфейса.32. The computer-readable medium of claim 31, wherein the binding specification further identifies the transformation applied to the data value until the change in the user interface property is reflected.
33. Считываемая компьютером среда по п.31, отличающаяся тем, что спецификация привязки дополнительно идентифицирует тип привязки для привязки.33. The computer-readable medium of claim 31, wherein the binding specification further identifies the type of binding for the binding.
34. Считываемая компьютером среда по п.33, отличающаяся тем, что тип привязки включает в себя первый тип привязки, в соответствии с которым свойство пользовательского интерфейса обновляется на основании значения данных при активации привязки.34. The computer-readable medium of claim 33, wherein the type of binding includes the first type of binding, according to which the user interface property is updated based on the data value when the binding is activated.
35. Считываемая компьютером среда по п.33, отличающаяся тем, что тип привязки включает в себя второй тип привязки, в соответствии с которым свойство пользовательского интерфейса обновляется при изменении значения данных.35. The computer-readable medium of claim 33, wherein the type of binding includes a second type of binding, according to which the user interface property is updated when the data value changes.
36. Считываемая компьютером среда по п.31, отличающаяся тем, что спецификация привязки дополнительно указывает, что значение данных обновляется, когда свойство пользовательского интерфейса претерпевают изменение ПИ.36. The computer-readable medium of claim 31, wherein the binding specification further indicates that the data value is updated when a UI property undergoes a UI change.
37. Считываемая компьютером среда по п.36, отличающаяся тем, что значение данных обновляется асинхронно почти сразу после изменения ПИ.37. The computer-readable medium of claim 36, wherein the data value is updated asynchronously almost immediately after changing the PI.
38. Считываемая компьютером среда по п.36, отличающаяся тем, что значение данных обновляется асинхронно при потере фокусировки на свойстве пользовательского интерфейса.38. The computer-readable medium of claim 36, wherein the data value is updated asynchronously when the focus is lost on the user interface property.