Method and apparatus for displaying cascading menu
First Claim
1. A method comprising:
- displaying operating interfaces of a plurality of submenus in a cascading menu, the plurality of submenus comprising at least a first submenu;
determining that the first submenu is selected by a user based at least in part on a clicking event of the user;
selecting at least a second submenu from submenus currently in an expanded mode to shrink an operation interface of the at least second submenu based at least in part on an operation interface of the first submenu being in a collapsed mode, selecting the at least second submenu comprising;
selecting a currently expanded submenu having a level that is highest from one or more submenus that are located at levels higher than the first submenu to be the at least second submenu in response to determining that the one or more submenus that are located at the levels higher than the first submenu are currently in the expanded mode; and
selecting a currently expanded submenu having a level that is lowest from one or more submenus that are located at levels lower than the first submenu to be the second submenu in response to determining that no submenu that is located at a level higher than the first submenu is currently in the expanded mode;
expanding the operation interface of the first submenu after the operation interface of the at least second submenu is shrunk;
determining whether to expand an operation interface of a third submenu which is adjacent to the first submenu and located at a level lower than the first submenu based on a size of an operation interface of the cascading menu in response to the operation interface of a third submenu being in the collapsed mode;
expanding the operation interface of the third submenu;
counting a number of submenus that are currently in the collapsed mode; and
selecting at least a fourth submenu from the submenus that are currently in the expanded mode to shrink an operation interface of the fourth submenu when the number of submenus that are currently in the expanded mode reaches a predetermined threshold.
1 Assignment
0 Petitions
Accused Products
Abstract
The present disclosure discloses a method of displaying a cascading menu that includes a plurality of submenus. The method determines a first submenu as indicated for browsing by a user based on a clicking event of the user. When an operation interface of the first submenu is in a collapsed mode, a number of submenus that are currently in an expanded mode within an operation interface of the cascading menu is counted. When the number of submenus that are currently in the expanded mode reaches a defined threshold, at least a second submenu is selected from the submenus that are currently in the expanded mode, and an operation interface of the second submenu is shrunk. The operation interface of the first submenu is expanded. Therefore, a size of the operation interface of the cascading menu will not increase as the number of the expanded submenus increases. As such, the amount of a page space occupied by the cascading menu is reduced and utilization of the page space is improved. The present disclosure further discloses a terminal apparatus.
31 Citations
6 Claims
-
1. A method comprising:
-
displaying operating interfaces of a plurality of submenus in a cascading menu, the plurality of submenus comprising at least a first submenu; determining that the first submenu is selected by a user based at least in part on a clicking event of the user; selecting at least a second submenu from submenus currently in an expanded mode to shrink an operation interface of the at least second submenu based at least in part on an operation interface of the first submenu being in a collapsed mode, selecting the at least second submenu comprising; selecting a currently expanded submenu having a level that is highest from one or more submenus that are located at levels higher than the first submenu to be the at least second submenu in response to determining that the one or more submenus that are located at the levels higher than the first submenu are currently in the expanded mode; and selecting a currently expanded submenu having a level that is lowest from one or more submenus that are located at levels lower than the first submenu to be the second submenu in response to determining that no submenu that is located at a level higher than the first submenu is currently in the expanded mode; expanding the operation interface of the first submenu after the operation interface of the at least second submenu is shrunk; determining whether to expand an operation interface of a third submenu which is adjacent to the first submenu and located at a level lower than the first submenu based on a size of an operation interface of the cascading menu in response to the operation interface of a third submenu being in the collapsed mode; expanding the operation interface of the third submenu; counting a number of submenus that are currently in the collapsed mode; and selecting at least a fourth submenu from the submenus that are currently in the expanded mode to shrink an operation interface of the fourth submenu when the number of submenus that are currently in the expanded mode reaches a predetermined threshold. - View Dependent Claims (2, 3, 4, 5, 6)
-
Specification