Method and electronic device for displaying menu on apparatus
Abstract
A method and an electronic device for displaying a menu on an apparatus are provided in an embodiment of the present application. Classify a tree classification to layer menus according to levels of nodes in a result of the tree classification of objects, wherein the nodes at the same level are classified into the same layer menu. Space displaying the layer menus on a display interface of the apparatus according to an object number in each of the layer menus, and modify the layer menus by a service terminal. Achieve that use the same product technical framework to display the objects of different classification and different number to reduce the cost of iterative development.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A method for displaying a menu on apparatus, applied on a terminal, comprising:
classifying a tree classification to layer menus according to levels of nodes in a result of the tree classification of objects, wherein the nodes at the same level are classified into the same layer menu; space displaying the layer menus on a display interface of the apparatus according to an object number in each of the layer menus, and modifying the layer menus by a service terminal.
2 . The method according to claim 1 , wherein the step of displaying the layer menus on a display interface of the apparatus according to the object number in each of the layer menus comprises:
dividing the display interface into M areas which respectively display a N th layer menu to a (N+M) th layer menu; triggering the (N+M) th layer menu and entering a new display interface; and repeating the step of dividing the display interface into M areas which respectively display the N th layer menu to the (N+M) th layer menu and the step of triggering the ( N+M) th layer menu and entering the new display interface until all layer menus are completely displayed.
3 . The method according to claim 2 , the method further comprising:
performing a space extension to the layer menu on the display interface of the apparatus for accommodating more the objects according to an object number in each layer menu, wherein the space extension comprises a horizontal expansion and a vertical expansion.
4 . The method according to claim 3 , the method further comprising:
when a situation of a horizontal slide of the display interface or a horizontal scroll bar being pulled is detected, displaying a content of the menu corresponding to a part of the horizontal expansion; and/or when a situation of a vertical slide of the display interface or a vertical scroll bar being pulled is detected, displaying a content of the menu corresponding to a part of the horizontal expansion.
5 . The method according to claim 1 , wherein the step of modifying the layer menus by the service terminal comprises:
storing display information of each of the layer menus in the service terminal so as to control the display information of each of the layer menus by the service terminal, wherein the display information comprises a depth of the layer menus, an object number of the layer menus, an object content of the layer menus, a displaying style of the page where the layer menus located and a displaying rule of a next layer of the layer menus corresponding to the layer menus.
6 . The method according to claim 1 , before the step of classifying the tree classification to the layer menus according to the levels of the nodes in the result of the tree classification of objects, further comprising:
taking the tree classification to classify the objects waiting for display according to number and type of the objects, and obtaining the result of the tree classification of the objects, wherein a sub-classification of one object is corresponding to one of the nodes of the tree classification.
7 . A non-transitory computer-readable storage medium storing executable instructions that, when executed by an electronic device, cause the electronic device to:
classify a tree classification to layer menus according to levels of nodes in a result of the tree classification of objects, wherein the nodes at the same level are classified into the same layer menu; space display the layer menus on a display interface of an apparatus according to an object number in each of the layer menus, and modifying the layer menus by a service terminal.
8 . An electronic device, comprising:
at least one processor; and a memory communicably connected to the at least one processor; wherein, the memory is stored with instructions executable by the at least one processor, and the instructions are executed by the at least one processor to cause the at least one processor to: classify a tree classification to layer menus according to levels of nodes in a result of the tree classification of objects, wherein the nodes at the same level are classified into the same layer menu; space display the layer menus on a display interface of an apparatus according to an object number in each of the layer menus, and modifying the layer menus by a service terminal.
9 . The non-transitory computer-readable storage medium according to claim 7 , wherein the space displaying the layer menus on a display interface of the apparatus according to the object number in each of the layer menus comprises:
dividing the display interface into M areas which respectively display a N th layer menu to a (N+M) th layer menu; triggering the ( N+M) th layer menu and entering a new display interface; and repeating the step of dividing the display interface into M areas which respectively display the N th layer menu to the (N+M) th layer menu and the step of triggering the (N+M) th layer menu and entering the new display interface until all layer menus are completely displayed.
10 . The non-transitory computer-readable storage medium according to claim 9 , wherein the electronic device is further caused to:
perform a space extension to the layer menu on the display interface of the apparatus for accommodating more of the objects according to an object number in each layer menu, wherein the space extension comprises a horizontal expansion and a vertical expansion.
11 . The non-transitory computer-readable storage medium according to claim 10 , the electronic device is further caused to:
when a situation of a horizontal slide of the display interface or a horizontal scroll bar being pulled is detected, display a content of the menu corresponding to a part of the horizontal expansion; and/or when a situation of a vertical slide of the display interface or a vertical scroll bar being pulled is detected, display a content of the menu corresponding to a part of the vertical expansion.
12 . The non-transitory computer-readable storage medium according to claim 7 , wherein the modifying the layer menus by the service terminal comprises:
storing display information of each of the layer menus in the service terminal so as to control the display information of each of the layer menus by the service terminal, wherein the display information comprises a depth of the layer menus, an object number of the layer menus, an object content of the layer menus, a displaying style of a page where the layer menu located and a displaying rule of a next layer of the layer menus corresponding to the layer menus.
13 . The non-transitory computer-readable storage medium according to claim 7 , before classifying the tree classification to layer menus according to levels of nodes in a result of the tree classification of objects, the electronic device is further caused to :
take the tree classification to classify the objects waiting for display according to number and type of the objects, and obtain the result of the tree classification of the objects, wherein a sub-classification of one object is corresponding to one of the nodes of the tree classification.
14 . The electronic device according to claim 8 , wherein the space displaying the layer menus on a display interface of an apparatus according to the object number in each of the layer menus comprises:
dividing the display interface into M areas which respectively display a N th layer menu to a (N+M) th layer menu; triggering the (N+M) th layer menu and entering a new display interface; and repeating the step of dividing the display interface into M areas which respectively display the N th layer menu to the (N+M) th layer menu and the step of triggering the (N+M) th layer menu and entering the new display interface until all layer menus are completely displayed.
15 . The electronic device according to claim 14 , the at least one processor is further caused to:
perform a space extension to the layer menu on the display interface of the apparatus for accommodating more of the objects according to an object number in each layer menu, wherein the space extension comprises a horizontal expansion and a vertical expansion.
16 . The electronic device according to claim 15 , the at least one processor is further caused to:
when a situation of a horizontal slide of the display interface or a horizontal scroll bar being pulled is detected, display a content of the menu corresponding to a part of the horizontal expansion; and/or when a situation of a vertical slide of the display interface or a vertical scroll bar being pulled is detected, display a content of the menu corresponding to a part of the vertical expansion.
17 . The electronic device according to claim 8 , the at least one processor is further caused to:
store display information of each of the layer menus in the service terminal so as to control the display information of each of the layer menus by the service terminal, wherein the display information comprises a depth of the layer menus, an object number of the layer menus, an object content of the layer menus, a displaying style of the page where the layer menus located and a displaying rule of a next layer of the layer menus corresponding to the layer menus.
18 . The electronic device according to claim 7 , before classifying the tree classification to the layer menus according to the levels of the nodes in a result of the tree classification of the objects, the at least one processor is further caused to:
take the tree classification to classify the objects waiting for display according to number and type of the objects, and obtain the result of the tree classification of the objects, wherein a sub-classification of one object is corresponding to one of the nodes of the tree classification.Join the waitlist — get patent alerts
Track US2017168668A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.