Page display method and apparatus, and electronic device and computer-readable medium
By determining the objects to be adjusted and maintained in the page, based on the object tree and display mark set, efficient display adjustment of some areas of the page is achieved, solving the problems of complexity and cost of page adjustment in the existing technology, and ensuring that the page is in Adjustment effect when view level changes.
Patent Information
- Application Number
- PCT/CN2024/099573
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-06-16
- Filing Date
- 2024-06-17
- Publication Date
- 2024-12-19
AI Technical Summary
The existing page adjustment technical solution is complex, resulting in high cost and poor adjustment effect. Especially when some areas need to remain in the original state, it is difficult to implement the existing technology efficiently.
By obtaining multiple objects of the target page, displaying constraints based on preset objects, determine the object to be adjusted and the object to be maintained, and deduce whether the object needs to be adjusted or maintained based on the object tree and display mark set to achieve partial area display of the page Adjustment.
It simplifies the page adjustment process, reduces costs, improves the page adjustment effect, can better meet the page adjustment needs, and automatically adjusts to maintain the effect when the page view hierarchy structure changes.
Smart Images

Figure CN2024099573_19122024_PF_FP_ABST
Abstract
Description
Page display method, device, electronic device, and computer-readable medium
[0001] This application claims priority to Chinese patent application No. 202310720889.X filed on June 16, 2023, and the contents of the above-mentioned Chinese patent application disclosure are hereby cited in their entirety as part of this disclosure. Technical Field
[0002] The present disclosure relates to a page display method, device, electronic device, and computer-readable medium. Background Art
[0003] In some application scenarios, some information may be displayed with the help of a page so that a user can view the information with the help of the page.
[0004] In practice, pages are usually configured in a certain state to improve the user's page viewing experience; however, in some cases, the state of the page may need to be adjusted.
[0005] However, some related technical solutions for implementing page adjustment (eg, solutions such as manually adjusting configuration parameters) have defects, which affect the page adjustment effect.
[0006] Summary of the Invention
[0007] The present disclosure provides a page display method, device, electronic device, and computer-readable medium.
[0008] The present disclosure provides a page display method, the method comprising:
[0009] Get multiple objects corresponding to the target page;
[0010] Determining an object to be adjusted and an object to be maintained from the plurality of objects according to a preset object display constraint;
[0011] The target page is displayed according to the object to be kept, the object to be adjusted, and the preset display information corresponding to the object to be adjusted.
[0012] In a possible implementation manner, displaying the target page according to the object to be kept, the object to be adjusted, and preset display information corresponding to the object to be adjusted includes:
[0013] If the display information corresponding to the object to be adjusted in the target page is inconsistent with the preset display information, the display information corresponding to the object to be adjusted in the target page is adjusted according to the preset display information.
[0014] In a possible implementation manner, displaying the target page according to the object to be kept, the object to be adjusted, and preset display information corresponding to the object to be adjusted includes:
[0015] If the display information corresponding to the object to be kept in the target page is consistent with the preset display information, the display information corresponding to the object to be kept in the target page is restored.
[0016] In one possible implementation manner, determining the objects to be adjusted and the objects to be maintained from the multiple objects based on the preset object display constraint includes:
[0017] According to the preset object display constraints and the object tree, objects to be adjusted and objects to be maintained are determined from the multiple objects; the object tree is used to describe the parent-child relationship between different objects in the multiple objects.
[0018] In one possible implementation, if the preset object display constraint includes a display hold mark for the first reference object among the multiple objects, the object to be retained is determined based on the first reference object and the associated object of the first reference object; the associated object is determined based on the path in the object tree that includes the first reference object.
[0019] In a possible implementation manner, the objects to be kept include all objects in the path; and the objects to be adjusted include other objects in the object tree except the objects to be kept.
[0020] In one possible implementation, the plurality of objects includes N objects, where N is a positive integer;
[0021] The determining, from the plurality of objects, the objects to be adjusted and the objects to be maintained based on the preset object display constraint and the object tree, includes:
[0022] determining whether the preset object display constraints include a display adjustment flag of an nth object or a display adjustment flag of at least one direct parent object of the nth object, to obtain a first determination result; n is a positive integer, n≤N; the direct parent object is determined based on a path in the object tree that includes the nth object;
[0023] According to the first judgment result, it is determined whether the nth object is an object to be retained.
[0024] In a possible implementation manner, determining whether the nth object is an object to be retained according to the first judgment result includes:
[0025] If the first judgment result indicates that the preset object display constraint does not include the display adjustment mark of the nth object and the display adjustment marks of all direct parent objects of the nth object, then determining the nth object as the object to be retained;
[0026] If the first judgment result indicates that the preset object display constraint includes a display adjustment flag of the nth object or a display adjustment flag of at least one direct parent object of the nth object, determining whether the preset object display constraint also includes a display retention flag of the nth object or a display retention flag of at least one direct parent object of the nth object, to obtain a second judgment result;
[0027] According to the second judgment result, it is determined whether the nth object is an object to be retained.
[0028] In a possible implementation manner, determining whether the nth object is an object to be retained according to the second judgment result includes:
[0029] If the second judgment result indicates that the preset object display constraint further includes a display-keeping flag of the nth object or a display-keeping flag of at least one direct parent object of the nth object, then determining the nth object as the object to be kept;
[0030] If the second judgment result indicates that the preset object display constraint does not include the display keep flag of the nth object and the display keep flags of all direct parent family objects of the nth object, then determining whether the preset object display constraint includes a display keep flag of a direct child family object of the nth object, to obtain a third judgment result; the direct child family object is determined based on a path in the object tree that includes the nth object;
[0031] According to the third judgment result, it is determined whether the nth object is an object to be retained.
[0032] In a possible implementation manner, determining whether the nth object is an object to be retained according to the third judgment result includes:
[0033] If the third judgment result indicates that a display keeping flag of at least one direct descendant object of the n-th object exists in the preset object display constraint, the n-th object is determined as the object to be kept;
[0034] The method further comprises:
[0035] If the third judgment result indicates that the display keeping flags of all direct descendant objects of the n-th object do not exist in the preset object display constraint, the n-th object is determined as the object to be adjusted.
[0036] In a possible implementation manner, the preset object display constraint includes a display maintaining mark of a first reference object and a display adjusting mark of a second reference object among the multiple objects;
[0037] The determining, from the plurality of objects, the objects to be adjusted and the objects to be maintained based on the preset object display constraint and the object tree, includes:
[0038] Determining, based on the preset object display constraint and the object tree, an adjustment mark set, a retention mark set, and a retention reference set, wherein the adjustment mark set includes the second reference object; the retention mark set includes the first reference object; and the retention reference set includes the first reference object and a direct parent object of the first reference object;
[0039] According to the adjustment mark set, the retention mark set and the retention reference set, objects to be adjusted and objects to be retained are determined from the plurality of objects.
[0040] In one possible implementation, the plurality of objects includes N objects, where N is a positive integer;
[0041] The determining, from the plurality of objects, objects to be adjusted and objects to be retained based on the adjustment mark set, the retention mark set, and the retention reference set, includes:
[0042] Determine whether the adjustment mark set includes the nth object or at least one direct parent object of the nth object to obtain a fourth determination result; n is a positive integer, n≤N;
[0043] According to the fourth judgment result, it is determined whether the nth object is an object to be retained.
[0044] In a possible implementation manner, determining whether the nth object is an object to be retained according to the fourth judgment result includes:
[0045] If the fourth judgment result indicates that the adjustment mark set does not include the n-th object and all direct parent objects of the n-th object, then the n-th object is determined as an object to be retained;
[0046] If the fourth judgment result indicates that the adjustment mark set includes the nth object or at least one direct parent object of the nth object, then determining whether the retention mark set includes the nth object or at least one direct parent object of the nth object to obtain a fifth judgment result;
[0047] According to the fifth judgment result, it is determined whether the nth object is an object to be retained.
[0048] In a possible implementation manner, determining whether the nth object is an object to be retained according to the fifth judgment result includes:
[0049] If the fifth judgment result indicates that the retain mark set includes the n-th object or at least one direct parent object of the n-th object, then determining the n-th object as the object to be retained;
[0050] If the fifth judgment result indicates that the retention mark set does not include the nth object and all direct parent objects of the nth object, then determining whether the nth object belongs to the retention reference set to obtain a sixth judgment result;
[0051] According to the sixth judgment result, it is determined whether the nth object is an object to be retained.
[0052] In a possible implementation manner, determining whether the nth object is an object to be retained according to the sixth judgment result includes:
[0053] If the sixth judgment result indicates that the nth object belongs to the retained reference set, determining the nth object as an object to be retained;
[0054] The method further comprises:
[0055] If the sixth judgment result indicates that the nth object does not belong to the retained reference set, the nth object is determined as the object to be adjusted.
[0056] In a possible implementation manner, the object to be adjusted includes a view component area, and a filter is covered on the view component area on the target page, and the filter is determined according to the preset display information.
[0057] In a possible implementation manner, after displaying the target page according to the object to be kept, the object to be adjusted, and preset display information corresponding to the object to be adjusted, the method further includes:
[0058] After detecting that the page display scene has changed, the display information corresponding to the object to be adjusted in the target page is restored.
[0059] In a possible implementation, the page display method is applied to a client.
[0060] In one possible implementation, the object is a view component or a view component area.
[0061] The present disclosure provides a page display device, comprising:
[0062] An acquisition unit, used to acquire multiple objects corresponding to a target page;
[0063] a determining unit, configured to determine an object to be adjusted and an object to be maintained from the plurality of objects according to a preset object display constraint;
[0064] The display unit is configured to display the target page according to the object to be maintained, the object to be adjusted, and preset display information corresponding to the object to be adjusted.
[0065] The present disclosure provides an electronic device, the device comprising: a processor and a memory;
[0066] The memory is used to store instructions or computer programs;
[0067] The processor is used to execute the instructions or computer programs in the memory, so that the electronic device executes the page display method provided by the present disclosure.
[0068] The present disclosure provides a computer-readable medium having instructions or a computer program stored therein. When the instructions or the computer program are executed on a device, the device executes the page display method provided by the present disclosure.
[0069] The present disclosure provides a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program contains program code for executing the page display method provided by the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments recorded in the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0071] FIG1 is a flow chart of a page display method provided by an embodiment of the present disclosure;
[0072] FIG2 is a schematic diagram of a derivation process provided by an embodiment of the present disclosure;
[0073] FIG3 is a schematic diagram of a different set provided by an embodiment of the present disclosure;
[0074] FIG4 is a schematic diagram of a derivation process provided by an embodiment of the present disclosure;
[0075] FIG5 is a schematic diagram of another derivation process provided by an embodiment of the present disclosure;
[0076] FIG6 is a schematic structural diagram of a page display device provided by an embodiment of the present disclosure; and
[0077] FIG7 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0078] After research, it was found that for some page adjustment schemes, such as the page graying scheme, if you want to keep the specified area of the page in color while graying the page, you need to gray out the areas of the page that do not need to be kept in color separately, and the processing process is specifically as follows: for the image data in the page, the server needs to send the grayed-out image data; for the local resources of the terminal device, the corresponding gray version needs to be built into the terminal device, and so on.
[0079] Research has also found that the page graying solution shown in the previous paragraph has the following shortcomings: since the page graying solution is relatively complex, the cost of the page graying solution (eg, development cost, etc.) is relatively high.
[0080] Research has also found that for a page, if the color of a view component in the page is adjusted (for example, by adding a color filter), the color of the entire display area of the view component in the page will change. Based on this, the present disclosure can use the color adjustment processing of the view component to achieve color adjustment processing (for example, graying out) of a part of the page area.
[0081] Based on the above findings, the present disclosure also provides a page display method, which includes: after obtaining multiple objects (for example, view components or view component areas) corresponding to the target page requested by the user, first determining the objects to be adjusted and the objects to be maintained from these objects based on the preset object display constraints, so that the objects to be adjusted are used to represent the objects existing in the target page that should be displayed according to the preset display information (for example, gray), and the objects to be maintained are used to represent the objects existing in the target page that should maintain the original display information for display; then, based on the objects to be adjusted, the objects to be maintained and the preset display information, the target page is displayed, so that the display information corresponding to the objects to be adjusted in the target page in the display state is consistent with the preset display information, and the display information corresponding to the objects to be maintained in the target page in the display state is inconsistent with the preset display information (that is, the display information corresponding to the objects to be maintained in the target page in the display state is still the original display information). In this way, the purpose of adjusting and displaying part of the target page according to the preset display information can be achieved, thereby better meeting the page adjustment requirements, and thus helping to improve the page adjustment effect.
[0082] It can be seen that since the present disclosure implements display adjustment processing (for example, graying processing) for part of the area in a page by adjusting some objects in the page, it can effectively simplify the page adjustment process and thus effectively reduce the page adjustment cost.
[0083] In addition, the present disclosure does not limit the execution subject of the page display method. For example, any implementation of the page display method provided in the embodiment of the present disclosure can be applied to a device with data processing function such as a terminal device or a server. For another example, any implementation of the page display method provided in the embodiment of the present disclosure can also be implemented with the help of a data communication process between different devices (for example, a terminal device and a server, two terminal devices, or two servers). Among them, the terminal device can be a smart phone, a computer, a personal digital assistant (PDA) or a tablet computer, etc. The server can be a stand-alone server, a cluster server or a cloud server.
[0084] In order to enable those skilled in the art to better understand the solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the embodiments described are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.
[0085] To better understand the technical solution provided by the present disclosure, the page display method provided by the present disclosure is described below with reference to some drawings. As shown in Figure 1, the page display method provided by the embodiment of the present disclosure includes the following S1-S3. Figure 1 is a flow chart of a page display method provided by the embodiment of the present disclosure.
[0086] S1: Get multiple objects corresponding to the target page.
[0087] The target page refers to a page that needs to be displayed (eg, grayed out), and the present disclosure does not limit the target page. For example, the target page may refer to any page requested by a user.
[0088] Based on the above, it can be seen that, in one possible implementation, when the page display method provided by the present disclosure is applied to a client, if the client receives a page display request triggered by a user, the target page mentioned above may refer to the page requested by the page display request. It should be noted that the present disclosure does not limit the implementation of the page display request. For example, the page display request may at least carry the Uniform Resource Locator (URL) of the target page.
[0089] An object refers to an element required for reference when performing page display processing on the target page described above; this disclosure does not limit the object. For example, the object may refer to a view component, which is a page construction element. For another example, the object may refer to a view component area, which refers to the area occupied by a view component on the target page.
[0090] In addition, the present disclosure does not limit the implementation method of the above "multiple objects". For example, in some application scenarios, when the object is implemented using a view component, the multiple objects of the target page may include all or part of the view components in the target page (for example, view component 1 to view component 8 shown in Figure 2 or Figure 3). For another example, in some application scenarios, when the object is implemented using a view component area, the multiple objects of the target page may include all or part of the view component area in the target page.
[0091] In addition, the present disclosure does not limit the implementation method of the above-mentioned "multiple objects" acquisition process. For example, it can be implemented by using any existing or future method that can acquire multiple objects corresponding to a page.
[0092] For another example, when the page display method provided by the present disclosure is applied to a client, the above-mentioned “multiple objects” may be provided by a server that can perform data communication with the client.
[0093] For example, in some application scenarios, the acquisition process of the above "multiple objects" can be specifically as follows: after obtaining the object tree of the target page, all objects in the object tree are determined as the "multiple objects". The object tree of the target page is used to describe the parent-child relationship between different objects in the multiple objects corresponding to the target page; and the present disclosure does not limit the implementation method of the object tree. For example, when the object is implemented using a view component, the object tree can be implemented using a view tree; the view tree is used to describe the view hierarchy of the target page so that the view tree can represent the parent-child relationship between different view components in the target page; and the present disclosure does not limit the view tree. For example, when the target page includes view components 1-view components 8 shown in Figure 2 or Figure 3, the view tree of the target page can be the tree structure shown in Figure 2 or Figure 3. For another example, when the object is implemented using a view component area, the object tree can be implemented using a tree structure constructed by multiple view component areas; the "tree structure constructed by multiple view component areas" is used to describe the parent-child relationship between different view component areas in the target page.
[0094] Furthermore, the present disclosure does not limit the triggering timing of S1 above. For example, S1 may specifically be: after receiving a page display request, obtaining multiple objects of the target page requested by the page display request. The page display request is used to request the target page. Furthermore, the present disclosure does not limit the triggering method of the page display request. For example, it may be implemented using any existing or future method that can trigger a page display request for a page (e.g., by clicking a page address link).
[0095] Based on the relevant content of S1 above, it can be known that for a client, after the client receives a page display request triggered for a target page, it obtains multiple objects of the target page (for example, view components or view component areas), so that it can subsequently complete the page display adjustment processing based on these objects, so that the adjusted page can finally be displayed to the user.
[0096] S2: Determine an object to be adjusted and an object to be maintained from a plurality of objects according to a preset object display constraint.
[0097] Among them, the preset object display constraint is used to constrain a certain state (for example, color distribution, texture distribution, or display shapes corresponding to some objects, etc.) presented when the above target page is displayed, so that the preset object display constraint can indicate which areas of the target page need to be adjusted for display (for example, adjusted to the target color for display), and which areas of the target page need to be kept in their original state (for example, kept in the original color) for display. The target color refers to the color required for color adjustment processing for a page; the target color can be determined in advance based on the application scenario; and the present disclosure does not limit the target color, for example, the target color can be gray. It should be noted that the "original color" in the present disclosure refers to the color described by the color attribute of an object.
[0098] In addition, the above-mentioned preset object display constraints can be set in advance according to the actual application scenario, so that the preset object display constraints can better represent the page display adjustment requirements in the actual application scenario (for example, color adjustment requirements, texture adjustment requirements or object display shape adjustment requirements, etc.).
[0099] In addition, the present disclosure does not limit the method for obtaining the above preset object display constraints. For example, it can be implemented by manual annotation.
[0100] In addition, the present disclosure does not limit the implementation method of the above-mentioned preset object display constraints. For example, in some application scenarios, the preset object display constraints may include the display constraint mark of the marked object in the above-mentioned "multiple objects" (for example, a display color constraint mark, a texture constraint mark, or a display shape constraint mark, etc.). The marked object refers to an object that exists in the above-mentioned target page and has been pre-added with a certain display constraint mark (for example, the view component 1 and the view component 5 shown in Figure 2 or Figure 3); and the marked object can be pre-specified by the user according to the actual application scenario. The display constraint mark refers to data (for example, a character string, an image, etc.) that is pre-marked for the marked object and is used to constrain the display information corresponding to the marked object; the display information corresponding to the marked object is used to describe the display status of the marked object on the target page.
[0101] In addition, the present disclosure does not limit the implementation method of the above display constraint mark. For example, in some application scenarios (for example, page color adjustment scenarios similar to graying scenarios), the display constraint mark can be implemented using a display color constraint mark, and the display color constraint mark refers to the data (for example, a string, an image, etc.) pre-marked for the marked object and used to constrain the display color corresponding to the marked object. For another example, in some application scenarios (for example, a page texture adjustment scenario), the display constraint mark can be implemented using a display texture constraint mark, and the display texture constraint mark refers to the data (for example, a certain pattern texture, a certain shadow texture, etc.) pre-marked for the marked object and used to constrain the display texture corresponding to the marked object. For another example, in other application scenarios (for example, an object display shape adjustment scenario), the display constraint mark can be implemented using a display shape constraint mark, and the display shape constraint mark refers to the data (for example, a string, an image, etc.) pre-marked for the marked object and used to constrain the display shape corresponding to the marked object.
[0102] In addition, the present disclosure is not limited to the above display constraint mark. For example, the display constraint mark may include a display adjustment mark (for example, the color adjustment mark "need to be grayed out mark" shown in Figure 2 or Figure 3) and / or a display retention mark (for example, the color retention mark "cannot be grayed out mark" shown in Figure 2 or Figure 3). The display adjustment mark is used to mark an object as possibly requiring display adjustment processing (for example, color adjustment processing, texture adjustment processing, or shape adjustment processing, etc.); the display retention mark is used to mark an object as not capable of display adjustment processing.
[0103] The object to be adjusted refers to an object existing in the target page above that needs to be displayed according to the preset display information (for example, target color, target texture or target shape) (for example, view component 3, view component 4 and view component 6 shown in Figure 2). Among them, the preset display information refers to the information required to be used as a basis when adjusting the display of an object in the page; and the present disclosure does not limit the preset display information. For example, in some application scenarios (for example, page color adjustment scenarios similar to graying scenarios), the preset display information can be a target color (for example, gray). For another example, in some application scenarios (for example, page texture adjustment scenarios), the preset display information can be a target texture (for example, a certain pattern texture, a certain shadow texture, etc.). Among them, the target texture refers to the texture required to be used as a basis when adjusting the display texture of a page; the target texture can be determined in advance based on the application scenario; and the present disclosure does not limit the target texture. For example, the target texture can be a certain pattern texture, a certain shadow texture, etc. For example, in other application scenarios (e.g., object display shape adjustment scenarios), the display constraint markup can be implemented using a display shape constraint markup, and the preset display information can be a target shape (e.g., a lantern shape, a tree shape, etc.). The target shape refers to the shape required for display shape adjustment processing on a page; the target shape can be determined in advance based on the application scenario; and the present disclosure does not limit the target shape. For example, the target shape can be a lantern shape or a tree shape, etc.
[0104] The objects to be retained are objects existing in the target page that need to be displayed according to the original display information (for example, view component 1, view component 2, view component 5, view component 7, and view component 8 shown in Figure 2). The original display information refers to the display information pre-configured for an object (for example, the display information described by the configuration properties of the object).
[0105] In addition, the present disclosure does not limit the implementation method of S2 above. For example, when the above preset object display constraints include display adjustment marks for some objects and display retention marks for some objects, S2 can specifically be: each object with a display adjustment mark is determined as an object to be adjusted, and each object with a display retention mark is determined as an object to be retained.
[0106] After research, it was found that for a page, if a view component in the page is adjusted to the target color (target texture or target shape), then the display area of the view component in the page is displayed according to the target color (target texture or target shape), so that the display area of the child component of the view component will also be adjusted to the target color (target texture or target shape) accordingly. It can be seen that for view components with a parent-child relationship, the color adjustment processing (display texture adjustment processing or display shape adjustment processing) of the parent component will affect the color adjustment processing (display texture adjustment processing or display shape adjustment processing) of the child component. Therefore, for any view component, the decision of whether the view component needs to be color adjusted (display texture adjustment processing or display shape adjustment processing) can be jointly determined by the parent component and the child component of the view component.
[0107] Based on the findings in the previous paragraph, we can see that, to further reduce costs, the number of marked objects involved in the preset object display constraints can be far fewer than the number of objects in the "multiple objects" section above. Therefore, in one possible implementation, the preset object display constraints can only include display constraint tags for a small number of marked objects. This allows the display constraint tags of these marked objects and the parent-child relationships between different objects on the target page to be used to deduce whether each object on the target page requires display adjustment. This effectively saves marking costs, thereby helping to reduce page display adjustment costs.
[0108] Based on the above, this disclosure also provides a possible implementation of step S2, which may specifically include determining the objects to be adjusted and the objects to be retained from the multiple objects corresponding to the target page based on preset object display constraints and an object tree. The object tree is used to describe the parent-child relationships between different objects in the multiple objects; please refer to the above for details about the object tree.
[0109] In addition, the present disclosure is not limited to the implementation method of the above step of "determining the objects to be adjusted and the objects to be retained from the multiple objects corresponding to the above target page based on the preset object display constraints and the object tree". For example, it may at least include: if the preset object display constraints include a display retention mark of the first reference object, then the object to be retained can be determined based on the first reference object and the associated objects of the first reference object (for example, the first reference object and each associated object of the first reference object are all determined as the object to be retained). Among them, the first reference object refers to the object that exists in the above target page and has the display retention mark added (for example, the view component 5 shown in Figure 2 or Figure 3); and the present disclosure does not limit the number of the first reference objects. The associated objects of the first reference object refer to the objects that are affected by the first reference object in terms of display adjustment; and the associated objects of the first reference object can be determined based on the path including the first reference object in the above object tree, so that the associated objects of the first reference object include all other objects in the path except the first reference object. For ease of understanding, the following is explained in conjunction with Figure 2.
[0110] As an example, assume that the target page includes view components 1 to 8 as shown in FIG2 , the object is implemented using view components, the preset display information is implemented using gray, and the display retention mark is implemented using the "cannot be grayed out mark" mark shown in FIG2 . Based on this assumption, as shown in FIG2 , if a can't be grayed out mark is added to view component 5 in advance, then view component 5 should maintain its original color; since view component 2 is the parent component of view component 5, then view component 2 should also maintain its original color under the influence of view component 5; since view component 1 is the parent component of view component 2, then view component 1 should also maintain its original color under the influence of view component 2; since view component 7 and view component 8 are both child components of view component 5, then view component 7 and view component 8 should also maintain their original colors under the influence of view component 5. Based on this, we can see that although only the non-grayable mark is added to view component 5, it can be inferred with the help of the object tree that view component 1, view component 2, view component 5, view component 7 and view component 8 should all maintain the original color (that is, not be grayed out).
[0111] It should be noted that the "path" involved in this disclosure refers to a path existing in the object tree. For example, for the tree structure shown in Figure 2, the path including view component 5 may at least include the path of "view component 1→view component 2→view component 5→view component 7" and the path of "view component 1→view component 2→view component 5→view component 8", etc.
[0112] Based on the above two paragraphs, it can be seen that for any object in the "multiple objects" above, if the object is added with a display keep mark or any associated object of the object is added with a display keep mark, it can be determined that the object should be displayed in the original color, so the object can be regarded as an object to be kept to ensure that the object is not adjusted to the target color, target texture or target shape during the page display adjustment process.
[0113] Based on the content of the previous paragraph, it can be seen that in one possible implementation method, for the multiple objects corresponding to the above target page, if the above preset object display constraints include a display retention mark for the first reference object among the multiple objects, then the path including the first reference object can be first determined from the object tree of the target page; then all objects in the path are determined as objects to be retained, so that the objects to be retained can include all objects in the path; then, all other objects in the object tree except these objects to be retained are determined as objects to be adjusted.
[0114] Based on the above content, the present disclosure also provides a possible implementation of S2 above. Under this implementation, when the above "multiple objects" includes N objects (for example, there are N objects in the above target page), S2 can specifically include the following steps 11-12.
[0115] Step 11: Determine whether the above preset object display constraints include the display adjustment mark of the nth object or the display adjustment mark of at least one direct parent object of the nth object, and obtain a first judgment result; n is a positive integer, n≤N; the direct parent object is determined based on the path including the nth object in the above object tree.
[0116] The direct parent object of the nth object refers to an object that exists in the target page above and is directly descended from the nth object and has a higher generation than the nth object (e.g., a parent object, a grandparent object, a great-grandparent object, etc.). For example, when the nth object is view component 5 shown in Figure 2, since view component 2 shown in Figure 2 is the parent component of view component 5, and view component 1 shown in Figure 2 is the grandparent component of view component 5, then view component 2 and view component 1 are both direct parent objects of the nth object.
[0117] In addition, for the nth object above (for example, view component 5 shown in Figure 2), all direct parent objects of the nth object can be determined based on the path in the object tree that includes the nth object, so that all direct parent objects of the nth object include all objects in each path that are higher in generation than the nth object (for example, view component 1 and view component 2 shown in Figure 2 are both view components that are higher in generation than view component 5).
[0118] The first judgment result is used to indicate whether the preset object display constraint includes the display adjustment flag of the nth object or the display adjustment flag of at least one direct parent object of the nth object.
[0119] Step 12: Based on the first judgment result above, determine whether the nth object is an object to be retained, where n is a positive integer and n≤N.
[0120] It should be noted that the present disclosure does not limit the implementation of step 12. For example, it may specifically include the following steps 121 to 123.
[0121] Step 121: If the first judgment result indicates that the preset object display constraints do not include the display adjustment flag of the nth object and the display adjustment flags of all direct parent objects of the nth object, then the nth object is determined as an object to be retained, where n is a positive integer, n≤N.
[0122] Based on the relevant content of step 121 above, it can be known that for any object in the above target page, if the direct parent object of the object does not exist in the object tree of the target page (that is, the object is the root node in the object tree), then when it is determined that the above preset object display constraints do not include the display adjustment mark of the object, it can be determined that there is no need to adjust the display information corresponding to the object according to the preset display information, so the object can be determined as an object to be retained; however, if the direct parent object of the object exists in the object tree of the target page (that is, the object is not the root node in the object tree), then only when it is determined that the above preset object display constraints do not include the display adjustment mark of the object and the display adjustment marks of all direct parent objects of the object, can it be determined that there is no need to adjust the display information corresponding to the object according to the preset display information, so the object can be determined as an object to be retained.
[0123] Step 122: If the first judgment result indicates that the preset object display constraint includes a display adjustment flag for the nth object or a display adjustment flag for at least one direct descendant of the nth object, determine whether the preset object display constraint also includes a display retention flag for the nth object or a display retention flag for at least one direct descendant of the nth object, and obtain a second judgment result. Here, n is a positive integer, n≤N.
[0124] The second judgment result is used to indicate whether the preset object display constraint further includes a display retention flag of the nth object or a display retention flag of at least one direct parent object of the nth object.
[0125] Step 123: According to the second judgment result above, determine whether the nth object is an object to be retained, where n is a positive integer and n≤N.
[0126] It should be noted that the present disclosure does not limit the implementation of step 123. For example, it may specifically include the following steps 1231 to 1233.
[0127] Step 1231: If the second judgment result indicates that the preset object display constraint also includes a display-keep flag for the nth object or a display-keep flag for at least one direct parent object of the nth object, the nth object is determined as an object to be retained, where n is a positive integer, n≤N.
[0128] In the present disclosure, for any object in the target page described above, if the object's direct parent object does not exist in the object tree of the target page (that is, the object is the root node in the object tree), then when it is determined that the preset object display constraint includes the display adjustment flag of the object, it can be determined that the display information corresponding to the object may need to be adjusted according to the preset display information. Therefore, for further confirmation, it can be determined whether the preset object display constraint also includes the display retention flag of the nth object. When it is determined that the preset object display constraint also includes the display retention flag of the nth object, it can be determined that the display information corresponding to the object does not need to be adjusted according to the preset display information, and thus the object can be determined as an object to be retained.
[0129] However, if the object's direct parent object exists in the object tree of the target page (that is, the object is not the root node in the object tree), then when it is determined that the above-mentioned preset object display constraint includes the display adjustment mark of the object or the display adjustment mark of at least one direct parent object of the object, it can be determined that it may be necessary to adjust the display information corresponding to the object according to the preset display information. Therefore, for further confirmation, it can be determined whether the preset object display constraint also includes the display hold mark of the object or the display hold mark of at least one direct parent object of the object, so that when it is determined that the preset object display constraint also includes the display hold mark of the object or the display hold mark of at least one direct parent object of the object, it can be determined that there is no need to adjust the display information corresponding to the object according to the preset display information, so the object can be determined as an object to be retained.
[0130] Step 1232: If the second judgment result indicates that the preset object display constraints do not include the display-keep flag for the nth object and the display-keep flags for all direct descendant objects of the nth object, then determine whether the preset object display constraints include display-keep flags for direct descendant objects of the nth object, thereby obtaining a third judgment result; the direct descendant objects are determined based on the path in the object tree that includes the nth object. Here, n is a positive integer, n≤N.
[0131] The direct descendant objects of the nth object refer to objects that exist in the target page above and are in the direct line of the nth object and have a lower generation than the nth object (e.g., child objects, grandchild objects, great-grandchild objects, etc.). For example, when the nth object is view component 5 shown in Figure 2, since view component 7 and view component 8 shown in Figure 2 are both subcomponents of view component 5, view component 7 and view component 8 are both direct descendant objects of the nth object.
[0132] In addition, for the nth object above (for example, the view component 5 shown in Figure 2), all direct descendant objects of the nth object can be determined based on the path in the object tree that includes the nth object, so that all direct descendant objects of the nth object include all objects in each path that are lower in generation than the nth object.
[0133] The third judgment result is used to indicate whether there is a display retention flag for a direct descendant family object of the nth object in the above preset object display constraint.
[0134] Step 1233: According to the third judgment result above, determine whether the nth object is an object to be retained, where n is a positive integer and n≤N.
[0135] It should be noted that the present disclosure does not limit the use process of the third judgment result above. For example, it may specifically include the following steps 12331-12332.
[0136] Step 12331: If the third judgment result indicates that the preset object display constraint contains a display retention flag for at least one direct descendant object of the nth object, the nth object is determined as the object to be retained, where n is a positive integer, n≤N.
[0137] Step 12332: If the third judgment result indicates that the display retention flags of all direct descendants of the nth object do not exist in the preset object display constraints, the nth object is determined as the object to be adjusted, where n is a positive integer, n≤N.
[0138] Based on the relevant contents of step 1232 and step 1233 above, it can be known that for any object in the above target page, if the object's direct parent family object does not exist in the object tree of the target page (that is, the object is the root node in the object tree), then when it is determined that the above preset object display constraint includes the display adjustment mark of the object, and it is determined that the preset object display constraint does not include the display retention mark of the object, it can be determined that the display information corresponding to the object may need to be adjusted according to the preset display information. Therefore, for further confirmation, it can be further determined whether there is a display retention mark of the direct child family object of the object in the preset object display constraint. If there are display retention marks of one or more direct child family objects, it can be determined that the display information corresponding to the object does not need to be adjusted according to the preset display information, so the object can be determined as the object to be retained. If there are no display retention marks for all direct child family objects, it can be determined that the display information corresponding to the object needs to be adjusted according to the preset display information, so the object can be determined as the object to be adjusted.
[0139] However, if the object's direct parent object exists in the object tree of the target page (that is, the object is not the root node in the object tree), then when it is determined that the above-mentioned preset object display constraint includes the display adjustment mark of the object or the display adjustment mark of at least one direct parent object of the object, and it is determined that the preset object display constraint does not include the display retention mark of the object and the display retention marks of all direct parent objects of the object, if the object's direct child object does not exist in the object tree of the target page (that is, the object is a leaf node in the object tree), it can be directly determined that the display information corresponding to the object needs to be adjusted according to the preset display information, so the object can be determined as the object to be adjusted; however, if the object exists in the object tree of the target page If it is a direct descendant object of the object (that is, the object is neither a leaf node nor a root node in the object tree), it can be determined that the display information corresponding to the object may need to be adjusted according to the preset display information. Therefore, in order to further confirm, it can be determined whether there is a display retention mark for the direct descendant object of the object in the preset object display constraint. If there is a display retention mark for one or more direct descendant objects, it can be determined that there is no need to adjust the display information corresponding to the object according to the preset display information, so the object can be determined as an object to be retained. If there is no display retention mark for all direct descendant objects, it can be determined that the display information corresponding to the object needs to be adjusted according to the preset display information, so the object can be determined as an object to be adjusted.
[0140] Based on the relevant content of steps 11 to 12 above, it can be known that for any object in the target page, it is possible to deduce whether the display information corresponding to the object needs to be adjusted according to the preset display information based on the preset object display constraints and the associated objects of the object (for example, the derivation process shown in Figure 4), and based on the deduction result, determine whether the object belongs to an object to be maintained or an object to be adjusted.
[0141] After research, it was found that for the derivation process shown in steps 11 and 12 above, since the derivation process involves the search and judgment process of direct descendant family objects, and an object often has many direct descendant family objects, the derivation process may take a long time.
[0142] In order to better reduce the derivation time, the present disclosure also provides another possible implementation of S2 above. In this implementation, when the above preset object display constraints include a display maintenance mark of the first reference object and a display adjustment mark of the second reference object, S2 can specifically include the following steps 21-22.
[0143] Step 21: Based on the above preset object display constraints and the above object tree, determine the adjustment mark set, the retention mark set and the retention reference set, the adjustment mark set includes the second reference object; the retention mark set includes the first reference object; the retention reference set includes the first reference object and the direct parent object of the first reference object.
[0144] The adjustment mark set is used to record objects that have been pre-added with display adjustment marks. It can be seen that when the preset object display constraints include a display adjustment mark for a second reference object, the adjustment mark set can include the second reference object (for example, the view component 1 shown in Figure 2 or Figure 3). The second reference object refers to the object that exists in the target page above and has been added with the display adjustment mark; and the present disclosure does not limit the number of the second reference objects.
[0145] The hold flag set is used to record objects that have been pre-tagged with a display hold flag. As can be seen, when the preset object display constraints above include a display hold flag for a first reference object, the hold flag set can include the first reference object (e.g., view component 5 shown in Figures 2 or 3). For more information about the first reference object, please refer to the above.
[0146] The retention reference set is used to record objects and their direct parent objects that have been pre-added with display retention marks. It can be seen that when the above preset object display constraints include the display retention mark of the first reference object, the retention reference set can include the first reference object and all direct parent objects of the first reference object. The direct parent object is determined based on the path in the above object tree that includes the first reference object. It should be noted that the process of determining the direct parent object of the first reference object is similar to the process of determining the "direct parent object of the nth object" above.
[0147] Based on the relevant content of step 21 above, it can be known that after obtaining multiple objects of the target page above (for example, view component 1-view component 8 shown in Figure 3), an adjustment mark set (for example, list 1 shown in Figure 3), a retention mark set (for example, list 2 shown in Figure 3) and a retention reference set (for example, list 3 shown in Figure 3) can be constructed according to the preset object display constraints and the object tree of the target page (for example, the tree structure shown in Figure 3), so that the adjustment mark set is used to record all objects with display adjustment marks (for example, view component 1 shown in Figure 3), and the retention mark set is used to record all objects with display retention marks (for example, view component 5 shown in Figure 3), and the retention reference set is used to record all objects with display retention marks and their direct parent objects (for example, view component 5 shown in Figure 3, the parent component of view component 5 - view component 2, and the grandparent component of view component 5 - view component 1), so that these three sets can be referred to in the future to deduce which objects in the target page need to have their display information adjusted according to the preset display information and which objects do not need to have their display information adjusted according to the preset display information.
[0148] Step 22: Determine objects to be adjusted and objects to be retained from a plurality of objects corresponding to the target page in the previous context based on the previous context adjustment mark set, the previous context retention mark set, and the previous context retention reference set.
[0149] It should be noted that the present disclosure does not limit the implementation of step 22. For the sake of convenience, an example is provided below for illustration.
[0150] As an example, when the above “multiple objects of the target page” include N objects, step 22 may specifically include the following steps 221 and 222 .
[0151] Step 221: Determine whether the above adjustment mark set includes the nth object or at least one direct parent object of the nth object, and obtain a fourth determination result, where n is a positive integer, n≤N.
[0152] The fourth judgment result is used to indicate whether the above adjustment mark set includes the nth object or at least one direct parent object of the nth object.
[0153] Step 222: According to the fourth judgment result above, determine whether the nth object is an object to be retained, where n is a positive integer and n≤N.
[0154] It should be noted that the present disclosure does not limit the implementation of the above step 222. For example, it may specifically include the following steps 2221 to 2223.
[0155] Step 2221: If the fourth judgment result indicates that the adjustment mark set does not include the nth object and all direct ancestors of the nth object, the nth object is determined as the object to be retained, where n is a positive integer, n≤N.
[0156] In the present disclosure, for any object in the target page above, if the direct parent object of the object does not exist in the object tree of the target page (that is, the object is the root node in the object tree), then when it is determined that the nth object does not belong to the adjustment mark set above, it can be determined that the display information corresponding to the object does not need to be adjusted according to the preset display information, so the object can be determined as an object to be retained; however, if the direct parent object of the object exists in the object tree of the target page (that is, the object is not the root node in the object tree), then only when it is determined that the object and all the direct parent objects of the object do not belong to the adjustment mark set, can it be determined that the display information corresponding to the object does not need to be adjusted according to the preset display information, so the object can be determined as an object to be retained.
[0157] Step 2222: If the fourth determination result indicates that the adjusted tag set includes the nth object or at least one of its direct ancestors, a determination is made as to whether the retained tag set includes the nth object or at least one of its direct ancestors, yielding a fifth determination result. Here, n is a positive integer, n≤N.
[0158] The fifth judgment result is used to indicate whether the above retention mark set includes the nth object or at least one direct parent object of the nth object.
[0159] Step 2223: According to the fifth judgment result above, determine whether the nth object is an object to be retained, where n is a positive integer and n≤N.
[0160] It should be noted that the present disclosure does not limit the implementation of the above step 222. For example, it may specifically include the following steps 22231 to 22233.
[0161] Step 22231: If the fifth judgment result indicates that the retain mark set includes the nth object or at least one direct parent object of the nth object, the nth object is determined as the object to be retained, where n is a positive integer and n≤N.
[0162] In the present disclosure, for any object in the target page described above, if the object's direct parent object does not exist in the object tree of the target page (that is, the object is the root node in the object tree), then when it is determined that the object belongs to the adjustment mark set described above, it can be determined that the display information corresponding to the object may need to be adjusted according to the preset display information. Therefore, for further confirmation, it can be determined whether the object belongs to the retention mark set described above. When it is determined that the object belongs to the retention mark set, it can be determined that the display information corresponding to the object does not need to be adjusted according to the preset display information, and therefore the object can be determined as an object to be retained.
[0163] However, if the object's direct parent object exists in the object tree of the target page (that is, the object is not the root node in the object tree), then when it is determined that the object belongs to the adjustment mark set or at least one direct parent object of the object belongs to the adjustment mark set, it can be determined that it may be necessary to adjust the display information corresponding to the object according to the preset display information. Therefore, for further confirmation, it can be determined whether the object or at least one direct parent object of the object belongs to the above-mentioned retention mark set, so that when it is determined that the object belongs to the retention mark set or at least one direct parent object of the object belongs to the retention mark set, it can be determined that there is no need to adjust the display information corresponding to the object according to the preset display information, so the object can be determined as an object to be retained.
[0164] Step 22232: If the fifth judgment result indicates that the retention mark set does not include the nth object and all direct ancestors of the nth object, determine whether the nth object belongs to the retention reference set, and obtain a sixth judgment result. Here, n is a positive integer, n≤N.
[0165] The sixth judgment result is used to indicate whether the nth object above belongs to the retained reference set.
[0166] Step 22233: Based on the sixth judgment result above, determine whether the nth object is an object to be retained, where n is a positive integer and n≤N.
[0167] It should be noted that the present disclosure does not limit the use process of the sixth judgment result above. For example, it may specifically include the following steps 222331-222332.
[0168] Step 222331: If the sixth judgment result above indicates that the nth object belongs to the retained reference set, the nth object is determined as the object to be retained, where n is a positive integer, n≤N.
[0169] Step 222332: If the sixth judgment result indicates that the nth object does not belong to the retained reference set, the nth object is determined as the object to be adjusted, where n is a positive integer, n≤N.
[0170] Based on the relevant content of steps 22232-22233 above, it can be known that for any object in the target page above, if the direct parent object of the object does not exist in the object tree of the target page (that is, the object is the root node in the object tree), then when it is determined that the object belongs to the adjustment mark set above and it is determined that the object does not belong to the retention mark set above, it can be determined that it may be necessary to adjust the display information corresponding to the object according to the preset display information. Therefore, for further confirmation, it can be determined whether the object belongs to the retention reference set. If the object belongs to the retention reference set, it can be determined that the display information corresponding to the object does not need to be adjusted according to the preset display information, so the object can be determined as the object to be retained. If the object does not belong to the retention reference set, it can be determined that the display information corresponding to the object needs to be adjusted according to the preset display information, so the object can be determined as the object to be adjusted.
[0171] However, if the object's direct parent object exists in the object tree of the target page (that is, the object is not the root node in the object tree), then when it is determined that the object belongs to the adjustment mark set or at least one direct parent object of the object belongs to the adjustment mark set, and it is determined that the object and all direct parent objects of the nth object do not belong to the above-mentioned retention mark set, it can be determined that the display information corresponding to the object may need to be adjusted according to the preset display information. Therefore, for further confirmation, it can be determined whether the object belongs to the retention reference set. If the object belongs to the retention reference set, it can be determined that the display information corresponding to the object does not need to be adjusted according to the preset display information, so the object can be determined as the object to be retained. If the object does not belong to the retention reference set, it can be determined that the display information corresponding to the object needs to be adjusted according to the preset display information, so the object can be determined as the object to be adjusted.
[0172] Based on the relevant contents of steps 221 to 222 above, it can be known that for multiple objects of the target page, first, an adjustment mark set (e.g., list 1 shown in FIG3 ), a retention mark set (e.g., list 2 shown in FIG3 ) and a retention reference set (e.g., list 3 shown in FIG3 ) can be constructed based on the preset object display constraints and the object tree of the target page (e.g., the object tree shown in FIG3 ); then, for any object in the target page, the adjustment mark set, the retention mark set and the retention reference set can be used to deduce whether the display information corresponding to the object needs to be adjusted according to the preset display information (e.g., the derivation process shown in FIG5 ), and based on the derivation result, it is determined whether the object belongs to an object to be retained or an object to be adjusted. It can be seen that because direct descendant family objects do not need to be used in this derivation method, this derivation method can effectively overcome the time-consuming problem caused by executing the search and judgment process of direct descendant family objects, thereby effectively reducing the derivation time, thereby improving the derivation efficiency, and further improving the page display adjustment efficiency.
[0173] Based on the relevant content of S2 above, it can be known that after obtaining multiple objects of the target page above (for example, view component 1-view component 8 shown in Figure 2), the objects to be adjusted and the objects to be retained can be determined from these objects based on the preset object display constraints, so that the objects to be adjusted are used to represent the objects existing in the target page and should be adjusted and displayed according to the preset display information (for example, view component 3, view component 4 and view component 6 shown in Figure 2), and the objects to be retained are used to represent the objects existing in the target page and should maintain the original display information for display (that is, there is no need to adjust the display according to the preset display information) (for example, view component 1, view component 2, view component 5, view component 7 and view component 8 shown in Figure 2), so that the page display adjustment processing for the target page can be completed subsequently based on the objects to be adjusted and the objects to be retained.
[0174] S3: Displaying a target page according to the object to be maintained, the object to be adjusted, and the preset display information corresponding to the object to be adjusted.
[0175] Among them, for the target page in the display state, the display information corresponding to the object to be adjusted in the target page is consistent with the above preset display information, and the display information corresponding to the object to be maintained in the target page is inconsistent with the above preset display information (that is, the display information corresponding to the object to be maintained is still the original display information corresponding to the object to be maintained). For example, when the object is implemented using a view component and the preset display information is implemented using a target color, the color in the display area of the object to be adjusted in the target page is adjusted to the target color, and the color in the display area of the object to be maintained in the target page remains the original color.
[0176] In addition, the present disclosure does not limit the implementation method of the target page in the display state described above. For example, when the object to be adjusted described above includes a view component area, a filter (such as a gray filter, etc.) is covered on the view component area on the target page in the display state. The filter is determined based on the preset display information so that the display information presented by the area with the filter added is consistent with the preset display information. For another example, when the object to be adjusted described above includes a view component, a filter is covered on the display area of the view component on the target page in the display state.
[0177] In addition, the present disclosure does not limit the implementation of the above S3. For ease of understanding, some examples are provided below for illustration.
[0178] Example 1, in some cases (for example, the color / texture / shape of each object in the target page has never been adjusted), if the display information corresponding to each object in the target page above is the corresponding original display information, then S3 above can be specifically: according to the preset display information above, the display information corresponding to the object to be adjusted in the target page is adjusted so that the display information corresponding to the object to be adjusted in the processed target page is consistent with the preset display information, and the display information corresponding to other objects in the target page other than the object to be adjusted (that is, the object to be maintained above) is inconsistent with the preset display information (that is, based on maintaining its corresponding original display information). Among them, the adjustment process is used to adjust the display information corresponding to an object from the original display information of the object to the preset display information; and the present disclosure does not limit the adjustment process, for example, it can be set according to the actual application scenario. For example, in some application scenarios, the adjustment process can be implemented by adding a filter corresponding to the preset display information (for example, "adding a gray filter" shown in Figures 4 and 5).
[0179] Example 2, in some cases (for example, the color / texture / shape of each object in the target page has been adjusted), if the display information corresponding to each object in the above target page has been adjusted to the preset display information, then the above S3 can be specifically: the object to be retained in the target page is restored, so that the display information corresponding to the object to be retained in the processed target page is restored from the preset display information to the original display information of the object to be retained, and the display information corresponding to other objects in the target page other than the object to be retained (for example, the object to be adjusted) is still the preset display information. Among them, the restoration process refers to the reverse process of the above adjustment process, so that the restoration process can be used to restore the display information corresponding to an object from the preset display information to the original display information of the object; and the present disclosure does not limit the restoration process, for example, it can be set according to the actual application scenario. For example, in some application scenarios, if the above adjustment process is implemented by adding a filter corresponding to the preset display information, then the restoration process can be implemented by removing the filter corresponding to the preset display information.
[0180] Example 3. In some cases (for example, the color / texture / shape of one or more objects to be maintained in the target page has been adjusted, and the color / texture / shape of one or more objects to be adjusted in the target page has not been adjusted), if the display information corresponding to the object to be adjusted in the above target page is inconsistent with the above preset display information, and the display information corresponding to the object to be maintained in the target page is consistent with the preset display information, then S3 may specifically include: adjusting the display information corresponding to the object to be adjusted in the target page according to the preset display information, and restoring the display information corresponding to the object to be maintained in the target page, so that the display information corresponding to the object to be adjusted in the processed target page is consistent with the preset display information, and the display information corresponding to the object to be maintained in the target page is restored to the original display information of the object to be maintained (for example, original color, etc.).
[0181] Example 4. In some cases (for example, the color / texture / shape of each object to be adjusted in the target page has been adjusted, and the color / texture / shape of each object to be retained in the target page has not been adjusted), if the display information corresponding to the object to be adjusted in the above target page is consistent with the above preset display information, and the display information corresponding to the object to be retained in the target page is inconsistent with the preset display information (that is, the display information corresponding to the object to be retained is the original display information of the object to be retained), then the above S3 can be specifically: no processing is required for the target page, and it can be displayed directly, so that the display information corresponding to the object to be adjusted in the target page in the display state is consistent with the preset display information, and the display information corresponding to the object to be retained in the target page is restored to the original display information of the object to be retained (for example, the original color, etc.).
[0182] Based on the relevant content of the above four examples, it can be seen that for the above target page, if the display information corresponding to the object to be adjusted in the target page still maintains the original display information of the object to be adjusted, the display information corresponding to the object to be adjusted can be adjusted according to the above preset display information (for example, adding a filter corresponding to the preset display information, etc.); however, if the display information corresponding to all objects to be adjusted in the target page has been adjusted to the preset display information, there is no need to perform any processing on all objects to be adjusted in the target page; similarly, if the display information corresponding to all objects to be maintained in the target page still maintains its corresponding original display information, There is no need to perform any processing on all the objects to be retained in the target page; however, if the display information corresponding to the objects to be retained in the target page is adjusted to the preset display information, the objects to be retained can be restored (for example, the filters corresponding to the preset display information are removed, etc.). In this way, the display processing process for the target page can be implemented, so that the display information corresponding to all the objects to be adjusted in the target page that is finally displayed is consistent with the preset display information, and the display information corresponding to all the objects to be retained in the target page that is finally displayed is the corresponding original display information, so that the target page meets the page display adjustment requirements under the current application scenario.
[0183] Based on the relevant contents of S1 to S3 above, it can be seen that for the page display method provided by the embodiment of the present disclosure, after obtaining multiple objects (for example, view components or view component areas) corresponding to the target page requested by the user, the object to be adjusted and the object to be maintained are first determined from these objects based on the preset object display constraints, so that the object to be adjusted is used to represent the object existing in the target page that should be displayed according to the preset display information (for example, gray), and the object to be maintained is used to represent the object existing in the target page that should maintain the original display information for display; then, based on the object to be adjusted, the object to be maintained and the preset display information, the target page is displayed, so that the display information corresponding to the object to be adjusted in the target page in the display state is consistent with the preset display information, and the display information corresponding to the object to be maintained in the target page in the display state is inconsistent with the preset display information (that is, the display information corresponding to the object to be maintained in the target page in the display state is still the original display information). In this way, the purpose of adjusting and displaying part of the target page according to the preset display information can be achieved, thereby better meeting the page adjustment requirements, and thus helping to improve the page adjustment effect.
[0184] It can be seen that since the present disclosure implements display adjustment processing (for example, graying processing) for part of the area in a page by adjusting some objects in the page, it can effectively simplify the page adjustment process and thus effectively reduce the page adjustment cost.
[0185] In fact, for a page, the view hierarchy structure of the page may change, resulting in the object tree of the page not being static. For example, sometimes new objects may be added to the object tree (for example, adding new view components), sometimes some existing objects may be deleted from the object tree, and sometimes the relationship between some existing objects in the object tree may be adjusted.
[0186] Based on the above content, in order to effectively avoid problems caused by changes in the view hierarchy structure of a page, the present disclosure also provides a possible implementation of the above page display method. In this implementation, the page display method may include the following steps 41-44.
[0187] Step 41: Get multiple objects of the target page.
[0188] It should be noted that the relevant content of step 41 can be found in S1 above, and for the sake of brevity, it will not be repeated here.
[0189] Step 42: According to the preset object display constraint, determine the objects to be adjusted and the objects to be retained from the multiple objects on the target page.
[0190] It should be noted that the relevant content of step 42 can be found in S2 above, and for the sake of brevity, it will not be repeated here.
[0191] Step 43: Displaying a target page according to the previous object to be adjusted, the previous object to be retained, and the preset display information corresponding to the object to be adjusted.
[0192] It should be noted that the relevant content of step 43 can be found in S3 above, and for the sake of brevity, it will not be repeated here.
[0193] Step 44: If it is detected that the object tree of the target page has changed, then re-execute the above step 41 and subsequent steps based on the target page with the updated object tree.
[0194] Based on the relevant content of steps 41 to 44 above, it can be known that in some application scenarios, the display information adjustment logic provided by the present disclosure (for example, the logic shown in S1-S3 above and the logic shown in steps 41-43) can be bound to the view hierarchy structure of the page (for example, the object tree), so that when it is detected that the view hierarchy structure of the page has changed (for example, the object tree has changed), the display information adjustment logic is automatically triggered for the page after the view hierarchy structure has changed. This can effectively ensure that the page display adjustment requirements set for the page (for example, the preset object display constraints above) are in effect throughout the entire available cycle of the page, thereby effectively avoiding defects caused by changes in the view hierarchy structure of the page, and thus effectively improving the page display adjustment effect.
[0195] In practice, for a page, the display information presented by the page in different scenarios is different. Therefore, in order to better improve the page display effect, the present disclosure also provides a possible implementation of the above page display method. In this implementation, the page display method further includes the following step 51. The execution time of step 51 is later than the execution time of S3 above or the execution time of step 43 above.
[0196] Step 51: After detecting that the page display scene has changed, the display information corresponding to the object to be adjusted in the target page is restored.
[0197] The page display scene changes to indicate that the page display scene corresponding to the target page changes from a first scene to a second scene. The first scene refers to a scene where the page needs to be displayed according to the preset object display constraints and the preset display information (e.g., a grayed-out page scene). The second scene refers to a scene where the page does not need to be displayed according to the preset object display constraints and the preset display information (e.g., a normal page display scene).
[0198] Based on the relevant content of step 51 above, it can be known that for the above target page, when the display information corresponding to the object to be adjusted in the target page is consistent with the preset display information, if it is detected that the page display scene has changed, it can be determined that the display information corresponding to the object to be adjusted needs to be displayed according to its original display information, so the display information corresponding to the object to be adjusted in the target page can be directly restored so that the display information corresponding to the object to be adjusted in the processed target page is consistent with the original display information of the object to be adjusted, which can meet the page restoration requirements and is conducive to improving the page display flexibility.
[0199] In addition, for the page display method provided in the embodiment of the present disclosure, in order to better improve the page display efficiency, the page display method can be applied to the client, which can effectively avoid the time consumption caused by data transmission between different devices (for example, server + client), thereby helping to improve the page display efficiency.
[0200] Based on the page display method provided in the embodiments of the present disclosure, the embodiments of the present disclosure also provide a page display device, which will be explained and illustrated below in conjunction with Figure 6. Figure 6 is a schematic structural diagram of a page display device provided in the embodiments of the present disclosure. It should be noted that for the technical details of the page display device provided in the embodiments of the present disclosure, please refer to the relevant content of the page display method above.
[0201] As shown in FIG6 , the page display device 600 provided by the embodiment of the present disclosure includes:
[0202] An acquisition unit 601 is configured to acquire multiple objects corresponding to a target page;
[0203] A determining unit 602 is configured to determine an object to be adjusted and an object to be maintained from a plurality of objects according to a preset object display constraint;
[0204] The display unit 603 is configured to display a target page according to the object to be kept, the object to be adjusted, and preset display information corresponding to the object to be adjusted.
[0205] In a possible implementation, the display unit 603 is specifically configured to adjust the display information corresponding to the object to be adjusted in the target page according to the preset display information if the display information corresponding to the object to be adjusted in the target page is inconsistent with the preset display information.
[0206] In a possible implementation, the display unit 603 is specifically configured to restore the display information corresponding to the object to be retained in the target page if the display information corresponding to the object to be retained in the target page is consistent with the preset display information.
[0207] In a possible implementation, the determination unit 602 is specifically configured to: determine the objects to be adjusted and the objects to be retained from multiple objects based on preset object display constraints and an object tree; the object tree is used to describe the parent-child relationship between different objects in the multiple objects.
[0208] In one possible implementation, if the preset object display constraint includes a display retention mark for a first reference object among multiple objects, the object to be retained is determined based on the first reference object and the associated objects of the first reference object; the associated objects are determined based on the path in the object tree that includes the first reference object.
[0209] In a possible implementation manner, the objects to be kept include all objects in the path; and the objects to be adjusted include other objects in the object tree except the objects to be kept.
[0210] In one possible implementation, the plurality of objects includes N objects, where N is a positive integer;
[0211] The determining unit 602 includes:
[0212] The first judgment subunit is configured to determine whether the preset object display constraints include a display adjustment flag of the nth object or a display adjustment flag of at least one direct parent object of the nth object, and obtain a first judgment result; n is a positive integer, n≤N; the direct parent object is determined based on a path in the object tree that includes the nth object;
[0213] The first determining subunit is configured to determine whether the nth object is an object to be retained according to the first judgment result.
[0214] In one possible implementation manner, the first determining subunit includes:
[0215] a second determining subunit configured to determine the nth object as an object to be retained if the first judgment result indicates that the preset object display constraint does not include the display adjustment mark of the nth object and the display adjustment marks of all direct parent objects of the nth object;
[0216] The second judgment subunit is configured to, if the first judgment result indicates that the preset object display constraint includes a display adjustment flag of the nth object or a display adjustment flag of at least one direct parent object of the nth object, determine whether the preset object display constraint also includes a display retention flag of the nth object or a display retention flag of at least one direct parent object of the nth object, to obtain a second judgment result;
[0217] The third determining subunit is configured to determine whether the nth object is an object to be retained according to the second judgment result.
[0218] In one possible implementation manner, the third determining subunit includes:
[0219] a fourth determining subunit configured to determine the nth object as an object to be retained if the second judgment result indicates that the preset object display constraint also includes a display retention flag of the nth object or a display retention flag of at least one direct parent object of the nth object;
[0220] The third judgment subunit is configured to, if the second judgment result indicates that the preset object display constraints do not include a display-keep flag for the nth object and the display-keep flags for all direct parent objects of the nth object, determine whether the preset object display constraints include a display-keep flag for direct descendant objects of the nth object, thereby obtaining a third judgment result; the direct descendant objects are determined based on a path in the object tree that includes the nth object;
[0221] The fifth determining subunit is configured to determine whether the nth object is an object to be retained according to the third judgment result.
[0222] In one possible implementation, the fifth determination subunit is specifically configured as follows: if the third judgment result indicates that there is a display retention mark for at least one direct descendant family object of the nth object in the preset object display constraint, then the nth object is determined as the object to be retained; if the third judgment result indicates that there are no display retention marks for all direct descendant family objects of the nth object in the preset object display constraint, then the nth object is determined as the object to be adjusted.
[0223] In a possible implementation manner, the preset object display constraint includes a display maintaining mark of a first reference object and a display adjusting mark of a second reference object among the multiple objects;
[0224] The determining unit 602 includes:
[0225] a sixth determining subunit, configured to determine, based on the preset object display constraint and the object tree, an adjustment tag set, a retention tag set, and a retention reference set, wherein the adjustment tag set includes the second reference object; the retention tag set includes the first reference object; and the retention reference set includes the first reference object and a direct parent object of the first reference object;
[0226] The seventh determining subunit is configured to determine the objects to be adjusted and the objects to be retained from the plurality of objects according to the adjustment mark set, the retention mark set, and the retention reference set.
[0227] In one possible implementation, the plurality of objects includes N objects, where N is a positive integer;
[0228] The seventh determining subunit includes:
[0229] The fourth judgment subunit is configured to judge whether the adjustment mark set includes the nth object or at least one direct parent object of the nth object, and obtain a fourth judgment result; n is a positive integer, n≤N;
[0230] The eighth determining subunit is configured to determine whether the nth object is an object to be retained according to the fourth judgment result.
[0231] In one possible implementation manner, the eighth determining subunit includes:
[0232] a ninth determining subunit configured to determine the nth object as an object to be retained if the fourth judgment result indicates that the adjustment mark set does not include the nth object and all direct parent objects of the nth object;
[0233] a fifth judgment subunit configured to, if the fourth judgment result indicates that the adjusted tag set includes the nth object or at least one direct parent object of the nth object, determine whether the retained tag set includes the nth object or at least one direct parent object of the nth object, to obtain a fifth judgment result;
[0234] The tenth determining subunit is configured to determine whether the nth object is an object to be retained according to the fifth judgment result.
[0235] In a possible implementation manner, the tenth determining subunit includes:
[0236] an eleventh determining subunit, configured to determine the nth object as an object to be retained if the fifth judgment result indicates that the retaining mark set includes the nth object or at least one direct parent object of the nth object;
[0237] a sixth judgment subunit configured to, if the fifth judgment result indicates that the retention mark set does not include the nth object and all direct parent objects of the nth object, determine whether the nth object belongs to the retention reference set to obtain a sixth judgment result;
[0238] The twelfth determining subunit is configured to determine whether the nth object is an object to be retained according to the sixth judgment result.
[0239] In one possible implementation, the twelfth determination subunit is specifically configured as follows: if the sixth judgment result indicates that the nth object belongs to the retained reference set, the nth object is determined as the object to be retained; if the sixth judgment result indicates that the nth object does not belong to the retained reference set, the nth object is determined as the object to be adjusted.
[0240] In a possible implementation, the object to be adjusted includes a view component area, and a filter is covered on the view component area on the target page. The filter is determined according to preset display information.
[0241] In a possible implementation manner, the page display device 600 further includes:
[0242] The restoration unit is configured to restore the display information corresponding to the object to be adjusted in the target page after detecting that the page display scene has changed.
[0243] In one possible implementation, the object is a view component or a view component area.
[0244] Based on the relevant content of the above-mentioned page display device 600, it can be known that for the page display device 600 provided by the embodiment of the present disclosure, after obtaining multiple objects (for example, view components or view component areas) corresponding to the target page requested by the user, the object to be adjusted and the object to be maintained are first determined from these objects based on the preset object display constraints, so that the object to be adjusted is used to represent the object existing in the target page and should be displayed according to the preset display information (for example, gray), and the object to be maintained is used to represent the object existing in the target page and should maintain the original display information for display; then, based on the object to be adjusted, the object to be maintained and the preset display information, the target page is displayed, so that the display information corresponding to the object to be adjusted in the target page in the display state is consistent with the preset display information, and the display information corresponding to the object to be maintained in the target page in the display state is inconsistent with the preset display information (that is, the display information corresponding to the object to be maintained in the target page in the display state is still the original display information). In this way, the purpose of adjusting and displaying part of the target page according to the preset display information can be achieved, thereby better meeting the page adjustment requirements, and thus helping to improve the page adjustment effect.
[0245] It can be seen that since the present disclosure implements display adjustment processing (for example, graying processing) for part of the area in a page by adjusting some objects in the page, it can effectively simplify the page adjustment process and thus effectively reduce the page adjustment cost.
[0246] In addition, an embodiment of the present disclosure further provides an electronic device, which includes a processor and a memory: the memory is used to store instructions or computer programs; the processor is used to execute the instructions or computer programs in the memory, so that the electronic device executes any implementation of the page display method provided in the embodiment of the present disclosure.
[0247] Referring to FIG7 , a schematic diagram of the structure of an electronic device 700 suitable for implementing embodiments of the present disclosure is shown. Terminal devices in embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG7 is merely an example and should not limit the functionality or scope of use of embodiments of the present disclosure.
[0248] As shown in Figure 7, electronic device 700 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. Various programs and data required for the operation of electronic device 700 are also stored in RAM 703. Processing device 701, ROM 702, and RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to bus 704.
[0249] Typically, the following devices may be connected to the I / O interface 705: an input device 706 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 708 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 709. The communication device 709 may allow the electronic device 700 to communicate with other devices wirelessly or by wire to exchange data. Although FIG. 7 shows the electronic device 700 with various devices, it should be understood that not all of the devices shown are required to be implemented or present. More or fewer devices may be implemented or present instead.
[0250] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 709, or installed from the storage device 708, or installed from the ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0251] The electronic device provided by the embodiment of the present disclosure and the method provided by the above embodiment belong to the same inventive concept. For technical details not fully described in this embodiment, please refer to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0252] The embodiments of the present disclosure further provide a computer-readable medium, wherein the computer-readable medium stores instructions or computer programs. When the instructions or computer programs are executed on a device, the device executes any implementation of the page display method provided by the embodiments of the present disclosure.
[0253] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0254] In some embodiments, the client and server can communicate using any currently known or later developed network protocol, such as HTTP (Hypertext Transfer Protocol), and can be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or later developed network.
[0255] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0256] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device can perform the method.
[0257] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including, but not limited to, object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0258] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0259] The units involved in the embodiments described in this disclosure may be implemented in software or hardware, wherein the name of a unit / module does not, in some cases, limit the unit itself.
[0260] The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0261] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0262] It should be noted that the various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. Reference can be made to the common and similar parts between the various embodiments. For the systems or devices disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the method description.
[0263] It should be understood that in the present disclosure, "at least one (item)" refers to one or more, and "plurality" refers to two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0264] It should also be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article, or device comprising the element.
[0265] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0266] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present disclosure. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present disclosure. Therefore, the present disclosure is not limited to the embodiments shown herein, but is intended to be construed in the widest manner consistent with the principles and novel features disclosed herein.
Claims
1. A page display method, comprising: Get multiple objects corresponding to the target page; Determining an object to be adjusted and an object to be maintained from the plurality of objects according to a preset object display constraint; The target page is displayed according to the object to be kept, the object to be adjusted, and the preset display information corresponding to the object to be adjusted.
2. The method according to claim 1, wherein: The displaying the target page according to the object to be kept, the object to be adjusted, and the preset display information corresponding to the object to be adjusted includes: If the display information corresponding to the object to be adjusted in the target page is inconsistent with the preset display information, the display information corresponding to the object to be adjusted in the target page is adjusted according to the preset display information.
3. The method according to claim 1, wherein: The displaying the target page according to the object to be kept, the object to be adjusted, and the preset display information corresponding to the object to be adjusted includes: If the display information corresponding to the object to be kept in the target page is consistent with the preset display information, the display information corresponding to the object to be kept in the target page is restored.
4. The method according to claim 1, wherein: The step of determining the object to be adjusted and the object to be maintained from the plurality of objects according to the preset object display constraint comprises: The object to be adjusted and the object to be maintained are determined from the multiple objects according to the preset object display constraint and the object tree; wherein the object tree is used to describe the parent-child relationship between different objects in the multiple objects.
5. The method according to claim 4, wherein: If the preset object display constraint includes a display maintenance mark of the first reference object among the multiple objects, the object to be maintained is determined based on the first reference object and the associated objects of the first reference object; wherein the associated objects are determined based on the path in the object tree that includes the first reference object.
6. The method according to claim 5, wherein: The objects to be retained include all objects in the path; The objects to be adjusted include other objects in the object tree except the objects to be kept.
7. The method according to claim 4, wherein: The plurality of objects include N objects, where N is a positive integer; The step of determining the object to be adjusted and the object to be maintained from the plurality of objects according to the preset object display constraint and the object tree includes: Determine whether the preset object display constraint includes a display adjustment mark of an nth object or a display adjustment mark of at least one direct parent object of the nth object, and obtain a first determination result; wherein n is a positive integer, n≤N; and the direct parent object is determined according to a path including the nth object in the object tree; According to the first judgment result, it is determined whether the nth object is an object to be retained.
8. The method according to claim 7, wherein: The determining, according to the first judgment result, whether the nth object is an object to be retained includes: If the first judgment result indicates that the preset object display constraint does not include the display adjustment mark of the nth object and the display adjustment marks of all direct parent objects of the nth object, then determining the nth object as the object to be kept; If the first judgment result indicates that the preset object display constraint includes a display adjustment mark of the nth object or a display adjustment mark of at least one direct parent object of the nth object, then determining whether the preset object display constraint also includes a display retention mark of the nth object or a display retention mark of at least one direct parent object of the nth object, to obtain a second judgment result; According to the second judgment result, it is determined whether the nth object is an object to be retained.
9. The method according to claim 8, wherein: The determining, according to the second judgment result, whether the nth object is an object to be retained includes: If the second judgment result indicates that the preset object display constraint also includes a display keeping flag of the nth object or a display keeping flag of at least one direct parent object of the nth object, the nth object is determined as the object to be kept; If the second judgment result indicates that the preset object display constraint does not include the display retention mark of the nth object and the display retention marks of all direct parent family objects of the nth object, it is determined whether there is a display retention mark of the direct child family object of the nth object in the preset object display constraint to obtain a third judgment result; wherein the direct child family object is based on the display retention mark of the direct parent family objects in the object tree. The path of the n-th object is determined by: According to the third judgment result, it is determined whether the nth object is an object to be retained.
10. The method according to claim 9, wherein: The determining, according to the third judgment result, whether the nth object is an object to be retained includes: If the third judgment result indicates that there is a display keeping mark of at least one direct descendant family object of the nth object in the preset object display constraint, the nth object is determined as the object to be kept; The method further comprises: If the third judgment result indicates that the display keeping marks of all direct descendant family objects of the nth object do not exist in the preset object display constraint, the nth object is determined as the object to be adjusted.
11. The method according to claim 4, wherein: The preset object display constraint includes a display keeping mark of a first reference object and a display adjusting mark of a second reference object among the plurality of objects; The step of determining the object to be adjusted and the object to be maintained from the plurality of objects according to the preset object display constraint and the object tree includes: According to the preset object display constraint and the object tree, an adjustment mark set, a retention mark set and a retention reference set are determined, wherein the adjustment mark set includes the second reference object; the retention mark set includes the first reference object; and the retention reference set includes the first reference object and the direct parent family object of the first reference object; According to the adjustment mark set, the retention mark set and the retention reference set, objects to be adjusted and objects to be retained are determined from the plurality of objects.
12. The method according to claim 11, wherein: The plurality of objects include N objects, where N is a positive integer; The step of determining the objects to be adjusted and the objects to be kept from the plurality of objects according to the adjustment mark set, the keeping mark set and the keeping reference set comprises: Determine whether the adjustment mark set includes the nth object or at least one direct parent object of the nth object, to obtain a fourth determination result; wherein n is a positive integer, n≤N; According to the fourth judgment result, it is determined whether the nth object is an object to be retained.
13. The method according to claim 12, wherein: The determining, according to the fourth judgment result, whether the nth object is an object to be retained includes: If the fourth judgment result indicates that the adjustment mark set does not include the nth object and all direct parent objects of the nth object, the nth object is determined as the object to be kept; If the fourth judgment result indicates that the adjustment mark set includes the nth object or at least one direct parent object of the nth object, then determine whether the retention mark set includes the nth object or at least one direct parent object of the nth object to obtain a fifth judgment result; According to the fifth judgment result, it is determined whether the nth object is an object to be retained.
14. The method according to claim 13, wherein: The step of determining whether the nth object is an object to be retained according to the fifth judgment result includes: If the fifth judgment result indicates that the retention mark set includes the nth object or at least one direct parent object of the nth object, the nth object is determined as an object to be retained; If the fifth judgment result indicates that the retention mark set does not include the nth object and all direct parent objects of the nth object, then judging whether the nth object belongs to the retention reference set, and obtaining a sixth judgment result; According to the sixth judgment result, it is determined whether the nth object is an object to be retained.
15. The method according to claim 14, wherein: The determining, according to the sixth judgment result, whether the nth object is an object to be retained includes: If the sixth judgment result indicates that the nth object belongs to the retained reference set, determining the nth object as an object to be retained; The method further comprises: If the sixth judgment result indicates that the nth object does not belong to the retained reference set, the nth object is determined as the object to be adjusted.
16. The method according to claim 1, wherein: The object to be adjusted includes a view component area, and a filter is covered on the view component area on the target page, and the filter is determined according to the preset display information.
17. The method according to claim 1, wherein: After displaying the target page according to the object to be kept, the object to be adjusted, and the preset display information corresponding to the object to be adjusted, the method further includes: After detecting that the page display scene has changed, the display information corresponding to the object to be adjusted in the target page is restored.
18. A page display device, comprising: An acquisition unit, configured to acquire multiple objects corresponding to a target page; a determining unit configured to determine an object to be adjusted and an object to be maintained from the plurality of objects according to a preset object display constraint; as well as The display unit is configured to display the target page according to the object to be maintained, the object to be adjusted, and preset display information corresponding to the object to be adjusted.
19. An electronic device comprising: Processor and memory; Wherein, the memory is configured to store instructions or computer programs; The processor is configured to execute the instructions or computer programs in the memory so that the electronic device performs the method according to any one of claims 1 to 17.
20. A computer readable medium, wherein: The computer-readable medium stores instructions or computer programs, and when the instructions or computer programs are executed on a device, the device executes the method according to any one of claims 1 to 17.
Citation Information
Patent Citations
Page element control method and device, and electronic equipment
CN107168969A
Method for displaying user interface and electronic equipment
CN110597512A
Webpage display height determination method and device, storage medium and equipment
CN111177635A
Page display method, electronic equipment and storage medium
CN115033814A
Structuring storage based on latch-free b-trees
US20130346725A1
