EP1639489A1 - System and method for controlling user interface properties with data - Google Patents
System and method for controlling user interface properties with dataInfo
- Publication number
- EP1639489A1 EP1639489A1 EP03734067A EP03734067A EP1639489A1 EP 1639489 A1 EP1639489 A1 EP 1639489A1 EP 03734067 A EP03734067 A EP 03734067A EP 03734067 A EP03734067 A EP 03734067A EP 1639489 A1 EP1639489 A1 EP 1639489A1
- Authority
- EP
- European Patent Office
- Prior art keywords
- binding
- computer
- data value
- property
- readable medium
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/38—Creation or generation of source code for implementing user interfaces
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61K—PREPARATIONS FOR MEDICAL, DENTAL OR TOILETRY PURPOSES
- A61K47/00—Medicinal preparations characterised by the non-active ingredients used, e.g. carriers or inert additives; Targeting or modifying agents chemically bound to the active ingredient
- A61K47/50—Medicinal preparations characterised by the non-active ingredients used, e.g. carriers or inert additives; Targeting or modifying agents chemically bound to the active ingredient the non-active ingredient being chemically bound to the active ingredient, e.g. polymer-drug conjugates
- A61K47/51—Medicinal preparations characterised by the non-active ingredients used, e.g. carriers or inert additives; Targeting or modifying agents chemically bound to the active ingredient the non-active ingredient being chemically bound to the active ingredient, e.g. polymer-drug conjugates the non-active ingredient being a modifying agent
- A61K47/62—Medicinal preparations characterised by the non-active ingredients used, e.g. carriers or inert additives; Targeting or modifying agents chemically bound to the active ingredient the non-active ingredient being chemically bound to the active ingredient, e.g. polymer-drug conjugates the non-active ingredient being a modifying agent the modifying agent being a protein, peptide or polyamino acid
- A61K47/64—Drug-peptide, drug-protein or drug-polyamino acid conjugates, i.e. the modifying agent being a peptide, protein or polyamino acid which is covalently bonded or complexed to a therapeutically active agent
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61P—SPECIFIC THERAPEUTIC ACTIVITY OF CHEMICAL COMPOUNDS OR MEDICINAL PREPARATIONS
- A61P31/00—Antiinfectives, i.e. antibiotics, antiseptics, chemotherapeutics
- A61P31/12—Antivirals
- A61P31/14—Antivirals for RNA viruses
- A61P31/18—Antivirals for RNA viruses for HIV
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61K—PREPARATIONS FOR MEDICAL, DENTAL OR TOILETRY PURPOSES
- A61K38/00—Medicinal preparations containing peptides
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61K—PREPARATIONS FOR MEDICAL, DENTAL OR TOILETRY PURPOSES
- A61K47/00—Medicinal preparations characterised by the non-active ingredients used, e.g. carriers or inert additives; Targeting or modifying agents chemically bound to the active ingredient
- A61K47/30—Macromolecular organic or inorganic compounds, e.g. inorganic polyphosphates
- A61K47/42—Proteins; Polypeptides; Degradation products thereof; Derivatives thereof, e.g. albumin, gelatin or zein
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61K—PREPARATIONS FOR MEDICAL, DENTAL OR TOILETRY PURPOSES
- A61K48/00—Medicinal preparations containing genetic material which is inserted into cells of the living body to treat genetic diseases; Gene therapy
-
- C—CHEMISTRY; METALLURGY
- C07—ORGANIC CHEMISTRY
- C07K—PEPTIDES
- C07K2319/00—Fusion polypeptide
Definitions
- the code handling the presentation of the information (user interface) and the code performing the application logic on the information are typically closely coupled. For example, the logic assigns user interface properties (e.g., color, font, position, size) directly with data.
- user interface properties e.g., color, font, position, size
- the logic must also change. For example, in the case of a text box, the user interface code listens to determine whether text has changed, upon a change, the user interface code validates the changed text and then displays the changed text. This tightly coupled nature of the user-interface and the logic results in very fragile code. Maintaining this f agile code is very costly and time consuming.
- the present invention is directed at a system and method for controlling the user interface with data.
- the invention decouples the user interface and the data, along with its application logic, by providing a mechanism for associating data to the user interface.
- the invention enables user interface designers and application authors who write the application logic to work independently. Neither the designers nor the authors need to understand the other's code or will impact the other's code development.
- This invention also allows changes to the user interface to be done quite easily. For example, when new and more user-appealing user interface platforms become available or when the user interface designer wishes to change the look of the application, the designer does not need to change the application logic.
- the mechanism for associating data to the user interface is dynamic. This allows any changes in the data to be automatically reflected in the presentation.
- any input from a user via the user interface can be automatically update the data.
- the present invention allows association of not only data display aspects of the user interface (e.g., text), but also visual aspects (e.g., background, font size, and the like), descriptive, visually enhancing and flexible presentation of data can be provided. For example, negative numbers may be displayed in red or an arrow may appear pointing upwards when stock prices are increasing.
- an application is separated into independent parts, a logic portion and a Ul portion.
- the logic portion manipulates data values within the application.
- the Ul portion is responsible for the presentation of the data.
- a binding specification describes a relationship between the Ul property and the data value.
- the binding specification is used by system level code to determine the manner in which it is notified when the data value undergoes a change and the manner in which it directs the Ul portion to reflect the change in the Ul property.
- the binding specification identifies a source data item, a path to the data value in the source data item, a target Ul element, and the Ul property on the target Ul element.
- the binding may be specified using code or markup language.
- FIGURE 1 illustrates an exemplary computing device that may be used in illustrative implementations of the present invention.
- FIGURE 2 is a functional block diagram illustrating one embodiment for controlling user interface properties with data in accordance with the present invention.
- FIGURE 3 is a logical flow diagram illustrating a process for binding a user interface property with a data value in accordance with one embodiment of the present invention.
- FIGURE 4 illustrates several exemplary syntaxes for associating the user interface properties with the data in accordance with the present invention.
- the present invention is directed at a system and method for controlling the user interface with data.
- the invention decouples the user interface and the application logic by providing a mechanism for associating the data with the user interface.
- this decoupling of the user interface and the data, along with its associated logic allows different groups of developers to work independently on both the user interface and the logic without impacting the code development of the other group.
- the present invention provides a system and mechanism for automatically transferring values from data sources to the user interface and vice versa.
- databinding refers to the process of associating data values with Ul properties, transferring and updating the data values, and the like.
- FIGURE 1 illustrates an exemplary computing device that may be used in illustrative implementations of the present invention.
- computing device 100 typically includes at least one processing unit 102 and system memory 104.
- system memory 104 may be volatile (such as RAM), non-volatile (such as ROM, flash memory, etc.) or some combination of the two.
- System memory 104 typically includes an operating system 105, one or more program modules 106, and may include program data 107. Examples of program modules 106 include a browser application, a finance management application, a word processor, and the like. This basic configuration is illustrated in FIGURE 1 by those components within dashed line 108
- Computing device 100 may have additional features or functionality.
- computing device 100 may also include additional data storage devices (removable and/or non-removable) such as, for example, magnetic disks, optical disks, or tape.
- additional storage is illustrated in FIGURE 1 by removable storage 109 and non-removable storage 110.
- Computer storage media may include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules, or other data.
- System memory 104, removable storage 109 and non-removable storage 110 are all examples of computer storage media.
- Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DND) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by computing device 100. Any such computer storage media may be part of device 100.
- Computing device 100 may also have input device(s) 112 such as keyboard, mouse, pen, voice input device, touch input device, etc.
- Output device(s) 114 such as a display, speakers, printer, etc. may also be included. These devices are well know in the art and need not be discussed at length here.
- Computing device 100 may also contain communication connections 116 that allow the device 100 to communicate with other computing devices 118, such as over a network.
- Communication connections 116 are one example of communication media.
- Communication media may typically be embodied by computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and includes any information delivery media.
- modulated data signal means a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal.
- communication media includes wired media such as a wired network or direct-wired connection, and wireless media such as acoustic, RF, infrared and other wireless media.
- the term computer readable media as used herein includes both storage media and communication media.
- FIGURE 2 is a functional block diagram illustrating one embodiment of a system 200 for controlling user interface properties with data in accordance with the present invention.
- the system 200 includes an application 202, a platform 220, and a data source 230.
- Application 202 may be one of applications 106 on computing device 100 shown in FIGURE 1.
- the application 202 includes code (hereinafter referred to as logic 204) for manipulating a data value (e.g., source data value 238).
- the logic 204 performs validation on data values and updates the data values.
- Data value (e.g., data value 238) represents the content of a property (i.e., a data source property) of a data item (e.g., data item 232).
- the data item 232 is located within a data source (e.g., data source 230).
- Each data source 230 may include several data items, each data item has one or more properties, in which the source data value is stored.
- Logic 203 may manipulate data values from multiple data sources.
- the data sources may include an XML document, an object, a dataset, and the like. As will be described in greater detail below, each property of the data item may be used to control the user interface (Ul).
- the application 202 also includes code (hereinafter referred to as user interface 206) for presenting information.
- the user interface 206 includes several user interface elements (e.g., user interface element 208).
- Each user interface element 208 includes one or more properties (e.g., Ul properties 210 and 212), such as for displayed text, color, font, position, size, and the like. Then, as described in detail later, these Ul properties 210 and 212 are associated with one or more of the data values 238 and 242 in accordance with the present invention. In general, the association occurs via a binding engine 224 within the platform 220.
- the platform 220 represents a system layer of services, such as an operating system, a virtual engine, and the like.
- the platform 220 also includes a property engine 222 that is responsible for maintaining hierarchical information pertaining to the data values 234 and 242 and for updating the associated properties with data values. Even though binding engine 224 and property engine 222 are shown as separate components, one skilled in the art will appreciate that the functionality provided by each may be included within one component without departing from the present invention.
- bindings 226 and 2228 The association (i.e, bindings) of the data values 238 and 242 to their Ul properties 210 and 212 is represented in FIGURE 2 by dashed lines from the data value to the Ul property (hereinafter referred to as bindings 226 and 228).
- data value may be used interchangeably with the term “source data value”.
- Ul property may be used interchangeably with the term "target property”.
- bindings 226 and 228 allow dynamic properties (i.e., target properties) to be automatically set from data values (i.e., source data values), such as from properties of arbitrary objects. These bindings may be dynamic so that the bound target property automatically updates to reflect changes in the source data value.
- the present invention further provides a notification mechanism (e.g., represented in FIGURE 2 by notifiers 236 and 240 and arrows from the notifiers to platform 220).
- a notification mechanism e.g., represented in FIGURE 2 by notifiers 236 and 240 and arrows from the notifiers to platform 220.
- Each data item 232 and 234 has a corresponding notifier 236 and 240, respectively.
- the notification mechanism is responsible for informing the system that the source data value has changed and that the data value can be propagated to the target property (i.e., UT property).
- the binding engine 224 creates a binding object (e.g., binding objects 250 and 252) associated with the binding.
- binding object 252 may represent binding 228 within the binding engine 224.
- Each binding object includes several properties (e.g., binding properties 260-272). Each of these binding properties 260-272 may be set programmatically. The following discussion describes each of these properties and FIGURE 4 illustrates exemplary code for activating a binding that specifies some of these properties.
- path 260 identifies the manner in which to locate the source data value (via the source object).
- the path 260 may refer to a property, sub-property or indexer on the source object, a column in ADO (ActiveX Data Objects), an XPath on XML, and the like.
- the path may refer to a reflection or ADO path.
- bindtype 262 defines a type for the binding 226 and 228.
- the bindtype includes one Way, two Way, and oneTime.
- binding 226 represents a two Way binding
- binding 228 represent a one Way binding.
- One of these binding types is set as a default.
- two Way binding is set as the default binding type.
- the binding engine 224 When the bindtype 262 is specified as one Way, this signals the binding engine 224 to update the target property (e.g., Ul property 210) every time a change occurs in the associated source data value.
- One Way bindtype is useful for binding a data value to a non-editable Ul property, such as text color, text background, and the like. Using one Way bindtype avoids the overhead of a two Way bindtype, described below. This decrease in overhead is most noticeable when listening to changes in Ul properties regarding layout content. For these Ul properties, the dynamic properties of each of the children of the Ul property must be listened to for changes to the Ul property.
- One Way bindtype may also be useful when changes in the Ul property are just for showing other presentation detail.
- the binding engine 224 When the bindtype 262 is specified as two Way, this signals the binding engine 224 to update the target property every time a change occurs in the source data value and vice versa.
- Two Way binding is especially helpful when binding data to an edit box where any changes made by the user in the edit box need to be propagated to the source data value.
- Another scenario for two Way binding is when another application is responsible for the source data field and those changes are reflected in an edit box.
- the binding engine 224 When the bindtype 262 is specified as oneTime, this signals the binding engine 224 to initialize the target property once and then leave it untouched, even if the associated source data value is changed.
- the oneTime bindtype is useful when some target property needs to be initialized with some value from a source field and the data context is not known in advance.
- oneTime bindtype is useful for read-only use of unchanging source data values. If the data source does not support the property notification mechanism of the present invention (e.g., IPropertyChange interface), the target property that is specified as one Way will be updated similarly as if the binding specified oneTime as the bindtype.
- updatetype 264 Another one of the binding properties (hereinafter referred to as updatetype 264) defines a type of update for the case in which bindtype 262 specifies two Way. Typically, two Way bindings listen for changes in the target property and propagate those changes back to the source data value. This process is referred to as updating the source. Normally, it is desirable to update whenever the target property changes. However, in certain situations, updating after every keystroke wastes cycles and denies the user the opportunity for correcting typing errors and the like. Updatetype 264 allows the user to specify when the updates should occur. In one embodiment, updatetype 264 may specify Immediate,
- OnLostFocus, and Explicit Specifying Immediate will signal the binding engine to update the source data value after every change to the target property. Specifying OnLostFocus will signal the binding engine to update the source data value after the target element has lost keyboard focus. Specifying Explicit will signal the binding engine to update the source data value only when the application explicitly requests an update. Typically, this explicit request is performed via a method. Even though this method may be called for any setting of updatetype 264, the method is useful when the updatetype is set to Explicit.
- One exemplary method is shown below: Binding. GetBinding(myElement, myProperty) .Update() ; •
- source 266 Another one of the binding properties (hereinafter referred to as source 266) identifies the source data item for the binding.
- the source 266 may be set programmatically or with markup. Programmatically, the developer provides an objectref to the object that the binding should use as the source data item.
- markup there are various methods for setting the source property.
- the binding engine 224 accepts a class reference.
- the class reference may be specified using ⁇ Namespace>. ⁇ Class>, ⁇ Assembly>.
- the class reference that is specified is invoked by the binding engine 224 to transform the source data value into a format accepted by the target property.
- a method within the class reference invokes this transformation, represented as transform 244 in FIGURE 2.
- the class reference may also specify an inverse transform (not shown) for transforming the target property to a format accepted by the source data value.
- the transform 244 may supply Ul semantics or be a custom type converter.
- Another one of the binding properties (hereinafter referred to as culture 270) defines the manner in which the source data value should be handled before/after transforming the source data value.
- Culture 270 operates in conjunction with transformer 268 to allow developers to specify rules for transforming source data values.
- the culture may specify a specific format for numbers, dates, and the like.
- the culture 270 accepts a value of a type Culturelnfo. The developer has the option of using the rules specified by the culture 270 when implementing the transform.
- bindflags 272 Another one of the binding properties (hereinafter referred to as bindflags 272) provides a mechanism for receiving events signaling the transfer of data. Because the above described method for data binding is asynchronous, the bindflags 272 allow a developer to know when the target has been updated with the new value. In order to use this mechanism, the bindflags 272 is set to "NotifyOnTransfer". A handler is then registered for the event using any customary ways.
- One exemplary use for this mechanism is as follows: Public static void main()
- the developer knows that the dynamic property has been updated. Thus, the developer may then use the target value for further processing.
- FIGURE 3 is a logical flow diagram illustrating a binding mechanism in accordance with one embodiment of the present invention.
- the binding mechanism performs actions to set-up the binding (blocks 302-306) and then performs actions (blocks 310-338) related to changes in the target property or source data value as specified in the binding. Processing continues at block 302.
- a binding object is created based on the arguments specified during the creation. Briefly, each property (i.e., properties 260-272 shown in FIGURE 2) for the binding object 252 may be specified as an argument during the creation.
- the binding may be created through markup, programmatically, and the like.
- FIGURE 4 illustrates exemplary syntaxes for creating a binding and specifying the properties 260-272.
- Each manner of creation specifies a source data item, a path to the data value in the source data item, a target Ul element, and a target dynamic property on the Ul element. While not shown in the present flow diagram, the properties of the binding object may also be modified dynamically during runtime, such as through the use of application programming interfaces (APIs). Processing proceeds to block 306.
- APIs application programming interfaces
- the binding is activated.
- the binding may be activated automatically once the binding engine notices that there is sufficient context for the binding, such as having the source object exist, the target element ready to display, and the like.
- the binding engine is responsible for recognizing activation of the binding. Processing continues at block 304.
- a value for the specified source property is found.
- reflection is used to find the value.
- Reflection is a general mechanism that allows a caller to obtain information about a requested object.
- the information includes objects that are supported, public properties, and the like.
- the binding engine when data item is a collection, the binding engine performs a number of heuristics to determine whether the to use the current record or the data object (collection) itself. A first heuristics is applied when the binding refers to a property or indexer. In this situation, the corresponding property or indexer on the collection object is used if such a property or indexer exists. Alternatively, the current record of the collection is used as the data item. Another heuristic is applied when no property or indexer exists.
- a transform is applied to the value if the binding specifies a transform (block 307).
- the application of a transform is described in detail in conjunction with block 316 below. Processing continues at block 308.
- the value that was found is assigned to the target property.
- a property engine that is responsible for maintaining the hierarchy of the properties may assign the value.
- a transform specified during creation of the binding may be invoked to transform the value before assigning the value to the target property.
- the property engine may mark the property as having a new value.
- the binding engine is ready for updating target properties and source data values as needed.
- the binding mechanism is asynchronous. Therefore, from block 308, processing continues through two asynchronous paths.
- a first path (blocks 310-318) is associated with updating the target property and a second path (blocks 330-338) is associated with updating the source data value. Each of these paths is described below. First, the path responsible for updating the target property is discussed.
- the binding engine determines whether the binding associated with the source data value and the target property has specified the bindtype as oneTime. If the bindtype is oneTime, processing is complete for this binding and proceeds to the end. One skilled in the art will recognize, that if the bindtype is oneTime, the binding engine does not listen for source property change events. Thus, in actual practice, the logic within the binding engine does not necessarily perform a check as shown in block 310. In addition, if the data item does not implement IPropertyChange, processing is complete. If, however, the bindtype is not oneTime, processing continues at block 312. At block 312, the binding engine listens for notifications associated with the bindings.
- the present invention implements a notification mechanism. Notification mechanisms, such as property change notifications and collection view "CurrentChanged” notifications and the like, are known in the art and need not be discussed at length here. Different actions cause a notification, such as a data value change, a page navigation, shutdown, change in record of interest in a data collection, and the like. Because the present invention triggers an update upon a change in the record of interest in a data collection, the present invention provides a convenient mechanism for further de-coupling the user interface and the logic. For example, in accordance with the present invention, the developer only needs to write code in the logic to specify how to change to the next record of interest in a data collection.
- the binding engine in accordance with the present invention, will update the user interface according to the bindings already specified. As mentioned before, this de-coupling of the user interface and the logic provides a more robust and more easily maintained application than when the user interface and logic are intertwined.
- the following code is one exemplary implementation for the notification mechanism. While the exemplary code written below is written in C#, those skilled in the art will appreciate that various languages and syntax may be used to implement the notification mechanism. For any such implementation, an interface is defined for use by each data item. Each data item inherits this interface in order to implement dynamic updating.
- the class PropertyChangedEventArgs includes one read-only property named PropertyName having a type string.
- the PropertyName property contains a name for the property which has changed.
- Each source data item then implements this interface by calling the PropertyChanged delegate whenever one of its properties has changed.
- the following is an illustrative example for implementing a source object (e.g., data item 232) in accordance with the embodiment for the notification mechanism.
- the 'set' method for the 'foo' property determines whether a new value is different than the old value. If the values differ, the handler is called. Reflection is performed to get the Propertylnfo.
- the binding engine may cache the type of the property once it is obtained through reflection. Thus, reflection is performed once, and not each time a notification is received for the property.
- an empty string may be passed in the arguments to signal that all bindings to each of the data item's data values should be updated. This may occur when the source object is not certain about which properties have changed and would like each binding updated.
- transformer 268 is an object as described below: Public interface IDataTransformer
- o denotes the source value
- dp denotes the target dynamic property
- c denotes the culture to use during the transformation.
- the TransformO method transforms the source value o into an object suitable for assignment to a dynamic property of type dp.
- the Transform() method is called when propagating a data value from the source of a binding to the target property. If the TransformO method returns a value of null, the binding engine is signaled to stop propagating values.
- the transformer may also be used for controlling other Ul properties, such as width, height, font, positioning(x,y), and the like based on the associated source data value specified in the binding.
- Transformers provide the ability to perform logic on the data value in order to show the data in several ways.
- a culture may be applied during the transform as specified in the binding. Processing continues at block 318.
- the target property is updated.
- the property engine assigns the value to the target property.
- the target property may be marked as having a new value. Processing may then continue to block 312 and listen for the next property change notification associated with the binding. Once the application ends or the binding is otherwise terminated, processing proceeds to the end. As mentioned above, from block 308, processing may continue through a second path. Thus, from block 308, processing continues at decision block 330.
- the logic within the binding engine may not necessarily perform a check of the bindtype during decision block 310, but rather, because the binding engine was not told to listen for notifications when the binding was created, the process does not flow through the second path
- a decision block reflecting the bindtype is shown. Therefore, at decision block 330, a determination is made whether the binding specified two Way as the bindtype. As discussed earlier, two Way allows changes in the target property to be propagated to the source data value. If the binding does not specify two Way as the bindtype, processing proceeds to the end. However, if the binding does specify two Way as the bindtype, processing continues at block 332. At block 332, the binding engine will recognize certain actions that trigger an update to the source data value. Once a trigger occurs, processing continues at decision block 334.
- the inverse transform is applied to the source property.
- the inverse transformer is an object as described below:
- o denotes the source value
- c denotes the culture to use during the transformation
- pinfo denotes the Propertylnfo of the target property.
- the InverseTransform() method transforms the source value o into an object suitable for assignment to a property of type info. This method is called when propagating a value from the target of a binding to the source. If the
- InverseTransformO method returns a value of null, the binding engine does not propagate a value. Once the InverseTransform is performed, processing continues at block 338.
- the source property is updated according to the udpatetype.
- the updatetype may be immediate, on loss of focus, explicit, and others.
- FIGURE 4 illustrates several exemplary means for creating a binding.
- Creation means 400-410 creates the binding through markup.
- Creation means 410 creates the binding through code.
- the illustrative means shown in FIGURE 4 are not exhaustive. Other means (syntax) may be used without departing from the scope of the present invention.
- Creation means 400 includes a DataContext name/value pair (hereinafter referred to as DataContext 422) and Id name/value pair (hereinafter referred to as Id 420) for an element 424. Because creation means 400 also includes DataContext 422, Id 420 is unnecessary. Id 420 is needed when it is desirable to refer to an explicit source, such as using ElementSource in markup or an IdObjectReg within code. Both of these uses are described below.
- DataContext 422 is a dynamic property defined on an element (e.g., element 424). The value associated with DataContext 422 represents the default source data item and is an inheritable property.
- the binding engine queries DataContext 422 and utilizes DataContext 422 when creating a binding for element 424 and descendent elements (e.g., Button element 426).
- the binding engine also listens for changes to DataContext 422, which triggers an update accordingly.
- DataContext 422 provides a convenient mechanism for establishing scope for all properties bound to a common data item.
- Descendant elements may have their own DataContext, which will take precedence over the DataContext 422 of the parent element.
- a binding may override DataContext 422 by supplying a non-null Source, described below in conjunction with creation means 402.
- Button element 426 is illustrated with a target property (e.g., Button.Text 428).
- a target property e.g., Button.Text 428.
- the binding engine upon encountering "Data:Bind", the binding engine recognizes that a binding is being specified. Name/value pairs that follow, set the binding properties 260-272 as specified in FIGURE 2.
- Creation means 400 represents a verbose markup format.
- Creation means 402 represents a compact markup format.
- the Ul property e.g., Button Text
- the Ul property is represented in a more compact fashion.
- Data:Bind is used as a signal to the binding engine that what follows is a binding.
- name/value pairs following Data:Bind correspond to the desired properties 260-272 described earlier for the binding object 250 in FIGURE 2.
- ElementSource 434 corresponds to source 266.
- ElementSource and DataSource If neither of these is used, the default value for source is null which signals the binding engine, upon creation, to get the value of the element's DataContext property and use the value as the source object.
- creation means e.g., creation means 402
- the binding engine finds the element whose ID is specified by the
- ElementSource property That element's DataContext is then used as the source object.
- Relative pathnames such as /Parent/Parent and /Previous/Previous, may be used to specify the datasource.
- the binding engine When the binding engine encounters /Parent, it looks for the element parent to the current element in terms of object hierarchy. For example, if the element is a customer order, specifying /Parent may signal the binding engine to look for the element which corresponds to a customer for the current order.
- Specifying /Parent is useful in nested repeater cases in which it is desirable to use values from an outer repeater in the scope of an inner repeater.
- Specifying /Previous signals the binding engine to look for the element previous to the current element under the Repeater. Specifying /Previous is useful when it is desirable to access the current-n item in addition to the current item, such as in line graphs and the like. Successive /Previous and /Parent may be used in accordance with the present invention.
- markup may specify a DataSource.
- the binding engine accepts the resource id of a Resource. If the Resource exposes a data property, then the binding engine will set the Source of the binding to the object returned by the data property of the DataSource resource.
- the binding engine will set the source of the binding to the resource object itself.
- the next three creation means 404-410 provide illustrative examples on the type of items that the present invention may bind.
- Creation means 404 illustrates support of binding to sub-properties and indexers.
- Creation means 404 corresponds to a binding written in C# as di.a.b[3].c, wherein di is the relevant data item.
- the class that implements di.a, the class that implements di.a.b, and the class that implements di.a.b[3].c all support the notification mechanism of the present invention (e.g., IPropertyChange) and notify when their properties change, the binding specified using creation means 404 will cause the binding engine to automatically update the bound property (e.g., the target property) to reflect changes in the source data value.
- the notification mechanism of the present invention e.g., IPropertyChange
- Creation means 406 illustrates support of binding to a data collection.
- the binding engine will automatically use the current record of the collection at each level (wherein a, b, and c represent different levels). For example, if di.a has a type IDataCollection, the binding uses the current record of the collection to fetch the "b" property. Thus, the binding engine automatically updates values associated with a data collection whenever the current record is changed.
- Creation means 408 illustrates support of binding to XML node.
- Creation means 410 illustrates support of binding to ADO data tables. For this implementation, the path 260 to the value is supplied as a field name for a particular row, such as "OrderED", as shown in FIGURE 4.
- Creation means 410 creates the bindings programmatically.
- the developer provides an objectref to the object that the binding should use as the source data item.
- the program statements shown in creation means 412 create a binding with the same behavior as the one illustrated by creation means 410.
- the SetBinding method has a number of more elaborate variants by which the programmer can specify any of the binding properties discussed above.
- the simple example above uses the button's DataContext as the source object.
- the following program statements create a one-way binding that uses a specific object (known at runtime) as the source:
- Object source ... some arbitrary object ... ; Binding.SetBinding(myButton, Element.BackgroundProperty, 'Color", BindType.OneWay, new ExplicitObjectRef(source));
- the following example code displays one implementation for controlling a user interface property with data via the binding mechanism of the present invention.
- the data value e.g., mylnteger
- the Ul property e.g., TextContent
- a transform e.g., MyTranformer
- the present invention provides a mechanism for associating a source data value with a target property in such a manner that changes in the coding of the user interface and the logic may be de-coupled.
- the present invention allows developers to easily modify and enhance the user interface without requiring them to modify the underlying logic of the application.
Abstract
Description
Claims
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/US2003/015708 WO2004107200A1 (en) | 2003-05-17 | 2003-05-17 | System and method for controlling user interface properties with data |
Publications (2)
Publication Number | Publication Date |
---|---|
EP1639489A1 true EP1639489A1 (en) | 2006-03-29 |
EP1639489A4 EP1639489A4 (en) | 2007-11-14 |
Family
ID=33449012
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
EP03734067A Withdrawn EP1639489A4 (en) | 2003-05-17 | 2003-05-17 | System and method for controlling user interface properties with data |
Country Status (8)
Country | Link |
---|---|
EP (1) | EP1639489A4 (en) |
JP (1) | JP2006526192A (en) |
CN (1) | CN100373375C (en) |
AU (1) | AU2003239503B8 (en) |
BR (1) | BR0307080A (en) |
CA (1) | CA2470177A1 (en) |
MX (1) | MXPA04007409A (en) |
WO (1) | WO2004107200A1 (en) |
Families Citing this family (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7523129B1 (en) * | 2004-09-15 | 2009-04-21 | Microsoft Corporation | Data-binding enhancements |
ATE464602T1 (en) * | 2005-02-09 | 2010-04-15 | Deutsche Post Ag | METHOD AND DEVICE FOR COMPUTER-AIDED GENERATION OF A GRAPHIC USER INTERFACE |
US20060212842A1 (en) | 2005-03-15 | 2006-09-21 | Microsoft Corporation | Rich data-bound application |
US7631011B2 (en) * | 2005-07-29 | 2009-12-08 | Microsoft Corporation | Code generation patterns |
US7921200B2 (en) * | 2006-02-03 | 2011-04-05 | International Business Machines Corporation | Apparatus, system, and method for interaction with multi-attribute system resources as groups |
KR101044870B1 (en) * | 2008-10-02 | 2011-06-28 | 한국전자통신연구원 | Method and Apparatus for Encoding and Decoding XML Documents Using Path Code |
US9805094B2 (en) | 2011-11-04 | 2017-10-31 | Ipc Systems, Inc. | User interface displaying filtered information |
US8499122B2 (en) * | 2011-11-21 | 2013-07-30 | Microsoft Corporation | Asynchronous data binding |
CN102945161A (en) * | 2012-10-24 | 2013-02-27 | 中国航空工业集团公司西安飞机设计研究所 | Method for displaying and controlling formatting page on basis of embedded system |
CN112230909B (en) | 2019-07-15 | 2023-05-23 | 腾讯科技(深圳)有限公司 | Method, device, equipment and storage medium for binding data of applet |
CN111580830B (en) * | 2020-05-12 | 2023-09-15 | 北京飞漫软件技术有限公司 | Binding and parsing method for hypertext markup language document element |
CN112737848B (en) * | 2020-12-29 | 2022-10-28 | 青岛海尔科技有限公司 | Object type determination method and device, storage medium and electronic device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6023271A (en) * | 1998-06-11 | 2000-02-08 | Sun Microsystems, Inc. | Framework for binding data viewers/data manipulation with one to many objects through introspection |
US6330006B1 (en) * | 1998-05-12 | 2001-12-11 | Silverstream Software, Inc. | Method and apparatus for synchronizing an application's interface and data |
US20030035003A1 (en) * | 1997-04-14 | 2003-02-20 | Paul Marcos | Method and apparatus for binding user interface objects to application objects |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6378004B1 (en) * | 1998-05-07 | 2002-04-23 | Compaq Computer Corporation | Method of communicating asynchronous elements from a mini-port driver |
JP3202968B2 (en) * | 1998-06-30 | 2001-08-27 | インターナショナル・ビジネス・マシーンズ・コーポレーション | Display control information generation method and computer |
US6438618B1 (en) * | 1998-12-16 | 2002-08-20 | Intel Corporation | Method and device for filtering events in an event notification service |
US20020188726A1 (en) * | 2001-06-08 | 2002-12-12 | Schick Andrew N. | Data object mark and send procedure |
-
2003
- 2003-05-17 CA CA002470177A patent/CA2470177A1/en not_active Abandoned
- 2003-05-17 MX MXPA04007409A patent/MXPA04007409A/en not_active Application Discontinuation
- 2003-05-17 AU AU2003239503A patent/AU2003239503B8/en not_active Ceased
- 2003-05-17 CN CNB038019531A patent/CN100373375C/en not_active Expired - Fee Related
- 2003-05-17 JP JP2005500405A patent/JP2006526192A/en active Pending
- 2003-05-17 WO PCT/US2003/015708 patent/WO2004107200A1/en active Application Filing
- 2003-05-17 BR BR0307080-8A patent/BR0307080A/en not_active IP Right Cessation
- 2003-05-17 EP EP03734067A patent/EP1639489A4/en not_active Withdrawn
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030035003A1 (en) * | 1997-04-14 | 2003-02-20 | Paul Marcos | Method and apparatus for binding user interface objects to application objects |
US6330006B1 (en) * | 1998-05-12 | 2001-12-11 | Silverstream Software, Inc. | Method and apparatus for synchronizing an application's interface and data |
US6023271A (en) * | 1998-06-11 | 2000-02-08 | Sun Microsystems, Inc. | Framework for binding data viewers/data manipulation with one to many objects through introspection |
Non-Patent Citations (3)
Title |
---|
DAVID SWEET, ET AL.: "KDE 2.0 Development" October 2000 (2000-10), SAMS PUBLISHING , 201 WEST 103RD ST., INDIANAPOLIS, INDIANA, 46290 USA , XP002451010 ISBN: 0-672-31891-1 Retrieved from the Internet: URL:http://www.iem.pw.edu.pl/ftp/doc/kde2dev.pdf> * page 40 - page 45 * * page 88 - page 102 * * page 266 - page 268 * * |
E. GAMMA, R. HELM, R. JOHNSON, J. VLISSIDES: "Design Pattern" 1995, ADDISON WESLEY , XP002451011 * page 4 - page 6 * * |
See also references of WO2004107200A1 * |
Also Published As
Publication number | Publication date |
---|---|
AU2003239503B2 (en) | 2009-11-19 |
MXPA04007409A (en) | 2005-02-17 |
WO2004107200A1 (en) | 2004-12-09 |
CN1620655A (en) | 2005-05-25 |
BR0307080A (en) | 2005-03-08 |
JP2006526192A (en) | 2006-11-16 |
AU2003239503A1 (en) | 2005-01-21 |
AU2003239503B8 (en) | 2010-01-07 |
CN100373375C (en) | 2008-03-05 |
EP1639489A4 (en) | 2007-11-14 |
CA2470177A1 (en) | 2004-11-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7519969B2 (en) | System and method for controlling user interface properties with data | |
US7577938B2 (en) | Data association | |
EP0672277B1 (en) | A method and system for in-place interaction with embedded objects | |
US8095565B2 (en) | Metadata driven user interface | |
AU2004208330B2 (en) | XML types in Java | |
US7536696B2 (en) | Mechanism for handling input parameters | |
US20050188350A1 (en) | Data binding | |
US7587670B2 (en) | Mechanism for providing data driven command line output | |
EP1477897A2 (en) | Reflection-based processing of input parameters for commands | |
US20050216670A1 (en) | Method and system for caching presentation data | |
AU2004279164B2 (en) | Mechanism for obtaining and applying constraints to constructs within an interactive environment | |
AU2003239503B8 (en) | System and method for controlling user interface properties with data | |
US7506341B2 (en) | System and method for controlling user interface properties with data | |
KR20040097937A (en) | System and method for employing object-based pipelines | |
ZA200405128B (en) | System and method for controlling use interface properties with data. | |
JP5010625B2 (en) | Recording medium and system storing program for controlling user interface property by data | |
RU2358307C2 (en) | System and method of controlling user interface properties using data | |
KR20060059335A (en) | System and method for controlling user interface properties with data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
17P | Request for examination filed |
Effective date: 20051104 |
|
AK | Designated contracting states |
Kind code of ref document: A1 Designated state(s): AT BE BG CH CY CZ DE DK EE ES FI FR GB GR HU IE IT LI LU MC NL PT RO SE SI SK TR |
|
DAX | Request for extension of the european patent (deleted) | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 1088682 Country of ref document: HK |
|
A4 | Supplementary search report drawn up and despatched |
Effective date: 20071017 |
|
17Q | First examination report despatched |
Effective date: 20080116 |
|
APBK | Appeal reference recorded |
Free format text: ORIGINAL CODE: EPIDOSNREFNE |
|
APBN | Date of receipt of notice of appeal recorded |
Free format text: ORIGINAL CODE: EPIDOSNNOA2E |
|
APBR | Date of receipt of statement of grounds of appeal recorded |
Free format text: ORIGINAL CODE: EPIDOSNNOA3E |
|
APAF | Appeal reference modified |
Free format text: ORIGINAL CODE: EPIDOSCREFNE |
|
APBT | Appeal procedure closed |
Free format text: ORIGINAL CODE: EPIDOSNNOA9E |
|
REG | Reference to a national code |
Ref country code: HK Ref legal event code: WD Ref document number: 1088682 Country of ref document: HK |
|
STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: THE APPLICATION HAS BEEN WITHDRAWN |
|
18W | Application withdrawn |
Effective date: 20121015 |