HK1133935A1 - Method for implementing widget function and widget controller - Google Patents
Method for implementing widget function and widget controller Download PDFInfo
- Publication number
- HK1133935A1 HK1133935A1 HK10100920.3A HK10100920A HK1133935A1 HK 1133935 A1 HK1133935 A1 HK 1133935A1 HK 10100920 A HK10100920 A HK 10100920A HK 1133935 A1 HK1133935 A1 HK 1133935A1
- Authority
- HK
- Hong Kong
- Prior art keywords
- markup language
- hypertext markup
- window
- page
- control program
- Prior art date
Links
Landscapes
- User Interface Of Digital Computer (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a method for realizing form component functions and a form component controller. The method of the embodiment is carried out by starting a form component control program, the form component control program loads a Hypertext Markup Language page which is used for realizing the form component functions, and the form component control program provides corresponding form component service for a user by running the Hypertext Markup Language page. As a way that form component control program loads the Hypertext Markup Language page is adopted to realize the form component function, different pages can be customized for the user to choose according to demands of the user, the user can realize different form component functions by loading different pages or different interfaces, simultaneously the user can download new Hypertext Markup Language pages to realize new form component functions, therefore the invention has better expansibility and is more closer to the needs of user compared with the existing technology.
Description
Technical Field
The invention relates to the technical field of digital televisions, in particular to a method for realizing window assembly functions and a window assembly controller.
Background
Window controls (widgets) on a browser main window in the digital television, such as a volume bar, a channel list and the like, are all realized in a C language mode, so the window controls (widgets) are called C window controls (C widgets).
Each C widget corresponds to one C function module, and each C function module sets the position of the widget for displaying the picture or the text according to the head position information of the appointed picture file or the appointed text; the C function module corresponding to the C Widget can also process the designated key, and if a volume bar exists, the left key and the right key are pressed to carry out volume increasing and decreasing operations; and a certain logical relationship exists between parts of widgets, such as the situation that the volume bar and the mute icon cannot coexist and the like.
The Widget serves as a product to provide services for users, different users often have different requirements for the same Widget function, for example, a mute icon is displayed on the lower left corner, some users are displayed on the upper left corner, and some users are displayed on different positions under different conditions; in the channel list, the types of programs required to be displayed by different clients may be different; different remote controllers are used for different projects, keys to be responded by widgets with the same function are possibly different, in the prior art, when the widget functions are realized, widget programs need to be rewritten according to different requirements of users, the complexity is high, meanwhile, the users cannot update the widgets according to the requirements of the users, the favorite interfaces are selected, meanwhile, the expansion of new functions is inconvenient, and service providers cannot push the new widget functions through the network.
Disclosure of Invention
The embodiment of the invention provides a method for realizing the functions of a window assembly and a window assembly controller, so that the widget of a digital television is closer to the requirements of users, and the expansibility is stronger.
The method for realizing the window assembly function provided by the embodiment of the invention comprises the following steps:
starting a window component control program;
the window component control program loads a hypertext markup language page; the hypertext markup language page is used for realizing the functions of the window components;
the form component control program provides corresponding form component services for the user by operating the hypertext markup language page;
the window component control program loads other hypertext markup language pages;
the window component control program receives the instruction of the remote controller to switch between the hypertext markup language pages and display and hide the hypertext markup language pages;
and the hypertext markup language page calls the window component functions of other hypertext markup language pages.
The embodiment of the invention provides a window assembly controller, which comprises:
the page loading unit is used for loading the hypertext markup language page; the hypertext markup language page is used for realizing the functions of the window components;
the window component execution unit provides corresponding window component services for the user by operating the hypertext markup language page; the page loading unit is also used for loading other hypertext markup language pages, receiving an instruction of a remote controller to switch among the hypertext markup language pages and display and hide the hypertext markup language pages, and the hypertext markup language pages call the window component functions of the other hypertext markup language pages.
The embodiment of the invention starts a window component control program; the window component control program loads a hypertext markup language page; the hypertext markup language page is used for realizing the functions of the window components; and the form component control program provides corresponding form component services for the user by operating the hypertext language page. Because the window component function is realized by adopting a mode that the component control program loads the hypertext markup language page, different pages can be customized according to the requirements of the user for the user to select, and the user can realize different window component functions or different interfaces by loading different pages; meanwhile, the user can download a new hypertext markup language page to realize the function of a new form component, so that the extensibility of the method is better compared with the expansibility of the prior art, and the method is closer to the requirement of the user.
Drawings
Fig. 1 is a flowchart of a method for implementing a window component function according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a window assembly controller according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an embodiment of a window assembly controller provided by the present invention.
Detailed Description
The embodiment of the invention provides a method for realizing the window component function and a window component controller, so that the widget of a digital television is realized closer to the requirement of a user, and the expansibility is stronger.
The present invention will be described in detail below.
A flow of a method for implementing a window component function provided in an embodiment of the present invention is shown in fig. 1, and includes:
a1, starting a window assembly control program;
the step a1 may be preceded by: the hypertext markup language page is downloaded from a server over a data transmission network.
It can be understood that the hypertext markup language page may also be preset locally in advance, the present invention emphasizes that the window component control program as a program shell can load different hypertext markup language pages to implement corresponding window component functions, and the source of the specific hypertext markup language page does not limit the present invention.
Further, the hypertext markup language pages can be downloaded in an asynchronous mode, that is, when a hypertext markup language page is not downloaded, other operations, such as displaying other hypertext markup language pages, can be performed. The digital television is an embedded system, has high real-time requirement, and can respond to the operation of a user in time. However, the process of downloading or loading the html page by the page-based window component (pagewidget) program in the present invention is not immediately completed, for example: if a page is downloaded from a Web page (Web) server, a set-top box (terminal) needs to establish connection with the Web server, and then sends a data request after the connection is successful, and the server returns data (namely a hypertext markup language page) to the set-top box after receiving the request; similarly, the downloading is performed in an Object Carousel (OC) mode, and the front end needs to wait for the data to be broadcast before receiving the related file data. Thus, in order not to affect the user's operation, this process of data reception may be asynchronous, i.e. non-blocking.
After the hypertext markup language page is loaded, a function of a window component (widget) can be provided for a user in a page mode, and a page window providing the widget function for the user can be called a pagewidget.
In the embodiment of the invention, the server can also provide an abstract of the hypertext markup language page; the abstract is used for describing basic information of a form component realized by the hypertext markup language page. When the user downloads the hypertext markup language page, the server can select the needed hypertext markup language page to download according to the abstract.
Based on the characteristic of the present invention applied to the digital television system, the process of starting the window assembly control program may be triggered by receiving an instruction from the remote controller.
A2, the form component control program loads a hypertext markup language page; the hypertext markup language page is used for realizing the functions of the window components;
in the embodiment of the present invention, the method may further include: the window component control program loads other hypertext markup language pages;
and the window component control program receives the instruction of the remote controller to switch between the hypertext markup language pages and display and hide the hypertext markup language pages.
The following is a specific example of switching, displaying and hiding between hypertext markup language pages of the present invention, and the technical details of the present invention can be implemented in various ways without limitation to the present invention.
The pagewidget object handle can be obtained through the name of the pagewidget. To manipulate the created pagewidget, an object use handle of the pagewidget must be acquired first.
The created pagewidget is automatically in a hidden state, the pagewidget can be displayed by calling the display method of the pagewidget object handle, and the displayed pagewidget can also be hidden by calling the hiding method.
The display position and size of the pagewidget can be flexibly set by a corresponding method, for example: the same effect can be achieved by using a standard script language (JavaScript, js) window method, and the display hiding processing of the pagewidget is inseparable from the attribute set by the pagewidget.
The conflict flag attribute of the pagewidget (set during creation) determines the processing mode when the pagewidget displays the widget and other widgets generate position conflict (namely, overlap occurs in position). If no conflict is set, the post-displayed pagewidget is displayed on top of the displayed widget. Therefore, if the windows are to be displayed in an overlapping manner, the conflict attribute of the pagewidget cannot be set during creation.
The focus (e.g., cursor controlled by the user) control attribute of a pagewidget determines whether focus is available when the pagewidget is displayed. If the focus can be obtained, when the pagewidget is displayed, the focus on the previous focus window is automatically set to the newly displayed pagewidget, and when the pagewidget is hidden, the focus is automatically reset to the previous focus window. If the focus cannot be obtained, the created pagewidget is not focused, and when the pagewidget is displayed or hidden, the focus always falls on the previous focus window. And the focus control attribute of the pagewidget of the loaded hypertext markup language page is set when the pagewidget is hidden. If the pagewidget is in a display state, the setting is invalid.
A3, the form component control program provides the corresponding form component service to the user by running the hypertext language page.
In the embodiment of the invention, the pagewidget can respond to the key in the project that the window component control program provides service for the user by loading the hypertext markup language page. In the embodiment, whether the pagewidget can process the key message or not is controlled by the message control attribute of the pagewidget; otherwise the message cannot be processed even if the message handling function is registered. If there are multiple pagewidgets, that is, under the condition that multiple pages are loaded, the present invention provides a feasible processing logic: namely, the displayed pagewidget processes the message preferentially by adopting the currently activated mode of preferential attention.
Moreover, in the specific implementation of the invention, the functions of the window components can be mutually called among the page widgets, so that the self-function service is realized.
In the embodiment of the invention, the pagewidget also has the global object, the variable and the function of the window, and the corresponding function can be realized by calling the function. The pagewidget can use not only the object variable function in the window of the pagewidget but also the object variables and functions of other windows. The global variable function of the window of the self can be directly quoted, and the object handle prefixes of the windows where the global variables and the functions are located need to be added when the global variables and the functions of other windows are quoted. In this way, all windows loading html pages can be conveniently accessed.
The embodiment of the invention adopts a control program by starting a window assembly; the window component control program loads a hypertext markup language page; the hypertext markup language page is used for realizing the functions of the window components; and the form component control program provides corresponding form component services for the user by operating the hypertext language page. Because the window component function is realized by adopting a mode that the component control program loads the hypertext markup language page, different pages can be customized according to the requirements of the user for the user to select, and the user can realize different window component functions or different interfaces by loading different pages; meanwhile, the user can download a new hypertext markup language page to realize the function of a new form component, so that the extensibility of the method is better compared with the expansibility of the prior art, and the method is closer to the requirement of the user.
An embodiment of a window assembly controller provided by the present invention, a schematic structural diagram is shown in fig. 2, and includes:
a page loading unit 210, configured to load a hypertext markup language page; the hypertext markup language page is used for realizing the functions of the window components;
and the form component executing unit 220 provides the corresponding form component service for the user by running the hypertext language page.
An embodiment of a window assembly controller provided by the present invention, a schematic structural diagram is shown in fig. 3, and includes:
a page loading unit 310, configured to load a hypertext markup language page; the hypertext markup language page is used for realizing the functions of the window components;
the form component execution unit 320, which provides the corresponding form component service to the user by running the hypertext language page, as can be understood, may include:
a window creating unit 321, configured to create a window and a window controller corresponding to the window, where the created window is used to run the hypertext language page to implement a corresponding window component function;
the window controller 322 is configured to control the corresponding window according to the control signal.
If a plurality of hypertext transfer pages need to be loaded, a plurality of windows and a plurality of corresponding window controllers can be created; each window controller controls only its corresponding window, where the control may be hiding, displaying, closing, and interfacing in response to external control signals.
The downloading unit 330 is configured to interact with a server through a data transmission network, and download the html page in an asynchronous mode.
The signal receiving unit 340 is configured to receive a control signal of a remote controller, and send the control signal to a window controller corresponding to a currently activated window.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by specifying the relevant hardware by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: ROM, RAM, magnetic or optical disks, and the like.
The method for implementing the window assembly function and the window assembly controller provided by the embodiment of the present invention are described in detail above, a specific example is applied in the present document to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (9)
1. A method for implementing a window assembly function, comprising:
starting a window component control program;
the window component control program loads a hypertext markup language page; the hypertext markup language page is used for realizing the functions of the window components;
the form component control program provides corresponding form component services for the user by operating the hypertext markup language page;
the window component control program loads other hypertext markup language pages;
the window component control program receives the instruction of the remote controller to switch between the hypertext markup language pages and display and hide the hypertext markup language pages;
and the hypertext markup language page calls the window component functions of other hypertext markup language pages.
2. The method of claim 1, wherein said form component control program prior to loading the specified hypertext markup language page comprises:
and receiving the hypertext markup language page sent by the server through a data transmission network.
3. The method of claim 2, wherein the hypertext markup language page is downloaded in an asynchronous mode.
4. The method of claim 3, further comprising: the server stores the hypertext markup language page for downloading, and also provides an abstract of the hypertext markup language page; the abstract is used for describing basic information of a form component realized by the hypertext markup language page.
5. A method according to any of claims 1 to 4, wherein said process of initiating a window assembly control program is triggered by receiving an instruction from a remote control.
6. A window assembly controller, comprising:
the page loading unit is used for loading the hypertext markup language page; the hypertext markup language page is used for realizing the functions of the window components;
the window component execution unit provides corresponding window component services for the user by operating the hypertext markup language page;
the page loading unit is also used for loading other hypertext markup language pages, receiving an instruction of a remote controller to switch among the hypertext markup language pages and display and hide the hypertext markup language pages, and the hypertext markup language pages call the window component functions of the other hypertext markup language pages.
7. The window assembly controller as defined in claim 6, further comprising:
and the downloading unit is used for downloading the hypertext markup language page from the server by adopting an asynchronous mode through a data transmission network.
8. The window assembly controller of claim 7 wherein said window assembly execution unit comprises:
the window creating unit is used for creating a window and a window controller corresponding to the window, and the created window is used for operating the hypertext markup language page to realize the corresponding window component function;
and the window controller is used for controlling the corresponding window according to the control signal.
9. The window assembly controller as defined in claim 6, further comprising: and the signal receiving unit is used for receiving a control signal of the remote controller and sending the control signal to the window controller corresponding to the currently activated window.
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2009101181022A CN101493845B (en) | 2009-02-23 | 2009-02-23 | Method for implementing window assembly function and window assembly controller |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| HK1133935A1 true HK1133935A1 (en) | 2010-04-09 |
| HK1133935B HK1133935B (en) | 2013-02-08 |
Family
ID=
Also Published As
| Publication number | Publication date |
|---|---|
| CN101493845A (en) | 2009-07-29 |
| CN101493845B (en) | 2012-06-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US6738982B1 (en) | Method and system for uniform resource identification and access to television services | |
| RU2571391C2 (en) | Display device, client terminal and control method therefor | |
| US20060168526A1 (en) | Platform-specific application user interface remoting | |
| CN112463750B (en) | File synchronization method and display device | |
| US11016788B2 (en) | Application launching method and display device | |
| CN111601149B (en) | Operation guide display method and display equipment | |
| CN109725970B (en) | Method and device for displaying application client window and electronic equipment | |
| WO2021232506A1 (en) | Picture quality adjustment method and display device | |
| CN112601124A (en) | Mobile terminal, server, display device and control method for remote timing shutdown | |
| CN111901653B (en) | Configuration method of external sound equipment of display equipment and display equipment | |
| CN111654729B (en) | Account login state updating method and display device | |
| CN116886967A (en) | Method for automatically switching on and off screen in sound box mode, intelligent terminal and display device | |
| CN112752126A (en) | Control method and control system of set top box and computer readable storage medium | |
| CN111324411A (en) | Method for upgrading user interface in display device and display device | |
| CN103607625A (en) | A system realizing multi-screen cooperation based on a hypertext markup language and a method thereof | |
| CN112911359B (en) | Resource display method, display equipment and remote controller | |
| CN101493845B (en) | Method for implementing window assembly function and window assembly controller | |
| CN111654753B (en) | Application program starting method and display device | |
| CN111479144A (en) | Display device and application interaction method | |
| US10863249B2 (en) | Browser-based embedded operation method, television set and storage device | |
| HK1133935B (en) | Method for implementing widget function and widget controller | |
| CN112861049B (en) | Method for dynamically managing picture buffer space and display device | |
| CN105516505A (en) | Method and system for operating multiple applications synchronously, smart phone | |
| CN113709536B (en) | Method for associating application programs on display device and display device | |
| US20240187676A1 (en) | Remote controllable smart device and method |