CN112416188A - Component control method, device, processor and machine-readable storage medium - Google Patents

Component control method, device, processor and machine-readable storage medium Download PDF

Info

Publication number
CN112416188A
CN112416188A CN201910768688.0A CN201910768688A CN112416188A CN 112416188 A CN112416188 A CN 112416188A CN 201910768688 A CN201910768688 A CN 201910768688A CN 112416188 A CN112416188 A CN 112416188A
Authority
CN
China
Prior art keywords
option
area
setting
external input
setting area
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.)
Granted
Application number
CN201910768688.0A
Other languages
Chinese (zh)
Other versions
CN112416188B (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.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum 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 Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201910768688.0A priority Critical patent/CN112416188B/en
Publication of CN112416188A publication Critical patent/CN112416188A/en
Application granted granted Critical
Publication of CN112416188B publication Critical patent/CN112416188B/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

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 component control method, a component control device, a processor and a machine-readable storage medium, and belongs to the field of computers. The method comprises the following steps: responding to a first external input, and displaying a to-be-selected area, wherein the to-be-selected area comprises a first option and a second option; when receiving a second external input with the first option selected, executing an operation corresponding to the first option; when a third external input with the selected second option is received, a setting area is displayed, and the setting area and the to-be-selected area are in the same floating layer; and when a fourth external input which sets the setting area and completes the setting is received, executing the operation corresponding to the second option according to the set content. The invention can realize the execution of direct selection and options required to be set in the same component, thereby improving the user efficiency.

Description

Component control method, device, processor and machine-readable storage medium
Technical Field
The present invention relates to computers, and in particular, to a component control method, apparatus, processor, and machine-readable storage medium.
Background
For some components, for example, a component with a pull-down menu, the pull-down menu may include a plurality of options for a user to select, but options that can be directly selected and executed and options that need to be set and then executed cannot coexist in the component, resulting in inefficient operation by the user.
Disclosure of Invention
Embodiments of the present invention provide a component control method, an apparatus, a processor, and a machine-readable storage medium, which can implement direct selection and options that need to be set in the same component, thereby improving user efficiency.
In order to achieve the object of the present invention, an embodiment of the present invention provides a component control method, including: responding to a first external input, and displaying a to-be-selected area, wherein the to-be-selected area comprises a first option and a second option; when receiving a second external input with the first option selected, executing an operation corresponding to the first option; when a third external input with the selected second option is received, a setting area is displayed, and the setting area and the to-be-selected area are in the same floating layer; and when a fourth external input which sets the setting area and completes the setting is received, executing the operation corresponding to the second option according to the set content.
Further, the setting area and the to-be-selected area belong to different levels.
Further, after the display setting area, the method further comprises: upon receiving a fifth external input to cancel the setting area, saving a current setting and stopping presentation of the setting area.
Further, the setting area includes one or more options that can be selected simultaneously.
An embodiment of the present invention further provides an apparatus for controlling an assembly, including: the display device comprises a display unit and an execution unit, wherein the display unit is used for: responding to a first external input, and displaying a to-be-selected area, wherein the to-be-selected area comprises a first option and a second option; when a third external input with the selected second option is received, a setting area is displayed, and the setting area and the to-be-selected area are in the same floating layer; the execution unit is to: when receiving a second external input with the first option selected, executing an operation corresponding to the first option; and when a fourth external input which sets the setting area and completes the setting is received, executing the operation corresponding to the second option according to the set content.
Further, the setting area and the to-be-selected area belong to different levels.
Further, the display unit is further configured to: upon receiving a fifth external input to cancel the setting area, saving a current setting and stopping presentation of the setting area.
Further, the setting area includes one or more options that can be selected simultaneously.
An embodiment of the present invention further provides a processor, configured to run a program, where the program is run to perform: the component control method described above.
Embodiments of the present invention also provide a machine-readable storage medium having instructions stored thereon, where the instructions are configured to cause a machine to perform: the component control method described above.
By the technical scheme, the area to be selected is displayed in response to the first external input, and the area to be selected comprises a first option and a second option; when receiving a second external input with the first option selected, executing an operation corresponding to the first option; when a third external input with the selected second option is received, a setting area is displayed, and the setting area and the to-be-selected area are in the same floating layer; and when a fourth external input which sets the setting area and completes the setting is received, executing the operation corresponding to the second option according to the set content. By setting the region to be selected and the setting region in the same floating layer, direct selection and options required to be set can be executed in the same component, and user efficiency is improved.
Additional features and advantages of embodiments of the invention will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the embodiments of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the embodiments of the invention without limiting the embodiments of the invention. In the drawings:
FIG. 1 is a flow chart of a component control method provided by an embodiment of the invention;
FIG. 2 is a flow chart of a component control method provided by another embodiment of the present invention;
FIG. 3 is a block diagram illustrating the implementation of components provided by an embodiment of the present invention; and
fig. 4 is a schematic structural diagram of an assembly control device according to an embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the invention refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating embodiments of the invention, are given by way of illustration and explanation only, not limitation.
Fig. 1 is a flowchart of an assembly control method according to an embodiment of the present invention. As shown in fig. 1, the method includes:
step S11, responding to the first external input, displaying a to-be-selected area, wherein the to-be-selected area comprises a first option and a second option;
step S12, when receiving the second external input with the first option selected, executing the operation corresponding to the first option;
step S13, when a third external input with the second option selected is received, a setting area is displayed, and the setting area and the area to be selected are in the same floating layer;
and step S14, when receiving a fourth external input for setting the setting area and completing the setting, executing an operation corresponding to the second option according to the set content.
In step S11, the first external input may be, for example, a click of a button or an input of a keyboard, and is not limited herein. The candidate area may be presented in a dialog box, including a first option and a second option, where the first option and the second option may represent two types of options instead of only two options.
In step S12, the first option is an option that can be directly selected and executed, and when the first option is selected by a second external input (e.g., clicking or the like) in various manners, an operation corresponding to the option is directly executed.
In step S13, when the second option is selected, it needs to be set, that is, a setting area is displayed, and the setting area may also be displayed in a dialog box manner. The setting area and the to-be-selected area are contents displayed at different stages on the same floating layer and belong to different levels. It may be understood that the candidate area is displayed on the floating layer first, and then the setup area is displayed on the floating layer when a third external input with the second option selected is received. For example, two hierarchies may be set in the same floating layer, and the set region of the second hierarchy may be used to replace the candidate region of the first hierarchy when receiving a third external input in which the second option is selected. The setting area may include one option or a plurality of options that can be selected simultaneously.
In step S14, after the setting is completed, it may be determined that the setting is completed to perform an operation corresponding to the second option, for example, by performing a specific fourth external input again (e.g., clicking a specific button, etc.) to trigger the performing of the operation. Since the set content affects the operation, the operation is performed according to the set content. If no setting is made, the operation corresponding to the second option is not executed even if a specific fourth external input is made to trigger the execution of the operation.
Fig. 2 is a flowchart of a component control method according to another embodiment of the present invention. As shown in fig. 2, the method includes:
step S21, responding to the first external input, displaying a to-be-selected area, wherein the to-be-selected area comprises a first option and a second option;
step S22, when receiving the second external input with the first option selected, executing the operation corresponding to the first option;
step S23, when a third external input with the second option selected is received, a setting area is displayed, and the setting area and the area to be selected are in the same floating layer;
step S24, when receiving a fourth external input for setting the setting area and completing the setting, executing an operation corresponding to the second option according to the set content;
step S25, upon receiving a fifth external input to cancel the setting area, saving the current setting and stopping presenting the setting area.
In step S25, if a specific fifth external input is made to cancel the setting, the presentation of the setting area is stopped, and the current setting, for example, the currently selected option, is saved. The saved settings may be restored the next time the settings area is presented again.
Other steps are similar to those in the above embodiments, and are not described herein again.
FIG. 3 is a block diagram of an embodiment of the present invention. As shown in fig. 3, taking the component for exporting the screenshot as an example, if a "screenshot exporting" button in the component is clicked, a drop-down menu appears, which is a to-be-selected area and includes two options, namely an original screenshot and a marked screenshot. If the 'original screenshot' is clicked, the operation of deriving the original screenshot is directly performed. If "mark screenshot" is clicked, a drop down menu appears, which is a setup area, comprising a number of options, and having "export" and "Cancel" buttons. And after the option is selected, clicking 'export', executing the operation of exporting the marked screenshot according to the setting, retracting all pull-down menus, restoring the component to the original state, and if at least one of the four options of 'positive', 'negative', 'neutral' and 'irrelevant' is not selected, not executing the export operation even if clicking 'export'. If the user clicks 'cancel', the pull-down menu of the setting area is retracted, the selected settings of the four options of 'positive', 'negative', 'neutral' and 'irrelevant' are saved, when the pull-down menu of the setting area appears next time, the option is selected directly according to the saved selected settings, for example, when the user clicks 'cancel', the user selects 'positive', and when the pull-down menu of the setting area appears next time, the user directly and automatically selects 'positive'.
The selection area to be selected and the setting area are arranged in different levels of the same floating layer, so that when the setting area needs to be displayed, the setting area is used for directly replacing the selection area to be selected, and options which are directly selected and need to be set can be executed in the same component.
Fig. 4 is a schematic structural diagram of an assembly control device according to an embodiment of the present invention. As shown in fig. 4, the apparatus includes: show unit 1 and execution unit 2, wherein, show unit 1 is used for: responding to a first external input, and displaying a to-be-selected area, wherein the to-be-selected area comprises a first option and a second option; when a third external input with the selected second option is received, a setting area is displayed, and the setting area and the to-be-selected area are in the same floating layer; the execution unit 2 is configured to: when receiving a second external input with the first option selected, executing an operation corresponding to the first option; and when a fourth external input which sets the setting area and completes the setting is received, executing the operation corresponding to the second option according to the set content.
Further, the setting area and the to-be-selected area belong to different levels.
Further, after the display setting area, the display unit 1 is further configured to: upon receiving a fifth external input to cancel the setting area, saving a current setting and stopping presentation of the setting area.
Further, the setting area includes one or more options that can be selected simultaneously.
The embodiments of the device control apparatus are similar to the embodiments of the device control method described above, and are not described herein again.
By the technical scheme, the area to be selected is displayed in response to the first external input, and the area to be selected comprises a first option and a second option; when receiving a second external input with the first option selected, executing an operation corresponding to the first option; when a third external input with the selected second option is received, a setting area is displayed, and the setting area and the to-be-selected area are in the same floating layer; and when a fourth external input which sets the setting area and completes the setting is received, executing the operation corresponding to the second option according to the set content. By setting the region to be selected and the setting region in the same floating layer, direct selection and options required to be set can be executed in the same component, and user efficiency is improved.
The component control device comprises a processor and a memory, the display unit 1, the execution unit 2 and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions.
The processor comprises a kernel, and the kernel calls the corresponding program unit from the memory. The kernel can set one or more, and the components are controlled by adjusting kernel parameters.
The memory may include volatile memory in a computer readable medium, Random Access Memory (RAM) and/or nonvolatile memory such as Read Only Memory (ROM) or flash memory (flash RAM), and the memory includes at least one memory chip.
An embodiment of the present invention provides a storage medium on which a program is stored, the program implementing the component control method described above when executed by a processor.
The embodiment of the invention provides a processor, which is used for running a program, wherein the program executes the component control method when running.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program and realizes the following steps:
responding to external input, and displaying a to-be-selected area, wherein the to-be-selected area comprises a first option and a second option; when the external input with the selected first option is received, executing the operation corresponding to the first option; when receiving the selected external input of the second option, displaying a setting area, wherein the setting area and the to-be-selected area are in the same floating layer; and when receiving external input for setting the setting area and completing the setting, executing the operation corresponding to the second option according to the set content.
The device herein may be a server, a PC, a PAD, a mobile phone, etc.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device:
responding to external input, and displaying a to-be-selected area, wherein the to-be-selected area comprises a first option and a second option; when the external input with the selected first option is received, executing the operation corresponding to the first option; when receiving the selected external input of the second option, displaying a setting area, wherein the setting area and the to-be-selected area are in the same floating layer; and when receiving external input for setting the setting area and completing the setting, executing the operation corresponding to the second option according to the set content.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). The memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that 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 the process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above are merely examples of the present application and are not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method of controlling a component, the method comprising:
responding to a first external input, and displaying a to-be-selected area, wherein the to-be-selected area comprises a first option and a second option;
when receiving a second external input with the first option selected, executing an operation corresponding to the first option;
when a third external input with the selected second option is received, a setting area is displayed, and the setting area and the to-be-selected area are in the same floating layer;
and when a fourth external input which sets the setting area and completes the setting is received, executing the operation corresponding to the second option according to the set content.
2. The component control method according to claim 1, wherein the setting area and the candidate area belong to different hierarchies.
3. The component control method according to claim 1, characterized in that after the presentation setup area, the method further comprises:
upon receiving a fifth external input to cancel the setting area, saving a current setting and stopping presentation of the setting area.
4. The component control method according to claim 1, wherein the setting region includes one or more options that can be selected simultaneously.
5. A component control apparatus, the apparatus comprising:
a presentation unit and an execution unit, wherein,
the display unit is used for: responding to a first external input, and displaying a to-be-selected area, wherein the to-be-selected area comprises a first option and a second option; when a third external input with the selected second option is received, a setting area is displayed, and the setting area and the to-be-selected area are in the same floating layer;
the execution unit is to: when receiving a second external input with the first option selected, executing an operation corresponding to the first option; and when a fourth external input which sets the setting area and completes the setting is received, executing the operation corresponding to the second option according to the set content.
6. The component control apparatus according to claim 5, wherein the setting area and the candidate area belong to different hierarchies.
7. The component control device of claim 5, wherein after the display setting area, the display unit is further configured to:
upon receiving a fifth external input to cancel the setting area, saving a current setting and stopping presentation of the setting area.
8. The component control apparatus according to claim 5, wherein the setting section includes one or more options that can be selected simultaneously.
9. A processor configured to execute a program, wherein the program is configured to perform:
the component control method according to any one of claims 1 to 4.
10. A machine-readable storage medium having instructions stored thereon for causing a machine to perform:
the component control method according to any one of claims 1 to 4.
CN201910768688.0A 2019-08-20 2019-08-20 Component control method, device, processor and machine-readable storage medium Active CN112416188B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910768688.0A CN112416188B (en) 2019-08-20 2019-08-20 Component control method, device, processor and machine-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910768688.0A CN112416188B (en) 2019-08-20 2019-08-20 Component control method, device, processor and machine-readable storage medium

Publications (2)

Publication Number Publication Date
CN112416188A true CN112416188A (en) 2021-02-26
CN112416188B CN112416188B (en) 2022-05-20

Family

ID=74779152

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910768688.0A Active CN112416188B (en) 2019-08-20 2019-08-20 Component control method, device, processor and machine-readable storage medium

Country Status (1)

Country Link
CN (1) CN112416188B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014238909A (en) * 2014-08-19 2014-12-18 日立マクセル株式会社 Digital content receiving device and digital content receiving method
CN105573599A (en) * 2015-12-11 2016-05-11 努比亚技术有限公司 Rapid menu setting device and method
CN105630301A (en) * 2014-11-28 2016-06-01 展讯通信(天津)有限公司 Menu selection system and method as well as electronic device
CN109471694A (en) * 2018-10-29 2019-03-15 恒生电子股份有限公司 Drop-down list management method and drop-down list
CN109744967A (en) * 2017-11-07 2019-05-14 青岛海尔洗碗机有限公司 A kind of dish-washing machine interface operation method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014238909A (en) * 2014-08-19 2014-12-18 日立マクセル株式会社 Digital content receiving device and digital content receiving method
CN105630301A (en) * 2014-11-28 2016-06-01 展讯通信(天津)有限公司 Menu selection system and method as well as electronic device
CN105573599A (en) * 2015-12-11 2016-05-11 努比亚技术有限公司 Rapid menu setting device and method
CN109744967A (en) * 2017-11-07 2019-05-14 青岛海尔洗碗机有限公司 A kind of dish-washing machine interface operation method
CN109471694A (en) * 2018-10-29 2019-03-15 恒生电子股份有限公司 Drop-down list management method and drop-down list

Also Published As

Publication number Publication date
CN112416188B (en) 2022-05-20

Similar Documents

Publication Publication Date Title
CN109582403B (en) Linkage display method and device for components in diagram
CN107644286B (en) Workflow processing method and device
US9606725B2 (en) Collaborative overlay of user interface elements rendered on the display of a computing device
CN109582192B (en) Hierarchical menu display method and device
CN110008018A (en) A kind of batch tasks processing method, device and equipment
CN107562483A (en) A kind of method and device of carry guiding file system
CN103984626A (en) Method and device for generating test-case script
CN109857516B (en) Cluster migration method and device based on container
CN104572431A (en) Test method and test device
CN109857964B (en) Thermodynamic diagram drawing method and device for page operation, storage medium and processor
CN112099701A (en) Application icon processing method and device, storage medium and processor
CN106648567B (en) Data acquisition method and device
CN109522189B (en) Data monitoring method, device and system
CN110837446A (en) Equipment management method and device applied to embedded system, medium and embedded equipment
CN112416188B (en) Component control method, device, processor and machine-readable storage medium
CN109977317B (en) Data query method and device
CN107037945B (en) Focus processing method and device and intelligent terminal
CN110955813A (en) Data crawling method and device
CN112579066A (en) Chart display method and device, storage medium and equipment
CN115904785A (en) Abnormity positioning method, device, equipment and readable storage medium
JP2021506010A (en) Methods and systems for tracking application activity data from remote devices and generating modified behavioral data structures for remote devices
CN115688102A (en) Window processing method and device, processor and electronic equipment
CN110968373A (en) Page switching implementation method and device, storage medium and processor
CN114461212A (en) Method and device for changing skin of software, storage medium and processor
CN113836872A (en) Page diagram object editing method, device, equipment and readable 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