CN109284101B - Method and device for changing association of object attributes - Google Patents

Method and device for changing association of object attributes Download PDF

Info

Publication number
CN109284101B
CN109284101B CN201710598222.1A CN201710598222A CN109284101B CN 109284101 B CN109284101 B CN 109284101B CN 201710598222 A CN201710598222 A CN 201710598222A CN 109284101 B CN109284101 B CN 109284101B
Authority
CN
China
Prior art keywords
attribute
view
property
changed
data
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.)
Active
Application number
CN201710598222.1A
Other languages
Chinese (zh)
Other versions
CN109284101A (en
Inventor
姚耀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Cainiao Smart Logistics Holding Ltd
Original Assignee
Cainiao Smart Logistics Holding Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Cainiao Smart Logistics Holding Ltd filed Critical Cainiao Smart Logistics Holding Ltd
Priority to CN201710598222.1A priority Critical patent/CN109284101B/en
Publication of CN109284101A publication Critical patent/CN109284101A/en
Application granted granted Critical
Publication of CN109284101B publication Critical patent/CN109284101B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a method and a device for changing association of object attributes, wherein the method comprises the following steps: detecting the property change of the data object and the view object before and after executing the interface updating task, finding the other object associated with the object with the changed property when determining that the property of one object is changed, calling a property associated change mode configured for the object with the changed property, and changing the property of the other object associated, so that the value of the property of the view object is changed immediately once the value of the property of the data object is changed, or the value of the property of the data object is changed immediately once the value of the property of the view object is changed, thereby realizing the bidirectional data binding of the data object and the view object.

Description

Method and device for changing association of object attributes
Technical Field
The present application relates to the field of network technologies, and in particular, to an association change method and an association change apparatus for an object attribute.
Background
In the mainstream architecture design of Android application development, the business logic and the view of an application program are usually separated. One method of separating the two is a data binding framework (databinding library). Under the framework, all binding and updating operations of the data in the view are realized through the data binding framework. Data binding is to modify a view by manipulating a data object, or vice versa. In most cases, it is common for the data to be in a one-way operational view.
The applicant finds that, on an Android client, some existing data binding frames give values to the attributes of the data object, a method for notifying view change needs to be actively called, otherwise, the view does not have any change, and the change of the view attributes cannot be fed back to the values of the attributes of the data object.
Disclosure of Invention
In view of the above, the present application is proposed to provide an object property association change method and a corresponding object property association change apparatus that overcome or at least partially solve the above problems.
According to an aspect of the present application, there is provided a method for changing an association of object attributes, including:
detecting attribute changes of the data object and the view object before and after the interface updating task is executed;
if the attribute of one object is determined to be changed, searching another object associated with the object with the changed attribute;
and calling an attribute association change mode configured for the object with the changed attribute, and changing the attribute of the other associated object.
Optionally, the interface update task includes an operation task of a system interface thread, and a detection operation is preset in an output method used by a message queue of the system interface thread;
the detecting of the attribute change of the data object and the view object before and after the execution of the interface updating task comprises:
and calling preset detection operation in an output method used by the message queue of the system interface thread, and detecting attribute changes of the data object and the view object before and after the operation task of the system interface thread is executed.
Optionally, an annotation is added in a data binding frame of the operating system, the annotation records an association relationship between the data object and the view object and a property association change mode configured for the two objects, and the property association change mode indicates a mode of changing one associated object after a property change occurs to the other object.
Optionally, the detecting, by a preset detection operation in the output method used for calling the message queue of the system interface thread, the detecting of the attribute change occurring before and after the execution of the operation task of the system interface thread by the data object and the view object includes:
monitoring the operation tasks of the system interface thread;
and after the operation task is executed, calling preset detection operations in the output method to respectively detect the attribute change of the data object and the view object.
Optionally, the detecting, by a preset detection operation in the output method used for calling the message queue of the system interface thread, the detecting of the attribute change occurring before and after the execution of the operation task of the system interface thread by the data object and the view object includes:
and calling preset detection operation in the output method, and respectively detecting the attributes of the data object and the view object stored in the set storage position.
Optionally, before detecting, by a preset detection operation in the output method used for calling the message queue of the system interface thread, that the data object and the view object have changed their attributes before and after executing the operation task of the system interface thread, the method further includes:
searching an output method used by a message queue of the system interface thread;
and adding detection operations for respectively detecting the attributes of the data object and the view object in the output method.
Optionally, before detecting the property change of the data object and the view object before and after executing the interface update task, the method further includes:
and recording the respective attributes of the data object and the view object in a set storage position.
Optionally, after the invoking of the attribute-associated change mode configured for the object with changed attributes changes the attribute of another associated object, the method further includes:
and updating the attributes stored in the set storage position by adopting the changed attributes of the data object and the view object.
Optionally, after the invoking of the attribute-associated change mode configured for the object with changed attributes changes the attribute of another associated object, the method further includes:
and if the other associated object is a view object, calling a view rendering thread to re-render the current view according to the changed view object.
Optionally, the invoking an attribute-associated change mode configured for the object with the changed attribute, and changing the attribute of the other associated object includes:
if the object with the changed attributes is determined to be the data object, calling an assignment method configured for the data object to change the associated view object;
and if the object with the changed attributes is determined to be the view object, calling an assignment method configured for the view object to change the associated data object.
Optionally, the attribute of the view object includes a color and a content of the view object.
According to another aspect of the present application, there is provided an apparatus for changing an association of object attributes, including:
the attribute change detection module is used for detecting the attribute change of the data object and the view object before and after the execution of the interface updating task;
the object searching module is used for searching another object related to the object with the changed attribute if the attribute of one object is changed;
and the attribute changing module is used for calling an attribute association changing mode configured for the object with the changed attribute and changing the attribute of the other associated object.
According to another aspect of the application, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program implements a method according to one or more of the above.
According to another aspect of the application, a computer-readable storage medium is provided, on which a computer program is stored, characterized in that the program, when executed by a processor, implements a method as described in one or more of the above.
According to the embodiment of the application, by detecting the property change of the data object and the view object before and after the execution of the interface updating task, determining that the property of one object is changed, searching the other object associated with the object with the changed property, calling a property association change mode configured for the object with the changed property, and changing the property of the other associated object, the value of the property of the view object is immediately changed once the value of the property of the data object is changed, or the value of the property of the data object is immediately changed once the value of the property of the view object is changed, so that the bidirectional data binding of the data object and the view object is realized.
Furthermore, the attribute change of the data object and the view object before and after the operation task of the system interface thread is executed is detected by calling the preset detection operation in the output method used by the message queue of the system interface thread, so that the improved data binding framework can automatically detect whether the attribute of the data object and the view object is changed before and after the operation task of the system interface thread is executed.
Furthermore, the operation tasks of the system interface thread are monitored by recording the attributes of the data object and the view object in the set storage positions, and after the operation tasks are executed, the preset detection operation in the output method is called to respectively detect the attributes of the data object and the view object, so that the detection operation of the attributes can be executed at the time point after the operation of the system interface thread is executed.
Furthermore, by adding annotation in the data binding framework of the operating system, the annotation can be located in the same file with the Java code, which is helpful for enhancing the cohesiveness of the program, so that the program file and the configuration file do not need to be switched continuously, and the problem of reduction of development efficiency caused by discontinuous thinking is avoided. Moreover, the annotation can fully utilize a reflection mechanism of Java to acquire class structure information, and the information can effectively reduce the configuration work.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the application. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flowchart illustrating an embodiment of a method for changing an association of object attributes according to a first embodiment of the present application;
FIG. 2 is a schematic diagram illustrating data object and view object association changes;
FIG. 3 is a flowchart illustrating an embodiment of a method for changing an association of object attributes according to a second embodiment of the present application;
FIG. 4 is a diagram illustrating a message queue usage output method for a system interface thread;
fig. 5 is a block diagram illustrating a structure of an embodiment of an apparatus for changing an association of object attributes according to a third embodiment of the present application;
fig. 6 illustrates an exemplary system that can be used to implement the various embodiments described in this disclosure.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The embodiment of the application can be applied to a data binding framework of an operating system, and is an improvement on the data binding framework which is mainstream in an application development framework. Under the improved data binding framework, one property of the data object can be associated with a certain property, such as color, text content and the like, on at least one view object, the value of the property of the data object is dynamically modified, and the data binding framework can automatically detect the change of the value, so that the value of the property corresponding to the associated view object is changed. Conversely, once the value of a property of a view object changes, the value of the property of the associated data object changes accordingly.
Wherein a data object may represent an entity, for example, in an e-commerce database, a data object may be a merchant, a commodity, or a buyer, and in a teaching management database, a data object may be a student, a teacher, or a course. In general, a data object may be specifically described by a set of attributes, an attribute is a data field, and represents a feature of the data object, and an attribute has the same meaning as the terms "feature", "variable", and the like, for example, an attribute describing a commodity may include a name of a merchant, stock of the commodity, a picture of the commodity, a purchase quantity, and the like, and an attribute describing a document may include text, color, and the like. The view refers to an operation interface for a user and an interface for presenting data objects in a suitable manner, and the view object is used for controlling the structure, layout, content, appearance presentation and the like of the view, and may be specifically controlled by the attributes of a set of view objects.
In this embodiment of the present application, the interface update task refers to a task related to interface interaction or interface update, and includes an operation task of a system interface thread, and a task related to interface interaction or interface update of another thread, which may specifically include any applicable task, and this is not limited in this embodiment of the present application.
The system interface thread is a thread which mainly processes logic related to interface interaction and interface updating, the threads can communicate through a message queue, messages are added into the queue, the messages are sequentially executed according to the sequence of adding the messages into the queue, the message queue of the system interface thread is a serial queue in the system interface thread, and all operations related to the interface are required to be executed in the message queue of the system interface thread. Before and after the messages in the message queue are executed, the output method used by the message queue is called to display the content to be displayed on one physical output device in the system. In one system, one output object corresponds to one physical output device in the system, e.g., a Printer, a display, etc., and the output object is a virtualized representation of the physical output device in the computer, e.g., a Printer object in the Android system. Specifically, the output characteristics may be set for the corresponding physical output devices in the system by an output method, which is a method of controlling the output content.
In an example of the application, in an Android operating system with an improved data binding frame, when a name of a merchant in a service code changes, the name of the merchant on a display interface can be automatically refreshed, and when a user interactively edits a purchase quantity through the interface, the change of the purchase quantity can be automatically updated to the purchase quantity in the service code.
Referring to fig. 1, a flowchart of an embodiment of a method for changing an association of an object attribute according to a first embodiment of the present application is shown, where the method specifically includes the following steps:
step 101, detecting the attribute change of the data object and the view object before and after the interface updating task is executed.
In the embodiment of the application, before and after the interface updating task is executed, the data object and/or the view object may be subjected to attribute change. By comparing the value of the attribute of the data object before the task is executed with the value of the attribute of the view object with the value of the attribute of the corresponding data object after the task is executed with the value of the attribute of the view object, the attribute with the changed value of the attribute can be detected, and the attribute specifically includes the changed attribute of the data object, the changed attribute of the view object, or the changed attributes of both the data object and the view object. The detection of the data object and the view object may be performed sequentially or simultaneously, which is not limited in the present application.
In a preferred embodiment of the present application, the interface update task includes an operation task of a system interface thread, and a detection operation is preset in an output method used by a message queue of the system interface thread; one implementation of detecting property changes that occur before and after the execution of an interface update task for a data object and a view object includes: and calling preset detection operation in an output method used by the message queue of the system interface thread, and detecting attribute changes of the data object and the view object before and after the operation task of the system interface thread is executed.
The output methods held by the message queue are called once each time before and after the operation tasks of the system interface thread are executed. In order to enable the improved data binding framework to automatically detect a change in a value, a preset detection operation is added to the output method, where the detection operation may include an operation of detecting an attribute of a data object and an operation of detecting an attribute of a view object, and specifically, any suitable detection operation may be adopted, which is not limited in this application. . Therefore, before and after various operation tasks of the system interface thread are executed, the output method can be automatically called by the system interface thread, so that preset detection operation can be called, the data binding frame can automatically detect the change of the value without actively calling a method for notifying the change of the value, and the improved data binding frame can automatically detect whether the properties of the data object and the view object are changed before and after the operation tasks of the system interface thread are executed.
Step 102, determining that one object has the attribute change, and searching another object associated with the object with the changed attribute.
In an embodiment of the present application, the data binding framework may record an association relationship between a property of the data object and a property on at least one view object. After the detection operation is called, the value of the attribute of the data object is detected to be changed, or the value of the attribute of the view object is detected to be changed, and the view object or the data object related to the data object or the view object with the changed attribute is searched according to the association relationship between the data object and the view object and the corresponding relationship between the attribute and the attribute. For example, the identifier of the associated view object may be searched according to the identifier of the data object, or the view objects having the same identifier may be searched according to the identifier of the data object, and any suitable manner may be specifically used for searching, which is not limited in this embodiment of the present application.
For example, on an e-commerce platform, the current view on the shopping client is a commodity detail page specifically displaying the contents of a merchant name, a commodity stock, a commodity picture, a purchase quantity and the like, wherein the contents of the merchant name, the commodity stock, the commodity picture and the like are derived from an e-commerce database on a network. In one case, when the commodity inventory attribute of the commodity object in the database changes, the view object corresponding to the detail page showing the commodity is found in the shopping client. In another case, after the user changes the purchase amount on the detail page of the product displayed on the shopping client, the product object is found in the database.
Step 103, calling the attribute association change mode configured for the object with changed attribute, and changing the attribute of the other associated object.
In the embodiment of the present application, the attribute association change manner refers to a manner of association change of the value of the attribute associated between the data object and the view object. If the view object is used to change the data object, a manner of changing the value of the associated attribute according to the value of the attribute of the view object may be configured for the data object, and specifically, the method may include acquiring the value of the attribute of the view object and directly assigning the acquired value to the corresponding attribute of the associated data object. If the view object is changed by using the data object, a manner of changing the value of the associated attribute according to the value of the attribute of the data object may be configured for the view object, and specifically, the method may include acquiring the value of the attribute of the data object, and directly assigning the acquired value to the corresponding attribute of the associated view object. Preferably, the data object may be changed by using the view object, or the view object may be changed by using the data object, so that the value of the property of the view object changes immediately after the value of the property of the data object changes, or the value of the property of the data object changes immediately after the value of the property of the view object changes, thereby implementing bidirectional data binding between the data object and the view object.
In a specific implementation, if it is detected through step 101 that the attribute of the data object changes, an attribute association change mode configured for the data object is invoked to change the value of the corresponding attribute of the associated view object. If the attribute of the view object changes, an attribute association changing mode configured for the view object is called, and the value of the corresponding attribute of the associated data object is changed.
In summary, according to the embodiment of the present application, by detecting the property change of the data object and the view object before and after the execution of the interface update task, and determining that one of the objects has the property change, the other object associated with the object having the property change is searched, and a property-associated change manner configured for the object having the property change is invoked to change the property of the other associated object, so that once the property of the data object is changed, the property of the view object is also changed immediately, or once the property of the view object is changed, the property of the data object is also changed immediately, and thus bidirectional data binding between the data object and the view object is achieved.
In a preferred embodiment of the present application, an annotation is added in a data binding framework of an operating system, the annotation records an association relationship between a data object and a view object and a property association change manner configured for the two objects, respectively, and the property association change manner indicates a manner in which one object is changed after a property change occurs to another associated object.
In the embodiment of the present application, the attribute association change manner indicates a manner in which, after the attribute of the data object is changed, the attribute of the view object is changed accordingly, or after the attribute of the view object is changed, the attribute of the data object is changed accordingly. The annotation is also called metadata, which is a code level description and is in the same level with the class and the interface. In the embodiment of the present application, an annotation is added to the data binding frame, the annotation declares an association relationship between the data object and the view object, and a property association change manner configured for each of the two objects, and specifically, a mapping relationship between a property of the data object and a property of the view object, an identifier of the property of the data object, an identifier of the view object, a type of the property of the view object, and an assignment and value method corresponding to the property association change manner may be recorded. Because the annotation is a distributed metadata, compared with XML (extensible markup language) configuration, the annotation adopts an independent configuration file, and is inconvenient to adjust after the program development is completed. Moreover, the annotation can fully utilize a reflection mechanism of Java to acquire class structure information, and the information can effectively reduce the configuration work.
FIG. 2 is a schematic illustration of data object and view object association changes. The data object has n attributes from attribute 1 to attribute n, the view object has n attributes from attribute 1 to attribute n, the data object is associated with the view object, for example, attribute 1 of the data object and attribute 1 of the view object have a mapping relationship, and the annotation records the identifier of attribute 1 of the data object and the identifier of attribute 1 of the view object and the method of association change, for example, the set (assignment) method is a method of assigning an attribute of the view object according to the attribute of the data object, and the get method is a method of assigning an attribute of the data object according to the attribute of the view object.
The following is an example of annotation:
@Bind(viewName="end_title",setMethod=B.setText,getMethod="getText")
public CharSequence endTitle=“1234”;
the term "end _ title" refers to an identifier of a view, the term "setMethod" refers to a method for assigning a Text attribute, the term "getMethod" refers to a method for taking a value of a Text attribute, the term means a Text attribute, the CharSequence is a parameter type of an assignment method, the CharSequence type has certain fault tolerance, and the term "endTitle" refers to a value of an attribute.
In a preferred embodiment of the present application, the attribute of the view object includes a color and a content of the view object. The attribute of the view object may include a color, a content, and the like of the view object, specifically, a color displayed by a region, text, a graphic, and the like in the view, or a content displayed by a region, text, a graphic, and the like in the view.
In a preferred embodiment of the present application, the detecting, by a preset detection operation in the output method used for calling the message queue of the system interface thread, the attribute change occurring before and after the execution of the operation task of the system interface thread in the data object and the view object may include: and calling preset detection operation in the output method, and respectively detecting the attributes of the data object and the view object stored in the set storage position.
In this embodiment of the present application, the cache value corresponding to the attribute of the data object and the view object is recorded in the set storage location, and the set storage location may be in a memory. The method comprises the steps of respectively detecting attributes of a data object and a view object, respectively detecting the attributes of the data object and the view object, judging whether values of the attributes of the data object or the view object are changed, and detecting whether the current attribute value of the attributes of the data object or the view object is the same as a cache value of the attributes in a set storage position. And calling preset detection operation in the output method, wherein the detection operation comprises the operation of detecting the attributes of the data object and the view object stored in the set storage position.
In a preferred embodiment of the present application, the invoking an attribute-associated changing manner configured for an object with a changed attribute in step 103 may include changing an attribute of another associated object, where the changing includes:
a substep S1, if it is determined that the object with the changed attribute is a data object, calling an assignment method configured for the data object to change the associated view object;
and a substep S2, if it is determined that the object with the changed attribute is the view object, calling an assignment method configured for the view object to change the associated data object.
In the embodiment of the present application, the assignment (set) method refers to a setting method, and specifically, refers to a method for assigning a certain attribute of a data object or a view object. After detecting the attributes of the data object and the view object, if the attribute of the data object is determined to be changed, calling an assignment method configured for the data object, and assigning the corresponding attribute of the associated view object according to the new attribute value of the attribute of the data object. If the attribute of the view object is determined to be changed, an assignment method configured for the view object is called, and the corresponding attribute of the associated data object is assigned according to the new attribute value of the attribute of the view object.
Referring to fig. 3, a flowchart of an embodiment of a method for changing an association of an object attribute according to the second embodiment of the present application is shown, where the method specifically includes the following steps:
step 201, an output method used by a message queue of the system interface thread is searched.
In the embodiment of the application, operation tasks on the system interface thread are all performed on the message queue, and before and after the operation of the system interface thread is executed, the output method held by the message queue is called, so as to refresh the physical output device. The output method used for searching the message queue of the system interface thread may specifically adopt any applicable mode of searching, and the embodiment of the present application does not limit this.
Step 202, adding detection operations for detecting the attributes of the data object and the view object in the output method respectively.
In the embodiment of the application, the detection operation for the attributes of the data object and the view object is added in the output method, namely, the operation for detecting the attributes is added outside the original operation of the output method, and the operation for detecting the change of the values of the attributes is hidden in the output method.
FIG. 4 is a diagram of a message queue usage output method for a system interface thread. As shown in fig. 4, the child threads working for the system interface Thread include Thread1 and Thread2, etc., the child Thread sends the Message of the UI operation to the Message Queue mainloop of the system interface Thread UI Thread, the Message is in the Message Queue (Message Queue) in the mainloop, the output method println (printing method) of the output object Printer is called before and after the code in the Message is executed in sequence, and the detection operation can be hidden in the println method.
And step 203, recording the respective attributes of the data object and the view object in a set storage position.
In the embodiment of the present application, each attribute of the data object and the view object is recorded in a set storage location, and specifically, in a memory, a value of each attribute of the current data object and the current view object is recorded as a cache value.
And step 204, monitoring the operation tasks of the system interface thread.
In the embodiment of the present application, the operation task of the system interface thread may be monitored, and specifically, the execution state of the operation of the system interface thread may be monitored, for example, before or after execution. As shown in fig. 4, the system interface thread may set an execution state identifier for each Message, set the execution state identifier as a state before execution before executing a code in the Message, set the execution state identifier as a state after execution after executing a code in the Message, and detect the execution state identifier to monitor the operation task.
Step 205, after executing the operation task, invoking preset detection operations in the output method to respectively detect the attribute changes of the data object and the view object.
In this embodiment of the present application, it is monitored that an operation task of a system interface thread has been executed, a preset detection operation in the output method is invoked, and attributes of the data object and the view object are detected, specifically, the detection may include detecting a current attribute value of the attribute of the data object and a current attribute value of the attribute of the view object, and detecting whether the current attribute value is the same as the recorded cache value or not in each of the attributes of the data object and the view object recorded in the set storage location in step 203, and if it is detected that the current attribute value is different from the recorded cache value, the attribute change is detected.
For example, as shown in fig. 4, a detection operation is preset in the println of the output method, and after the system executes the code in the Message, the println method of the printer object is called, so that the detection operation is also executed.
Step 206, determining that the attribute of one object is changed, and searching for another object associated with the object with changed attribute.
In the embodiment of the application, if the current attribute value of the detected attribute of the data object is different from the recorded cache value, the attribute of the data object is determined to be changed, and the attribute of the view object associated with the changed attribute is searched. And if the current attribute value of the detected view object attribute is different from the recorded cache value, determining that the attribute of the view object is changed, and searching the attribute of the data object associated with the changed attribute.
Step 207, calling the attribute association change mode configured for the object whose attribute is changed, and changing the attribute of the other associated object.
In the embodiment of the present application, a specific implementation manner of this step may be described in the foregoing embodiment, and details are not described herein.
For example, as shown in fig. 4, the output method println is preset with a detection operation, and further includes an operation of calling an attribute-associated change mode configured for an object whose attribute changes, and changing an attribute of another associated object, and after the system executes the code in the Message, the println method of the printer object is called, and the operation of changing the attribute is also executed.
And step 208, updating the attributes stored in the set storage position by adopting the changed attributes of the data object and the view object.
In the embodiment of the application, if the attribute of the data object is changed, the value of the changed attribute of the data object is assigned to the cache value of the attribute stored in the set storage position. And if the attribute of the view object is changed, assigning the value of the changed attribute of the view object to the cache value of the attribute stored in the set storage position.
For example, as shown in fig. 4, the output method println is preset with a detection operation, and further includes an operation of updating the attribute stored in the set storage location by using the changed attributes of the data object and the view object, and after the system executes the code in the Message, the println method of the printer object is called, and the operation of updating the attribute is also executed.
Step 209, if another associated object is a view object, a view rendering thread is invoked to re-render the current view according to the changed view object.
In the embodiment of the application, if the attribute of the data object is changed first and then the associated view object is changed, the view rendering thread is called to re-render the current view according to the changed view object. The view rendering thread is a thread that renders a view of the interface, and may render the current view according to the changed view object, for example, a value of an attribute changed by the view object may be transmitted to the view rendering thread, and the view rendering thread displays corresponding content in the display interface according to the transmitted value of the changed attribute. Any suitable method can be adopted for the specific rendering method, which is not limited in the embodiment of the present application.
In summary, according to the embodiment of the present application, by searching for the output method used by the message queue of the system interface thread, the detection operations for detecting the attributes of the data object and the view object are added to the output method, so that the operations for detecting the attributes can be hidden in the output method, and the automatic detection of the attributes of the data object and the view object by the data binding framework is realized.
Furthermore, the operation tasks of the system interface thread are monitored by recording the attributes of the data object and the view object in the set storage positions, and after the operation tasks are executed, the preset detection operation in the output method is called to respectively detect the attributes of the data object and the view object, so that the detection operation of the attributes can be executed at the time point after the operation of the system interface thread is executed.
Further, by determining that one object has a property change, searching another object associated with the object with the property change, calling a property associated change mode configured for the object with the property change, changing the attribute of the other related object, updating the attribute stored in the set storage position by adopting the changed attributes of the data object and the view object, if the other related object is the view object, calling a view rendering thread to re-render the current view according to the changed view object, so that the property of the view object is changed immediately as soon as the value of the property of the data object is changed, or the attribute of the data object is changed immediately after the value of the attribute of the view object is changed, so that the bidirectional data binding of the data object and the view object is realized, and the stored cache value and the current view are updated correspondingly.
Referring to fig. 5, a block diagram illustrating a structure of an embodiment of an apparatus for changing an association of object attributes according to a third embodiment of the present application may specifically include:
the attribute change detection module 301 is configured to detect attribute changes occurring before and after the interface update task is executed for the data object and the view object;
an object searching module 302, configured to determine that an object has an attribute change, and search for another object associated with the object with the changed attribute;
the attribute changing module 303 is configured to invoke an attribute-related changing mode configured for an object whose attribute changes, and change an attribute of another object that is related to the object.
In a preferred embodiment of the present application, the interface update task includes an operation task of a system interface thread, and a detection operation is preset in an output method used by a message queue of the system interface thread;
the attribute change detection module is specifically configured to invoke a detection operation preset in an output method used by a message queue of a system interface thread, and detect attribute changes occurring before and after an operation task of the system interface thread is executed for a data object and a view object.
In a preferred embodiment of the present application, an annotation is added in a data binding framework of an operating system, the annotation records an association relationship between a data object and a view object and a property association change manner configured for the two objects, respectively, and the property association change manner indicates a manner in which one object is changed after a property change occurs to another associated object.
In a preferred embodiment of the present application, the attribute change detection module includes:
the task monitoring submodule is used for monitoring the operation tasks of the system interface thread;
and the attribute detection submodule is used for calling preset detection operations in the output method to respectively detect the attribute change of the data object and the view object after the operation task is executed.
In a preferred embodiment of the present application, the attribute change detection module includes:
and the storage attribute detection submodule is used for calling preset detection operation in the output method and respectively detecting the attributes of the data object and the view object stored in the set storage position.
In a preferred embodiment of the present application, the apparatus further comprises:
an output object searching module, configured to search an output method used by the message queue of the system interface thread before detecting, by a preset detection operation, attributes of the data object and the view object, respectively, in the output method used by the message queue of the calling system interface thread;
and the detection operation adding module is used for adding detection operations for respectively detecting the attributes of the data object and the view object in the output method.
In a preferred embodiment of the present application, the apparatus further comprises:
and the attribute recording module is used for recording each attribute of the data object and the view object in a set storage position before the preset detection operation in the output method used by the message queue of the calling system interface thread detects the attributes of the data object and the view object respectively.
In a preferred embodiment of the present application, the apparatus further comprises:
and the attribute updating module is used for updating the attributes stored in the set storage position by adopting the attributes of the changed data object and the view object after the attribute of the other related object is changed by calling the attribute related change mode configured for the object with the changed attributes.
In a preferred embodiment of the present application, the apparatus further comprises:
and the view rendering module is used for calling a view rendering thread to re-render the current view according to the changed view object if the other associated object is the view object after the attribute of the other associated object is changed by calling the attribute associated change mode configured for the object with the changed attribute.
In a preferred embodiment of the present application, the attribute changing module includes:
the view object changing submodule is used for calling an assignment method configured for the data object to change the associated view object if the object with the changed attribute is determined to be the data object;
a data object change submodule for calling an assignment method configured for the view object to change the associated data object if the object with the changed attribute is determined to be the view object
In a preferred embodiment of the present application, the attribute of the view object includes a color and a content of the view object.
In summary, according to the embodiment of the present application, by detecting the property change of the data object and the view object before and after the execution of the interface update task, and determining that one of the objects has the property change, the other object associated with the object having the property change is searched, and a property-associated change manner configured for the object having the property change is invoked to change the property of the other associated object, so that once the property of the data object is changed, the property of the view object is also changed immediately, or once the property of the view object is changed, the property of the data object is also changed immediately, and thus bidirectional data binding between the data object and the view object is achieved.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Embodiments of the disclosure may be implemented as a system using any suitable hardware, firmware, software, or any combination thereof, in a desired configuration. Fig. 6 schematically illustrates an exemplary system (or apparatus) 400 that can be used to implement various embodiments described in this disclosure.
For one embodiment, fig. 6 illustrates an exemplary system 400 having one or more processors 402, a system control module (chipset) 404 coupled to at least one of the processor(s) 402, system memory 406 coupled to the system control module 404, non-volatile memory (NVM)/storage 408 coupled to the system control module 404, one or more input/output devices 410 coupled to the system control module 404, and a network interface 412 coupled to the system control module 406.
Processor 402 may include one or more single-core or multi-core processors, and processor 402 may include any combination of general-purpose or special-purpose processors (e.g., graphics processors, application processors, baseband processors, etc.). In some embodiments, the system 400 can function as a browser as described in embodiments of the present application.
In some embodiments, system 400 may include one or more computer-readable media (e.g., system memory 406 or NVM/storage 408) having instructions and one or more processors 402 in combination with the one or more computer-readable media configured to execute the instructions to implement modules to perform the actions described in this disclosure.
For one embodiment, system control module 404 may include any suitable interface controllers to provide any suitable interface to at least one of processor(s) 402 and/or any suitable device or component in communication with system control module 404.
The system control module 404 may include a memory controller module to provide an interface to the system memory 406. The memory controller module may be a hardware module, a software module, and/or a firmware module.
System memory 406 may be used, for example, to load and store data and/or instructions for system 400. For one embodiment, system memory 406 may comprise any suitable volatile memory, such as suitable DRAM. In some embodiments, the system memory 406 may include a double data rate type four synchronous dynamic random access memory (DDR4 SDRAM).
For one embodiment, system control module 404 may include one or more input/output controllers to provide an interface to NVM/storage 408 and input/output device(s) 410.
For example, NVM/storage 408 may be used to store data and/or instructions. NVM/storage 408 may include any suitable non-volatile memory (e.g., flash memory) and/or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drive(s) (HDD (s)), one or more Compact Disc (CD) drive(s), and/or one or more Digital Versatile Disc (DVD) drive (s)).
NVM/storage 408 may include storage resources that are physically part of the device on which system 400 is installed or may be accessed by the device and not necessarily part of the device. For example, NVM/storage 408 may be accessed over a network via input/output device(s) 410.
Input/output device(s) 410 may provide an interface for system 400 to communicate with any other suitable device, and input/output devices 410 may include communication components, audio components, sensor components, and the like. Network interface 412 may provide an interface for system 400 to communicate over one or more networks, and system 400 may communicate wirelessly with one or more components of a wireless network according to any of one or more wireless network standards and/or protocols, such as to access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof.
For one embodiment, at least one of the processor(s) 402 may be packaged together with logic for one or more controller(s) (e.g., memory controller module) of the system control module 404. For one embodiment, at least one of the processor(s) 402 may be packaged together with logic for one or more controller(s) of the system control module 404 to form a System In Package (SiP). For one embodiment, at least one of the processor(s) 402 may be integrated on the same die with logic for one or more controller(s) of the system control module 404. For one embodiment, at least one of the processor(s) 402 may be integrated on the same die with logic for one or more controller(s) of the system control module 404 to form a system on a chip (SoC).
In various embodiments, system 400 may be, but is not limited to being: a browser, a workstation, a desktop computing device, or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet, a netbook, etc.). In various embodiments, system 400 may have more or fewer components and/or different architectures. For example, in some embodiments, system 400 includes one or more cameras, a keyboard, a Liquid Crystal Display (LCD) screen (including a touch screen display), a non-volatile memory port, multiple antennas, a graphics chip, an Application Specific Integrated Circuit (ASIC), and speakers.
Wherein, if the display includes a touch panel, the display screen may be implemented as a touch screen display to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
The present application further provides a non-volatile readable storage medium, where one or more modules (programs) are stored in the storage medium, and when the one or more modules are applied to a terminal device, the one or more modules may cause the terminal device to execute instructions (instructions) of method steps in the present application.
In one example, a computer device is provided, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method according to the embodiments of the present application when executing the computer program.
There is also provided in one example a computer readable storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements a method as one or more of the embodiments of the application.
The embodiment of the application discloses a method and a device for changing the association of object attributes, wherein example 1 comprises a method for changing the association of object attributes, which comprises the following steps:
detecting attribute changes of the data object and the view object before and after the interface updating task is executed;
if the attribute of one object is determined to be changed, searching another object associated with the object with the changed attribute;
and calling an attribute association change mode configured for the object with the changed attribute, and changing the attribute of the other associated object.
Example 2 may include the method of example 1, wherein the interface update task includes an operation task of a system interface thread, and an output method used by a message queue of the system interface thread is preset with a detection operation;
the detecting of the attribute change of the data object and the view object before and after the execution of the interface updating task comprises:
and calling preset detection operation in an output method used by the message queue of the system interface thread, and detecting attribute changes of the data object and the view object before and after the operation task of the system interface thread is executed.
Example 3 may include the method of example 1 and/or example 2, wherein an annotation is added to a data binding framework of an operating system, and the annotation records an association relationship between a data object and a view object and a property association change manner configured for the two objects, respectively, where the property association change manner indicates a manner in which one object is changed after a property change occurs in the other object.
Example 4 may include the method of example 1 and/or example 3, wherein the detecting a change in a property of the data object and the view object occurring before and after the execution of the operation task of the system interface thread, in the output method used by the message queue of the system interface thread, includes:
monitoring the operation tasks of the system interface thread;
and after the operation task is executed, calling preset detection operations in the output method to respectively detect the attribute change of the data object and the view object.
Example 5 may include the method of example 1 and/or example 4, wherein the detecting a change in a property of the data object and the view object occurring before and after the execution of the operation task of the system interface thread, in the output method used by the message queue of the system interface thread, includes:
and calling preset detection operation in the output method, and respectively detecting the attributes of the data object and the view object stored in the set storage position.
Example 6 may include the method of example 1 and/or example 5, wherein, before detecting, by a detection operation preset in the output method used by the message queue that invokes the system interface thread, a change in a property of the data object and the view object that occurs before and after the execution of the operation task of the system interface thread, the method further includes:
searching an output method used by a message queue of the system interface thread;
and adding detection operations for respectively detecting the attributes of the data object and the view object in the output method.
Example 7 may include the method of example 1 and/or example 6, wherein prior to the detecting the property changes that occur to the data object and the view object before and after performing the interface update task, the method further comprises:
and recording the respective attributes of the data object and the view object in a set storage position.
Example 8 may include the method of example 1 and/or example 7, wherein, after the invoking a property-associated change mode configured for the object with changed properties changes a property of another object associated therewith, the method further includes:
and updating the attributes stored in the set storage position by adopting the changed attributes of the data object and the view object.
Example 9 may include the method of example 1 and/or example 8, wherein, after the invoking a property-associated change mode configured for the object with changed properties changes a property of another object associated therewith, the method further includes:
and if the other associated object is a view object, calling a view rendering thread to re-render the current view according to the changed view object.
Example 10 may include the method of example 1 and/or example 9, wherein the invoking a property association change manner configured for an object with a changed property, and changing a property of another object associated therewith includes:
if the object with the changed attributes is determined to be the data object, calling an assignment method configured for the data object to change the associated view object;
and if the object with the changed attributes is determined to be the view object, calling an assignment method configured for the view object to change the associated data object.
Example 11 may include the method of example 1 and/or example 10, wherein the properties of the view object include a color, a content of the view object.
Example 12 includes an apparatus for association change of object properties, comprising:
the attribute change detection module is used for detecting the attribute change of the data object and the view object before and after the execution of the interface updating task;
the object searching module is used for searching another object related to the object with the changed attribute if the attribute of one object is changed;
and the attribute changing module is used for calling an attribute association changing mode configured for the object with the changed attribute and changing the attribute of the other associated object.
Example 13 may include the apparatus of example 12, wherein the interface update task includes an operation task of a system interface thread, and an output method used by a message queue of the system interface thread is preset with a detection operation;
the attribute change detection module is specifically configured to invoke a detection operation preset in an output method used by a message queue of a system interface thread, and detect attribute changes occurring before and after an operation task of the system interface thread is executed for a data object and a view object.
Example 14 may include the apparatus of one or more of examples 12 to 13, wherein, in a preferred embodiment of the present application, an annotation is added in a data binding framework of an operating system, and the annotation records an association relationship between a data object and a view object and a property association change manner configured for the two objects respectively, where the property association change manner indicates a manner in which a property change is performed on one object and then another associated object is changed.
Example 15 may include the apparatus of one or more of example 12-example 14, wherein the attribute change detection module comprises:
the task monitoring submodule is used for monitoring the operation tasks of the system interface thread;
and the attribute detection submodule is used for calling preset detection operations in the output method to respectively detect the attribute change of the data object and the view object after the operation task is executed.
Example 16 may include the apparatus of one or more of example 12-example 15, wherein the attribute change detection module comprises:
and the storage attribute detection submodule is used for calling preset detection operation in the output method and respectively detecting the attributes of the data object and the view object stored in the set storage position.
Example 17 may include the apparatus of one or more of examples 12-16, wherein the apparatus further comprises:
an output object searching module, configured to search an output method used by the message queue of the system interface thread before detecting, by a preset detection operation, attributes of the data object and the view object, respectively, in the output method used by the message queue of the calling system interface thread;
and the detection operation adding module is used for adding detection operations for respectively detecting the attributes of the data object and the view object in the output method.
Example 18 may include the apparatus of one or more of examples 12-17, wherein the apparatus further comprises:
and the attribute recording module is used for recording each attribute of the data object and the view object in a set storage position before the preset detection operation in the output method used by the message queue of the calling system interface thread detects the attributes of the data object and the view object respectively.
Example 19 may include the apparatus of one or more of examples 12-18, wherein the apparatus further comprises:
and the attribute updating module is used for updating the attributes stored in the set storage position by adopting the attributes of the changed data object and the view object after the attribute of the other related object is changed by calling the attribute related change mode configured for the object with the changed attributes.
Example 20 may include the apparatus of one or more of examples 12-19, wherein the apparatus further comprises:
and the view rendering module is used for calling a view rendering thread to re-render the current view according to the changed view object if the other associated object is the view object after the attribute of the other associated object is changed by calling the attribute associated change mode configured for the object with the changed attribute.
Example 21 may include the apparatus of one or more of examples 12-20, wherein the property change module comprises:
the view object changing submodule is used for calling an assignment method configured for the data object to change the associated view object if the object with the changed attribute is determined to be the data object;
a data object change submodule for calling an assignment method configured for the view object to change the associated data object if the object with the changed attribute is determined to be the view object
Example 22 may include the apparatus of one or more of example 12-example 21, wherein the properties of the view object include a color, a content of the view object.
Example 23 includes a computer device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements a method as in one or more of examples 1-11 when executing the computer program.
Example 24 includes a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements a method as in one or more of examples 1-11.
Although certain examples have been illustrated and described for purposes of description, a wide variety of alternate and/or equivalent implementations, or calculations, may be made to achieve the same objectives without departing from the scope of practice of the present application. This application is intended to cover any adaptations or variations of the embodiments discussed herein. Therefore, it is manifestly intended that the embodiments described herein be limited only by the claims and the equivalents thereof.

Claims (13)

1. A method for changing the association of object attributes is characterized by comprising the following steps:
calling a preset detection operation in an output method used by a message queue of a system interface thread, and detecting attribute changes of a data object and a view object before and after an interface updating task is executed, wherein the interface updating task comprises an operation task of the system interface thread;
if the attribute of one object is determined to be changed, searching another object associated with the object with the changed attribute;
and calling an attribute association change mode configured for the object with the changed attribute, and changing the attribute of the other associated object, wherein the association relation between the data object and the view object and the attribute association change mode are acquired from a preset annotation in a data binding frame of the operating system.
2. The method of claim 1, wherein an annotation is added to a data binding framework of an operating system, the annotation records an association relationship between a data object and a view object and a property association change mode configured for the two objects respectively, and the property association change mode indicates a mode of changing one object after a property change occurs to another object.
3. The method according to claim 1, wherein the detecting the property change of the data object and the view object before and after the execution of the operation task of the system interface thread comprises:
monitoring the operation tasks of the system interface thread;
and after the operation task is executed, calling preset detection operations in the output method to respectively detect the attribute change of the data object and the view object.
4. The method according to claim 1, wherein the detecting the property change of the data object and the view object before and after the execution of the operation task of the system interface thread comprises:
and calling preset detection operation in the output method, and respectively detecting the attributes of the data object and the view object stored in the set storage position.
5. The method according to claim 3, wherein before detecting the property change of the data object and the view object occurring before and after executing the operation task of the system interface thread, the method further comprises:
searching an output method used by a message queue of the system interface thread;
and adding detection operations for respectively detecting the attributes of the data object and the view object in the output method.
6. The method of claim 1, wherein prior to detecting property changes that occur to the data object and the view object before and after performing the interface update task, the method further comprises:
and recording the respective attributes of the data object and the view object in a set storage position.
7. The method according to claim 6, wherein after the calling a property-associated change mode configured for the object whose property is changed changes and changing the property of another object associated with the change mode, the method further comprises:
and updating the attributes stored in the set storage position by adopting the changed attributes of the data object and the view object.
8. The method according to claim 1, wherein after the calling a property-associated change mode configured for the object whose property is changed changes and changing the property of another object associated with the change mode, the method further comprises:
and if the other associated object is a view object, calling a view rendering thread to re-render the current view according to the changed view object.
9. The method according to claim 1, wherein the calling of the attribute-associated change mode configured for the object whose attribute is changed to change the attribute of another associated object comprises:
if the object with the changed attributes is determined to be the data object, calling an assignment method configured for the data object to change the associated view object;
and if the object with the changed attributes is determined to be the view object, calling an assignment method configured for the view object to change the associated data object.
10. The method of claim 1, wherein the attributes of the view object comprise color and content of the view object.
11. An apparatus for changing an association of object attributes, comprising:
the attribute change detection module is used for calling detection operation preset in an output method used by a message queue of a system interface thread, and detecting attribute changes of a data object and a view object before and after an interface updating task is executed, wherein the interface updating task comprises an operation task of the system interface thread;
the object searching module is used for searching another object related to the object with the changed attribute if the attribute of one object is changed;
and the property changing module is used for calling a property association changing mode configured for the object with changed properties and changing the properties of another associated object, wherein the association relation between the data object and the view object and the property association changing mode are acquired from annotations preset in a data binding frame of the operating system.
12. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1-10 when executing the computer program.
13. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-10.
CN201710598222.1A 2017-07-20 2017-07-20 Method and device for changing association of object attributes Active CN109284101B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710598222.1A CN109284101B (en) 2017-07-20 2017-07-20 Method and device for changing association of object attributes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710598222.1A CN109284101B (en) 2017-07-20 2017-07-20 Method and device for changing association of object attributes

Publications (2)

Publication Number Publication Date
CN109284101A CN109284101A (en) 2019-01-29
CN109284101B true CN109284101B (en) 2022-04-05

Family

ID=65185484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710598222.1A Active CN109284101B (en) 2017-07-20 2017-07-20 Method and device for changing association of object attributes

Country Status (1)

Country Link
CN (1) CN109284101B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111352946B (en) * 2020-02-28 2023-06-27 中国工商银行股份有限公司 Object data processing method, device, equipment and medium executed by computing equipment
CN111639004B (en) * 2020-05-12 2023-03-24 腾讯音乐娱乐科技(深圳)有限公司 User interface card pause monitoring method and device and storage medium
CN112379871A (en) * 2020-11-17 2021-02-19 广州小鹏汽车科技有限公司 Data processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753987A (en) * 2008-12-02 2010-06-23 北京中星微电子有限公司 Video monitoring system, software interface updating device in the video monitoring system, and software interface updating method
CN105653301A (en) * 2014-11-13 2016-06-08 比亚迪股份有限公司 Method and device for locking screen of mobile terminal
CN105677774A (en) * 2015-12-30 2016-06-15 百度在线网络技术(北京)有限公司 Data event pushing method and device

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110061002A1 (en) * 2009-08-25 2011-03-10 Bethune David System and method for sending various application programming interfaces to a customized user interface
CN101872305B (en) * 2010-06-08 2013-01-09 用友软件股份有限公司 UI (User Interface) performance and service logic separation method and system
US8387072B1 (en) * 2011-09-16 2013-02-26 Google Inc. Transactional environments for event and data binding handlers
CN106302008B (en) * 2016-08-05 2019-02-26 腾讯科技(深圳)有限公司 Data-updating method and device
CN106569818A (en) * 2016-11-04 2017-04-19 广东穗阳商务服务股份有限公司 Framework BMVVMFramework capable of quickly realizing MVVM mode
CN106648682B (en) * 2016-12-29 2019-10-25 中南大学 A kind of dynamic data general framework of embedded system exploitation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101753987A (en) * 2008-12-02 2010-06-23 北京中星微电子有限公司 Video monitoring system, software interface updating device in the video monitoring system, and software interface updating method
CN105653301A (en) * 2014-11-13 2016-06-08 比亚迪股份有限公司 Method and device for locking screen of mobile terminal
CN105677774A (en) * 2015-12-30 2016-06-15 百度在线网络技术(北京)有限公司 Data event pushing method and device

Also Published As

Publication number Publication date
CN109284101A (en) 2019-01-29

Similar Documents

Publication Publication Date Title
US8499254B2 (en) Surfacing and management of window-specific controls
US9501459B2 (en) Detecting influence caused by changing the source code of an application from which a document object model tree and cascading style sheet may be extracted
US20160048289A1 (en) Graphical user interface methods, systems, and computer program products
CN108089856B (en) Page element monitoring method and device
CN109284101B (en) Method and device for changing association of object attributes
WO2016095728A1 (en) Multi-window display method and device
WO2019100985A1 (en) Page processing method and mobile terminal
CN110019464B (en) Page processing method and device
US11151314B2 (en) Extensible grid layout
JP2019504427A (en) Page positioning method and apparatus for input information with error
WO2019011141A1 (en) Startup and configuration method, apparatus and device, medium, and operating system
CN107179920B (en) Network engine starting method and device
CN112817831A (en) Application performance monitoring method, device, computer system and readable storage medium
WO2016192546A1 (en) Method and device for updating data point of dynamic curve
CN114428657B (en) Sliding method and equipment based on Taro framework at H5 end
CN111277659A (en) Method and device for detecting display state of transverse screen and vertical screen of mobile phone
US20160154554A1 (en) Visual indication method and device
CN107085530B (en) Method and device for refreshing application interface and mobile terminal
CN111240678B (en) Pop-up window setting method and device, electronic equipment and storage medium
CN107943442A (en) A kind of method and apparatus for realizing shuangping san
WO2023051439A1 (en) Time-consuming optimization method and apparatus for page refreshing, and terminal device
US20230198861A1 (en) A group node editing method and apparatus
CN114647411A (en) Programming interface loading method and device, electronic equipment and storage medium
US11537586B2 (en) Detection of layout table(s) by a screen reader
CN107092485B (en) Tab label dynamic updating method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant