CN109660844B - Page operation control method and device, television, set top box and storage medium - Google Patents

Page operation control method and device, television, set top box and storage medium Download PDF

Info

Publication number
CN109660844B
CN109660844B CN201710946643.9A CN201710946643A CN109660844B CN 109660844 B CN109660844 B CN 109660844B CN 201710946643 A CN201710946643 A CN 201710946643A CN 109660844 B CN109660844 B CN 109660844B
Authority
CN
China
Prior art keywords
view object
focus
page
record
transfer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710946643.9A
Other languages
Chinese (zh)
Other versions
CN109660844A (en
Inventor
朱建杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201710946643.9A priority Critical patent/CN109660844B/en
Publication of CN109660844A publication Critical patent/CN109660844A/en
Application granted granted Critical
Publication of CN109660844B publication Critical patent/CN109660844B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/41Structure of client; Structure of client peripherals
    • H04N21/422Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
    • H04N21/42204User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Abstract

The application discloses a page operation control method and device, a television, a set-top box and a storage medium. The operation control method of the page comprises the following steps: receiving a transfer instruction of focus in a page, and inquiring a transfer record related to the transfer instruction and a first view object of the currently acquired focus, wherein the transfer instruction is used for indicating the transfer direction of the focus, and the transfer record is used for recording the focus transfer operation of transferring the focus from the first view object to a second view object in response to the transfer instruction at the last time; if the transfer record is inquired, determining a second view object corresponding to the transfer record; and according to whether the second view object and the first view object belong to the same group, transferring focus to the second view object or a default view object in the group to which the second view object belongs.

Description

Page operation control method and device, television, set top box and storage medium
Technical Field
The present application relates to the field of internet, and in particular, to a method and an apparatus for controlling operation of a page, a television, a set-top box, and a storage medium.
Background
With the development of internet technology, web applications are widely applied to smart television terminals. For example, the web application may be installed in a television or set-top box. The television end usually uses a remote controller to perform interactive operation, and does not configure interactive equipment such as a mouse or a touch screen. For ease of use by the user, remote controls typically have only a small number of keys.
In order to interact with view objects (which may also be referred to as page elements) in a page of a web application, a user needs to control focus to shift between different view objects through a remote control.
Disclosure of Invention
According to an aspect of the present invention, there is provided an operation control method of a page to improve a response speed of focus shift. In one page, view objects for which focus can be acquired are divided into at least one group, each group including at least one view object. The method comprises the following steps: receiving a transfer instruction of focus in the page, and inquiring a transfer record related to the transfer instruction and a first view object of the currently acquired focus, wherein the transfer instruction is used for indicating the transfer direction of the focus, and the transfer record is used for recording the focus transfer operation of transferring the focus from the first view object to a second view object in response to the transfer instruction at the last time; if the transfer record is inquired, determining a second view object corresponding to the transfer record; and according to whether the second view object and the first view object belong to the same group, transferring focus to the second view object or a default view object of the group to which the second view object belongs.
In some embodiments, if it is determined that the second view object does not belong to the same group as the first view object, transferring focus to the second view object; if the second view object and the first view object are determined not to belong to the same group, querying a default view object of the group to which the second view object belongs, wherein the default view object is a view object which loses focus recently in the group; when the default view object is inquired, the following operations are executed: transferring focus to the default view object, generating a record of the focus transfer operation of this time, which is used for recording the focus transfer operation of transferring focus from the first view object to the default view object in response to the transfer instruction, replacing the inquired transfer record with the record, and setting the first view object losing focus in the focus transfer operation of this time as the default view object of the group to which the first view object belongs.
In some embodiments, the method further comprises: and if the default view object is not inquired, transferring focus to the second view object, and setting the first view object losing focus in the focus transfer operation as the default view object of the group to which the first view object belongs.
In some embodiments, the method further comprises: if the transfer record is not inquired, determining a third view object which is on the side of the transfer direction of the first view object and is closest to the first view object and can obtain a focus; upon determining that the third view object does not belong to the same group as the first view object, performing the following: querying a default view object of the group to which the third view object belongs, wherein the default view object is a view object which loses focus recently in the group to which the third view object belongs; if the default view object of the group to which the third view object belongs is inquired, the following operations are executed: and transferring the focus to the default view object, generating a record of the focus transfer operation of this time, wherein the record is used for recording the focus transfer operation of transferring the focus from the first view object to the default view object in response to the transfer instruction, setting the record as the transfer record, and setting the first view object losing the focus in the focus transfer operation of this time as the default view object of the group to which the first view object belongs.
In some embodiments, the method further comprises: and if the third view object and the first view object belong to the same group, transferring focus to the third view object, and generating a record of the focus transfer operation of this time, wherein the record is used for recording the focus transfer operation of transferring focus from the first view object to the third view object in response to the transfer instruction, and setting the record as the transfer record.
In some embodiments, the method further comprises: if the default view object of the group to which the third view object belongs is not inquired, transferring focus to the third view object, generating a record of the focus transfer operation this time, wherein the record is used for recording the focus transfer operation for transferring focus from the first view object to the third view object in response to the transfer instruction, setting the record as the transfer record, and setting the first view object losing focus in the focus transfer operation this time as the default view object of the group to which the first view object belongs.
In some embodiments, the at least one group is divided into at least one layer, each layer comprising at least one group; the step of determining a third view object of the acquirable focus closest to the first view object on the side of the transfer direction of the first view object comprises: determining a set of view objects on the side of the transfer direction of the first view object in a layer to which the first view object belongs; determining a view object in the set that is closest in distance to the first view object.
In some embodiments, the method further comprises: querying a configuration relating to the transition indication and the first view object for indicating a transition of focus from the first view object to the target view object in response to the transition indication, prior to querying a transition record relating to the transition indication and the first view object for which focus is currently acquired; if the configuration is inquired, the focus is transferred to the target view object specified by the configuration, and the operation of inquiring the transfer record related to the transfer indication and the first view object of the current acquisition focus is not executed.
In some embodiments, the method further comprises: and if the default view object of the acquisition focus is determined not to be in the display area, displaying the default view object in the display area.
In some embodiments, the step of displaying the default view object in the display area comprises: sliding the page according to the position of the default view object in the page so as to display the default view object.
In some embodiments, the step of displaying the default view object in the display area comprises: determining a distance between an upper edge of a portion to be displayed in the page and a top of the page, the portion to be displayed including the default view object, according to the following formula: l ═ d- (h)1-h2) Where l represents the distance of the upper edge of the portion to be displayed from the top of the page, d represents the distance of the default view object from the top of the page, h1Representing the height of said display area, h2Representing a height of the default view object; and sliding the page according to the distance between the upper edge of the part to be displayed and the top of the page so as to display the determined part to be displayed.
In some embodiments, the step of displaying the default view object in the display area comprises: querying a sliding record related to the default view object, wherein the sliding record is used for recording the distance between the upper edge of the displayed part of the page and the top of the page when the default view object is displayed before; and sliding the page according to the inquired sliding record so as to display the default view object.
In some embodiments, displaying the default in the display areaThe step of viewing the object further comprises: if the sliding record is not inquired, determining the distance between the upper edge of the part to be displayed in the page and the top of the page according to the following formula, wherein the part to be displayed comprises the default view object: l ═ d- (h)1-h2) Where l represents the distance of the portion to be displayed from the top of the page, d represents the distance of the default view object from the top of the page, h1Representing the height of said display area, h2Representing a height of the default view object; and sliding the page according to the distance between the upper edge of the part to be displayed and the top of the page so as to display the determined part to be displayed, generating a record of the sliding operation and setting the record as the sliding record.
In some embodiments, the step of displaying the default view object in the display area further comprises: querying a sliding configuration for displaying the default view object before querying a sliding record related to the default view object, wherein the sliding configuration is a distance between an upper edge of a predetermined area of the page containing the default view object and the top of the page; and if the sliding configuration is inquired, sliding the page according to the sliding configuration, and not executing the operation of inquiring the sliding record.
According to still another aspect of the present invention, there is provided an operation control apparatus of a page, including an inquiry unit and a focus control unit. In one page, view objects for which focus can be acquired are divided into at least one group, each group including at least one view object. The query unit is used for receiving a transfer instruction of a focus in the page, querying a transfer record related to the transfer instruction and a first view object of the currently acquired focus, and determining a second view object corresponding to the transfer record when the transfer record is queried, wherein the transfer instruction is used for indicating the transfer direction of the focus, and the transfer record is used for recording the focus transfer operation of transferring the focus from the first view object to the second view object in response to the transfer instruction last time; and the focus control unit is used for transferring focus to the second view object or a default view object of the group to which the second view object belongs according to whether the second view object and the first view object belong to the same group.
In some embodiments, the operation control apparatus further includes a determination unit configured to determine whether the second view object and the first view object belong to the same group. The focus control unit transfers focus to the second view object if the determination unit determines that the second view object and the first view object belong to the same group. If the judging unit determines that the second view object and the first view object do not belong to the same group, the inquiring unit is instructed to inquire a default view object of the group to which the second view object belongs, wherein the default view object is a view object which loses focus recently in the group; the focus control unit is further configured to: if the query unit queries the default view object, the focus is transferred to the default view object, a record of the focus transfer operation is generated, the record is used for recording the focus transfer operation of transferring the focus from the first view object to the default view object in response to the transfer instruction, the record is used for replacing the queried transfer record, and the first view object losing focus in the focus transfer operation is set as the default view object of the group to which the first view object belongs.
In some embodiments, the focus control unit is further configured to: and if the default view object is not inquired by the inquiry unit, transferring the focus to the second view object, and setting the first view object losing the focus in the focus transfer operation as the default view object of the group to which the first view object belongs.
In some embodiments, the apparatus further comprises a selection unit for: if the query unit does not query the transfer record, determining a third view object which is closest to the first view object and can obtain a focus on one side of the transfer direction of the first view object; the query unit is further configured to: if the judging unit determines that the third view object and the first view object do not belong to the same group, querying a default view object of the group to which the third view object belongs, wherein the default view object is a view object which loses focus recently in the group to which the third view object belongs; if the query unit queries the default view object of the group to which the third view object belongs, the focus control unit is configured to shift focus to the default view object, generate a record of this time focus shift operation, which is used to record the focus shift operation for shifting focus from the first view object to the default view object in response to the shift instruction, and set the record as the shift record, and set the first view object losing focus in this time focus shift operation as the default view object of the group to which the first view object belongs.
In some embodiments, the querying element is further operable to: querying a configuration relating to the transition indication and the first view object for indicating a transition of focus from the first view object to the target view object in response to the transition indication, prior to querying a transition record relating to the transition indication and the first view object for which focus is currently acquired; if the configuration is inquired by the inquiring unit, the focus control unit is also used for transferring the focus to the target view object specified by the configuration, and the inquiring unit does not execute the operation of inquiring the transfer record related to the transfer indication and the first view object of the current acquired focus.
In some embodiments, the apparatus further comprises a display control unit for: and if the default view object of the acquisition focus is determined not to be in the display area, displaying the default view object in the display area.
According to still another aspect of the present invention, there is provided a set-top box comprising: one or more processors, memory, and one or more programs. A program is stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing the operation control method of pages according to the present invention.
According to still another aspect of the present invention, there is provided a television set including: one or more processors, memory, and one or more programs. A program is stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing the operation control method of pages according to the present invention.
According to still another aspect of the present invention, there is provided a storage medium storing one or more programs, the one or more programs including instructions, which when executed by a computing device, cause the computing device to execute an operation control method of a page according to the present invention.
In summary, on the basis of grouping view objects in a page, the operation control method of the page can avoid calculating the target of focus transfer in real time and improve the response speed of focus transfer by generating and inquiring transfer records.
Drawings
In order to more clearly illustrate the technical solutions in the examples of the present application, the drawings needed to be used in the description of the examples are briefly introduced below, and it is obvious that the drawings in the following description are only some examples of the present application, and it is obvious for a person skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 shows a typical application scenario 100 of the method of controlling focus according to the present invention.
FIG. 2 illustrates a flow diagram of a method 200 of controlling the operation of a page according to some embodiments of the invention;
FIG. 3 illustrates a flow diagram of a method 300 of controlling the operation of a page according to some embodiments of the invention;
FIG. 4 shows a schematic diagram of a page displayed in a device according to one embodiment of the invention;
FIG. 5 illustrates a scenario in which a page is displayed in a display area, according to one embodiment of the present invention;
FIG. 6 is a schematic diagram showing the portion to be displayed in FIG. 5 in a display area;
FIG. 7 illustrates a schematic diagram of an operation control device 700 for a page according to some embodiments of the invention;
FIG. 8 illustrates a schematic diagram of an operation control apparatus 800 for a page according to some embodiments of the invention; and
FIG. 9 illustrates a block diagram of the components of a typical computing device.
Detailed Description
The technical solutions in the examples of the present application will be clearly and completely described below with reference to the drawings in the examples of the present application, and it is obvious that the described examples are only a part of the examples of the present application, and not all examples. All other examples, which can be obtained by a person skilled in the art without making any inventive step based on the examples in this application, are within the scope of protection of this application.
As shown in fig. 1, the application scenario 100 includes a television 101, a set-top box 102, and a remote control 103. Set top box 102 may display pages (i.e., graphical interfaces for interacting with television users) in television 101. Here, the television user can operate the displayed page through the remote controller 103. For example, a television user may control focus to shift between different view objects via remote control 103. In some embodiments, the operation control method for the page according to the present invention may be executed in the set-top box 102. In still other embodiments, at least a portion of the functionality of set-top box 102 is integrated into television 101. Thus, the set-top box 102 may be omitted in these embodiments and the method of operation control of the page may be performed in an application installed in the television 101. The method 200 for controlling the operation of the page is described below with reference to fig. 2.
The method 200 may be performed in a web application (webapp) or other browser-built application, but is not so limited. Typically, the method 200 may be performed in a Single Page Application (Single Page Application). The single-page application can be installed in a television (101) or a set-top box (103) or other devices. In the page on which the method 200 is performed, the view objects that can acquire focus are divided into at least one group. Each group includes at least one view object (also referred to as a page element). Here, the form element in the page element may be configured to obtain the focus. In addition, unlike existing applications based on browser default settings, non-form elements (e.g., tag elements such as div or span) in the pages of the present invention may also be configured to obtain focus. Taking an HTML page as an example, a page element is configured to be acquirable with focus when its class attribute is set to "focused".
As shown in fig. 2, the method 200 begins at step S201. In step S201, in response to receiving a transition instruction for the focus in the page, a transition record related to the transition instruction and the first view object currently acquiring the focus is queried. Wherein the shift indication indicates a shift direction of the focus. The transition record is used to record a focus transition operation that last caused focus to transition from the first view object to the second view object in response to the transition indication. The transfer record may be stored, for example, in a cache, but is not limited thereto. Here, the range of the transfer direction may include, for example, "upper", "lower", "left", and "right", but is not limited thereto. Accordingly, the received transition indication may be a "key up" operation event, a "key down" operation event, a "key left" operation event, or a "key right" operation event. Depending on the configuration of the remote controller, the transition indication may be another key operation event or touch operation event, and the like, which is not limited by the present invention. In order to more clearly explain the above transfer record and the transfer indication, the following is exemplified. Here, the first view object is set to ViewA in step S201, and the received transition instruction is M1. When querying the transfer records, if one transfer record R1 indicates the last response to M1, the focus is moved away from ViewA. Then record R1 is the matched transfer record.
When a transfer record is queried in step S201, the method 200 may execute step S202 to determine a second view object corresponding to the transfer record. For example, the queried transfer record is R1. R1 records information as the focus shifts from ViewA to ViewB. Then ViewB is the determined second view object.
When the second view object is determined in step S202, the method 200 may execute step S203, and shift focus to the second view object or a default view object in the group to which the second view object belongs according to whether the second view object and the first view object belong to the same group. The default view object may be the view object in the group that has recently lost focus.
In summary, on the basis of grouping view objects in a page, the method 200 of the present invention can avoid calculating the target of focus shift in real time by generating and querying the shift record, and improve the response speed of focus shift
FIG. 3 illustrates a flow diagram of a method 300 of controlling the operation of a page in accordance with further embodiments of the invention. In the page of the application performing the method 300, the view objects that can acquire the focus are divided into at least one group. Further, the group is divided into at least one layer. In other words, each layer comprises at least one group.
As shown in fig. 3, the method 300 begins at step S301. In step S301, in response to receiving a transition indication of focus in the page, a configuration related to the transition indication and the first view object is queried. The shift indication indicates a shift direction for indicating the focus. The arrangement is for indicating a transfer of focus from the first view object to the target view object in response to the transfer indication. When the configuration is queried in step S301, the method 300 executes step S302 to shift focus to the target view object specified by the configuration. Thus, in response to a branch indication to focus, the method 300 may also query whether there is a configuration associated with the view object and the branch indication before querying the branch record. In other words, the focus transfer path in method 300 may be configured as desired, thereby improving user experience.
When the above configuration is not queried in step S301, the method 300 may perform step S303. The implementation of steps S303-S304 is identical to steps S201-S202 and will not be described here.
Upon determining that the second view object belongs to the same group as the first view object, the method 300 may perform step S305 to shift focus to the second view object. Thus, within the same group, the focus can be shifted directly according to the shift record.
Upon determining that the second view object does not belong to the same group as the first view object, the method 300 may perform step S306 of querying a default view object of a group to which the second view object belongs. The default view object is the view object in the group that has recently lost focus. For example, a group to which the target View object belongs is set to T, and the group T includes View objects View1, View2, and View 3. View2 is the default View object for the T group if focus was recently (i.e., last) shifted from View2 away from group T to other groups.
When the default view object is found in step S306, the method 300 executes step S307, shifts the focus to the default view object, generates a record of the current focus shift operation, replaces the existing shift record with the record, and sets the first view object losing focus as the default view object of the group to which the first view object belongs. Here, the recording of one focus shift operation is used to record a focus shift operation that shifts focus from the first view object to another view object (as the case may be, a default view object of a certain group, a third view object, and so on) in response to the shift instruction described above. In step S307, by replacing the original transition record with the newly generated record, the latest transition record associated with the first view object and a transition indication can be always maintained. In one embodiment, the transition indication includes 4. Accordingly, a maximum of 4 transfer records are associated with the first view object. In other words, for the first view object, each transition indication corresponds to a newly generated transition record. In summary, by setting and querying a default view object for a group, the method 300 may switch focus between different groups such that focus reaches the group of view objects that have recently lost focus. In other words, the method 300 can record the operation habits of the user and quickly switch the focus according to the user habits, thereby greatly improving the user experience.
The method 300 may also perform step S308 when no transfer record is queried in step S303. In step S308, the third view object that is closest to the first view object on the side of the transfer direction (direction designated by the transfer instruction) of the first view object and that can acquire focus is determined. In one embodiment, step S308 determines a set of view objects on the side of the transfer direction of a first view object in the layer to which said first view object belongs. Then, step S308 determines the view object in the set that is closest in distance to the first view object. The present embodiment will be described more clearly with reference to fig. 4.
FIG. 4 shows a schematic diagram of a page displayed in a device according to one embodiment of the invention. Here, the device is, for example, a television, but is not limited thereto. Here, page P1For example from a single page application, and is configured in a stacked manner. Page P1Comprising a layer A1Layer A2And a layer A3. Layer A1Is displayed full screen on the screen of the television TV. Layer A1The middle View objects include View1 through View 6. Assume that the View object currently acquiring focus is View2 and the received transition indication corresponds to the transition direction being right. Accordingly, step S308 determines the set of View objects in the current layer to the right of View 2. Here, the manner of determining the position of the view object may be selected in many ways, which is not limited by the present invention. For example, with the center of View2 as the reference, a View object with a center point to the right of the center of View2 is determined to be to the right of View 2. The set of objects to the right of View2 includes View3 and View 4. As another example, a View object whose right edge is at the right edge of View2 is determined to be to the right of View2, based on the View2 right edge. Through distance calculations, View3 in the set may be determined to be a third View object. It should be noted that, as can be seen from the embodiment of fig. 4, the hierarchical management method of the present invention can ensure that a is a1When the display area of the television is displayed, the focus is always A1Transitions between included view objects. Conversely, if hierarchical management is not being performed, focus may be from A1Edge jumping to layer A not shown2Or layer A3Resulting in a focus confusion. From a user perspective, focus confusion may result in the user not finding focus in the displayed interface. In other words, through a layered management manner, the embodiment of the invention can ensure that the focus shifts within a single layer, and avoid mutual interference of the focuses between different layers, thereby greatly improving the user experience.
In addition, for the third view object determined in step S308, if it belongs to the same group as the first view object, the method 300 performs step S309. In step S309, focus is shifted to the third view object. In addition, in step S309, a record of this focus shift operation is generated and used as the corresponding shift record to be queried the next time the method 300 is executed.
If the third view object does not belong to the same group as the first view object, the method 300 may further perform a step S310 of querying a default view object of a group to which the third view object belongs. The default view object is the view object that has recently lost focus in the group to which the third view object belongs. When the default view object is queried in step S310, the method 300 executes step S311, shifts the focus to the default view object, and generates a record of the current focus shift operation as a corresponding shift record. In addition, the first view object that loses focus in this focus shift operation is set as the default view object of the group to which it belongs in step S311.
When the default view object of the group to which the third view object belongs is not queried in step S310, the method 200 may execute step S312, shift focus to the third view object, and generate a record of the current focus shift operation as a corresponding shift record. In addition, in step S312, the first view object that loses focus in the present focus shift operation is set as the default view object of the group to which it belongs.
In addition, when a page is displayed in the display area, the following two cases are encountered. In one case, the range of one layer in the page may be configured to be larger than the display area. In another case, the page portion corresponding to a layer is not completely within the display area. In view of both of these cases, the method 300 may also make a determination as to the display state of the view object for each acquisition of focus. The following description will take the default view object of the focus acquired in step S307 as an example. For the default view object of the acquisition focus, the method 300 may perform step S313, and when it is determined that the default view object of the acquisition focus is not in the display area, the default view object is displayed in the display area. Here, the specific manner of displaying the default view object may be various, and the present invention is not limited thereto. Several exemplary modes are described below.
In one embodiment, step S313 slides the page according to the position of the default view object in the page so as to display the default view object. The position of the default view object in the page generally refers to the coordinates of the default view object in the page.
In yet another embodiment, step S313 first determines the portion of the page to be displayed according to the following formula. The portion to be displayed includes a default view object.
l=d-(h1-h2) Where l represents the distance of the upper edge of the portion to be displayed from the top of the page, d represents the distance of the default view object from the top of the page, h1Height of display area, h2Indicating the height of the default view object. Thus, by calculating the value of l, the portion to be displayed can be determined. On this basis, the page is slid in step S313 so that the determined portion to be displayed is displayed. For the sake of better visualization, the present embodiment is further described below with reference to fig. 5 and 6.
FIG. 5 illustrates a scenario in which a page is displayed in a display area, according to one embodiment of the present invention.
As shown in FIG. 5, page P2Comprising a layer B1And B2. The display area Z coincides with the screen size of the television TV. Layer B1Not shown, but layer B2A partial view object is displayed. From a View object perspective, View1-View7 is displayed in display region Z, View8 and View9 are not displayed. If the focus shifts from View1 to View8, step S313 first determines the region M to be displayed containing View 8. In FIG. 5, L is the top edge of M to be calculated and page P2The distance of the top of (a). Subsequently, step S313 can slide the page P according to the calculated L2. Fig. 6 is a schematic diagram showing a portion M to be displayed in the display area Z. Further, the pages are set to a streaming layout that slides up and down in fig. 5. But not limited thereto, the page may also be set to a slide left-right layout in the present invention. The layout of sliding left and right can display the portion to be displayed in the page in a manner similar to that of fig. 5, and details are not repeated here.
In yet another embodiment, step S313 first queries a sliding configuration for displaying the default view object. The slider is configured as a distance from the top of the page to the top edge of a predetermined area of the page containing the default view object. When the sliding configuration is queried, step S313 may slide the page according to the sliding configuration so as to display the predetermined area. Here, depending on the display position requirements for the default view object, the sliding configuration may be set accordingly. For example, the default view object may be in the middle, lower, or upper, etc. of the predetermined area.
When the sliding configuration is not queried, step S313 may continue to query the sliding record related to the default view object. The slide record is used to record the distance of the top edge of the displayed portion of the page from the top of the page when the previous default view object was displayed. In this way, step S313 may slide the page according to the queried slide record so as to display the default view object.
When the slide record is not queried, step S313 may determine the portion to be displayed in the page in the same manner as in the previous embodiment. The portion to be displayed includes a default view object. Then, step S313 may slide a page so as to display the determined portion to be displayed. In addition, step S313 generates a record of the present sliding operation as a corresponding sliding record. In summary, the method of the present invention automatically displays the view object which is not in the display area and acquires the focus, thereby avoiding the situation that there is no focus in the display area.
In summary, on the basis of grouping view objects in a page, the operation control method of the page can avoid calculating the target of focus transfer in real time and improve the response speed of focus transfer by generating and inquiring transfer records. Further, by setting and querying a default view object of a group, the operation control method may switch the focus between different groups so that the focus reaches the group of view objects that have lost focus recently. In other words, the operation control method of the page can record the operation habit of the user and quickly switch the focus according to the user habit, thereby improving the user experience. Furthermore, by means of hierarchical management, the embodiments of the present invention can ensure that the focus shifts within a single layer, and further avoid mutual interference between different layers. The operation control method of the invention automatically displays the view object which is not in the display area and acquires the focus, thereby avoiding the situation that no focus exists in the display area.
FIG. 7 illustrates a schematic diagram of an operation control device 700 for pages according to some embodiments of the invention. The apparatus 700 may reside in a television or set-top box or the like. In one page, view objects for which focus can be acquired are divided into at least one group, each group including at least one view object. The apparatus includes an inquiry unit 701 and a focus control unit 703.
In response to receiving a transition instruction for focus in a page, the querying unit 701 queries a transition record related to the transition instruction and a first view object currently acquiring focus. Wherein the shift indication indicates a shift direction for indicating the focus. The transition record is used to record a focus transition operation that last caused focus to transition from the first view object to the second view object in response to the received transition indication. When the transfer record is queried, the querying unit 702 determines a second view object corresponding to the transfer record.
A focus control unit 703, configured to transfer a focus to the second view object or a default view object in the group to which the second view object belongs according to whether the determined second view object and the determined first view object belong to the same group. More specific embodiments of the apparatus 700 are consistent with the method 200 and will not be described herein.
FIG. 8 illustrates a schematic diagram of an operation control apparatus 800 for a page according to some embodiments of the invention. In one page, view objects for which focus can be acquired are divided into at least one group, each group including at least one view object. The groups are divided into at least one layer. That is, each layer includes at least one group. As shown in fig. 8, the apparatus 800 includes an inquiry unit 801, a judgment unit 802, a focus control unit 803, a selection unit 804, and a display control unit 805. The query unit 801 includes the function of the query unit 701, and the focus control unit 803 includes the function of the focus control unit 703, which are not described herein again.
In some embodiments, the determining unit 802 is configured to determine whether the second view object and the first view object belong to the same group. When the determination unit 802 determines that the second view object belongs to the same group as the first view object, the focus control unit 803 shifts focus to the second view object. In addition, the judging unit 802 instructs the inquiring unit 801 to inquire about a default view object of a group to which the second view object belongs, when determining that the second view object does not belong to the same group as the first view object. The default view object is the view object in the group that has recently lost focus. When the default view object is queried by the query unit 801, the focus control unit 803 shifts focus to the default view object, generates a record of this focus shift operation, and replaces the queried shift record with the record. In addition, the search unit 801 sets the first view object that loses focus in this focus shift operation as the default view object of the group to which it belongs.
In some embodiments, the querying unit 801 is configured to query the configuration related to the transition indication and the first view object before querying the transition record related to the transition indication and the first view object of the current acquisition focus. The arrangement is for indicating a transfer of focus from the first view object to the target view object in response to the received transfer indication. When the configuration is queried by the querying unit 801, the focus control unit 803 is also used to transfer focus to the target view object specified by the configuration, and the querying unit 801 no longer performs the operation of querying the transfer record.
In addition, when the default view object is not queried by the querying unit 801, the focus control unit 803 is further configured to shift focus to the second view object, and set the first view object losing focus as the default view object of the group to which it belongs.
In addition, when the query unit 801 does not query the transition record, the selection unit 804 is configured to determine a third view object which is closest to the first view object on the side of the transition direction of the first view object and can acquire the focus. The querying unit 801 is further configured to query a default view object of a group to which the third view object belongs, when the determining unit determines that the third view object does not belong to the same group as the first view object. The default view object is the view object that has recently lost focus in the group to which the third view object belongs. When the query unit 801 queries a default view object of a group to which the third view object belongs, the focus control unit 803 is configured to shift focus to the default view object, and generate a record of the focus shift operation this time as a corresponding shift record. In addition, the focus control unit 803 sets the first view object, of which focus is lost in this focus shift operation, as a default view object of the group to which it belongs.
In addition, when the judging unit 802 determines that the third view object and the first view object belong to the same group, the focus control unit is further configured to shift focus to the third view object, and generate a record of the focus shift operation this time as a corresponding shift record.
In addition, when the query unit 801 does not query the default view object of the group to which the third view object belongs, the focus control unit 803 is further configured to shift focus to the third view object, and generate a record of the focus shift operation this time as a corresponding shift record. In addition, the focus control unit 803 sets the first view object, of which focus is lost in this focus shift operation, as a default view object of the group to which it belongs.
The display control unit 805 is configured to display a default view object of the acquisition focus in the display area when it is determined that the default view object is not in the display area. Several embodiments of the display control unit 805 are exemplarily described below.
In one embodiment, the display control unit 805 is configured to slide the page according to the position of the default view object in the page, so as to display the default view object. In yet another embodiment, the display control unit 805 determines the portion of the page to be displayed according to the following. The portion to be displayed includes a default view object.
l=d-(h1-h2) Where l represents the distance of the upper edge of the portion to be displayed from the top of the page, d represents the distance of the default view object from the top of the page, h1Height of display area, h2Indicating the height of the default view object. Subsequently, the display control unit 805 slides a page so as to display the determined portion to be displayed.
In yet another embodiment, the display control unit 805 queries a sliding configuration for displaying a default view object. The slider is configured as a distance from the top of the page to the top edge of a predetermined area of the page containing the default view object. When the slide configuration is inquired, the display control unit 805 slides the page according to the slide configuration. When the slide configuration is not queried, the display control unit 805 queries the slide record related to the default view object. The slide record is used to record the distance from the top edge of the displayed portion of the page to the top of the page when the previous default view object was displayed. The display control unit 805 may slide a page according to the inquired slide record so as to display a default view object. When the slide record is not queried, the display control unit 805 performs an operation of determining a portion to be displayed in the page. The portion to be displayed includes a default view object. Here, the manner of performing the operation is consistent with the previous embodiment, and is not described here again. Subsequently, the display control unit 805 may slide a page so as to display the determined portion to be displayed. In addition, the display control unit 805 may generate a record of the present slide operation as a corresponding slide record.
Fig. 9 shows a block diagram of the computing device in which the above-described entities are located. As shown in fig. 9, the computing device includes one or more processors (CPUs) 902, a communications module 904, a memory 906, a user interface 910, and a communications bus 908 for interconnecting these components.
The processor 902 can receive and transmit data via the communication module 904 to enable network communications and/or local communications.
User interface 910 includes one or more output devices 912 including one or more speakers and/or one or more visual displays. The user interface 910 also includes one or more input devices 914. The user interface 910 may receive, for example, an instruction of a remote controller, but is not limited thereto.
The memory 906 may be a high-speed random access memory such as DRAM, SRAM, DDR RAM, or other random access solid state memory devices; or non-volatile memory, such as one or more magnetic disk storage devices, optical disk storage devices, flash memory devices, or other non-volatile solid-state storage devices.
The memory 906 stores a set of instructions executable by the processor 902, including:
an operating system 916 including programs for handling various basic system services and for performing hardware related tasks;
the application 918 includes various programs for implementing the operation control method of the page described above, and such programs can implement the processing flows in the above examples, such as the operation control device 700 that may include the page of fig. 7 or the operation control device 800 that may include the page of fig. 8.
The computing device may be a set-top box. Some embodiments of the present invention provide a set top box, comprising: one or more processors, memory, and one or more programs. A program is stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing the operation control method of pages according to the present invention.
Some embodiments of the present invention provide a television, including: one or more processors, memory, and one or more programs. A program is stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing the operation control method of pages according to the present invention.
In addition, each of the examples of the present application may be realized by a data processing program executed by a data processing apparatus such as a computer. It is clear that the data processing program constitutes the invention. Further, the data processing program, which is generally stored in one storage medium, is executed by directly reading the program out of the storage medium or by installing or copying the program into a storage device (such as a hard disk and/or a memory) of the data processing device. Such a storage medium therefore also constitutes the present invention. The storage medium may use any type of recording means, such as a paper storage medium (e.g., paper tape, etc.), a magnetic storage medium (e.g., a flexible disk, a hard disk, a flash memory, etc.), an optical storage medium (e.g., a CD-ROM, etc.), a magneto-optical storage medium (e.g., an MO, etc.), and the like.
The present application therefore also discloses a non-volatile storage medium having stored therein a data processing program for executing any one of the examples of the method of the present application.
In addition, the method steps described in this application may be implemented by hardware, for example, logic gates, switches, Application Specific Integrated Circuits (ASICs), programmable logic controllers, embedded microcontrollers, and the like, in addition to data processing programs. Such hardware capable of implementing the methods described herein may also constitute the present application.
The above description is only a preferred example of the present application and should not be taken as limiting the present application, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present application should be included in the scope of the present application.

Claims (15)

1. A method for controlling operation of a page, the method comprising:
installing a single-page application, and configuring a non-table element indicating page layout as an acquirable focus in one page of the single-page application; configuring the page into a stacking mode, wherein the view objects capable of acquiring the focus are divided into a plurality of layers, each layer comprises at least one group, and each group comprises at least one view object;
receiving a transition indication of focus in the page;
querying a transition record related to the transition indication and a first view object of the current acquired focus, wherein the transition indication is used for indicating the transition direction of the focus, and the transition record is used for recording the focus transition operation of causing the focus to be transferred from the first view object to a second view object in the layer to which the first view object belongs in response to the transition indication last time;
if the transfer record is inquired, determining the second view object corresponding to the transfer record; if the second view object and the first view object are determined to belong to different groups in the same layer, querying a default view object of the group to which the second view object belongs, and transferring focus to the default view object, wherein the default view object is a view object which loses focus recently in the group;
when the default view object is not in the display area, determining a part to be displayed in the page according to the position of the default view object in the page, wherein the part to be displayed comprises the default view object; and sliding the page, and displaying the part to be displayed in the display area.
2. The method of claim 1, wherein,
shifting focus to the second view object if it is determined that the second view object belongs to the same group as the first view object;
if the default view object is queried, after transferring focus to the default view object, the method further comprises:
generating a record of the current focus transfer operation, wherein the record is used for recording the focus transfer operation for transferring the focus from the first view object to the default view object in response to the transfer instruction and replacing the transfer record with the record;
and setting the first view object losing the focus in the focus transfer operation as a default view object of the group to which the first view object belongs.
3. The method of claim 2, further comprising:
if the default view object is not inquired, after the focus is transferred to the second view object, the first view object losing the focus in the focus transfer operation is set as the default view object of the group to which the first view object belongs.
4. The method of claim 1, further comprising:
if the transfer record is not inquired, determining a third view object which is on the side of the transfer direction of the first view object and is closest to the first view object and can obtain a focus;
if it is determined that the third view object does not belong to the same group as the first view object, performing the following process:
querying a default view object of the group to which the third view object belongs, wherein the default view object is a view object which loses focus recently in the group to which the third view object belongs;
if the default view object of the group to which the third view object belongs is inquired, the following operations are executed:
shifting focus to the default view object,
generating a record of the focus shift operation of this time for recording the focus shift operation for shifting focus from the first view object to the default view object in response to the shift instruction,
and sets the record as the transfer record, an
And setting the first view object losing the focus in the focus transfer operation as a default view object of the group to which the first view object belongs.
5. The method of claim 4, further comprising:
and when the third view object and the first view object belong to the same group, transferring focus to the third view object, generating a record of the focus transfer operation of this time, wherein the record is used for recording the focus transfer operation of transferring focus from the first view object to the third view object in response to the transfer instruction, and setting the record as the transfer record.
6. The method of claim 4, further comprising:
if the default view object of the group to which the third view object belongs is not inquired, the following operations are executed: transferring focus to the third view object, generating a record of the focus transfer operation of this time, wherein the record is used for recording the focus transfer operation of transferring focus from the first view object to the third view object in response to the transfer instruction, setting the record as the transfer record, and setting the first view object losing focus in the focus transfer operation of this time as the default view object of the group to which the first view object belongs.
7. The method of claim 4, wherein the determining a third view object of the acquirable focus closest to the first view object on the side of the transfer direction of the first view object comprises:
determining a set of view objects on the side of the transfer direction of the first view object in a layer to which the first view object belongs;
determining the third view object in the set that is closest in distance to the first view object.
8. The method of claim 1, prior to querying a transition record associated with the transition indication and the first view object of the current acquisition focus, the method further comprising:
querying a configuration associated with the transition indication and the first view object, the configuration indicating a transition of focus from the first view object to the target view object in response to the transition indication;
if the configuration is inquired, the focus is transferred to the target view object specified by the configuration, and the operation of inquiring the transfer record related to the transfer indication and the first view object of the current acquisition focus is not executed.
9. The method of claim 1, wherein the non-table elements indicating a page layout comprise a div tag element and a span tag element.
10. The method of claim 1, wherein the default view object is located in a middle, lower, or upper portion of the portion to be displayed.
11. The method of claim 1, wherein the step of determining the portion of the page to be displayed based on the position of the default view object in the page comprises:
in a sliding up and down layout, determining a distance between an upper edge of the portion to be displayed and a top of the page according to the following formula:
l=d-(h1-h2)/2
wherein l represents a distance between an upper edge of the portion to be displayed and a top of the page, d represents a distance between the default view object and the top of the page, and h1Representing the height of said display area, h2Representing a height of the default view object;
the step of sliding the page and displaying the portion to be displayed in the display area comprises:
and sliding the page according to the distance between the upper edge of the part to be displayed and the top of the page so as to display the part to be displayed.
12. An operation control device for a page, characterized by comprising:
the query unit is used for installing a single-page application, and configuring a non-table element indicating page layout as an acquirable focus in one page of the single-page application; configuring the page into a stacking mode, wherein the view objects capable of acquiring the focus are divided into a plurality of layers, each layer comprises at least one group, and each group comprises at least one view object; receiving a transfer instruction of focus in the page, inquiring a transfer record related to the transfer instruction and a first view object currently acquiring the focus, and if the transfer record is inquired, determining a second view object corresponding to the transfer record, wherein the transfer instruction is used for indicating the transfer direction of the focus, and the transfer record is used for recording the focus transfer operation of transferring the focus from the first view object to the second view object in a layer to which the first view object belongs in response to the transfer instruction last time; if the second view object and the first view object are determined to belong to different groups in the same layer, querying a default view object of the group to which the second view object belongs; and
the focus control unit is used for transferring focus to the default view object if the default view object is inquired, wherein the default view object is a view object which loses focus recently in the group; when the default view object is not in the display area, determining a part to be displayed in the page according to the position of the default view object in the page, wherein the part to be displayed comprises the default view object; and sliding the page, and displaying the part to be displayed in the display area.
13. A set top box, comprising:
one or more processors;
a memory; and
one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing the method of any of claims 1-11.
14. A television set, characterized by comprising:
one or more processors;
a memory; and
one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing the method of any of claims 1-11.
15. A storage medium storing one or more programs, the one or more programs comprising instructions, which when executed by a computing device, cause the computing device to perform the method of any of claims 1-11.
CN201710946643.9A 2017-10-12 2017-10-12 Page operation control method and device, television, set top box and storage medium Active CN109660844B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710946643.9A CN109660844B (en) 2017-10-12 2017-10-12 Page operation control method and device, television, set top box and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710946643.9A CN109660844B (en) 2017-10-12 2017-10-12 Page operation control method and device, television, set top box and storage medium

Publications (2)

Publication Number Publication Date
CN109660844A CN109660844A (en) 2019-04-19
CN109660844B true CN109660844B (en) 2021-07-23

Family

ID=66109183

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710946643.9A Active CN109660844B (en) 2017-10-12 2017-10-12 Page operation control method and device, television, set top box and storage medium

Country Status (1)

Country Link
CN (1) CN109660844B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110475138A (en) * 2019-07-05 2019-11-19 平安国际智慧城市科技股份有限公司 Show focus triggering method, device, computer equipment and the storage medium of the page

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101562690A (en) * 2009-05-15 2009-10-21 中兴通讯股份有限公司 Method for operating set-top box and key thereof
CN101577797A (en) * 2009-06-03 2009-11-11 中兴通讯股份有限公司 Page focus movement method and system
CN104363495A (en) * 2014-11-27 2015-02-18 北京奇艺世纪科技有限公司 Method and device for conducting focus switching control through remote control of terminal device
CN105210030A (en) * 2013-04-30 2015-12-30 微软技术许可有限责任公司 Auto-grouping of application windows
CN105307048A (en) * 2015-10-15 2016-02-03 中国科学院声学研究所 WebKit kernel based focus query method of smart television
CN106843643A (en) * 2016-12-30 2017-06-13 百度在线网络技术(北京)有限公司 Page processing method and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9886188B2 (en) * 2011-08-25 2018-02-06 International Business Machines Corporation Manipulating multiple objects in a graphic user interface

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101562690A (en) * 2009-05-15 2009-10-21 中兴通讯股份有限公司 Method for operating set-top box and key thereof
CN101577797A (en) * 2009-06-03 2009-11-11 中兴通讯股份有限公司 Page focus movement method and system
CN105210030A (en) * 2013-04-30 2015-12-30 微软技术许可有限责任公司 Auto-grouping of application windows
CN104363495A (en) * 2014-11-27 2015-02-18 北京奇艺世纪科技有限公司 Method and device for conducting focus switching control through remote control of terminal device
CN105307048A (en) * 2015-10-15 2016-02-03 中国科学院声学研究所 WebKit kernel based focus query method of smart television
CN106843643A (en) * 2016-12-30 2017-06-13 百度在线网络技术(北京)有限公司 Page processing method and mobile terminal

Also Published As

Publication number Publication date
CN109660844A (en) 2019-04-19

Similar Documents

Publication Publication Date Title
CN105224225B (en) The switching method and device of details page
US8156445B2 (en) Controlled interaction with heterogeneous data
US8463777B2 (en) Contents display device and contents display method
JP4458158B2 (en) Display device, display method, and program
US20100257468A1 (en) Method and system for an enhanced interactive visualization environment
KR102643017B1 (en) Smart interactive tablet operation method, device, terminal device and storage medium
CN102710900B (en) A kind of video matrix output display implement device, method and video matrix equipment
US9706256B2 (en) System and method for making semantic annotation for objects in interactive video and interface for the system
EP2534589A1 (en) Method and system for organizing information with a sharable user interface
CN101539942A (en) Method and device for displaying Internet content
CN110928475A (en) Page interaction method, device, equipment and storage medium of intelligent interaction panel
CN111338538A (en) Page operation method, device, equipment and storage medium of intelligent interactive tablet
CN105094669A (en) Method and device for switching multiple tab pages of browser
CN103207918A (en) Method, system and device for managing animation effect of presentation files
CN109660844B (en) Page operation control method and device, television, set top box and storage medium
JP6131072B2 (en) Display control device
WO2009081582A1 (en) Ce device and content reading system, and content reading method thereof
CN106998489B (en) A kind of focus is crossed the border searching method and device
CN107430477A (en) For the technology of the layout of the collection of display content items and transition layout in response to user's touch input
CN104793848A (en) Information processing method and electronic equipment
CN109697264A (en) The method for arranging of page elements, calculates equipment and storage medium at device
US20180307379A1 (en) Method and apparatus for providing web browsing interface
WO2024041023A1 (en) Application card adjustment method and apparatus, and terminal device and storage medium
JP6282051B2 (en) Data processing apparatus, data processing method, and program
US20210311611A1 (en) Dynamic multi-axis graphical user interface

Legal Events

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