[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN113641277B - Menu bar implementation method and system, computer program product and readable storage medium - Google Patents

Menu bar implementation method and system, computer program product and readable storage medium Download PDF

Info

Publication number
CN113641277B
CN113641277B CN202110744635.2A CN202110744635A CN113641277B CN 113641277 B CN113641277 B CN 113641277B CN 202110744635 A CN202110744635 A CN 202110744635A CN 113641277 B CN113641277 B CN 113641277B
Authority
CN
China
Prior art keywords
menu
display
menu bar
bar
items
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.)
Active
Application number
CN202110744635.2A
Other languages
Chinese (zh)
Other versions
CN113641277A (en
Inventor
韩佳琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seashell Housing Beijing Technology Co Ltd
Original Assignee
Seashell Housing Beijing Technology 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 Seashell Housing Beijing Technology Co Ltd filed Critical Seashell Housing Beijing Technology Co Ltd
Priority to CN202110744635.2A priority Critical patent/CN113641277B/en
Publication of CN113641277A publication Critical patent/CN113641277A/en
Application granted granted Critical
Publication of CN113641277B publication Critical patent/CN113641277B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Landscapes

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

Abstract

Embodiments of the present invention provide a menu bar implementation method and system, a computer program product, and a readable storage medium, wherein the method includes: creating a menu layout, wherein the menu layout at least comprises a first menu bar; receiving a pre-display menu item, and determining a maximum capacity threshold n of a first menu bar; in response to the number of pre-display menu items being greater than n, adding n-1 pre-display menu items to the first menu bar, and adding a preset button in the first menu bar; the menu layout also comprises a second menu bar, and the rest of the pre-display menu items are added into the second menu bar to form a first view menu bar composed of the pre-display menu items; the preset button is used for controlling the display and the hidden of the second menu bar. According to the embodiment of the invention, menu items are dynamically added according to the pre-display menu items and the threshold value, and the display and the hidden of the folding menu are controlled through the preset button to realize the folding menu bar, so that a better folding effect is realized, and the purpose of separating business from components is achieved.

Description

Menu bar implementation method and system, computer program product and readable storage medium
Technical Field
The present invention relates to the field of business processing, and in particular, to a menu bar implementation method and system, a computer program product, and a readable storage medium.
Background
In the development of Android at a mobile terminal, some situations may be encountered, a suspension menu bar needs to be added on a page, and if more menu items exist, a part of menu items are received in the folding menu bar. At present, the implementation mode of the menu items mainly writes all the menu items into the menu, and controls the display and the hidden of the corresponding menu items according to the issued data, but the mode has low expansibility, the service is easy to couple with the components, the layout of a plurality of menu items is required to be maintained locally, and if the folding effect is expected to be realized, the implementation of the mode is difficult. Thus, there is a need for a simple and efficient implementation.
Disclosure of Invention
The invention provides a menu bar implementation method and system, a computer program product and a readable storage medium, which are used for solving the technical defects in the prior art.
The invention provides a menu bar implementation method, which comprises the following steps:
creating a menu layout, wherein the menu layout at least comprises a first menu bar;
receiving a pre-display menu item, and determining a maximum capacity threshold n of the first menu bar;
in response to the number of the pre-display menu items being greater than n, adding n-1 pre-display menu items to the first menu bar, and adding a preset button in the first menu bar;
the menu layout further comprises a second menu bar, and the rest of the pre-display menu items are added into the second menu bar to form a first view menu bar composed of the pre-display menu items; the preset button is used for controlling the display and the hidden of the second menu bar.
According to the menu bar implementation method provided by the embodiment of the invention, the menu bar implementation method further comprises the following steps:
and if the number of the pre-display menu items is not more than n, adding all the pre-display menu items into the first menu bar to form a second view menu bar consisting of the pre-display menu items.
According to the menu bar implementation method provided by the embodiment of the invention, the method further comprises the following steps: when clicking the first view menu bar, judging whether clicking on a preset button or not;
if not, the clicked content is transmitted to the outside.
According to the menu bar implementation method of the embodiment of the invention, the step of transmitting the clicked content to the outside comprises the following steps:
and transmitting the clicked pre-display menu item to the outside by using a callback method for business processing.
According to the menu bar implementation method of the embodiment of the present invention, the preset button is used for controlling the display and the hidden of the second menu bar, and includes:
when clicking the preset button, judging whether the second menu bar is displayed or not; if yes, hiding the second menu bar; and if not, displaying the second menu bar.
According to the menu bar implementation method of the embodiment of the invention, the first menu bar and the second menu bar are respectively a vertical menu bar and a horizontal menu bar.
According to the menu bar implementation method of the embodiment of the invention, the n-1 pre-display menu items in the first menu bar, the preset buttons and the rest of pre-display menu items in the second menu bar jointly form the first view menu bar.
The invention also provides a menu bar implementation system, which comprises;
the menu layout creating module is used for creating a menu layout, wherein the menu layout at least comprises a first menu bar;
the pre-display setting module is used for receiving a pre-display menu item and determining a maximum capacity threshold value n of the first menu bar;
the menu item loading module is used for adding n-1 pre-display menu items to the first menu bar and adding a preset button in the first menu bar in response to the number of the pre-display menu items being greater than n; the menu layout further comprises a second menu bar, and the rest of the pre-display menu items are added into the second menu bar to form a first view menu bar composed of the pre-display menu items; the preset button is used for controlling the display and the hidden of the second menu bar.
The invention also provides a computer program product comprising computer programs/instructions which when executed by a processor implement the steps of the menu bar implementation method.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of a menu bar implementation method as described in any of the above.
According to the embodiment of the invention, the menu items are dynamically added according to the pre-processed menu layout and the pre-displayed menu items and the threshold value, and the folding menu bar is realized by controlling the display and the hidden of the folding menu through the preset button, so that a better folding effect can be realized, and the purpose of separating the service from the components is effectively achieved.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of one of the menu bar implementation methods provided by the embodiments of the present invention;
FIG. 2 is a flow chart of a second method for implementing a menu bar according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a menu bar implementation system according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer program product provided by the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment of the invention discloses a menu bar implementation method, which comprises the following steps of:
s1, creating a menu layout, wherein the menu layout at least comprises a first menu bar;
in S1, creating a menu layout belongs to a preparation job, and is pre-processed.
S2, receiving a pre-display menu item, and determining a maximum capacity threshold n of the first menu bar;
receiving the issued pre-display menu item and the issued threshold value, and setting a maximum capacity threshold value n of the first menu bar based on the issued threshold value; the preset menu item and the issued threshold are issued by the back end, the maximum capacity threshold n of the first menu bar is set based on the issued threshold, and n is a positive integer greater than 1.
S3, responding to the number of the pre-display menu items being larger than n, adding n-1 pre-display menu items to a first menu bar, and adding a preset button to the first menu bar; the menu layout further comprises a second menu bar, and the rest of the pre-display menu items are added into the second menu bar to form a first view menu bar composed of the pre-display menu items; the preset button is used for controlling the display and the hidden of the second menu bar.
Before S3, judging whether the number of the pre-display menu items is larger than n, and when the number of the pre-display menu items is larger than n, adding n-1 pre-display menu items into a first menu bar, wherein the menu layout also comprises a second menu bar, and adding the rest of the pre-display menu items into the second menu bar; alternatively, the n-1 pre-presentation menu items are n-1 pre-presentation menu items arranged in front, and may be n-1 pre-presentation menu items selected from the pre-presentation menu items. The nth menu item in the first menu bar is a preset button, and the rest of the preset menu items are added to the second menu bar, and at this time, n-1 preset menu items, the preset button and the rest of the preset menu items form a first view menu bar together to be displayed. Preferably, the content of the preset button may be set to "more". The rest of the pre-display menu items are pre-display menu items which are not displayed in the first menu bar, namely, the pre-display menu items except for n-1 pre-display menu items in the pre-display menu items. The second menu bar may not be provided other than the second menu bar being empty. If the first menu bar is created first when the menu layout is created, the second menu bar is created when the first menu bar is created first, and if the second menu bar is not larger than n, the second menu bar is created when the second menu bar is not larger than n.
According to the embodiment of the invention, the menu items are dynamically added through the preprocessed menu layout and according to the pre-displayed menu items and the threshold value, and the folding menu bar is realized by controlling the display and the hiding of the folding menu through the preset button, so that a better folding effect can be realized, the user interaction experience is improved, and the purpose of separating the service from the components is effectively achieved.
According to the menu bar implementation method of the embodiment of the present invention, the determining whether the number of the pre-display menu items is greater than n further includes:
and if the number of the pre-display menu items is not more than n, adding all the pre-display menu items into the first menu bar to form a second view menu bar consisting of the pre-display menu items. The number of the pre-display menu items is not larger than the maximum capacity threshold of the first menu bar, the first menu bar can completely display the pre-display menu items, the first menu bar can form a second view menu bar, and the content of the second menu bar is empty.
According to the menu bar implementation method provided by the embodiment of the invention, the method further comprises the following steps: when clicking the first view menu bar, judging whether clicking on a preset button or not;
if not, the clicked content is transmitted to the outside.
Further, the transferring the clicked content out to the outside includes:
and transmitting the clicked pre-display menu item to the outside by using a callback method for business processing. And the callback method is used for transmitting the clicked menu item data and view, and the service processing is performed by the outside, so that the purpose of separating the service from the component is achieved.
According to the menu bar implementation method of the embodiment of the present invention, the preset button is used for controlling the display and the hidden of the second menu bar, and includes:
when clicking the preset button, judging whether the second menu bar is displayed or not; if yes, hiding the second menu bar; and if not, displaying the second menu bar.
According to the menu bar implementation method provided by the embodiment of the invention, the first menu bar and the second menu bar are respectively a vertical menu bar and a horizontal menu bar, so that the user habit is more met.
According to the menu bar implementation method of the embodiment of the invention, the n-1 pre-display menu items in the first menu bar, the preset buttons and the rest of pre-display menu items in the second menu bar jointly form the first view menu bar.
In order to further explain the menu bar implementation method of the embodiment of the present invention, referring to fig. 2, a specific embodiment is also disclosed, where the menu bar implementation method includes:
preparation: a menu layout is created, wherein the menu layout consists of a vertical linear layout (linerlayout) and a horizontal linear layout (linerlayout).
Acquiring a preset menu item issued by the back end (namely menu sub item data in fig. 2), and an issued threshold value, and obtaining a maximum capacity threshold value n of the vertical menu item according to the issued threshold value.
And judging whether the number of the issued pre-display menu items is larger than n.
If not, creating a menu item view (i.e. a pre-presentation menu item) according to all the issued data beans, and adding the menu item view into the vertical LinearLayout.
If the number is greater than n, n-1 menu items are created according to the first n-1 data beans, added to the vertical LinearLayout, a more button view is created, added to the vertical LinearLayout, and the rest menu items are added to the horizontal LinearLayout.
Click event:
when more buttons are clicked, the horizontal menu bar is displayed/hidden
When the common menu item is clicked, the clicked menu item data bean and view are transmitted by using a callback, and business logic processing is performed outside. Because this is a component that does not hook the business, does not handle any business logic, it throws the click event to external processing; external is part of any used component, such as functions, objects, methods, variables, interfaces, etc. that call the component.
The embodiment of the invention adopts a pre-written menu and menu item layout, and a maximum capacity threshold value of a pre-display menu item and a vertical menu bar is issued by a rear end, and if the number of the menu items does not exceed the maximum capacity threshold value n of the first menu bar, the menu items (i.e. the pre-display menu items) are all dynamically added into the vertical menu; if the maximum capacity threshold value n of the first menu bar is exceeded, namely (threshold value-1) menu items are added into a vertical menu, more buttons are added into the vertical menu, the rest menu items are added into a horizontal menu, the display is controlled by the more buttons, the clicked menu item data and the view are transmitted by a callback method, and service processing is carried out from the outside, so that the purpose of separating the service from the component is achieved.
The embodiment of the invention discloses a menu bar implementation system, which is shown in fig. 3 and comprises the following steps:
a menu layout creation module 10, configured to create a menu layout, where the menu layout includes at least a first menu bar;
the menu layout creation module 10 creates a menu layout belonging to a preparation job, which is pre-processed.
The pre-display setting module 20 is configured to receive the issued pre-display menu item and the issued threshold, and set a maximum capacity threshold n of the first menu bar based on the issued threshold;
the preset menu item and the issued threshold are issued by the back end, the maximum capacity threshold n of the first menu bar is set based on the issued threshold, and n is a positive integer greater than 1.
A menu item loading module 30, configured to add n-1 pre-display menu items to the first menu bar and add a preset button in the first menu bar in response to the number of pre-display menu items being greater than n; the menu layout further comprises a second menu bar, and the rest of the pre-display menu items are added into the second menu bar to form a first view menu bar composed of the pre-display menu items; the preset button is used for controlling the display and the hidden of the second menu bar.
The n-1 pre-display menu items are n-1 pre-display menu items arranged in front, the nth menu item is a preset button, the rest of the pre-display menu items are added to the second menu bar, and at the moment, the n-1 pre-display menu items, the preset button and the rest of the pre-display menu items jointly form a first view menu bar to be displayed. Preferably, the content of the preset button may be set to "more".
The menu bar implementation system according to the embodiment of the invention further comprises:
and the second view menu bar determining module is used for adding all the pre-display menu items into the first menu bar to form a second view menu bar composed of the pre-display menu items when the number of the pre-display menu items is not more than n. The number of the pre-display menu items is not larger than the maximum capacity threshold of the first menu bar, the first menu bar can completely display the pre-display menu items, the first menu bar can form a second view menu bar, and the content of the second menu bar is empty.
According to the menu bar implementation system of the embodiment of the invention, the system further comprises:
the click recognition module is used for judging whether to click on a preset button or not when clicking the first view menu bar;
and the transmission module is used for transmitting the clicked content to the outside when the preset button is not clicked.
Further, the transferring the clicked content out to the outside includes:
and transmitting the clicked pre-display menu item to the outside by using a callback method for business processing. And the callback method is used for transmitting the clicked menu item data and view, and the service processing is performed by the outside, so that the purpose of separating the service from the component is achieved.
According to the menu bar implementation system of the embodiment of the present invention, the preset button is used for controlling the display and the hiding of the second menu bar, and includes:
when clicking the preset button, judging whether the second menu bar is displayed or not; if yes, hiding the second menu bar; and if not, displaying the second menu bar.
According to the menu bar implementation system provided by the embodiment of the invention, the first menu bar and the second menu bar are respectively a vertical menu bar and a horizontal menu bar, so that the user habit is more met.
Fig. 4 illustrates a physical schematic of a computer program product, which may include: processor 410, communication interface (Communications Interface) 420, memory 430 and communication bus 440, wherein processor 410, communication interface 420 and memory 430 communicate with each other via communication bus 440. Processor 410 may invoke logic instructions in memory 430 to execute a menu bar implementation, the method comprising:
s1, creating a menu layout, wherein the menu layout at least comprises a first menu bar;
s2, receiving a pre-display menu item, and determining a maximum capacity threshold n of the first menu bar;
s3, responding to the number of the pre-display menu items being larger than n, adding n-1 pre-display menu items to a first menu bar, and adding a preset button to the first menu bar; the menu layout further comprises a second menu bar, and the rest of the pre-display menu items are added into the second menu bar to form a first view menu bar composed of the pre-display menu items; the preset button is used for controlling the display and the hidden of the second menu bar.
Further, the logic instructions in the memory described above may be implemented in the form of software functional units and stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, are capable of performing a menu bar implementation method comprising:
s1, creating a menu layout, wherein the menu layout at least comprises a first menu bar;
s2, receiving a pre-display menu item, and determining a maximum capacity threshold n of the first menu bar;
s3, responding to the number of the pre-display menu items being larger than n, adding n-1 pre-display menu items to a first menu bar, and adding a preset button to the first menu bar; the menu layout further comprises a second menu bar, and the rest of the pre-display menu items are added into the second menu bar to form a first view menu bar composed of the pre-display menu items; the preset button is used for controlling the display and the hidden of the second menu bar.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which when executed by a processor is implemented to perform a menu bar implementation method comprising:
s1, creating a menu layout, wherein the menu layout at least comprises a first menu bar;
s2, receiving a pre-display menu item, and determining a maximum capacity threshold n of the first menu bar;
s3, responding to the number of the pre-display menu items being larger than n, adding n-1 pre-display menu items to a first menu bar, and adding a preset button to the first menu bar; the menu layout further comprises a second menu bar, and the rest of the pre-display menu items are added into the second menu bar to form a first view menu bar composed of the pre-display menu items; the preset button is used for controlling the display and the hidden of the second menu bar.
The system embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (5)

1. A method for implementing a menu bar, comprising:
creating a menu layout, wherein the menu layout at least comprises a first menu bar;
receiving a pre-display menu item, and determining a maximum capacity threshold n of the first menu bar;
in response to the number of the pre-display menu items being greater than n, adding n-1 pre-display menu items to the first menu bar, and adding a preset button to the first menu bar, wherein the n-1 pre-display menu items are n-1 pre-display menu items arranged in front or n-1 pre-display menu items selected from the pre-display menu items;
the menu layout further comprises a second menu bar, if the first menu bar and the second menu bar are directly created when the menu layout is created, the second menu bar is set to be empty and not displayed in response to the number of the pre-display menu items being not more than n;
if only a first menu bar is created when the menu bar layout is created, creating a second menu bar in response to the number of the pre-display menu items being greater than n, wherein the nth menu item in the first menu bar is a preset button, adding the rest of the pre-display menu items to the second menu bar, and forming a first view menu bar by the n-1 pre-display menu items, the preset button and the rest of the pre-display menu items together; responsive to the number of pre-display menu items not being greater than n, not creating a second menu bar; the preset button is used for controlling the display and the hidden of the second menu bar;
when clicking the first view menu bar, judging whether clicking on the preset button;
if not, the clicked content is transmitted to the outside, and the transmission of the clicked content to the outside comprises: and transmitting the clicked pre-display menu item to the outside by using a callback method for business processing, wherein the pre-display menu item is realized by a menu item view, the menu item view is obtained according to the issued data bean, and the clicked menu item data bean and view are transmitted to the outside, and the outside comprises at least one of a function, an object, a method, a variable and an interface for calling the menu item view.
2. The menu bar implementation method of claim 1, further comprising:
and in response to the number of the pre-display menu items not being greater than n, adding all the pre-display menu items into the first menu bar to form a second view menu bar composed of the pre-display menu items.
3. The method of claim 1, wherein the preset button for controlling the display of the second menu bar comprises:
when clicking the preset button, judging whether the second menu bar is displayed or not; if yes, hiding the second menu bar; and if not, displaying the second menu bar.
4. A menu bar implementation system, comprising;
the menu layout creating module is used for creating a menu layout, wherein the menu layout at least comprises a first menu bar;
the pre-display setting module is used for receiving a pre-display menu item and determining a maximum capacity threshold value n of the first menu bar;
the menu item loading module is used for adding n-1 preset menu items into the first menu bar in response to the number of the preset menu items being greater than n, wherein the n-1 preset menu items are n-1 preset menu items arranged in the front or n-1 preset menu items selected from the preset menu items;
the menu layout further comprises a second menu bar, if the first menu bar and the second menu bar are directly created when the menu layout is created, the second menu bar is set to be empty and not displayed in response to the number of the pre-display menu items being not more than n;
if only a first menu bar is created when the menu bar layout is created, creating a second menu bar in response to the number of the pre-display menu items being greater than n, wherein the nth menu item in the first menu bar is a preset button, adding the rest of the pre-display menu items to the second menu bar, and forming a first view menu bar by the n-1 pre-display menu items, the preset button and the rest of the pre-display menu items together; responsive to the number of pre-display menu items not being greater than n, not creating a second menu bar; the preset button is used for controlling the display and the hidden of the second menu bar;
when clicking the first view menu bar, judging whether clicking on the preset button;
if not, the clicked content is transmitted to the outside, and the transmission of the clicked content to the outside comprises: and transmitting the clicked pre-display menu item to the outside by using a callback method for business processing, wherein the pre-display menu item is realized by a menu item view, the menu item view is obtained according to the issued data bean, and the clicked menu item data bean and view are transmitted to the outside, and the outside comprises at least one of a function, an object, a method, a variable and an interface for calling the menu item view.
5. A non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the menu bar implementation method of any of claims 1 to 3.
CN202110744635.2A 2021-07-01 2021-07-01 Menu bar implementation method and system, computer program product and readable storage medium Active CN113641277B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110744635.2A CN113641277B (en) 2021-07-01 2021-07-01 Menu bar implementation method and system, computer program product and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110744635.2A CN113641277B (en) 2021-07-01 2021-07-01 Menu bar implementation method and system, computer program product and readable storage medium

Publications (2)

Publication Number Publication Date
CN113641277A CN113641277A (en) 2021-11-12
CN113641277B true CN113641277B (en) 2024-03-08

Family

ID=78416664

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110744635.2A Active CN113641277B (en) 2021-07-01 2021-07-01 Menu bar implementation method and system, computer program product and readable storage medium

Country Status (1)

Country Link
CN (1) CN113641277B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114371801A (en) * 2021-12-27 2022-04-19 浪潮通信信息系统有限公司 Operation and maintenance system menu switching method and system
CN118132191B (en) * 2024-05-08 2024-07-26 中电云计算技术有限公司 Operation column button width self-adaption method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3244285A1 (en) * 2016-05-10 2017-11-15 Sap Se Physiologically adaptive user interface
DE102016218323A1 (en) * 2016-09-23 2018-03-29 Nepos GmbH User interface for seniors
CN111221446A (en) * 2018-11-27 2020-06-02 阿里巴巴集团控股有限公司 Menu display method, device and equipment
CN111782106A (en) * 2019-10-31 2020-10-16 北京沃东天骏信息技术有限公司 Method, device, electronic equipment and readable medium for displaying page menu bar
CN112083915A (en) * 2020-09-09 2020-12-15 苏州科达科技股份有限公司 Page layout method and device, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8689139B2 (en) * 2007-12-21 2014-04-01 Adobe Systems Incorporated Expandable user interface menu
US9304658B2 (en) * 2007-12-30 2016-04-05 Qualcomm Incorporated On-screen menu buttons including multiple modes
CN101546248B (en) * 2009-05-05 2014-04-09 阿里巴巴集团控股有限公司 Method and device for presenting cascade option menu
US20150261394A1 (en) * 2014-03-17 2015-09-17 Sandeep Shah Device and method for displaying menu items
US20190220164A1 (en) * 2018-01-18 2019-07-18 Parkimon Inc. Method and system for facilitating an infinite navigation menu on a touch screen device
US11249618B2 (en) * 2019-11-21 2022-02-15 Sap Se Flexible pop-out of embedded menu

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3244285A1 (en) * 2016-05-10 2017-11-15 Sap Se Physiologically adaptive user interface
DE102016218323A1 (en) * 2016-09-23 2018-03-29 Nepos GmbH User interface for seniors
CN111221446A (en) * 2018-11-27 2020-06-02 阿里巴巴集团控股有限公司 Menu display method, device and equipment
CN111782106A (en) * 2019-10-31 2020-10-16 北京沃东天骏信息技术有限公司 Method, device, electronic equipment and readable medium for displaying page menu bar
CN112083915A (en) * 2020-09-09 2020-12-15 苏州科达科技股份有限公司 Page layout method and device, electronic equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
基于SSM框架的智能web系统研发设计;王艳清;陈红;;计算机工程与设计(第12期);第4751-4757页 *
菜单中间件在嵌入式系统中的设计与实现;赵漫菲;王光辉;;计算机工程与设计(第19期);第4374-4377页 *

Also Published As

Publication number Publication date
CN113641277A (en) 2021-11-12

Similar Documents

Publication Publication Date Title
KR102030226B1 (en) Apparatus and method for maintaining a message thread with opt-in permanence for entries
CN113641277B (en) Menu bar implementation method and system, computer program product and readable storage medium
CN112114928B (en) Processing method and device for display page
CN107145355B (en) Page layout adjusting method and device, storage medium, processor and terminal
CN108566312A (en) Off-line checking method, device and computer readable storage medium
EP2367342A1 (en) Method and apparatus for accessing services of a device
CN110413911B (en) Network picture loading method and device, terminal equipment and storage medium
EP3866030A1 (en) Webpage loading method, intermediate server, and webpage loading system
CN108965932B (en) Continuous wheat window display method and device
WO2016127882A1 (en) Message reply method and device
CN106096927A (en) The method of information updating, device and server
JP7285699B2 (en) Program, method and terminal device
CN107862001A (en) A kind of method and system of data disaster tolerance
CN105955743B (en) The methods, devices and systems that resource numerical value transfer request generates
AU2013213683A1 (en) A method and system of application development for multiple device client platforms
WO2007055517A1 (en) Device and method for expressing status of terminal using character
CN108933947B (en) Bullet screen display method and device
CN107122104B (en) Data display method and device
WO2017156986A1 (en) Full-picture image display method and system for mobile terminal
CN113935300A (en) Dynamic table generation method and device
CN104980473B (en) UI resource loading method and system
CN107609433A (en) Method for secret protection and electronic equipment
CN116739524A (en) Business process setting method, device, equipment, storage medium and program product
CN110516028B (en) Method and device for realizing complex editor based on act
CN113709406A (en) Software collaboration method, system and storage medium for Hongmon conference all-in-one machine

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20240117

Address after: Room 102, 1st Floor, Building 1, No. 2 Chuangye Road, Haidian District, Beijing, 100080

Applicant after: Seashell Housing (Beijing) Technology Co.,Ltd.

Address before: 101309 room 24, 62 Farm Road, Erjie village, Yangzhen, Shunyi District, Beijing

Applicant before: Beijing fangjianghu Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant