[go: up one dir, main page]

CN102693238A - Widget application method and system and multimedia terminal - Google Patents

Widget application method and system and multimedia terminal Download PDF

Info

Publication number
CN102693238A
CN102693238A CN2011100713931A CN201110071393A CN102693238A CN 102693238 A CN102693238 A CN 102693238A CN 2011100713931 A CN2011100713931 A CN 2011100713931A CN 201110071393 A CN201110071393 A CN 201110071393A CN 102693238 A CN102693238 A CN 102693238A
Authority
CN
China
Prior art keywords
function
script file
class
widget
xml
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.)
Granted
Application number
CN2011100713931A
Other languages
Chinese (zh)
Other versions
CN102693238B (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.)
Hisense Visual Technology Co Ltd
Original Assignee
Qingdao Hisense Electronics 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 Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics Co Ltd
Priority to CN201110071393.1A priority Critical patent/CN102693238B/en
Publication of CN102693238A publication Critical patent/CN102693238A/en
Application granted granted Critical
Publication of CN102693238B publication Critical patent/CN102693238B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a Widget application method and system and a multimedia terminal. The method comprises the following steps of: creating an XML (extensible markup language) script file and a JavaScript script file; reading and analyzing the XML script file and the JavaScript script file through a Widget engine to call one or more corresponding functions; and realizing corresponding functions by operating class functions. Through the invention, the working efficiency of developers can be improved.

Description

Widget application process, system and multimedia terminal
Technical field
The present invention relates to appliance field, in particular to a kind of Widget application process, system and multimedia terminal.
Background technology
Widget is a kind of small-sized program, can run on computer or the TV, can network to the user provides various advisory roles, and other abundant application also can be provided.Traditional software design all is that INTERFACE DESIGN and program mix, and program personnel want design interface simultaneously, increase burden; And program will directly call the api function of platform specific will accomplish function the time, also will pass through compiling at last, and the binary code that is compiled into concrete platform can move.The Widget that designs by this way is easy care not, is difficult for transplanting, and versatility is poor.
The problem of the not easy care that exists in the Widget design proposal to above-mentioned prior art, difficult transplanting and versatility difference does not propose effective solution at present as yet.
Summary of the invention
Fundamental purpose of the present invention is to provide a kind of Widget application process, system and multimedia terminal, with the not easy care that exists in the Widget design proposal that solves prior art, the problem that is difficult for transplanting and versatility difference.
To achieve these goals, according to an aspect of the present invention, a kind of Widget application process is provided.
Widget application process according to the present invention comprises: create XML script file and JavaScript script file; Read and analyzing XML script file and JavaScript script file through the Widget engine, to call corresponding one or more class functions; The operation class function realizes corresponding function.
Further; Reading through the Widget engine and analyzing XML script file and JavaScript script file; Step to call corresponding one or more class functions comprises: read and the analyzing XML script file through the XML parsing module, to obtain the control property in the XML script file; Call the graph function that is used to create graphical interfaces in the class function according to control property.
Further; Reading through the Widget engine and analyzing XML script file and JavaScript script file; Step to call corresponding one or more class functions comprises: read and resolve the JavaScript script file through the JavaScript parsing module, to obtain the object properties in the JavaScript script file; Call one or more class functions according to object properties, wherein, class function comprises: input method function, DOM function, XML linking request function and multimedia player function.
Further, the api function of operating system and the control function of hardware are packaged into class function.
Further; Before the operation class function realizes corresponding function; Method also comprises: external control devices sends steering order and triggers the class function in the Widget engine; In the process of class function operation, if external control devices sends interrupt instruction, the function that class function then out of service is corresponding.
To achieve these goals, according to another aspect of the present invention, a kind of Widget application system is provided.
Widget application system according to the present invention comprises: Widget script file unit is used for creating and preserving XML script file and JavaScript script file; The Widget engine reads and analyzing XML script file and JavaScript script file, to call corresponding one or more class functions; Processing unit is used to move class function and realizes corresponding function.
Further, the Widget engine comprises: the class function module, be used to preserve one or more class functions, and class function comprises: graph function, input method function, DOM function, XML linking request function and multimedia player function; Adaptation module is used for the api function of operating system and the control function of hardware are packaged into class function, and adaptive several operation systems of adaptable interface and hardware are provided; Parsing module is used for reading and the analyzing XML script file through the XML parsing module, obtaining the control property in the XML script file, and calls the graph function that is used to create graphical interfaces in the class function according to control property; Read and resolve the JavaScript script file through the JavaScript parsing module, to call the function of each class function.
Further, system also comprises: external control devices is used for sending the class function that steering order triggers operation Widget engine.
To achieve these goals, in accordance with a further aspect of the present invention, a kind of multimedia terminal is provided, this multimedia terminal comprises above-mentioned any one Widget application system.
Further, the Widget engine is used to encapsulate one or more class functions, through reading and analyzing XML script file and JavaScript script file call the class function of correspondence, and adaptive several operation systems of adaptable interface and hardware is provided.
Further, the multimedia terminal can be televisor, mobile phone or computing machine.
Through the present invention, adopt and create XML script file and JavaScript script file; Read and analyzing XML script file and JavaScript script file through the Widget engine, to call corresponding one or more class functions; The operation class function realizes corresponding function, has solved the not easy care that exists in the Widget design proposal of prior art, the problem that is difficult for transplanting and versatility difference, has reached the effect that improves developer's work efficiency.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the illustrative view of functional configuration according to the Widget application system of the embodiment of the invention;
Fig. 2 is the structural representation according to the preferred Widget application system of the embodiment of the invention;
Fig. 3 is the synoptic diagram that passes through to draw function drafting user interface according to the embodiment of the invention;
Fig. 4 is the process flow diagram according to the Widget application process of the embodiment of the invention; And
Fig. 5 is the workflow diagram according to the preferred Widget application process of the embodiment of the invention.
Embodiment
Need to prove that under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.Below with reference to accompanying drawing and combine embodiment to specify the present invention.
The invention provides a kind of Widget application process, system and multimedia terminal.
Fig. 1 is the illustrative view of functional configuration according to the Widget application system of the embodiment of the invention.As shown in Figure 1, this system comprises: Widget script file unit 10 is used for creating and preserving XML script file and JavaScript script file; Widget engine 30 reads and analyzing XML script file and JavaScript script file, to call corresponding one or more class functions; Processing unit 50 is used to move the function that class function realizes various types of correspondence.
The above embodiment of the present invention provides the design proposal of a kind of Widget engine (WigetEngine); This scheme adopts the XML+JavaScript framework; Wherein, the description at Widget interface is described with the XML file, and the JavaScript language is then used in the realization of program; So just separate INTERFACE DESIGN and programming, make interface art designing personnel and programming personnel separately independently to work fully.Widget file layout based on the XML+JavaScript framework is a plain text in addition; Its operation is to move by WidgetEngine; Widget only need use these general classes to programme and get final product; Widget needn't be compiled into the binary file of concrete hardware platform again, and it is just passable only need to call corresponding power function, thereby has improved developer's work efficiency.
Fig. 2 is the structural representation according to the preferred Widget application system of the embodiment of the invention.As shown in Figure 2; Widget engine 30 in the above embodiment of the present invention can comprise: the class function module; Be used to preserve one or more class functions, class function comprises: graph function GUI, input method function, DOM function, XML linking request function (XMLHttpRequest function) and multimedia player function; Adaptation module is used for the api function of operating system and the control function of hardware are packaged into class function, and adaptive several operation systems of adaptable interface and hardware are provided; Parsing module is used for reading and the analyzing XML script file through the XML parsing module, obtaining all control properties in the XML script file, and calls the graph function that is used to create graphical interfaces according to control property; Read and resolve the JavaScript script file through the JavaScript parsing module, to call the function of each class function.
In the foregoing description, Widget engine 30 provides unified general JavaScript class, and these classes comprise multimedia player, DOM; DOMNode, XmlHttpRequest, Array, Date etc.; Provide independent unified GUI class to include view, div, button, listbox in addition; Edit, checkbox, combobox etc.; And the class of using among the JavaScript provides based on Widget engine 30 (WidgetEngine), because the present invention becomes above-mentioned type through parsing module with the api function and the hardware controls function abstract package of underlying operating system, therefore no longer directly calls the API of platform specific; When needs were transplanted, as long as be transplanted to other platform to WidgetEngine, Widget also just was transplanted to other platform thereupon so; Thereby realized Widget " once writing, everywhere operation ", Widget is kept apart with concrete hardware platform and operating system fully.
Concrete, the detailed description of each functional module that the Widget engine 30 in the above-mentioned instance comprises is following:
Parsing module can comprise XML parsing module and JavaScript parsing module.
Wherein, The function of XML parsing module is following: because the interface description of Widget is to use the XML language description, so need an XML parsing module to parse control information all in the XML file of interface description, parse the size of each control (such as button, label, tabulation); The position; Title, various attributes specifically draw out concrete interface with these attributes in the future.
The action of JavaScript parsing module: Widget, the function that will accomplish all use the JavaScript file to write; And the JavaScript file only is a file; Therefore need a JavaScript resolver to accomplish analytical capabilities, really realize the function that the JavaScript file will be realized.The JavaScript parsing module also can become the control function abstract package of the api function of underlying operating system and hardware a class to supply the JavaScript file to use in addition; Widget will realize that which type of function just needn't directly call the function and the hardware API of concrete operating system and realize like this, has realized the isolation of Widget and specific operating system and hardware platform.
The corresponding different functions of each class function that relates in the above-mentioned module, the operation class function can realize user's functional requirement.For example; Realize the function of GUI system through the calling graph shape function; This system is used to accomplish concrete interface draws, and the interface file of Widget is resolved to the interface that will call the GUI system behind the various controls by the XML parsing module and draws function and specifically draw out the interface and present to the user.Concrete can describe with following instance:
Xml file about the display graphics function:
Figure BDA0000051746860000041
Figure BDA0000051746860000051
After preserving above-mentioned XML file, can resolve the content in the above-mentioned XML file through the XML parsing module, the size of reading view is high by 300, and is wide by 400, will create the window of a 300X400 so earlier; Read again then individual div control is arranged among the view; The x of this div; Y is (0,0), and size is big or small identical (because width=" 100% " height=" 100% ") with view; Background is a white (background=" #FFFFFF "), will in the window of having created, draw so one with the big or small identical white portion of view; This is my first example.Widget is very simple. "; In like manner can create two button at last again, the title of a button is " OK ", and a title is " Cancel ".Final like this interface of drawing will be interface as shown in Figure 3.
The class function module can comprise: XML linking request function module, DOM module, multimedia player module, input method function.
Wherein, The function of XML linking request function (XMLHttpRequest) module is following: this module is used for realizing obtaining data and promptly realizing through the XMLHttpRequest class when Widget will network; The XMLHttpRequest module has promptly encapsulated an XMLHttpRequest class; Such can accomplish network savvy, can obtain different data from network according to user's instruction simultaneously, obtains data function with regard to the networking that has realized Widget like this.
The DOM module: because the powerful versatility of XML, the data of present many websites all are to represent with the XML form, and it much is the data of XML form that the data of obtaining through the XmlHttpRequest class also have, and wants to analyze the DOM that these data need be used standard.The DOM module has promptly encapsulated DOM class and has supplied JavaScript to make to be used for the analyzing XML file and to show various consultation informations.
The multimedia player module: this module mainly realizes general multi-media player function.For example, can call player module and play flash.
The input method function calls this function the input Chinese character can be provided, English character, the function of input such as punctuation mark data.
Adaptation module can comprise: operating system adaptation module and hardware adaptation module.
Wherein, the operating system adaptation module can realize that being packaged into general module to the API of concrete operating system keeps supplying a layer user and call, and the upper-layer user no longer directly calls the API of specific operating system, has realized the isolation of Widget and operating system and hardware system.The API of these operating systems comprises establishment, the deletion of task; The establishment of semaphore, deletion, use; The establishment of mutex, deletion, use etc.
Other module is creation task if desired, uses semaphore, and the API in so can call operation system adaptation module realizes that the API of operating system adaptation module possibly used by any module in the module 1 to 7.
The hardware adaptation module realizes that being packaged into general function to concrete hardware operation function keeps supplying layer user's use, and the upper-layer user is the real hardware of direct control no longer, realizes the isolation of Widget and particular hardware platform.
As shown in Figure 2, can operate concrete bottom hardware player when wanting playing back music such as multi-media module, the hardware adaptation module will provide the API of the general operation bottom music player of a cover to supply multimedia playing module to use so; And the GUI module also can be operated bottom hardware and drawn when drawing, and the hardware adaptation module also can provide the general bottom hardware drawing function of a cover to use to the GUI module.These modules only need be called hardware and are fit to the function in the module like this, and the hardware function that needn't directly call real bottom is realized corresponding function.
Preferably; Widget application system of the present invention can also comprise: external control devices; The steering order of sending external control devices triggers the class function in the Widget engine; In the process of class function operation, if external control devices sends interrupt instruction, the function that class function then out of service is corresponding.
Fig. 4 is the process flow diagram according to the Widget application process of the embodiment of the invention.As shown in Figure 3, this method comprises the steps:
Step S102 creates XML script file and JavaScript script file through the Widget script file unit 10 among Fig. 1.
Step S104 reads and resolves XML script file and JavaScript script file in the Widget script file unit 10 through the Widget engine among Fig. 1, to call corresponding one or more class functions.
Step S106 moves the function that the class function that is obtained by the Widget engine realizes various types of correspondence through the processing module among Fig. 1.
The above embodiment of the present invention provides the Widget design proposal of a kind of Widget of having engine (WigetEngine); This scheme adopts the XML+JavaScript framework, and wherein, the Widget interface is described through the XML file; The JavaScript language is then used in the realization of program; So just separate INTERFACE DESIGN and programming, make interface art designing personnel and programming personnel separately independently to work fully, improved staff's work efficiency.
Widget file layout based on the XML+JavaScript framework is a plain text in addition; Its operation is to move by WidgetEngine; Widget only need use these general classes to programme and get final product; Widget needn't be compiled into the binary file of concrete hardware platform again, and it is just passable only need to call corresponding power function, thereby has improved developer's work efficiency.
In the foregoing description; Reading through the Widget engine and analyzing XML script file and JavaScript script file; Step 104 to call corresponding one or more class functions can comprise following a kind of embodiment: read and the analyzing XML script file through the XML parsing module, to obtain all control properties in the XML script file; Call the graph function that is used to create graphical interfaces according to control property.This embodiment realizes the realization of graphical interfaces, be need be in the XML script file input demand, just can obtain the graphical interfaces after the parsing through the Widget engine.
In addition; Reading through the Widget engine and analyzing XML script file and JavaScript script file; Can also comprise following other a kind of embodiment with the step of calling corresponding one or more class functions: read and resolve the JavaScript script file through the JavaScript parsing module, to obtain the object properties in the JavaScript script file; Call one or more class functions according to object properties, wherein, class function comprises: input method function, DOM function, XML linking request function and multimedia player function.This step realizes resolving the JavaScript script file through the JavaScript parsing module, can call packaged power function, realizes the function that each function is corresponding.
Can the api function of operating system and the control function abstract package of hardware be become class function among above-mentioned each embodiment.
Preferably; Before the operation class function realizes the function of various types of correspondence; Method also comprises: external control devices sends steering order and triggers the class function in the Widget engine; In the process of class function operation, if external control devices sends interrupt instruction, the function that class function then out of service is corresponding.This external control devices can be telepilot or other opertaing devices.
Fig. 5 is the workflow diagram according to the preferred Widget application process of the embodiment of the invention.As shown in Figure 5, this method comprises the steps:
Step S201 reads and the analyzing XML file, calls GUI and draws main interface.The Widget engine reads in the XML file in this step, and parses the various attributes of each control with the XML parsing module, calls the corresponding class function of GUI module according to each attribute and draws out main interface.
Step S202 reads and resolves the JavaScript file, prepares operation Widget.The Widget engine reads in the JavaScript file in this step; And resolve the JavaScript file with the JavaScript parsing module; Begin to carry out the order in the JavaScript file, call the various modules of bottom and accomplish the action that Widget will do, thereby realize corresponding function.
Concrete, the resolving in this step can be described with the course of work of the Widget engine in the televisor:
At first, use a computer and third party's engine is compiled into library file through compiler.Third party's engine joins in the TVWidget engine; Need elder generation that the source code of third party's engine is compiled; Be compiled into corresponding library file so that decoding chip is discerned, because decoding chip is different, compiler is also inequality; Need to use the compiler of using third party's engine chip to compile, and the library file after will compiling is embedded in the decoding chip.
Secondly, can set up JavaScript script running environment through Widget engine control third party engine.Have only the JavaScript script running environment of foundation in this step, the JavaScript script file just can move, and could carry out follow-up resolving like this.In the process of setting up JavaScript script running environment, can comprise following step:
S31: create a script runtime environment through third party's engine.
S32: in the runtime environment of creating, create script operation context again through third party's engine.
S33: the script of having created through third party's engine configuration moves context.
S34: in the script operation context of creating, create class through third party's engine.
S35: at last class built-in in third party's engine is given in the object of new establishment, so that the JavaScript script uses.
In the present embodiment, if third party's engine adopts the SpiderMonkey engine, the then above-mentioned JS_NewRuntime function of SpiderMonkey engine that in step S31, uses is created the script runtime environment.Preferably, need use the JS_NewContext function creation script operation context of SpiderMonkey engine.
Functions such as the JS_SetOptions of use SpiderMonkey engine, JS_SetVersion, JS_SetErrorReporter dispose relevant parameter options in step S33.
In step S34, to create an object with the JS_NewObject of SpiderMonkey engine earlier.
In step S35, make the object of this new establishment have the function of the built-in various standard class of SpiderMonkey engine with the JS_InitStandardClasses function.With JS_NewObject function creation object the time, the flags of this object must be made as JSCLASS_GLOBAL_FLAGS.
Through these top settings, in the Widget engine, created JavaScript script environment, created the object of function with the built-in standard class of third party's engine, the JavaScript script can use the class of the built-in standard of third party's engine.
Then, the Widget engine parses the JavaScript script file among the Widget.The Widget engine can parse the JavaScript script file from the various files of Widget, resolve for third party's analytics engine.
At last, the Widget engine is through third party's engine parsing operation JavaScript script file.Adopt parsing operation JavaScript script file to give the user in this step, carry out like playing back music, check operation such as weather the function demonstration in the widget program.Operation JavaScript script file process mainly comprises following dual mode:
First kind of mode:
Decoding chip is used as a character buffer to the JavaScript script and is moved.Promptly read script file all the elements in the buffer zone, call the JS_EvaluateScript function then, and go over the address and the length of buffering as its 3rd, the 4th parameter transmission respectively, can accomplish the operation of JavaScript script.Also have the JS_EvaluateUCScript function in addition, this function is also accomplished identical functions, can be used to compile the Unicode character string.Adopt this mode only to move the JavaScript script file that one parsing goes out.
The second way:
Decoding chip is earlier JavaScript script file compiling back operation.Be first call function JS_CompileFile, pass to this function to the filename of the JavaScript script that will compile, as its 3rd parameter.After this function call success, can return the variable of a JSScript pointer type, and then pass to function JS_ExecuteScript to this return results, as its 3rd parameter.So also accomplished the operation of JavaScript script.Owing to returned the variable of JSScript pointer type, can repeatedly move the JavaScript script that parses through calling this variable.
Step S203, major cycle begins.As step S201, the work of step S202 can get into major cycle after accomplishing, and the work in major cycle is the work of describing among the following step S204.
Step S204 sends different messages control Widget operation through the button on the external control devices.For example; This external control devices is a telepilot; The key value of the remote control that televisor/computing machine/mobile phone can ceaselessly receive, and send to Widget in service to key value, to trigger different events; Accomplish different functions, the control information of promptly sending through button is called the power function of response and is realized corresponding function.What function is concrete key value can trigger is decided by concrete Widget, receive that such as a Widget upwarding key can move up a width of cloth picture, and another Widget can move on to last button to focus from a button after receiving upwarding key.
Step S205 judges whether to receive the control signal of ESC Escape, withdraws from button then gets into the execution that step S206 finishes Widget if receive; Accomplish Widget and destroy action, thereby finish the operation of WidgetEngine, reclaim all resources; Such as memory source; But do not withdraw from the operation of televisor, otherwise, return and continue to detect the control signal that the stone Buddhist is received ESC Escape.The user that this step is can select whether allow WidgetEngine according to demand, has improved user experience.
Step S206, major cycle finishes, and system finishing is to the execution of Widget.
Step S207, tailing in work withdraws from.
Need to prove; Can in computer system, carry out in the step shown in the process flow diagram of accompanying drawing such as a set of computer-executable instructions; And; Though logical order has been shown in process flow diagram, in some cases, can have carried out step shown or that describe with the order that is different from here.
The present invention also provides a kind of multimedia terminal, and this multimedia terminal comprises the embodiment of above-mentioned any Widget application system.Wherein, This Widget application system can comprise: the Widget engine; Be used to encapsulate one or more class functions, through reading and analyzing XML script file and JavaScript script file call the class function of correspondence, and adaptive several operation systems of adaptable interface and hardware be provided.Based on this Widget engine, make the Widget application system read different script files so that in the debugging of independent coding, can strengthen the portability of whole application module through the widget engine modules with each class function encapsulation at front end.
Preferably, the multimedia terminal can be televisor, mobile phone or computing machine.
From above embodiment describes; Can find out that the present invention has realized following technique effect:, therefore no longer directly call the API of platform specific because the present invention becomes above-mentioned type through parsing module with the api function of underlying operating system and hardware controls function abstract package; When needs are transplanted; As long as be transplanted to other platform to WidgetEngine, Widget also just is transplanted to other platform thereupon so, thereby has realized Widget " once writing; operation everywhere "; Widget is kept apart with concrete hardware platform and operating system fully, solved the not easy care that exists in the Widget design proposal of prior art, the problem that is difficult for transplanting and versatility difference, reached the effect that improves developer's work efficiency.
Obviously, it is apparent to those skilled in the art that above-mentioned each module of the present invention or each step can realize with the general calculation device; They can concentrate on the single calculation element; Perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element; Thereby; Can they be stored in the memory storage and carry out, perhaps they are made into a plurality of integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize by calculation element.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a Widget application process is characterized in that, comprising:
Create XML script file and JavaScript script file;
Read and resolve said XML script file and said JavaScript script file through the Widget engine, to call corresponding one or more class functions;
Move said class function and realize corresponding function.
2. method according to claim 1 is characterized in that, is reading and resolving said XML script file and said JavaScript script file through the Widget engine, comprises with the step of calling corresponding one or more class functions:
Read and resolve said XML script file through the XML parsing module, to obtain the control property in the said XML script file;
Call the graph function that is used to create graphical interfaces in the said class function according to said control property.
3. method according to claim 1 is characterized in that, is reading and resolving said XML script file and said JavaScript script file through the Widget engine, comprises with the step of calling corresponding one or more class functions:
Read and resolve said JavaScript script file through the JavaScript parsing module, to obtain the object properties in the said JavaScript script file;
Call one or more class functions according to said object properties, wherein, said class function comprises: input method function, DOM function, XML linking request function and multimedia player function.
4. according to each described method among the claim 1-3, it is characterized in that, the api function of operating system and the control function of hardware are packaged into said class function.
5. method according to claim 4 is characterized in that, before the said class function of operation realized corresponding function, said method also comprised:
The steering order of sending external control devices triggers the said class function in the said Widget engine, in the process of said class function operation, if said external control devices sends interrupt instruction, and the corresponding function of said class function then out of service.
6. a Widget application system is characterized in that, comprising:
Widget script file unit is used for creating and preserving XML script file and JavaScript script file;
The Widget engine reads and resolves said XML script file and said JavaScript script file, to call corresponding one or more class functions;
Processing unit is used to move said class function and realizes corresponding function.
7. system according to claim 6 is characterized in that, said Widget engine comprises:
The class function module is used to preserve one or more class functions, and said class function comprises: graph function, input method function, DOM function, XML linking request function and multimedia player function;
Adaptation module is used for the api function of operating system and the control function of hardware are packaged into said class function, and adaptive several operation systems of adaptable interface and hardware is provided;
Parsing module is used for reading and resolve said XML script file through said XML parsing module, obtaining the control property in the said XML script file, and calls the graph function that is used to create graphical interfaces in the said class function according to said control property; Read and resolve said JavaScript script file through said JavaScript parsing module, to call the function of each said class function.
8. system according to claim 7 is characterized in that, said system also comprises:
External control devices is used for sending the said class function that steering order triggers the said Widget engine of operation.
9. a multimedia terminal is characterized in that, comprises each described Widget application system among the aforesaid right requirement 6-8.
10. multimedia terminal according to claim 9 is characterized in that, said Widget application system comprises:
The Widget engine is used to encapsulate one or more class functions, calls corresponding said class function through reading and resolve said XML script file and said JavaScript script file, and adaptive several operation systems of adaptable interface and hardware are provided.
CN201110071393.1A 2011-03-23 2011-03-23 Widget application process, system and multimedia terminal Active CN102693238B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110071393.1A CN102693238B (en) 2011-03-23 2011-03-23 Widget application process, system and multimedia terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110071393.1A CN102693238B (en) 2011-03-23 2011-03-23 Widget application process, system and multimedia terminal

Publications (2)

Publication Number Publication Date
CN102693238A true CN102693238A (en) 2012-09-26
CN102693238B CN102693238B (en) 2015-09-16

Family

ID=46858695

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110071393.1A Active CN102693238B (en) 2011-03-23 2011-03-23 Widget application process, system and multimedia terminal

Country Status (1)

Country Link
CN (1) CN102693238B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092613A (en) * 2012-12-31 2013-05-08 中山大学 Widget middleware system based on smart television
CN103176804A (en) * 2013-04-19 2013-06-26 中国海洋大学 User interface realization method
CN104035778A (en) * 2014-06-26 2014-09-10 上海斐讯数据通信技术有限公司 Android application program development method
CN104699501A (en) * 2015-01-15 2015-06-10 腾讯科技(深圳)有限公司 Method and device for running application program
CN105283843A (en) * 2013-06-12 2016-01-27 谷歌公司 Embeddable media content search widget
CN106250141A (en) * 2016-07-29 2016-12-21 四川天邑康和通信股份有限公司 A kind of method for designing of WEB UI plug-in unit
WO2018153061A1 (en) * 2017-02-24 2018-08-30 百富计算机技术(深圳)有限公司 Network application running method based on pos payment terminal, terminal, and non-volatile readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101799766A (en) * 2010-03-26 2010-08-11 青岛海信电器股份有限公司 Method and device for analyzing script file by using third engine in Widget engine
CN101814030A (en) * 2010-04-22 2010-08-25 四川长虹电器股份有限公司 Menu updating method in Widget

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101799766A (en) * 2010-03-26 2010-08-11 青岛海信电器股份有限公司 Method and device for analyzing script file by using third engine in Widget engine
CN101814030A (en) * 2010-04-22 2010-08-25 四川长虹电器股份有限公司 Menu updating method in Widget

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
宋国瑞等: "基于Windows CE平台的Widget引擎中JavaScript解析器和JSBinding研究", 《软件导刊》, vol. 9, no. 12, 31 December 2010 (2010-12-31), pages 12 - 14 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103092613A (en) * 2012-12-31 2013-05-08 中山大学 Widget middleware system based on smart television
CN103176804A (en) * 2013-04-19 2013-06-26 中国海洋大学 User interface realization method
CN103176804B (en) * 2013-04-19 2017-06-20 中国海洋大学 A kind of user interface implementation method
CN105283843A (en) * 2013-06-12 2016-01-27 谷歌公司 Embeddable media content search widget
CN105283843B (en) * 2013-06-12 2020-02-18 谷歌有限责任公司 Embeddable media content search widget
CN104035778A (en) * 2014-06-26 2014-09-10 上海斐讯数据通信技术有限公司 Android application program development method
CN104699501A (en) * 2015-01-15 2015-06-10 腾讯科技(深圳)有限公司 Method and device for running application program
CN104699501B (en) * 2015-01-15 2018-02-16 腾讯科技(深圳)有限公司 A kind of method and device for running application program
CN106250141A (en) * 2016-07-29 2016-12-21 四川天邑康和通信股份有限公司 A kind of method for designing of WEB UI plug-in unit
CN106250141B (en) * 2016-07-29 2021-12-10 四川天邑康和通信股份有限公司 Design method of WEB UI plug-in
WO2018153061A1 (en) * 2017-02-24 2018-08-30 百富计算机技术(深圳)有限公司 Network application running method based on pos payment terminal, terminal, and non-volatile readable storage medium
US10929212B2 (en) 2017-02-24 2021-02-23 Pax Computer Technology (Shenzhen) Co., Ltd Method of running network application based on pos payment terminal, terminal, and non volatile readable storage medium

Also Published As

Publication number Publication date
CN102693238B (en) 2015-09-16

Similar Documents

Publication Publication Date Title
US12182221B2 (en) Method and terminal device for extracting web page content
WO2018228211A1 (en) Application conversion method, apparatus and device
CN106569900B (en) Applied program processing method and device
CN106843869B (en) Front-end development engineering system and method
CN102129364B (en) Method for embedding widget toolbar in application program and rapid widget accessing method
US8745573B2 (en) Platform-independent application development framework
CN110020307B (en) Drawing method and device for client end view
Huang et al. Programming situational mobile web applications with cloud-mobile convergence: an internetware-oriented approach
CN102693238B (en) Widget application process, system and multimedia terminal
CN107454954B (en) Data binding dependency analysis
CN105354013A (en) Application interface rendering method and apparatus
US20140053063A1 (en) User interface control framework for stamping out controls using a declarative template
CN104636139A (en) Visualized cross-platform mobile application development and generation system
CN109597621B (en) Method and device for packaging Dagger, terminal equipment and storage medium
CN101322096A (en) Metadata driven user interface
CN111176629A (en) Application development method and device
CN101799766B (en) Method and device for analyzing script file by using third engine in Widget engine
CN113918195A (en) Application interface updating method and device, electronic equipment and readable storage medium
CN101226479A (en) Method for implementing dynamic collocation of mobile phone menu
CN112965716B (en) Page processing method and device, electronic equipment and readable storage medium
Murphy et al. Beginning Android 3
WO2024066825A1 (en) Page project development method, apparatus, device, medium and product
US20110072371A1 (en) Application programming interface for user interface creation
CN102622263A (en) Method for implementing embedded system based virtual machine on set-top box
CN112559026B (en) API (application program interface) -based native capability development method, device and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 266100 Zhuzhou Road, Laoshan District, Shandong, No. 151, No.

Patentee after: Hisense Visual Technology Co., Ltd.

Address before: 266100 Zhuzhou Road, Laoshan District, Shandong, No. 151, No.

Patentee before: QINGDAO HISENSE ELECTRONICS Co.,Ltd.

CP01 Change in the name or title of a patent holder