CN107450807B - Synchronous option selection method and device - Google Patents

Synchronous option selection method and device Download PDF

Info

Publication number
CN107450807B
CN107450807B CN201710648157.9A CN201710648157A CN107450807B CN 107450807 B CN107450807 B CN 107450807B CN 201710648157 A CN201710648157 A CN 201710648157A CN 107450807 B CN107450807 B CN 107450807B
Authority
CN
China
Prior art keywords
option
target
bar interface
target option
title bar
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
CN201710648157.9A
Other languages
Chinese (zh)
Other versions
CN107450807A (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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710648157.9A priority Critical patent/CN107450807B/en
Publication of CN107450807A publication Critical patent/CN107450807A/en
Application granted granted Critical
Publication of CN107450807B publication Critical patent/CN107450807B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

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

The embodiment of the invention provides a method and a device for synchronously selecting options. The method includes the steps that selection operation of a user on a title bar interface or a pull-down bar interface is detected, when the fact that a target option exists on the title bar interface and is selected is detected, the target option under a corresponding target category in the pull-down bar interface is configured in a selected state, and when the fact that the target option exists on the pull-down bar interface and is selected is detected, the corresponding target option in the title bar interface is configured in the selected state. The invention can effectively carry out synchronous processing on the option states in the title bar and the pull-down bar aiming at the condition that the data classification mode in the pull-down bar menu is different from the data classification mode in the title bar.

Description

Synchronous option selection method and device
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for synchronously selecting options.
Background
Currently, in the development process of android APPs (e.g., royal glory live APP), a title bar is generally used to distinguish different option types, or a pull-down bar menu is used to perform global preview on different option types. The classification of each option in the pull-down menu is different from the classification of options in the title bar, all items are listed in the title bar, the pull-down menu is classified according to the attributes of the items, and there may be a case where one item is classified into two or more categories. In the conventional scheme, a title bar and a drop-down bar are in the same classification list to synchronize data, but when the data classification mode in a drop-down bar menu is different from the data classification mode in the title bar, the synchronization mode of the option states of the title bar and the drop-down bar is relatively complex, and no solution exists in the industry at present.
Disclosure of Invention
In order to overcome the above disadvantages in the prior art, an object of the present invention is to provide a method and an apparatus for synchronously selecting options, which can effectively synchronize the states of options in a title bar and a drop-down bar when a data classification manner in a drop-down bar menu and a data classification manner in the title bar are different.
In order to achieve the above object, the preferred embodiment of the present invention adopts the following technical solutions:
the preferred embodiment of the present invention provides an option synchronous selection method, which is applied to a user terminal, wherein the user terminal is provided with application software, a presentation interface of the application software includes a title bar interface and a drop-down bar interface, the title bar interface includes an option set list composed of a plurality of options, the drop-down bar interface includes a classification set list composed of a plurality of classification lists, each classification list is composed of a plurality of corresponding options, and the method includes:
detecting selection operation of a user on the title bar interface or the drop-down bar interface;
when it is detected that a target option exists on the title bar interface and is selected, configuring the target option under the corresponding target category in the drop-down bar interface in a selected state; and
and when detecting that the target option exists on the drop-down bar interface and is selected, configuring the corresponding target option in the title bar interface in a selected state.
In a preferred embodiment of the present invention, when it is detected that a target option exists on the title bar interface and is selected, the step of configuring the target option in the corresponding target category in the drop-down bar interface in a selected state includes:
acquiring target option parameters of the target options, wherein the target option parameters comprise target option names and target option identifiers;
searching the position information of the target option in the drop-down bar interface according to the target option parameter;
and configuring the target option under the corresponding target category in the drop-down bar interface in a selected state according to the position information.
In a preferred embodiment of the present invention, the step of searching for the location information of the target option in the drop-down bar interface according to the target option parameter includes:
extracting each classification list in the classification collection list of the drop-down bar interface, and collecting all the extracted classification lists to obtain a target collection list;
traversing the options in each classification list in the target set list, and sequentially acquiring option parameters of each option;
and matching the acquired option parameters with the target option parameters, and returning the position information of the option corresponding to the successfully matched option parameters when the first matching is successful.
In a preferred embodiment of the present invention, the step of configuring a target option in the title bar interface in a selected state when it is detected that the target option exists on the drop-down bar interface and is selected includes:
acquiring target option parameters of the target options, wherein the target option parameters comprise target option names and target option identifiers;
searching the position information of the target option in the title bar interface according to the target option parameter;
and configuring the corresponding target option in the title bar interface in a selected state according to the position information.
In a preferred embodiment of the present invention, the step of searching for the location information of the target option in the title bar interface according to the target option parameter includes:
sequentially moving a predefined cursor object from the starting position of the option set list;
acquiring option parameters of options where the cursor object is located in the moving process;
and matching the acquired option parameters with the target option parameters, and when the matching is successful, taking the cursor object when the matching is successful as the position information of the target option in the title bar interface.
The present invention further provides an option synchronization selection apparatus, applied to a user terminal, where the user terminal is installed with application software, a presentation interface of the application software includes a title bar interface and a drop-down bar interface, the title bar interface includes an option set list composed of multiple options, the drop-down bar interface includes a classification set list composed of multiple classification lists, where each classification list is composed of multiple corresponding options, and the apparatus includes:
the detection module is used for detecting the selection operation of a user on the title bar interface or the drop-down bar interface;
the first selection module is used for configuring the target option under the corresponding target category in the drop-down bar interface in a selected state when the target option is detected to be selected on the title bar interface;
and the second selection module is used for configuring the corresponding target option in the title bar interface in a selected state when the target option on the pull-down bar interface is detected to be selected.
Compared with the prior art, the invention has the following beneficial effects:
according to the method and the device for synchronously selecting the options, provided by the embodiment of the invention, through detecting the selection operation of a user on the title bar interface or the pull-down bar interface, when the target option in the corresponding target category in the pull-down bar interface is detected to be selected, the target option in the corresponding target category in the pull-down bar interface is configured in the selected state, and when the target option in the pull-down bar interface is detected to be selected, the target option in the corresponding title bar interface is configured in the selected state. Based on the design, the technical scheme provided by the invention can effectively perform synchronous processing on the option states in the title bar and the drop-down bar aiming at the condition that the data classification mode in the drop-down bar menu is different from the data classification mode in the title bar.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a block diagram of a ue according to a preferred embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for synchronously selecting options according to a preferred embodiment of the present invention;
FIG. 3 is a schematic flow chart illustrating the sub-steps included in step S220 shown in FIG. 2;
FIG. 4 is a flow chart illustrating the sub-steps included in step S222 shown in FIG. 3;
FIG. 5 is another flow chart illustrating the sub-steps included in step S230 shown in FIG. 2;
FIG. 6 is a flowchart illustrating the sub-steps included in step S232 shown in FIG. 3 in FIG. 5;
FIG. 7 is a functional block diagram of an option synchronization selection apparatus according to a preferred embodiment of the present invention;
FIG. 8 is a functional block diagram of a first selected module shown in FIG. 7;
FIG. 9 is a functional block diagram of a second selected module shown in FIG. 7.
Icon: 100-a user terminal; 110-a memory; 120-a processor; 130-a communication unit; 140-a storage controller; 150-a display unit; 200-option synchronous selection device; 210-a detection module; 220-first selected Module; 221-a first acquisition submodule; 222-a first lookup sub-module; 223-a first configuration submodule; 230-a second selected module; 231-a second acquisition submodule; 232-a second lookup submodule; 233-a second configuration submodule.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Fig. 1 is a block diagram of a ue 100 according to a preferred embodiment of the present invention. In the embodiment of the present invention, the user terminal 100 is preferably an Android (Android) user terminal. The user terminal 100 may install a corresponding application according to a user requirement, for example, may install a royal glory live APP.
As shown in fig. 1, the user terminal 100 may include a memory 110, a processor 120, a communication unit 130, a memory controller 140, and a display unit 150. The memory 110, the processor 120, the communication unit 130, the memory controller 140, and the display unit 150 are electrically connected to each other directly or indirectly to enable data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The memory 110 stores an option synchronization selection device 200, the option synchronization selection device 200 includes at least one software functional module which can be stored in the memory 110 in a form of software or Firmware (Firmware), and the processor 120 executes various functional applications and data processing by running software programs and functional modules stored in the memory 110, such as the option synchronization selection device 200 in the embodiment of the present invention, so as to implement the option synchronization selection method in the embodiment of the present invention.
The memory 110 may include, among other things, high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 110 may further include remote memory located remotely from the processor 120, which may be connected to the user terminal 100 via a network. The memory 110 is used for storing a program, and the processor 120 executes the program after receiving an execution instruction. Further, the communication unit 130 couples various input/output devices to the processor 120 and the memory 110, and the software programs and modules in the memory 110 may further include an operating system, which may include various software components and/or drivers for managing system tasks (e.g., memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide an operating environment for other software components.
The processor 120 may be an integrated circuit chip having signal processing capabilities. The Processor 120 may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like. But may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor 120 may be any conventional processor or the like.
The display unit 150 may provide an output and input interface between the user terminal 100 and a user at the same time. Specifically, the display unit 150 displays video or image output to the user, and the content of the video output may include text, graphics, video, and any combination thereof. Some of the output results are for some of the user interface objects. In addition, the display unit 150 may also receive user inputs, such as user clicks, slides, and other gesture operations, so that the user interface objects respond to the user inputs. The technique of detecting user input may be based on resistive, capacitive, or any other possible touch detection technique. Alternatively, specific examples of the display unit 150 may include, but are not limited to, a liquid crystal display or a light emitting polymer display.
It is to be understood that the structure shown in fig. 1 is merely illustrative, and the user terminal 100 may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof.
In this embodiment, the user terminal 100 is installed with application software, and a presentation interface of the application software may include a title bar interface and a drop-down bar interface, where the title bar interface includes an option set list composed of a plurality of options, and the drop-down bar interface includes a classification set list composed of a plurality of classification lists, where each classification list is composed of a plurality of corresponding options. Specifically, for example, the royal glory live APP may include a title bar interface for each hero and a drop-down bar interface for each hero, where the title bar interface lists all heros, and the drop-down bar interface classifies the heros according to their attributes (e.g., soldier, legal person, warrior, etc.), and it is considered that there may be a case where one hero is in two classification lists, for example, the hero "Sunwukong" may be in a soldier classification list or a Rogue classification list.
In an actual application scenario, when the user clicks the hero "Sunwukong" in the title bar interface, the first "Sunwukong" in the drop-down bar interface needs to be selected as well (the Sunwukong "may exist in two sorting lists, and the embodiment preferably selects only the first sorting list in the order). Similarly, when the hero "Sunwukong" in the drop-down bar interface is selected, it is necessary to make the hero "Sunwukong" in the title bar interface in the selected state. According to the above discussion, the data classification of the title bar and the drop-down bar is different, so that the option synchronization of the title bar and the drop-down bar is difficult.
In view of the above, the present embodiment provides an option synchronization selection method to solve the above problems, and specifically please refer to fig. 2, which is a flowchart of the option synchronization selection method according to the preferred embodiment of the present invention, where the method is executed by the user terminal 100 shown in fig. 1. It should be noted that the method provided by the embodiment of the present invention is not limited by the specific sequence shown in fig. 2 and described below. The method comprises the following specific steps:
step S210, detecting the selection operation of the user on the title bar interface or the drop-down bar interface.
In detail, in this embodiment, the user terminal 100 may show a corresponding APP interface to a user, optionally, in a general case, the user terminal 100 shows a title bar interface by default, and after receiving a pull-down touch operation of the user, shows the pull-down bar interface of the APP to the user, and accordingly, may also show the title bar interface to the user after receiving a pull-up return touch operation of the user.
Taking the example of royal glory live APP, the title bar interface may be used to provide a plurality of hero options to the user, and the drop-down bar interface may be used to provide a plurality of hero categories to the user, each hero category including a corresponding hero option. If the current interface is a title bar interface, the user terminal 100 detects selection operation of the hero by the user on the title bar interface; if the current interface is a drop-down bar interface, the user terminal 100 first detects a selection operation of the user on the hero classification on the title bar interface, and continues to detect the selection operation of the user on the hero classification interface after entering the corresponding hero classification interface.
As a possible implementation manner, please refer to step S220, when it is detected that a target option exists on the title bar interface and is selected, the target option in the corresponding target category in the drop-down bar interface is configured in a selected state.
In detail, referring to fig. 3, as an embodiment, the step S220 may include the following sub-steps:
and a substep S221, obtaining a target option parameter of the target option.
Specifically, in this embodiment, the target option parameter may include a target option name and a target option identifier. For example, the title bar interface provides a plurality of hero options, and the target option parameters for each hero option may include the hero name of the hero and an identifier of the hero. The identifier is understood to mean that each hero option is provided with an ID number, which is the unique identifier of the hero, and which serves as a mark for identifying the hero when subsequently reading the live video data associated with the hero. As an embodiment, the title bar may be composed of one hero option data item { name: "grand Wu", and ID ═ 123 "}, and the whole title bar interface may be composed of multiple option data items, that is, one option set list listtitle composed of the hero data.
And a substep S222, searching the position information of the target option in the drop-down bar interface according to the target option parameter.
As an exemplary implementation, the embodiment may pre-define a function titletegepotposition, and the specific design of the function may be as follows:
Public int titleTogetPopPosition(String targetName,string targetId)
the custom function needs to transfer two parameters, namely, a hero name and hero identifier information to be queried, and finally needs to return data of int (shaping), where the data is position information of a queried target hero in a drop-down bar interface, and a hero option of the position information in the drop-down bar interface can be set to be in a selected state by a subsequent drop-down bar interface according to the position information.
In detail, referring to fig. 4, the sub-step S222 may include the following sub-steps:
and a substep S222a, extracting each classification list in the classification set list of the drop-down bar interface, and collecting all the extracted classification lists to obtain a target set list.
Specifically, all hero option data sources in the drop-down bar interface are stored in the option set list listPopTitles. In this embodiment, first, the listPopTitles set is traversed for the first time, all tagList sets in the listPopTitles set are extracted by sequentially calling the getTagList method in the listpoptites, and then. And (4) forming each extracted small set tagList object into a large target set list alltagList.
And a substep S222b, traversing the options in each classification list in the target set list, and sequentially acquiring an option parameter of each option.
In particular, the target set list AllTagList is traversed multi-level again. In order to facilitate traversal of the AllTagList set, an index object index may be introduced, and then each element information in the AllTagList set is sequentially obtained through the index object, that is, the index object index sequentially indexes the AllTagList set. In practical implementation, in a first-layer traversal loop, a small set object tagList is obtained from the AllTagList set each time by calling a getTagList method, then a second-layer traversal loop is performed on the obtained tagList set object, and the hero name and hero ID information of each hero option in the tagList set object can be extracted by calling getname and getid methods. Based on the design, the names and the id information of all heros in the AllTagList set object can be acquired.
And a substep S222c, matching the acquired option parameter with the target option parameter, and returning the position information of the option corresponding to the successfully matched option parameter when the first matching is successful.
Specifically, in this embodiment, in the loop traversal of the second layer, the name and id information of the hero acquired each time are matched with the target option name targetName and target option identifier targetId information transferred from the titletotpopposition function. When the condition that the name is equal to the targetName and the id is equal to the targetid is reached and the condition is satisfied for the first time, directly returning the index of the query, wherein the index of the query is the position information of the target hero option in the drop-down bar interface.
Referring to fig. 3 again, in sub-step S223, the target option in the corresponding target category in the drop-down bar interface is configured in the selected state according to the position information.
In this embodiment, after the position information of the target hero option in the drop-down bar interface is acquired, the option in the drop-down bar interface corresponding to the position information is configured in a selection state, so as to complete synchronous selection of the options in the title bar interface and the drop-down bar interface.
As another possible implementation manner, please refer to fig. 2 again, in step S230, when it is detected that a target option exists on the drop-down bar interface and is selected, the target option corresponding to the title bar interface is configured in a selected state.
In detail, referring to fig. 5, as an embodiment, the step S230 may include the following sub-steps:
and a substep S231, obtaining target option parameters of the target option, where the target option parameters include a target option name and a target option identifier.
Specifically, since the drop-down bar interface is presented in the form of hero category and hero name, that is, the option data in the drop-down bar interface is classified, and several heros are in a hero category, some heros may belong to multiple hero categories, that is, heros with the same name may appear in different categories. According to the above description, the corresponding option data structure design can be as follows:
{ tagName ═ fighter ", tagList [ { Name ═ grand monkey 1", Id ═ 123 "}, { Name ═ grand monkey 2", Id ═ 124 "} and the like
Where tagName denotes the name of the hero classification, the names of the classifications in the above example may be the warriors, i.e., the warrior classification. Where tagList represents the set of heros that should be under the warrior classification, where the element within each { } is a hero, the two heros provided in the above example are Sunwuko 1 and Sunwuko 2, respectively.
Since the drop-down list shows a plurality of hero categories, that is, the above example data is only an example of one of the categories, the option data set of the whole drop-down list is a set listPopTitles composed of a plurality of the above example data.
And a substep S232, searching the position information of the target option in the title bar interface according to the target option parameter.
In this embodiment, in order to obtain the location information of the target option in the title bar interface, a function popToTitlePosition may be preset and customized in this embodiment, and a specific design of the function may be as follows:
public int poititleposition (String targetName, String targetId) wherein targetName and targetId indicate the option name and option identifier information of the selected target option in the drop-down bar interface, the function returns data of int (shaping) type, and the shaping data is the position information of the target option in the option set listnotes of the title bar interface.
In detail, referring to fig. 6, the sub-step S232 may include the following sub-steps:
sub-step S232a, moving the predefined cursor object from the starting position of the option set list in turn.
And a substep S232b, acquiring the option parameters of the options where the cursor object is located in the moving process.
In this embodiment, a cursor object index may be defined first, then the cursor object index is moved to the start position of the option set listTitles, then the cursor object index may be moved in sequence, and in the moving process, the option parameter, that is, the option name information and the option identifier id information, of the option position where the cursor object index is located may be obtained by calling the getName and getId information in the listTitles set.
And a substep S232c, matching the acquired option parameters with the target option parameters, and when the matching is successful, taking the cursor object when the matching is successful as the position information of the target option in the title bar interface.
In this embodiment, after each movement of the cursor object index, the name information and the id information of the acquired option name and the option identifier are compared with the transferred parameters targetName and targetId, and if the conditions that the name is equal to targetName and the id is equal to targetId are satisfied, the cursor object index is also the position information of the target option in the title bar interface, and at this time, the cursor object index may be directly returned by a return statement to obtain the position information of the target option in the title bar interface. If the condition of name being equal to targetName and id being equal to targetid is not satisfied, then the cursor object index needs to be moved by the next object, and then the above matching operation is repeated in sequence until the cursor object with the matched condition is found.
Referring to fig. 5 again, in sub-step S233, the corresponding target option in the title bar interface is configured in the selected state according to the position information.
In this embodiment, after the position information of the target hero option in the title bar interface is acquired, the option in the title bar interface corresponding to the position information is configured in a selection state, so as to complete synchronous selection of the options in the title bar interface and the pull-down bar interface.
Based on the design, the problem that options cannot be selected synchronously when data classification in the title bar interface and the pull-down bar interface is different can be effectively solved.
Further, referring to fig. 7, a preferred embodiment of the present invention further provides an option synchronization selecting apparatus 200, which is installed in the memory 110 and includes one or more software function modules executable by the processor 120, and the apparatus includes:
the detection module 210 is configured to detect a selection operation of a user on the title bar interface or the drop-down bar interface.
The first selecting module 220 is configured to, when it is detected that a target option is selected on the title bar interface, configure the target option in the corresponding target category in the drop-down bar interface in a selected state.
The second selecting module 230 is configured to, when it is detected that a target option is selected on the drop-down bar interface, configure the corresponding target option in the title bar interface in a selected state.
Further, referring to fig. 8, the first selecting module 220 may include:
the first obtaining sub-module 221 is configured to obtain a target option parameter of the target option, where the target option parameter includes a target option name and a target option identifier.
And the first searching sub-module 222 is configured to search, according to the target option parameter, position information of the target option in the drop-down bar interface.
As an embodiment, the manner of finding the position information of the target option in the drop-down bar interface according to the target option parameter may be: firstly, extracting each classification list in the classification collection list of the drop-down bar interface, collecting all the extracted classification lists to obtain a target collection list, then traversing options in each classification list in the target collection list, sequentially acquiring option parameters of each option, finally matching the acquired option parameters with the target option parameters, and returning the position information of the option corresponding to the successfully matched option parameters when the first matching is successful.
And the first configuration submodule 223 is configured to configure the target option in the corresponding target category in the drop-down bar interface in the selected state according to the position information.
Further, referring to fig. 9, the second selecting module 230 may include:
the second obtaining sub-module 231 is configured to obtain target option parameters of the target option, where the target option parameters include a target option name and a target option identifier.
And the second searching sub-module 232 is configured to search, according to the target option parameter, position information of the target option in the title bar interface.
As an embodiment, the manner of finding the position information of the target option in the title bar interface according to the target option parameter may be: firstly, sequentially moving a predefined cursor object from the starting position of the option set list; then, acquiring option parameters of options where the cursor object is located in the moving process; and finally, matching the acquired option parameters with the target option parameters, and when the matching is successful, taking the cursor object when the matching is successful as the position information of the target option in the title bar interface.
And the second configuration submodule 233 is configured to configure the corresponding target option in the title bar interface in the selected state according to the position information.
The detailed description of the corresponding steps in the above method embodiments can be referred to for the specific operation method of each functional module in this embodiment, and will not be repeated herein.
In summary, according to the method and the device for synchronously selecting options provided by the embodiments of the present invention, by detecting a selection operation of a user on the title bar interface or the drop-down bar interface, when it is detected that a target option exists on the title bar interface and is selected, the target option in a corresponding target category in the drop-down bar interface is configured in a selected state, and when it is detected that a target option exists on the drop-down bar interface and is selected, the target option in the title bar interface and is configured in a selected state. Based on the design, the technical scheme provided by the invention can effectively perform synchronous processing on the option states in the title bar and the drop-down bar aiming at the condition that the data classification mode in the drop-down bar menu is different from the data classification mode in the title bar.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus and method embodiments described above are illustrative only, as the flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computing device (which may be a personal computer, an electronic device, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.

Claims (6)

1. An option synchronous selection method is applied to a user terminal, and is characterized in that the user terminal is provided with application software, a presentation interface of the application software comprises a title bar interface and a drop-down bar interface, the title bar interface comprises an option set list composed of a plurality of options, the drop-down bar interface comprises a classification set list composed of a plurality of classification lists, each classification list is composed of a plurality of corresponding options, and the method comprises the following steps:
detecting selection operation of a user on the title bar interface or the drop-down bar interface;
when it is detected that a target option exists on the title bar interface and is selected, target option parameters of the target option are obtained, wherein the target option parameters comprise a target option name and a target option identifier;
extracting each classification list in the classification collection list of the drop-down bar interface, and collecting all the extracted classification lists to obtain a target collection list;
traversing the options in each classification list in the target set list, and sequentially acquiring option parameters of each option;
matching the acquired option parameters with the target option parameters, and returning the position information of the options corresponding to the successfully matched option parameters when the first matching is successful;
configuring the target option under the corresponding target category in the drop-down bar interface in a selected state according to the position information; and
and when detecting that the target option exists on the drop-down bar interface and is selected, configuring the corresponding target option in the title bar interface in a selected state.
2. The method according to claim 1, wherein the step of configuring a corresponding target option in the title bar interface in a selected state when detecting that the target option is selected on the drop-down bar interface comprises:
acquiring target option parameters of the target options, wherein the target option parameters comprise target option names and target option identifiers;
searching the position information of the target option in the title bar interface according to the target option parameter;
and configuring the corresponding target option in the title bar interface in a selected state according to the position information.
3. The option synchronization selection method according to claim 2, wherein the step of searching for the location information of the target option in the title bar interface according to the target option parameter comprises:
sequentially moving a predefined cursor object from the starting position of the option set list;
acquiring option parameters of options where the cursor object is located in the moving process;
and matching the acquired option parameters with the target option parameters, and when the matching is successful, taking the cursor object when the matching is successful as the position information of the target option in the title bar interface.
4. An option synchronous selection device is applied to a user terminal, and is characterized in that the user terminal is provided with application software, a presentation interface of the application software comprises a title bar interface and a drop-down bar interface, the title bar interface comprises an option set list composed of a plurality of options, the drop-down bar interface comprises a classification set list composed of a plurality of classification lists, wherein each classification list is composed of a plurality of corresponding options, and the device comprises:
the detection module is used for detecting the selection operation of a user on the title bar interface or the drop-down bar interface;
a first selection module, configured to configure a target option in a corresponding target category in the drop-down bar interface in a selected state when it is detected that the target option exists in the title bar interface and is selected, where the first selection module includes:
the first obtaining submodule is used for obtaining target option parameters of the target options, and the target option parameters comprise target option names and target option identifiers;
the first searching submodule is used for searching the position information of the target option in the drop-down bar interface according to the target option parameter, and specifically comprises:
extracting each classification list in the classification collection list of the drop-down bar interface, and collecting all the extracted classification lists to obtain a target collection list;
traversing the options in each classification list in the target set list, and sequentially acquiring option parameters of each option;
matching the acquired option parameters with the target option parameters, and returning the position information of the options corresponding to the successfully matched option parameters when the first matching is successful;
the first matching submodule is used for configuring the target option under the corresponding target category in the pull-down bar interface in a selected state according to the position information;
and the second selection module is used for configuring the corresponding target option in the title bar interface in a selected state when the target option on the pull-down bar interface is detected to be selected.
5. The option synchronization selection apparatus according to claim 4, wherein the second selection module comprises:
the second obtaining submodule is used for obtaining target option parameters of the target options, and the target option parameters comprise target option names and target option identifiers;
the second searching submodule is used for searching the position information of the target option in the title bar interface according to the target option parameter;
and the second configuration submodule is used for configuring the corresponding target option in the title bar interface in a selected state according to the position information.
6. The option synchronization selection device according to claim 5, wherein the manner of searching for the location information of the target option in the title bar interface according to the target option parameter comprises:
sequentially moving a predefined cursor object from the starting position of the option set list;
acquiring option parameters of options where the cursor object is located in the moving process;
and matching the acquired option parameters with the target option parameters, and when the matching is successful, taking the cursor object when the matching is successful as the position information of the target option in the title bar interface.
CN201710648157.9A 2017-08-01 2017-08-01 Synchronous option selection method and device Active CN107450807B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710648157.9A CN107450807B (en) 2017-08-01 2017-08-01 Synchronous option selection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710648157.9A CN107450807B (en) 2017-08-01 2017-08-01 Synchronous option selection method and device

Publications (2)

Publication Number Publication Date
CN107450807A CN107450807A (en) 2017-12-08
CN107450807B true CN107450807B (en) 2020-05-12

Family

ID=60489362

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710648157.9A Active CN107450807B (en) 2017-08-01 2017-08-01 Synchronous option selection method and device

Country Status (1)

Country Link
CN (1) CN107450807B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111124211A (en) * 2018-10-31 2020-05-08 杭州海康威视***技术有限公司 Data display method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103472983A (en) * 2013-08-08 2013-12-25 广州市动景计算机科技有限公司 Method and device for positioning page contents
CN103914212A (en) * 2012-12-30 2014-07-09 比亚迪股份有限公司 Terminal device and application configuration method thereof
CN104378512A (en) * 2014-12-11 2015-02-25 北京奇虎科技有限公司 Mobile terminal and method for displaying communication information of mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914212A (en) * 2012-12-30 2014-07-09 比亚迪股份有限公司 Terminal device and application configuration method thereof
CN103472983A (en) * 2013-08-08 2013-12-25 广州市动景计算机科技有限公司 Method and device for positioning page contents
CN104378512A (en) * 2014-12-11 2015-02-25 北京奇虎科技有限公司 Mobile terminal and method for displaying communication information of mobile terminal

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
使两个列表框(ListBox)的选项同步;嗨客软件站;《嗨客软件站》;20070607;正文第1页 *
使用两个列表框(ListBox)的选项同步;嗨客软件站;《嗨客软件站》;20070607;正文第1页 *
用js如何实现两个ul选择的内容同步;EXDestroyer;《V2EX》;20150525;正文第1-4页 *

Also Published As

Publication number Publication date
CN107450807A (en) 2017-12-08

Similar Documents

Publication Publication Date Title
US9870362B2 (en) Interactive data-driven presentations
JP6938680B2 (en) Efficient image enhancement with related content
CN110502298B (en) Method and equipment for providing update reminding information of electronic book
US8756216B1 (en) Scalable tree builds for content descriptor search
CN106888236B (en) Session management method and session management device
WO2016082598A1 (en) Method, apparatus, and device for rapidly searching for application program
CN109074372B (en) Applying metadata using drag and drop
WO2017165669A1 (en) Smart match autocomplete system
US8352483B1 (en) Scalable tree-based search of content descriptors
CN105612511B (en) Identifying and structuring related data
CN107861750B (en) Label management method, label management device and intelligent terminal
CN110851712A (en) Book information recommendation method and device and computer readable medium
US20210150243A1 (en) Efficient image sharing
CN107391540A (en) A kind of small routine methods of exhibiting, device and grader
CN106971004B (en) Search result providing method and device
CN112435094A (en) Information interaction method and device, storage medium and electronic equipment
CN109376764B (en) Data collection method and device based on clustering and computer readable storage medium
CN107450807B (en) Synchronous option selection method and device
CN114117225A (en) Book recommendation method and book recommendation equipment
CN104049831A (en) Method and device for inputting emotion icon
CN115701299A (en) Combined local and server context menu
US20130229440A1 (en) State aware tile visualization
WO2023082817A1 (en) Application program recommendation method
CN108090183B (en) File name display method, device and equipment
CN113590914B (en) Information processing method, apparatus, electronic device and storage medium

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
GR01 Patent grant
GR01 Patent grant