CN106502655A - A kind of method of data processing, device and Set Top Box - Google Patents

A kind of method of data processing, device and Set Top Box Download PDF

Info

Publication number
CN106502655A
CN106502655A CN201610878465.6A CN201610878465A CN106502655A CN 106502655 A CN106502655 A CN 106502655A CN 201610878465 A CN201610878465 A CN 201610878465A CN 106502655 A CN106502655 A CN 106502655A
Authority
CN
China
Prior art keywords
currentelement
command
new command
updated
touch
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.)
Pending
Application number
CN201610878465.6A
Other languages
Chinese (zh)
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.)
Shandong Inspur Business System Co Ltd
Original Assignee
Shandong Inspur Business System 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 Shandong Inspur Business System Co Ltd filed Critical Shandong Inspur Business System Co Ltd
Priority to CN201610878465.6A priority Critical patent/CN106502655A/en
Publication of CN106502655A publication Critical patent/CN106502655A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

A kind of method of data processing, device and Set Top Box is embodiments provided, is related to TV technology, code is realized in order to reduce, reduce the complexity that safeguards.Methods described includes:The touch command of the currentElement of receiving user's input;The currentElement is the element for obtaining focus;Whether the touch command for detecting the currentElement is more new command;The more new command is used for calling predefined renewal function;When the touch command of the currentElement is more new command, process is updated to the currentElement according to the touch command.

Description

A kind of method of data processing, device and Set Top Box
Technical field
The present invention relates to TV technology, more particularly to a kind of method of data processing, device and Set Top Box.
Background technology
As the development of Internet technology, network come into huge numbers of families, the intelligent television of Internet technology is depended on Emerge rapidly and come into the daily life of user.
As the function of DTV STB becomes increasingly complex, the content structure of the display interface of TV is also increasingly Many, for example the multi-screen of content switches at present.Renewal feelings for similar same page page turning or large-area content update etc. Condition is more and more.This kind of renewal operation of normal conditions is by positioning front focus position coordinateses, controlling the page turning or interior of correlation Hold renewal etc. and update operation.Positioning current focus position coordinateses need to increase substantial amounts of onkeydown codes, so not only code Amount is big, and not easy care not directly perceived.
Content of the invention
Embodiments of the invention provide a kind of method of data processing, device and Set Top Box, realize code in order to reduce, and drop The complexity of low-maintenance.
For reaching above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
A kind of method of data processing is embodiments provided, including:The touch-control of the currentElement of receiving user's input refers to Order;The currentElement is the element for obtaining focus;Whether the touch command for detecting the currentElement is more new command;Described More new command is used for calling predefined renewal function;When the touch command of the currentElement is more new command, according to The touch command is updated process to the currentElement.
Optionally, before the touch command of the currentElement of the receiving user's input, also include:Definition updates letter Number;Determine element to be updated, and increase more new command in the element to be updated;The implementation method title of the more new command Identical with the title of the renewal function;When the touch command in the currentElement is more new command, touched according to described Control instruction is updated process to the currentElement to be included:When the touch command of the currentElement is more new command, root According to the renewal instruction calls renewal function, process is updated to the currentElement.
Optionally, the more new command includes:Page-turning instruction or content update instruction.
Optionally, described increase more new command in the element to be updated and include:Document in the element to be updated Increase the title identical more new command of implementation method title and the renewal function in object model DOM attributes.
Further, a kind of device of data processing is embodiments provided, including:Receiving unit, for receiving The touch command of the currentElement of user input;The currentElement is the element for obtaining focus;Detector unit, for detecting Whether the touch command for stating the currentElement of receiving unit reception is more new command;The more new command is used for calling in advance The renewal function of definition;Processing unit, for detecting that in the detector unit touch command of the currentElement is renewal During instruction, process is updated to the currentElement according to the touch command.
Optionally, the processing unit, is additionally operable to define renewal function;The processing unit, is additionally operable to determine to be updated Element, and increase more new command in the element to be updated;The implementation method title of the more new command and the renewal letter Several titles is identical;The processing unit, specifically for the touch command in the currentElement be more new command when, according to institute Renewal instruction calls renewal function is stated, process is updated to the currentElement.
Optionally, the more new command includes:Page-turning instruction or content update instruction.
Optionally, the processing unit, specifically for increasing in the DOM Document Object Model DOM attributes of the element to be updated Plus the title identical more new command of implementation method title and the renewal function.
Further, a kind of Set Top Box is embodiments provided, including:Data processing described in above-described embodiment Device.
A kind of method of data processing, device and Set Top Box is embodiments provided, including:The device of data processing The touch command of the currentElement of receiving user's input;Whether the touch command of detection currentElement is more new command, current When the touch command of element is more new command, process is updated according to touch command to currentElement.So, for need All elements to be updated, directly in attribute of an element can pre-define more new command, receive this element During touch command, can be when touch command be more new command, directly according to renewal instruction calls renewal function, and then to current Element is updated process.Can so carry out all elements that need to update need to being called using more new commands predefined Renewal function, need not position front focus position coordinateses, so as to reduce the related realization size of code of renewal.Achieve minimizing to realize Code, reduces the purpose of the complexity of maintenance.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be to embodiment or description of the prior art in The required accompanying drawing for using is briefly described, it should be apparent that, drawings in the following description are only some realities of the present invention Example is applied, for those of ordinary skill in the art, on the premise of not paying creative work, can be with according to these accompanying drawings Obtain other accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of the method for data processing provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the method for another kind of data processing provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of the device of data processing provided in an embodiment of the present invention.
Specific embodiment
Accompanying drawing in below in conjunction with the embodiment of the present invention, to the embodiment of the present invention in technical scheme carry out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiment.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
A kind of method of data processing is embodiments provided, as shown in figure 1, including:
Step 101, the touch command of the currentElement of receiving user's input.
Wherein, currentElement is the element for obtaining focus.
Specifically, show that certain page, user need the video data for updating current page, as page turning in intelligent television Or show content update when, need by device from remote control equipment to data processing send touch command.Now, Yong Huxu Certain element of first focus in certain page, could send touch command.So, the device of data processing can basis The element of user focus, determines currentElement, it is possible to receive the touch command of user's transmission.
Whether step 102, the touch command of detection currentElement are more new command.
Wherein, more new command is used for calling predefined renewal function.
It should be noted that in embodiments of the present invention, renewal function has been pre-defined, it is right that this renewal function can be realized The page turning of current display page or content update.Size of code is realized in order to reduce, and renewal letter can be called by more new command The implementation method title of more new command is as set to the title of renewal function by number, such that it is able to realize more new command When, directly invoke renewal function.So, need to pre-define in the element for carrying out page turning or content update at each and update Instruction, receiving the touch command of this element, and touch command is when being more new command, can be adjusted by the more new command of element With renewal function, and without the need for the related realization code for increasing renewal function in code of realizing in currentElement, you can realize working as The front page turning for showing the page or content update.
Specifically, the device of data processing, can be to the category of currentElement after the touch command for receiving currentElement Property is parsed, and is checked, when parsing currentElement and having more new command, can enter one Step checks that whether currently received touch command is the more new command defined in currentElement.
It should be noted that detect currentElement pre-define more new command, or receive touch command not It is the more new command defined in currentElement, corresponding data processing can be carried out to currentElement directly according to touch command.
Further, more new command includes:Page-turning instruction or content update instruction.
Step 103, currentElement touch command be more new command when, currentElement is carried out more according to touch command New process.
Specifically, the device of data processing has pre-defined more new command in currentElement is detected, and touching of receiving After control instruction is more new command, illustrate that currentElement is the element that current display page need to be carried out page turning or content update, Now, the device of data processing can be carried out more to currentElement according to the renewal instruction calls renewal function in currentElement Current display page is as updated display processing, that is to say, that current display page is carried out page turning or interior by new process Hold renewal to process.
So, all elements being updated for needs, directly can pre-define more in attribute of an element New command, when the touch command of this element is received, can be when touch command be more new command, directly according to more new command Renewal function is called, and then process is updated to currentElement.Can so carry out all elements that need to be updated need to being utilized More new command calls predefined renewal function, need not position front focus position coordinateses, so as to reduce the correlation of renewal Realize size of code.Achieve minimizing and realize code, reduce the purpose of the complexity of maintenance.
Further, before above-mentioned steps 101, as shown in Fig. 2 also including:
Step 104, definition renewal function.
Specifically, the device of data processing first defines the page turning function that can realize showing page page turning, and can realize Show the content update function that content of pages updates.Wherein, the title of page turning function is different from the title of content update function.
Step 105, determine element to be updated, and increase more new command in element to be updated.
Wherein, the implementation method title of more new command is identical with the title of renewal function.
Specifically, after renewal function has been defined, the device of data processing can be in all display elements, and determining needs Carry out the element to be updated of display content renewal.As, determine that needs carry out the page turning element for showing page page turning, and need Carry out the content update element of the content update of the display page.
After element to be updated is determined, can belong at which in each element to be updated according to the function which need to be realized Property in increase the title identical more new command of implementation method title and renewal function title.As in page turning attribute of an element Increase the title identical page-turning instruction of implementation method title and page turning function.Increase in the attribute of content update element real Existing method name is instructed with the title identical content update of content update function.
Further, increasing more new command in element to be updated includes:DOM (Document in element to be updated Object Model, DOM Document Object Model) increase implementation method title in attribute and refer to the title identical renewal of renewal function Order.
For example, the entitled PageRight of page turning function is defined, can be increased in the DOM attributes in page turning element and be turned over Page is instructed:PAGE_RIGHT=” PageRight”.Now, if the touch command of the currentElement of user input is PAGE_ RIGHT is instructed, and is as instructed to the right.If the device currentElement of data processing is page turning element, the as device of data processing More new command is parsed in currentElement and is page-turning instruction, and its page-turning instruction is identical with touch command, then data processing Device page turning function can be called according to the page-turning instruction recorded in the attribute of currentElement, realize to current display page Page turning.
So, all elements being updated for needs, directly can pre-define more in attribute of an element New command, when the touch command of this element is received, can be when touch command be more new command, directly according to more new command Renewal function is called, and then process is updated to currentElement.Can so carry out all elements that need to be updated need to being utilized More new command calls predefined renewal function, need not position front focus position coordinateses, so as to reduce the correlation of renewal Realize size of code.Achieve minimizing and realize code, reduce the purpose of the complexity of maintenance.
A kind of device of data processing is embodiments provided, as shown in figure 3, including:
Receiving unit 201, for the touch command of the currentElement of receiving user's input.
Wherein, currentElement is the element for obtaining focus.
Detector unit 202, for detecting whether the touch command of the currentElement of the reception of receiving unit 201 is that renewal refers to Order.
Wherein, more new command is used for calling predefined renewal function.
Further, more new command includes:Page-turning instruction or content update instruction.
Processing unit 203, for detect in detector unit 202 currentElement touch command be more new command when, root Process is updated to currentElement according to touch command.
Further, processing unit 203, are additionally operable to define renewal function.
Processing unit 203, is additionally operable to determine element to be updated, and increases more new command in element to be updated.
Wherein, the implementation method title of more new command is identical with the title of renewal function.
Specifically, processing unit 203, real specifically for increasing in the DOM Document Object Model DOM attributes of element to be updated Existing method name and the title identical more new command of renewal function.
Now, processing unit 203, specifically for the touch command in currentElement be more new command when, referred to according to renewal Renewal function is called in order, is updated process to currentElement.
A kind of Set Top Box is embodiments provided, including:The device of the data processing described in above-described embodiment.
So, all elements being updated for needs, directly can pre-define more in attribute of an element New command, when the touch command of this element is received, can be when touch command be more new command, directly according to more new command Renewal function is called, and then process is updated to currentElement.Can so carry out all elements that need to be updated need to being utilized More new command calls predefined renewal function, need not position front focus position coordinateses, so as to reduce the correlation of renewal Realize size of code.Achieve minimizing and realize code, reduce the purpose of the complexity of maintenance.
Finally it should be noted that:Above example only in order to technical scheme to be described, rather than a limitation;Although With reference to the foregoing embodiments the present invention has been described in detail, it will be understood by those within the art that:Which still may be used To modify to the technical scheme described in foregoing embodiments, or equivalent is carried out to which part technical characteristic; And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and Scope.

Claims (9)

1. a kind of method of data processing, it is characterised in that include:
The touch command of the currentElement of receiving user's input;The currentElement is the element for obtaining focus;
Whether the touch command for detecting the currentElement is more new command;The more new command be used for call predefined more New function;
When the touch command of the currentElement is more new command, the currentElement is carried out more according to the touch command New process.
2. method according to claim 1, it is characterised in that refer in the touch-control of the currentElement of the receiving user's input Before order, also include:
Define renewal function;
Determine element to be updated, and increase more new command in the element to be updated;The implementation method name of the more new command Claim identical with the title of the renewal function;
When the touch command in the currentElement is more new command, the currentElement is entered according to the touch command Row renewal is processed to be included:
When the touch command of the currentElement is more new command, according to the renewal instruction calls renewal function, to described CurrentElement is updated process.
3. method according to claim 1, it is characterised in that the more new command includes:Page-turning instruction or content update Instruction.
4. method according to claim 2, it is characterised in that described increase more new command bag in the element to be updated Include:
Increase the name of implementation method title and the renewal function in the DOM Document Object Model DOM attributes of the element to be updated Claim identical more new command.
5. a kind of device of data processing, it is characterised in that include:
Receiving unit, for the touch command of the currentElement of receiving user's input;The currentElement is the unit for obtaining focus Element;
Detector unit, for detecting whether the touch command of the currentElement of the receiving unit reception is more new command; The more new command is used for calling predefined renewal function;
Processing unit, for detect in the detector unit currentElement touch command be more new command when, according to The touch command is updated process to the currentElement.
6. device according to claim 5, it is characterised in that
The processing unit, is additionally operable to define renewal function;
The processing unit, is additionally operable to determine element to be updated, and increases more new command in the element to be updated;Described more The implementation method title of new command is identical with the title of the renewal function;
The processing unit, specifically for the touch command in the currentElement be more new command when, according to described update refer to Renewal function is called in order, is updated process to the currentElement.
7. device according to claim 5, it is characterised in that the more new command includes:Page-turning instruction or content update Instruction.
8. device according to claim 7, it is characterised in that
The processing unit, specifically for increasing implementation method in the DOM Document Object Model DOM attributes of the element to be updated The title identical more new command of title and the renewal function.
9. a kind of Set Top Box, it is characterised in that include:The device of the data processing described in any one of claim 5-8.
CN201610878465.6A 2016-10-09 2016-10-09 A kind of method of data processing, device and Set Top Box Pending CN106502655A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610878465.6A CN106502655A (en) 2016-10-09 2016-10-09 A kind of method of data processing, device and Set Top Box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610878465.6A CN106502655A (en) 2016-10-09 2016-10-09 A kind of method of data processing, device and Set Top Box

Publications (1)

Publication Number Publication Date
CN106502655A true CN106502655A (en) 2017-03-15

Family

ID=58294863

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610878465.6A Pending CN106502655A (en) 2016-10-09 2016-10-09 A kind of method of data processing, device and Set Top Box

Country Status (1)

Country Link
CN (1) CN106502655A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109284097A (en) * 2018-09-07 2019-01-29 武汉轻工大学 Realize method, equipment, system and the storage medium of complex data analysis

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101052114A (en) * 2006-04-05 2007-10-10 中兴通讯股份有限公司 Method for realizing page-turning function using direction key
CN202102410U (en) * 2011-06-02 2012-01-04 广州良师益友教育软件有限公司 Interface display management system
CN102625172A (en) * 2012-03-19 2012-08-01 深圳创维数字技术股份有限公司 Method for browsing webpage by using set top box and set top box
CN105892894A (en) * 2015-09-09 2016-08-24 北京奇虎科技有限公司 Screen scroll event conflict processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101052114A (en) * 2006-04-05 2007-10-10 中兴通讯股份有限公司 Method for realizing page-turning function using direction key
CN202102410U (en) * 2011-06-02 2012-01-04 广州良师益友教育软件有限公司 Interface display management system
CN102625172A (en) * 2012-03-19 2012-08-01 深圳创维数字技术股份有限公司 Method for browsing webpage by using set top box and set top box
CN105892894A (en) * 2015-09-09 2016-08-24 北京奇虎科技有限公司 Screen scroll event conflict processing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109284097A (en) * 2018-09-07 2019-01-29 武汉轻工大学 Realize method, equipment, system and the storage medium of complex data analysis

Similar Documents

Publication Publication Date Title
US10228835B2 (en) Method for displaying information, and terminal equipment
US10109079B2 (en) Method and apparatus for processing tab in graphical interface
CN103686289B (en) Intelligent television input through keyboard control method and intelligent television
CN101710936A (en) IPTV printscreen realization method and device based on set-top box
WO2012055714A1 (en) Automated adjustment of input configuration
CN103488419A (en) Operating method of communication terminal and communication terminal
CN101834938A (en) Device and method for realizing horizontal/vertical screen switching of mobile terminal
CN102752655A (en) Display method of electronic program guide
US10089006B2 (en) Display apparatus and the method thereof
CN110650240B (en) Display control adjusting method, device, terminal and computer readable storage medium
CN103747308A (en) Method and system for controlling smart television with analog keys, and mobile terminal
CN105183291A (en) Method and system for extracting information in display interface
US20150046294A1 (en) Display apparatus, the method thereof and item providing method
CN103533448A (en) Cursor control method of intelligent television and cursor control device thereof
CN112148168B (en) Icon moving method and device and electronic equipment
CN105892842A (en) Screen touch method and device
CN109963182A (en) A kind of compatible input method of remote controler, system, storage medium and television set
CN107656933A (en) A kind of voice broadcast method and device
CN104202635A (en) Method and system for switching usage mode of remote controller in accordance with current using scene of television
CN106502655A (en) A kind of method of data processing, device and Set Top Box
CN107068034A (en) A kind of method and device of screen display brightness adjustment
CN109858000A (en) Form processing method, device and system, storage medium and interactive intelligent panel
CN104572593A (en) Method, system and electronic device for processing letters
WO2008105574A1 (en) Easy handwriting user interface system and method for pen-input display
CN105872691A (en) Method and device for controlling browser

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170315

RJ01 Rejection of invention patent application after publication