The content of the invention
The user interface control method that same template is quoted in the page, device and intelligence electricity are directed to this application provides a kind of
Depending on to solve the problem of prior art needs consideration ID to conflict in stencil design and loading thus there is larger limitation.
In a first aspect, this application provides a kind of user interface control method for being directed to reference same template in the page;Should
Method includes:
Only local mark is respectively configured for each template to be added being loaded in the default page;The default page is institute
State the page shown in user interface;
The local unique mark that is designated respectively with each template in the default page creates a viewing area
Domain, and load in the viewing area and described locally to identify corresponding template.
Optionally, it is that each template to be added being loaded in the default page is respectively configured before only local mark, also wraps
Include:
The data that high in the clouds is issued are parsed by the initialization function of the default page, described to be added be loaded in is obtained
Each template in the default page.
Optionally, loaded in the viewing area it is described locally identify corresponding template, including:
Obtain the configuration information of each template successively according to default loading sequence;Wherein, the configuration information includes
The positional information of each content tab in the size information of the template and the template;
According to the size information of the template, it is determined that the viewing area consistent with the local mark of the template is described pre-
If the position in the page;
Each content mark in the template is filled in the viewing area according to the positional information of the content tab
Label.
Optionally, methods described also includes:
Determine the corresponding navigation direction of the navigation instruction;
Judge that whether current content tab is positioned at the edge of corresponding template on the navigation direction;
When current content tab is not located at the edge of corresponding template on the navigation direction, according to the Current Content
The navigation information of label determines the object content label navigate to;
When current content tab is located at the edge of corresponding template on the navigation direction, judge in the navigation direction
Whether template is located at the edge of the default page where the upper Current Content label;
When template where the Current Content label on the navigation direction is not located at the edge of the default page,
Determine next template of template where the Current Content label on the navigation direction, and by next template middle-range
The label nearest from the Current Content label is used as the object content label navigate to.
Optionally, using the nearest label of Current Content label is used as the mesh navigate to described in distance in next template
Content tab is marked, including:
Obtain all edge marks in next template of template where the Current Content label on the navigation direction
Label;
Each edge label of next template and the distance of the Current Content label are calculated respectively;
It regard an edge label nearest with the Current Content tag distances as the object content label.
Optionally, judge that whether current content tab is positioned at the edge of corresponding template on the navigation direction, including:
Judge to whether there is object content corresponding with the navigation direction in the navigation information of the Current Content label
Label;
When in the navigation information of the Current Content label be not present object content label corresponding with the navigation direction
When, judge that the Current Content label is located at the edge of corresponding template.
Optionally, judge that whether current content tab is positioned at the edge of corresponding template on the navigation direction, including:
The edge label record information of template according to where the Current Content label, judges to be taken in the navigation direction
Whether preceding content tab is located at the edge of corresponding template;
Wherein, the edge label record information is included in the position for receiving and predefining and recording before the navigation instruction
In all the elements label of the template edge.
Second aspect, present invention also provides a kind of user interface control device for being directed to reference same template in the page;
The device includes:
Local mark dispensing unit, it is only local for being respectively configured for each template to be added being loaded in the default page
Mark;The default page is the page that shows in the user interface;
Loading Control unit, for being locally designated unique mark respectively with each template in the default page
Know and create a viewing area, and load in the viewing area and described locally to identify corresponding template.
Optionally, described device also includes:Template filter unit;
The template filter unit is configured as:
Obtain the basic configuration information of the default page;The basic configuration information includes initialization function;
The data that high in the clouds is issued are parsed by the initialization function, obtain needing to load on the default page
In multiple template.
Optionally, the Loading Control unit is configured as:
Obtain the configuration information of each template successively according to default loading sequence;Wherein, the configuration information includes
The positional information of each content tab in the size information of the template and the template;
According to the size information of the template, it is determined that the viewing area consistent with the local mark of the template is described pre-
If the position in the page;
Each content mark in the template is filled in the viewing area according to the positional information of the content tab
Label.
Optionally, described device also includes:Navigation control unit;
The navigation control unit is configured as:
When receiving navigation instruction, the corresponding navigation direction of the navigation instruction is determined;
Judge that whether current content tab is positioned at the edge of corresponding template on the navigation direction;
When current content tab is not located at the edge of corresponding template on the navigation direction, according to the Current Content
The navigation information of label determines the object content label navigate to;
When current content tab is located at the edge of corresponding template on the navigation direction, judge in the navigation direction
Whether template is located at the edge of the default page where the upper Current Content label;
When template where the Current Content label on the navigation direction is not located at the edge of the default page,
Determine next template of template where the Current Content label on the navigation direction, and by next template middle-range
The label nearest from the Current Content label is used as the object content label navigate to.
Optionally, to realize the nearest label of Current Content label is used as navigation described in distance in next template
The object content label arrived, the navigation control unit can be specifically configured as:
Obtain all edge marks in next template of template where the Current Content label on the navigation direction
Label;
Each edge label of next template and the distance of the Current Content label are calculated respectively;
It regard an edge label nearest with the Current Content tag distances as the object content label.
Optionally, judge that whether current content tab is positioned at the edge of corresponding template on the navigation direction to realize,
The navigation control unit can be specifically configured as:
Judge to whether there is object content corresponding with the navigation direction in the navigation information of the Current Content label
Label;
When in the navigation information of the Current Content label be not present object content label corresponding with the navigation direction
When, judge that the Current Content label is located at the edge of corresponding template.
Optionally, judge that whether current content tab is positioned at the edge of corresponding template on the navigation direction to realize,
The navigation control unit can be specifically configured as:
The edge label record information of template according to where the Current Content label, judges to be taken in the navigation direction
Whether preceding content tab is located at the edge of corresponding template;
Wherein, the edge label record information is included in the position for receiving and predefining and recording before the navigation instruction
In all the elements label of the template edge.
The third aspect, present invention also provides a kind of intelligent television, including:Processor and memory;The processor can
To perform the program stored in the memory or instruction, so as to realize with the part described in the various implementations of first aspect
Or Overall Steps.
From above technical scheme, the embodiment of the present application is distinguished by treating each template loaded in the default page
The different local mark of configuration, even if so that the first original mark primary ID of two or more templates is identical (i.e. existing
ID conflict situations in technology), it can also be made a distinction by different local marks, eliminate ID collision problems;Meanwhile,
In the same default page, viewing area is created with the local unique mark that is designated, each viewing area is used to be loaded with
The identical template locally identified;It can be seen that, a template can be uniquely determined by locally identifying in the present embodiment, and it is unique true
A fixed viewing area, so that no matter whether its primary ID is identical can load in the same default page for multiple template, structure
Into combination page so that whole UI interface contents are very clear, it is not necessary to switched between the different pages.
In addition, the present embodiment is not suitable for for the mode that the existing navigation information for being based only on content tab is navigated
The situation of combination page is there is provided new navigation control method, i.e., by comprehensive descision Current Content mark in corresponding template
Position, and Current Content label where template it is whole preset the page in position, to determine a secondary mesh navigate to
Content tab is marked, so as to can not only realize the navigation in template, navigation between template can also be realized.
Embodiment
A kind of flow chart for user interface control method that Fig. 2 provides for the embodiment of the present application, this method is applied to intelligence
The equipment such as TV, are particularly suitable for use in and the situation of same template are quoted in the user interface of equipment.
Wherein, the same template refers to because Identity Code (Identity, ID) is identical and is determined as phase by processor
Two or more same templates;In fact, when two template ID that high in the clouds is provided are identical, wherein the content filled may
It is different;Prior art is simply come out the two by different page loaded and displayeds, although ID can be avoided to conflict, but
User is caused to check the template of different content by page layout switch simultaneously.
In view of the above-mentioned problems, referring to Fig. 2, the user interface control method that the embodiment of the present application is provided comprises the following steps:
S201, creates the default page;The default page is the page that shows in the user interface.
S202, selection needs to load on the multiple template in the default page from the template that high in the clouds is issued.
Wherein, the first of any two template the identical or different original Identity Code of original mark (Identity,
ID) can be with identical, can also be different.
S203, is respectively the only local mark of each template configuration.
S204, unique mark wound is locally designated in the default page with the local mark of each template respectively
A viewing area is built, and the local mark is loaded in the viewing area and locally identifies corresponding template.
When target device is started shooting, processor creates the default page (step S201) of a blank first, for loading
Required template, to form the UI pages for realizing man-machine interaction;Then determine that needing to load on this presets in step S202
Template (may only have one, it is also possible to have multiple) in the page.Specifically, target device can receive that high in the clouds issues it is all
Template data (including html files, the configuration information of each template etc.), then therefrom selection needs to load in the default page
Template.
It is assumed that determining to need the template loaded in the default page to have 3 by step S202, respectively primary ID is
The Web TV template that local audio-visual template that 001 application object template, primary ID are 001, primary ID are 0002.It can be seen that,
Application object template is identical with the first original mark of locally applied template, according to prior art, the application object template and sheet
The audio-visual template in ground can not be loaded in the same page, it is necessary to given up one of them or loaded on the two in two pages.But
It is that, using the embodiment of the present application, in step S203, target device is that only local mark is respectively configured in above-mentioned 3 templates,
Using the local mark as distinguishing in terminal device, the mark of identification different templates;And then in step S204, respectively with each
The local unique mark that is designated of the template creates a viewing area, and loads in the viewing area the local mark
Corresponding template.
For example, the local sheet for being designated A01, being above-mentioned local audio-visual template configuration configured for above-mentioned application object template
Ground mark can be M01, and the local mark for being above-mentioned Web TV template configuration can be T01;Then in step S204, such as
Shown in Fig. 3 A, in the default page 310 of target device create three viewing areas (shown in dotted line frame), ID be respectively M01,
T01 and A01;Wherein, the local local audio-visual template for being designated M01 is loaded in ID is M01 viewing area, is T01 in ID
Viewing area in load the local Web TV template for being designated T01, local mark is loaded in ID is A01 viewing area
For the default page after the completion of A01 application object template loading as shown in Figure 3 B, it is achieved thereby that primary ID identical application
Process template and local audio-visual template have been simultaneously displayed in the same page, and are not in the problem of ID conflicts.
It can be seen that, in the present embodiment, target device is that each template that load in its user interface is configured uniquely
Local mark, will the local mark as the mark that different templates are distinguished, recognized in target device, so, even if to load
Template primary ID it is identical, it is also different that it, which distributes obtained local mark, can be made a distinction by processor, so as to
Each template is loaded in the same default page with realizing, is not in the problem of ID conflicts.In addition, multiple template is loaded
In the same default page, combination page is constituted, it is also possible that whole UI interface contents are very clear, user need not be not
Switched over between the page.
In one feasible embodiment of the application, the primary ID of the local mark and corresponding template can also be carried out
Combination, the combination ID that combination is obtained is used as the mark that each template is distinguished in target device.Application program described earlier
Exemplified by template, the corresponding combination mark A01001 of the application object template can be obtained using its local mark A01 as prefix.
In the present embodiment, step S204 loads on multiple template a kind of specific implementation of the same page, i.e.,:With
In the default page of loading template, respectively each one viewing area of template establishment, and made with the local mark of the template
For the unique mark of corresponding viewing area, in order to target device to the identification of each viewing area, call.Practical application
When, the source code for presetting the page can be a html file, and described one viewing area of establishment is i.e. in the default page correspondence
Html files in add one<div>Label;Meanwhile, the source code of each template is also html files, by the html files
It is appended to and is locally identified with identical<div>In label, then target device is when performing the source code of the default page, you can
Each template is loaded into corresponding viewing area.
In one feasible embodiment of the application, when creating viewing area, its width and/or height can wouldn't be true
It is fixed, but determined when loading corresponding template according to the width and height of template so that template loading procedure is more flexible.Separately
Outside, the screen size that the width and/or height of the page be also not necessarily intended in target device is preset identical, as shown in Figure 3 B,
The width of the default page can be more than the screen width of target device, and viewing area 313 is in current time only part display, user
The page can be preset by Navigation Control to be moved to the left, so that the other guide page in viewing area 313 is shown in screen
On.In view of this, person skilled is not required to consider the different screen size of different terminal equipment, only needed in design template
Pattern according to needed for each template sets the parameters such as its width, height, i.e. when can reduce stencil design using the present embodiment
The restrictive condition settings of parameter such as (including in terms of) ID distribution, the widths of template so that stencil design process is more
Flexibly, stencil design efficiency is improved.
In one feasible embodiment of the application, the selection from the template that high in the clouds is issued described in step S202 needs to add
The multiple template in the default page is loaded in, specifically be may comprise steps of:
S2021, obtains the basic configuration information of the default page;
Above-mentioned basic configuration information is also obtained by high in the clouds, specifically includes the default page necessary, unrelated with specific template
Information, as described preset the page initialization function, the initialization for controlling full page.
In the present embodiment, the configuration information is applied not only to provide the initialization function, can also be according to the substrate
Configuration information loading associated documents (being specifically as follows the formatted files such as html, css, js), make to show some bases in the default page
This information, status bar that the region as shown in label 314 in Fig. 3 B is shown (including time, weather, temperature, USB and network connection shape
The information such as state) and for indicate the corresponding content type in each viewing area prompt message (" Media ", " Terra TV " and
“All Apps”);Do not influenceed, i.e., no matter finally loaded on default by specific template according to the content that configurations information is loaded
Which template in the page is, these contents are all without change.
The data that high in the clouds is issued are parsed by S2022 by the initialization function, obtain it is to be added be loaded in it is described default
Multiple template in the page.
For example, learnt according to basic configuration information, at least needed in the default page display " Media ", " Terra TV " and
" template of All Apps " three types is then parsed by all templates that initialization function is issued to high in the clouds, determines it
Each self-corresponding type, and therefrom select the target of at least one " Media " type, at least one " mould of Terra TV " types
Plate, and at least one " template of All Apps " types.
In one feasible embodiment of the application, being loaded in the viewing area described in step S204 is described local
Corresponding template is identified, specifically be may comprise steps of:
S2041, the configuration information of each template is obtained according to default loading sequence successively;Wherein, it is described to match somebody with somebody confidence
Cease the positional information of each content tab in the size information and the template that include the template;
In the present embodiment, " the default loading sequence " can be the downloading order for each template for needing loading, also may be used
, can be according to each template (or corresponding viewing area) in the default page in such as Fig. 3 B to be other orders set in advance
In sequence of positions from left to right, first viewing area (ID=' M01 ') corresponding template (i.e. above-mentioned of the loading positioned at the leftmost side
The audio-visual template in ground) and then load positioned at middle viewing area (ID=' T01 ') corresponding template (i.e. above-mentioned Web TV mould
Plate), finally loading is located at the corresponding template in viewing area (ID=' A01 ') (i.e. above-mentioned application object template) of the rightmost side.
In the present embodiment, the configuration information of template can specifically include the size informations such as height, the width of the template, and the back of the body
The style informations such as scape color;Wherein, the width of template and height are not limited to concrete numerical value, can also be a calculating function (example
Such as, according to the width of the calculation template such as the width of each content tab, spacing in same a line).
In the present embodiment, the configuration information of above-mentioned template also includes each content tab (such as application program mould in the template
Plate), corresponding positional information etc.;For example, the positional information of some content tab in template can be with " position " attribute
To record, it can specifically be designated as " position ":[left, top, width, hight], the signal of attribute information shown in reference picture 4
Figure, parameter " left " represents the left hand edge of the content tab to the distance of the left hand edge of template, and parameter " top " represents the content mark
The top edge of label is to the distance of the top edge of template, and parameter " width " represents the width value of the content tab, parameter " hight "
Represent the height value of the content tab.
S2042, according to the size information of the template, it is determined that the viewing area consistent with the local mark of the template exists
Position in the default page;
For example, create it is corresponding it is local be designated M01 viewing area 311 when, processor is only capable of according to formwork style
Determine that the left hand edge of the viewing area 311 is arrived to the distance of the left hand edge of the default page, and the top edge of the viewing area 311
The distance of the top edge of the default page;Locally being designated M01 in basis and get needs to load on the local of the viewing area 311
After the width and height of audio-visual template, you can to further determine that the width of the viewing area 311, height (or determine that this shows
Show the right hand edge in region 311 to the distance of default page right hand edge, and the viewing area 311 lower edge to presetting under the page
The distance at edge) so that the viewing area 311 is determined completely in the default page.
S2043, the mould is filled according to the positional information and size information of the content tab in the viewing area
Each content tab in plate.
After being determined completely in viewing area, further determined according to the positional information of each content tab and size information every
Individual content tab corresponding position in the viewing area, so that the content tab is loaded at the position.
Optionally, the configuration information of above-mentioned template, can also include the dynamic content mark of each needs dynamic more new content
Sign corresponding data format " dataFormat " and data generating function " generateDataFunction ";The data generate letter
Several enters content-data and the data format that ginseng issues for high in the clouds " dataFormat ".It is determined that the loading position of dynamic content label
Postpone, can be corresponding interior by the dynamic content label by calling data generating function " generateDataFunction "
Holding data according to data format " dataFormat " is filled into corresponding position in viewing area.
From above technical scheme, using the embodiment of the present application, the size of each template need not adapt to objectives
The screen size of equipment, so that in the stencil design stage, need to only determine the pattern required for the template and need the content added
The information such as size, the relative position of label, it is not necessary to width, height for the screen size design template of objectives equipment
Etc. parameter, these parameters even can be without determining concrete numerical value, but in user interface loading procedure, according to each content
The size and relative position information of label calculate obtain in real time.Therefore, the embodiment of the present application can reduce stencil design limitation,
Improve the flexibility ratio and design efficiency of stencil design.
Above example describes the user interface loading control method in user interface control method, obtained user circle
Face is the combination page being made up of multiple template;On this basis, the user interface control method that the embodiment of the present application is provided is also
Including user interface navigation control method;As shown in figure 5, after above-mentioned steps S205, it is at least further comprising the steps of:
S205, when receiving navigation instruction, the position in corresponding template is identified according to Current Content, and current interior
Hold position of the label place template in the whole default page to determine a secondary object content label navigate to.
In the present embodiment, because the user interface ultimately generated is the combination page, i.e., wherein simultaneously comprising multiple template,
The navigation that can be not only related in navigation procedure between two adjacent content labels for belonging to same template (is led in template
Boat), it can also be related to the navigation (being navigated i.e. between template) between two adjacent content labels for belonging to different templates;And due to each
Individual template not can determine that its relative position relation between other templates before loading in the above-mentioned default page, so that
The navigation information of each label is also impossible to include the information realized and navigated between template in template, therefore existing according to navigation information
Can not be suitable for combination page described herein come the mode for the navigation for realizing user interface.
In view of this, reference picture 6, in a feasible embodiment, realize the navigation to combination page in step S205
The specific method of control may include steps of:
S2051, when receiving navigation instruction, determines the corresponding navigation direction of the navigation instruction;
S2052, judges that whether current content tab is positioned at the edge of corresponding template on the navigation direction, if it is,
Step S2054 is then performed, step S2053 is otherwise performed;
S2053, when current content tab is not located at the edge of corresponding template on the navigation direction, works as according to described
The navigation information of preceding content tab determines the object content label navigate to;
S2054, when current content tab is located at the edge of corresponding template on the navigation direction, judges to lead described
Whether template where the Current Content label is located at the edge of the default page on boat direction, if it is, explanation is current
Next content tab is not present on navigation direction, navigation terminates, otherwise performs step S2055;
S2055, template is not located at the default page where the Current Content label on the navigation direction
During edge, next template of template where the Current Content label on the navigation direction is determined, and will be described next
The nearest label of Current Content label is used as the object content label navigate to described in distance in template.
For the combination page obtained by the User Page control method described in the present embodiment, when in same template not
During with being navigated between content tab, corresponding object content directly can be determined according to the navigation information of Current Content label
Label (step S2053).
Wherein, the navigation information of each content tab specifically can be only fitted in the configuration information of corresponding template, the navigation
Information be used to indicating by the content tab upwards/down/left/right four direction navigate when which content tab can be reached respectively.
For example, some content tab (assuming that its ID is L0) corresponding navigation information can record as follows by attribute " nav ":
"nav":{
"downTo":"L1",
"upTo":"L2",
"rightTo":"AUTO",
"leftTo":"L3"
}
Above-mentioned L1, L2 and L3 are the ID of the content tab adjacent with content tab L0, from above-mentioned navigation information, by
Content tab L0 down of navigation reaches the content tab that (" downTo ") ID is L1, and it is L2's to navigate to upwards up to (" upTo ") ID
Content tab, navigates to up to the content tab that (" leftTo ") ID is L3 to the left.
When current content tab is not located at the edge of corresponding template on navigation direction, illustrate on the navigation direction,
The content tab adjacent with Current Content label is certainly existed inside the template, the adjacent content tab can be by current interior
The navigation information for holding label is determined.
And when on navigation direction, when Current Content label is located at the edge of template, illustrate on the navigation direction, the mould
The content tab adjacent with Current Content label is not present in intralamellar part.For example, when the navigation direction determined according to navigation instruction is
To the right during navigation (" rightTo "), if Current Content label is located at the right hand edge of the template, i.e., inside the template, by working as
In the absence of other guide label on the direction of preceding content tab to the right, " rightTo " corresponding tag ID can not in navigation information
It is determined that (as shown in navigation information exemplified above, can mark as AUTO ", rather than some content tab ID), therefore need
Judge that current template where content tab is with the presence or absence of next template (i.e. step S2054, namely judgement on direction to the right
The right side of template whether there is adjacent forms where Current Content label).
If there is no next template, then template where illustrating Current Content label is located at the right of the default page
Other guide label is not present in edge, namely the right side of Current Content label, it is impossible to which realization is navigated to the right, and navigation terminates;Conversely, such as
There is next template in fruit, then object content label should be located in next template, under the present embodiment will be described
A content tab nearest apart from Current Content label is real as object content label (i.e. step S2055) in one template
Navigation between existing template.
As seen from the above embodiment, in the present embodiment, for the combination page being made up of multiple template, with reference to in current
Hold the position judgment of label, and to the position judgment of template where Current Content label, realize precisely leading on any direction
Boat, including realize the navigation in same template, and the navigation between adjacent forms.
In one feasible embodiment of the application, by described in distance in next template in above-mentioned steps S2055
The nearest label of Current Content label can calculate every in next template respectively as the object content label navigate to
One content tab is to the distance of the Current Content label, and the corresponding content tab of chosen distance minimum value is used as object content
Label.
, can also be true by following specific steps in above-mentioned steps S2055 in the application in another feasible embodiment
Object content label in fixed next template:
Obtain all edge marks in next template of template where the Current Content label on the navigation direction
Label;
Each edge label of next template and the distance of the Current Content label are calculated respectively;
It regard an edge label nearest with the Current Content tag distances as the object content label.
It is anticipated that, the Current Content label is located at the edge of corresponding template on navigation direction, and there is institute
In the case of stating next template, the content tab nearest apart from the Current Content label is necessarily located at next mould
The edge of plate, therefore, can first determine all edge labels of next template, only calculate the edge in the present embodiment
Label is to the distance of Current Content label, and the corresponding edge content label of chosen distance minimum value, can as object content label
To reduce to a certain extent apart from amount of calculation.
It is the edge label that next template is quickly determined in navigation procedure in the present embodiment, can be in template
In loading procedure, the edge label of the template is just predefined, and the corresponding default storage of ID deposits of the edge label is single
In member, so that it needs to be determined that during the edge label of some template in navigation procedure, directly from the corresponding memory cell of the template
In acquire.For example, can be each one array of template definition, the ID of its all edge label be sequentially stored into the array
In.
It is further to reduce apart from amount of calculation in the present embodiment, can also be added when storing edge label for distinguishing
It is particularly located at the information at which edge (left hand edge/right hand edge/top edge/lower edge) of template, e.g., can be in the array
In simultaneously store respective edges label positional information;And for example, can without storage of array, but by 4 row n arrange matrix come
The ID of the edge label is stored, wherein, the edge label in every a line is located at same edge (e.g., matrix of corresponding template
The storage of the 0th row positioned at the ID of the content tab of template left hand edge, content tab of the 1st row storage positioned at template right hand edge
ID, the storage of the 2nd row is positioned at the ID of the content tab of template top edge, and the storage of the 3rd row is positioned at the content tab of template lower edge
ID).For example, when navigation direction is to the right, it may be determined that in step S2055, as object content label, (distance is current interior
The nearest content tab of molar plate) necessarily positioned at next template left hand edge some content tab, then now
All left hand edge labels of next template only need to be obtained, its distance with Current Content label are calculated respectively, so that really
Determine minimum range, and then determine object content label.
, specifically can be according to where Current Content label in step S2052 in one feasible embodiment of the application
The corresponding edge label record information of template, to judge whether current content tab is located at corresponding template on the navigation direction
Edge;The edge label record information be store in the memory cell such as above-mentioned array or matrix be located at corresponding template edge
All the elements label ID.For example, when navigation direction is to the right, the edge of template where by inquiring about Current Content label
Label record information, judge Current Content label whether be located at it where template right hand edge, if it is, explanation is to the right
Current content tab is located at the edge of corresponding template on navigation direction, namely illustrates that now object content label is not in corresponding template
Inside, and in its adjacent template.
, can also leading according to Current Content label in step S2052 in the application in another feasible embodiment
Whether information real-time judge of navigating current content tab on the navigation direction is located at the edge of corresponding template;Specifically, judging
It whether there is object content label corresponding with the navigation direction in the navigation information of the Current Content label, if do not deposited
Then judging that the Current Content label is located at the edge of corresponding template.
Still by taking navigation informations of the ID in foregoing embodiments for L0 content tab as an example, when using the content tab as current
, when navigation direction is to the left, from corresponding navigation information, there is corresponding object content mark when navigating to the left in content tab
Label, its ID is that L3, i.e. Current Content label are not at the left hand edge of corresponding template.And when navigation direction is to the right, by right
The navigation information " AUTO " answered is understood, inside corresponding template, and Current Content label is not present adjacent on direction to the right
Another content tab, namely Current Content label are located at the right hand edge of corresponding template.Therefore, above-mentioned deterministic process equivalent to,
Whether be " AUTO ", if it is, can be determined that Current Content if judging navigation information of the Current Content label on navigation direction
Label is located at the edge of corresponding template on the navigation direction.
Referring to Fig. 7, the structural representation of the user interface control device one embodiment provided for the application.Described device
Can be previous embodiment in intelligent television, specially intelligent television internal or external set top box or the signal of other forms
Processing unit, for performing the user interface control method that any embodiment is provided above, it is particularly suitable for use in the user interface
Quote the situation of same template.
As shown in fig. 7, the user interface control device includes:
Template filter unit 710, for from the template that high in the clouds is issued selection need to load on it is multiple in the default page
Template;The default page is the page shown in the user interface, and the primary ID of any two back(ing) board to be added can phase
Together, can also be different;
Local mark dispensing unit 720, for being respectively the only local mark of each template configuration;
Loading Control unit 730, for being designated only with the local of each template respectively in the default page
One mark creates a viewing area, and loads in the viewing area and described locally to identify corresponding template.
From above-described embodiment as can be seen that user interface control device by matching somebody with somebody respectively to each template downloaded from high in the clouds
Different local marks are put, even if so that identical (the ID conflicts i.e. of the prior art of the primary ID of two or more templates
Situation), it can also be made a distinction by different local marks, eliminate ID collision problems;Meanwhile, in the same default page
In, viewing area is created with the local unique mark that is designated, each viewing area is used to be loaded with identical local mark
Template;It can be seen that, a template can be uniquely determined by locally identifying in the present embodiment, and uniquely determine a viewing area
Domain, so that no matter whether its primary ID is identical can load in the same default page for multiple template, constitutes combination page, makes
Obtain whole UI interface contents very clear, it is not necessary to switched between the different pages.
In a feasible embodiment, above-mentioned template filter unit 710 can be specifically configured as:
Obtain the basic configuration information of the default page;The basic configuration information includes initialization function;
The data that high in the clouds is issued are parsed by the initialization function, obtain needing to load on the default page
In multiple template.
In a feasible embodiment, above-mentioned Loading Control unit 730 can be specifically configured as:
Obtain the configuration information of each template successively according to default loading sequence;Wherein, the configuration information includes
The positional information of each content tab in the size information of the template and the template;
According to the size information of the template, it is determined that the viewing area consistent with the local mark of the template is described pre-
If the position in the page;
Each content mark in the template is filled in the viewing area according to the positional information of the content tab
Label.
From above technical scheme, using the embodiment of the present application, the size of each template need not adapt to objectives
The screen size of equipment, so that in the stencil design stage, need to only determine the pattern required for the template and need the content added
The positional information of label, it is not necessary to for parameters such as width, the height of screen size design template of objectives equipment, these
Parameter even can be without determining concrete numerical value, but in user interface loading procedure, according to the size of each content tab
Calculate and obtain in real time with relative position information.Therefore, the embodiment of the present application can reduce stencil design limitation, improve template and set
The flexibility ratio and design efficiency of meter.
The structural representation of another embodiment of the user interface control device that Fig. 8 provides for the application.Shown in Fig. 7
On architecture basics, Fig. 8 shown devices also include:
Navigation control unit 740, for when receiving navigation instruction, according to Current Content mark in corresponding template
Template where position, and Current Content label is determined in a secondary target navigate in the whole position preset in the page
Hold label.
In a feasible embodiment, the navigation control unit 740 can be specifically configured as:
When receiving navigation instruction, the corresponding navigation direction of the navigation instruction is determined;
Judge that whether current content tab is positioned at the edge of corresponding template on the navigation direction;
When current content tab is not located at the edge of corresponding template on the navigation direction, according to the Current Content
The navigation information of label determines the object content label navigate to;
When current content tab is located at the edge of corresponding template on the navigation direction, judge in the navigation direction
Whether template is located at the edge of the default page where the upper Current Content label;
When template where the Current Content label on the navigation direction is not located at the edge of the default page,
Determine next template of template where the Current Content label on the navigation direction, and by next template middle-range
The label nearest from the Current Content label is used as the object content label navigate to.
It can be seen that, in the present embodiment, for the combination page being made up of multiple template, with reference to the position to Current Content label
Judge, and to the position judgment of template where Current Content label, realize the accurate navigation on any direction, including realize same
Navigation in one template, and the navigation between adjacent forms.
In addition, the embodiment of the present application additionally provides a kind of intelligent television, including:For receiving template and phase that high in the clouds is issued
The network interface of pass configuration information, the memory for storing computer executable instructions, and, for performing the memory
The processor of the computer executable instructions of middle storage.Wherein, processor is by performing the computer executable instructions, can be with
The user interface control method that any embodiment is provided above is realized, that is, realizes and selects to need from the template that network interface is received
The multiple template of user interface is loaded on, the local mark different by increasing distinguishes the multiple template, and will be described
Multiple template is loaded in the same page, obtains the user interface of combination page form, and realizes the essence in the combination page
Quasi- navigation.
In the specific implementation, the application also provides a kind of computer-readable storage medium, wherein, the computer-readable storage medium can be stored
There is program, the program may include part or all of in each embodiment for the user interface control method that the application is provided when performing
Step.Described storage medium can be magnetic disc, CD, read-only memory (English:Read-only memory, referred to as:
ROM) or random access memory (English:Random access memory, referred to as:RAM) etc..
It is required that those skilled in the art can be understood that the technology in the embodiment of the present application can add by software
The mode of general hardware platform realize.Understood based on such, the technical scheme in the embodiment of the present application substantially or
Say that the part contributed to prior art can be embodied in the form of software product, the computer software product can be deposited
Storage is in storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are to cause a computer equipment (can be with
It is personal computer, server, or network equipment etc.) perform some part institutes of each embodiment of the application or embodiment
The method stated.
Between the embodiment of each in this specification identical similar part mutually referring to.Especially for device and meter
For the embodiments such as calculation machine storage medium, because it is substantially similar to embodiment of the method, so description is fairly simple, correlation
Place is referring to the explanation in embodiment of the method.
Above-described the application embodiment does not constitute the restriction to the application protection domain.