CN109739409B - Batch processing method and device and terminal equipment - Google Patents

Batch processing method and device and terminal equipment Download PDF

Info

Publication number
CN109739409B
CN109739409B CN201810332387.9A CN201810332387A CN109739409B CN 109739409 B CN109739409 B CN 109739409B CN 201810332387 A CN201810332387 A CN 201810332387A CN 109739409 B CN109739409 B CN 109739409B
Authority
CN
China
Prior art keywords
batch
event
batch processing
target object
processing
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
CN201810332387.9A
Other languages
Chinese (zh)
Other versions
CN109739409A (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 ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201810332387.9A priority Critical patent/CN109739409B/en
Publication of CN109739409A publication Critical patent/CN109739409A/en
Application granted granted Critical
Publication of CN109739409B publication Critical patent/CN109739409B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the application discloses a batch processing method, which comprises the following steps: registering a batch processing monitor, monitoring a batch processing event through the batch processing monitor, displaying a batch operation control which can be operated by a user when the batch processing event is monitored, and sending a batch operation instruction through the batch operation control by the user, so that a target object related to the batch processing event can be correspondingly processed in a batch operation mode in response to the batch operation instruction. The method enables the user to realize batch selection and batch operation of the objects without making the operable objects enter the state to be selected and selecting the plurality of objects in the state to be selected one by one, simplifies the user operation, shortens the response time of the batch operation and meets the high-efficiency requirement on the batch processing of the objects. The embodiment of the application also discloses a batch processing device and related equipment.

Description

Batch processing method and device and terminal equipment
Technical Field
The present application relates to the field of electronic technologies, and in particular, to a batch processing method and apparatus, and a terminal device.
Background
With the rapid development of electronic information, more and more objects are needed for the user to perform operation processing, wherein the objects operable by the user can be, for example: electronic documents, text messages, applications, video pictures, and the like. Therefore, it is very important how to improve the processing efficiency of the operation object.
At present, batch processing can be performed simultaneously for a large number of objects, and can complete the processing process quickly, thereby effectively improving the processing efficiency. However, in the current batch processing, according to the operation requirement of the user, the objects operable by the user enter a candidate state, then, the user manually and sequentially selects a plurality of objects in the candidate state, and finally, corresponding operation processing is performed. For example, if a user wants to delete some photos in batch, the user first enters the application of the photos, then clicks the selection control, then all the photos enter the to-be-selected state, and based on the selection, the user manually and sequentially selects the target photos, and finally clicks the deletion control to delete the photos in batch.
Therefore, in the current batch processing mode, the user operation is complicated and time-consuming, and the batch operation of the client responding to the user is time-consuming, so that the efficient requirement on the batch processing of the objects is difficult to meet.
Disclosure of Invention
The embodiment of the application provides a batch processing method, a batch processing device and related equipment, so that batch selection and batch operation of objects can be realized without making operable objects enter a candidate state and selecting a plurality of objects in the candidate state one by one, user operation is simplified, response time of batch operation is shortened, and efficient requirements on batch processing of the objects are met.
In view of the above, a first aspect of the present application provides a batch processing method, including:
registering a batch processing listener;
monitoring a batch processing event through the batch processing monitor, wherein the batch processing event is determined according to trigger events of at least two objects belonging to the same time period;
displaying batch operation controls which can be operated by a user when the batch processing events are monitored;
and responding to the batch operation instruction, and performing corresponding batch operation processing on the target object involved in the batch processing event.
Optionally, the registering a batch process listener includes:
and acquiring an object container class, and registering a batch processing listener in an operating system through the object container class.
Optionally, the displaying a batch operation control operable by a user includes:
and controlling the batch operation control to be changed from the non-operable state to the operable state.
Optionally, the displaying a batch operation control operable by a user includes:
and popping up a window and displaying batch operation controls which can be operated by a user on the window.
Optionally, the monitoring, by the batch listener, a batch event includes:
intercepting touch events of the objects through the object container class, and judging whether touch time of at least two objects belongs to the same time period according to the intercepted touch events of the at least two objects;
if so, determining that the user triggers a batch processing event, and transmitting the batch processing event through the batch processing monitor.
Optionally, the monitoring, by the batch listener, a batch event includes:
selecting an event through an object container class interception area;
and if the area selection event comprising at least two objects is intercepted, determining that the user triggers a batch processing event, and transmitting the batch processing event through the batch processing monitor.
Optionally, the responding to the batch operation instruction, and performing corresponding batch operation processing on the target object involved in the batch processing event includes:
responding to a batch operation instruction, and acquiring a position or an identity corresponding to each target object from the event attribute information of the batch processing event;
and determining each target object according to the position or the identity of each target object, and performing corresponding batch operation processing on each target object.
Optionally, the batch operation control includes:
at least one editing control related to the target object, wherein the editing control is a functional control capable of editing the target object; and/or the like, and/or,
and the application control is an icon control which realizes corresponding processing on the target object through an application program.
Optionally, the target object is a window; and the batch operation instruction is used for indicating at least two windows to perform split-screen display.
A second aspect of the present application provides an apparatus for batch processing, the apparatus comprising:
the registration module is used for registering the batch processing monitor;
the monitoring module is used for monitoring a batch processing event through the batch processing monitor, and the batch processing event is determined according to the trigger events of at least two objects belonging to the same time period;
the display module is used for displaying batch operation controls which can be operated by a user when the batch processing events are monitored;
and the batch processing module is used for responding to the batch operation instruction and carrying out corresponding batch operation processing on the target object related in the batch processing event.
Optionally, the registration module is specifically configured to:
and acquiring an object container class, and registering a batch processing listener in an operating system through the object container class.
Optionally, the display module is specifically configured to:
and controlling the batch operation control to be changed from the non-operable state to the operable state.
Optionally, the display module is specifically configured to:
and popping up a window and displaying batch operation controls which can be operated by a user on the window.
Optionally, the monitoring module is specifically configured to:
intercepting touch events of the objects through the object container class, and judging whether touch time of at least two objects belongs to the same time period according to the intercepted touch events of the at least two objects;
if so, determining that the user triggers a batch processing event, and transmitting the batch processing event through the batch processing monitor.
Optionally, the monitoring module is specifically configured to:
selecting an event through an object container class interception area;
and if the area selection event comprising at least two objects is intercepted, determining that the user triggers a batch processing event, and transmitting the batch processing event through the batch processing monitor.
Optionally, the batch processing module is specifically configured to:
responding to a batch operation instruction, and acquiring a position or an identity corresponding to each target object from the event attribute information of the batch processing event;
and determining each target object according to the position or the identity of each target object, and performing corresponding batch operation processing on each target object.
Optionally, the batch operation control includes:
at least one editing control related to the target object, wherein the editing control is a functional control capable of editing the target object; and/or the like, and/or,
and the application control is an icon control which realizes corresponding processing on the target object through an application program.
Optionally, the target object is a window; and the batch operation instruction is used for indicating at least two windows to perform split-screen display.
A third aspect of the application provides a terminal device, the device comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is adapted to perform the steps of the method of batch processing according to the first aspect as described above, according to instructions in the program code.
A fourth aspect of the present application provides a computer-readable storage medium for storing program code for performing the method of the first aspect.
A fifth aspect of the present application provides a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of the first aspect described above.
According to the technical scheme, the embodiment of the application has the following advantages:
the batch processing method comprises the steps of registering a batch processing monitor, monitoring a batch processing event through the batch processing monitor, displaying a batch operation control which can be operated by a user when the batch processing event is monitored, and sending a batch operation instruction through the batch operation control by the user, so that a target object related to the batch processing event can be correspondingly processed in a batch operation mode in response to the batch operation instruction. The method enables the user to realize batch selection and batch operation of the objects without making the operable objects enter the state to be selected and selecting the plurality of objects in the state to be selected one by one, simplifies the user operation, shortens the response time of the batch operation and meets the high-efficiency requirement on the batch processing of the objects.
Drawings
FIG. 1 is a schematic view of a batch processing method according to an embodiment of the present disclosure;
FIG. 2 is a flow chart of a batch processing method according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating batch processing through a selected area according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram illustrating a batch processing method applied to an instant messaging client according to an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating a batch processing method applied to a desktop management client according to an embodiment of the present application;
FIG. 6 is a schematic diagram illustrating a batch processing method applied to a desktop management client according to an embodiment of the present application;
FIG. 7 is a schematic diagram of a batch processing apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a terminal device in an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
Aiming at the technical problems that the traditional batch processing mode causes complex and time-consuming user operation and is difficult to meet the efficient requirement on the batch processing of objects, the embodiment of the application provides a batch processing method.
The user can realize batch selection of the objects without making the operable objects enter the candidate state and selecting the plurality of objects in the candidate state one by one, so that batch operation of the objects can be realized, the user operation is simplified, the response time of the batch operation is shortened, and the high-efficiency requirement on batch processing of the objects is met.
It can be understood that the batch processing method provided by the embodiment of the application can be applied to terminal equipment. The terminal device may be any data processing device with data processing capability, including but not limited to: existing, developing, or future developing smartphones, tablets, laptops, desktops, minicomputers, midrange computers, mainframe computers, and the like. The terminal device in this embodiment at least includes an operating system and a client. The operating system is a set of system software which manages hardware resources of the terminal device, controls other programs to run, and provides an interactive operation interface for a user. The operating system comprises a desktop operating system and a mobile operating system, such as a windows operating system windows and an Android intelligent operating system Android. The client refers to an application program providing a service, or an application program function module such as a plug-in, for example, a browser providing a page browsing service, an email client providing a mailing service, an instant messaging client providing an instant messaging service, and the like.
In order to facilitate understanding of the technical solution of the present application, the batch processing method provided in the embodiments of the present application is described below with reference to specific scenarios.
Referring to fig. 1, fig. 1 is a schematic view of a batch processing method according to an embodiment of the present disclosure. As shown in fig. 1, the application scenario includes a client 110 and an operating system 120. The present embodiment takes a client side of "album" as a specific example, and describes in detail a process of deleting photos in batches.
First, the client 110 registers a batch listener in the operating system, where the batch listener may be configured to listen to batch events, and for batch events of different types of objects, different batch listeners may be respectively used, for example, the listener 1 may be configured to listen to a batch event of an object of a specific type, the listener 2 may be configured to listen to a batch event of an object of another specific type, and similarly, the listener 3 and the listener 4 are respectively configured to listen to batch events of objects of other types, and so on.
Fig. 1 also shows an interface schematic diagram of the client, in the current interface of the "album" client, 9 photos are displayed, and a user can select multiple photos by touching them simultaneously with a finger, for example, two fingers can be used to touch selected photo 6 and photo 9 simultaneously, so that a trigger event of photo 6 and photo 9 in the same time period is generated, which may be regarded as a batch processing event, and touch selected photo 6 and photo 9 may be regarded as a target object involved in the batch processing event.
When the client monitors the batch processing event through the batch processing monitor, a batch operation control which can be operated by a user can be displayed, as shown in fig. 1, the batch operation control can be "copy", "delete", "collect", or "share". The user can click any one of the controls to send out a batch operation instruction, and the client can respond to the batch operation instruction to perform corresponding batch operation processing on the target object related to the batch processing event. As shown in fig. 1, the user may click on the "share" control, and issue a batch sharing instruction, and the client may share photos 6 and photos 9 in batches to other users or to a social network site for browsing in response to the instruction.
It should be noted that the application scenario shown in fig. 1 is only one specific example of the batch processing method, and this example does not constitute a limitation on the technical solution of the present application. In practical applications, the batch processing method may be applied to other scenarios and may have different implementations, for example, in some possible implementations, the client may also cooperate with the server to complete batch processing of objects in the network, such as web objects. In order to make the technical solution of the present application clearer, a specific implementation manner of the embodiments of the present application is described below with reference to the accompanying drawings.
Next, a batch processing method provided in an embodiment of the present application is described from the perspective of a client. Fig. 2 is a flowchart illustrating a batch processing method according to an embodiment of the present application, and referring to fig. 2, the method includes:
and S201, registering a batch processing listener.
A listener refers to a tool that listens for events. In the process of project development, the listener can be implemented by creating a listener class or directly multiplexing an existing listener class, for example, HTTP session listening interface class HttpSessionListener can be used to monitor HTTP session activity and property setting in HTTP session.
In particular, the batch listener refers to a type of listener for listening to batch events. A batch event may be understood as an event that batches at least two objects. For example, at least two photos are batched, at least two windows are batched, or at least two contacts are batched.
When using a batch listener for listening, it needs to be registered so that the client can determine the object selected by the user through the batch listener. In some possible implementations of this embodiment, the client may obtain the object container class, and register the batch listener in the operating system through the object container class.
To implement snooping of batch events, a batch listener needs to be registered on the event source of the batch event. In some possible implementations, the batch listener may not register directly on the event source, but rather through the object container class. As an example, a batch listener may be configured in a web.xml file using a batch listener tag, and an object container class may automatically register the batch listener in the event source.
It should be noted that multiple batch listeners can be configured in one web.xml file, so that the web server can load and register the event listeners according to the registration order in the web.xml file.
S202: and monitoring a batch processing event through the batch processing monitor.
Wherein the batch event is determined according to trigger events of at least two objects belonging to the same time period.
After registering a batch listener in the operating system, the client may listen for batch events through the batch listener. In particular, a snooped object performs some action or some change in state, which may be considered to generate a trigger event. When at least two objects are triggered within the same time period, a batch event may be determined according to trigger events belonging to the at least two objects within the same time period.
In this embodiment, the trigger event refers to an event triggered by at least one of a touch, a voice, a keyboard input, and other commands. Specifically, the trigger event may be an event triggered by the object being touched, that is, a touch event, or may be a voice event triggered by a voice instruction or the like, or a key-in event triggered by an instruction such as a keyboard input or the like.
Taking a touch event as an example, a client may intercept a touch event of an object through an object container class, and determine whether touch times of at least two objects belong to the same time period according to the intercepted touch events of the at least two objects, if so, it is determined that a user has triggered a batch processing event, and the batch processing event may be transmitted through the batch processing listener. Wherein the at least two objects may be two, three or four objects. When the user touches the trigger event with both hands, the at least two objects may also be more than four objects, for example, five, six, seven, etc.
For example, in the album client, the user touches the screen and selects two photos at the same time, which may be regarded as a trigger event for the two photos, and the trigger event for the two photos may be determined as a batch processing event. For another example, in the music player client, the user touches the screen, selects two songs at the same time, may regard the two songs as trigger events for the two songs, may determine the trigger events for the two songs as batch processing events, and may further notify the batch processing events to the server, so that the server specifies an object selected by the user, that is, a song selected by the user and to be processed.
In some cases, for example, when batch processing needs to be performed on a large number of objects at the same time, for example, when batch processing is performed on more than 10 objects, it is also possible to select the area where these objects are located, thereby realizing batch processing on the objects surrounded by the area. Based on this, in some possible implementation manners of the embodiment of the application, an event can be selected through the object container class intercepting area; and if the area selection event comprising at least two objects is intercepted, determining that the user triggers a batch processing event, and transmitting the batch processing event through the batch processing monitor. Fig. 3 is a schematic diagram illustrating batch processing of multiple objects in an area by selecting an area, and as shown in fig. 3, an area selection event is intercepted by an object container class, where the area selection event is an area selection event including two or more objects, it may be determined that a user has triggered a batch processing event, and the batch processing event may be transmitted through a batch processing listener. It should be noted that, if the client is a client applied to the mobile terminal, the area selection event may be implemented by finger touch, and if the client is a client applied to the desktop terminal, the area selection event may be implemented by a mouse.
In some cases, a batch processing event may also be triggered by a voice instruction, the client may intercept the voice trigger event through the object container class, and if a voice trigger event including at least two objects is intercepted, it is determined that the user has triggered the batch processing event, and the batch processing event is delivered through the batch processing listener. After the voice trigger event is intercepted, semantic analysis can be performed on the voice trigger event, an object triggered by the voice trigger event is determined, and whether a batch processing event is triggered or not is further determined.
The length of the time period in the present embodiment may be set according to an empirical value. It can be understood that when a user triggers an event for multiple objects at a time, for example, multiple fingers are used to click on objects at different positions on a screen, the events for the respective objects may occur simultaneously, or a certain time difference may exist, and if the time difference is within an allowable range, the events for the respective objects may be regarded as occurring simultaneously. Based on the time difference data, the time difference data when the user clicks a plurality of positions of the screen at one time can be collected, and the length of the time period can be determined according to a large amount of collected time difference data.
S203: and when the batch processing event is monitored, displaying a batch operation control which can be operated by a user.
In order to realize batch processing of the objects, a batch operation control is also required to be provided for a user to perform batch operation. The batch operation control refers to encapsulation of data and methods for performing batch operations on objects. In some possible implementations of the embodiments of the present application, the batch operation control may be at least one editing control and/or at least one application control associated with the target object.
The target object refers to at least two objects triggered by a batch event. For example, at least two photos triggered in the album client, and at least two songs triggered in the music player client. The editing control is a functional control capable of editing the target object. As one possible implementation, the functionality control may include any one or more of a delete control, a favorite control, an add control, a share control, a copy control, and/or a print control. The application control is an icon control for implementing corresponding processing on the target object through an application program. As one possible implementation, the application controls may be batch download icon controls, batch delete icon controls, and so on.
In the embodiment of the application, in order to implement batch processing on the object, when a batch processing event is monitored, the batch operation control may be displayed, so that a user triggers or activates the batch operation control to implement batch processing on the object. It should be noted that the batch operation control may be displayed only when the batch processing event is monitored, or the batch operation control may be always displayed on the object display page. Based on this, in some possible implementation manners of the embodiment of the present application, when a batch processing event is monitored, a window may pop up and a batch operation control that is operable by a user may be displayed on the window. In other possible implementations, the batch operation control may be always displayed on the object display page, and when a batch processing event is monitored, the batch operation control is controlled to be in an operable state. In order to avoid misoperation, the batch operation control can be controlled to be in an inoperable state when the batch processing event is not monitored, and the batch operation control is controlled to be changed from the inoperable state to an operable state when the batch processing event is monitored, so that the batch operation control which can be operated by a user is displayed.
S204: and responding to the batch operation instruction, and performing corresponding batch operation processing on the target object involved in the batch processing event.
The batch operation instruction is an instruction for performing a batch operation on an object related to a batch event. The batch operation instruction can be issued by clicking, triggering or activating a batch operation control by a user. For example, the user may click on the batch delete control to issue a batch delete instruction, and click on the batch collection control to issue a batch collection instruction.
After the batch operation instruction is issued, the client may perform corresponding batch operation processing on the target object involved in the batch processing event in response to the batch operation instruction. For example, in an album application, the client may perform batch deletion on the batch-selected pictures in response to a batch deletion instruction. When batch processing of web objects is involved, the client can respond to the batch operation instruction and instruct the server to perform corresponding batch operation processing on the web objects involved in the batch processing event. For example, in a network disk application, a client may download a batch of selected resources in a batch in response to a batch download instruction.
In this embodiment, in order to implement batch operation processing on the target object, the target object needs to be recognized from a plurality of objects, and then corresponding batch operation processing is performed according to the recognized target object. The identification of the target object and the batch operation processing according to the target object may be implemented in various ways, and in one possible implementation way, the batch operation processing of the target object may be implemented through the following steps:
s2041: and responding to the batch operation instruction, and acquiring the corresponding position or the identity of each target object from the event attribute information of the batch processing event.
The event attribute information is information representing the property or relationship of an object included in an event. The objects included in the batch event may be determined as target objects, and thus, information characterizing the property or relationship of each target object may be acquired from the event attribute information of the batch event.
The information representing the property or relationship of each target object may include a location or an identity corresponding to each target object. In this way, the position or the identity corresponding to each target object can be acquired from the event attribute information of the batch processing event. Wherein the position may be represented by coordinates. The identity may include an ID, serial number, identification code, and the like. Taking the photo album application as an example, the target object is at least two photos, and for any one of the at least two photos, the position or the identity of the photo can be obtained, such as obtaining the coordinates of the center point of the photo, the name or the serial number of the photo, and the like.
S2042: and determining each target object according to the position or the identity of each target object, and performing corresponding batch operation processing on each target object.
After the position or the identity of each target object is obtained, the target object can be determined, and thus, corresponding batch operation processing can be performed on each target object.
Taking the photo album application as an example, if the identifiers of the target objects obtained from the event attribute information of the batch processing event are 201803310015 and 201803310027, respectively, it may be determined that the fifth photo in the current photo display page is the target object according to the serial number 201803310015, and the ninth photo in the current photo display page is the target object according to the serial number 201803310027, and corresponding batch operation processing, such as batch deletion processing, may be performed on the fifth photo and the ninth photo.
Therefore, the batch processing method includes registering a batch processing monitor, monitoring a batch processing event through the batch processing monitor, displaying a batch operation control which can be operated by a user when the batch processing event is monitored, and sending a batch operation instruction through the batch operation control by the user, so that a target object related to the batch processing event can be correspondingly processed in a batch operation mode in response to the batch operation instruction. The user can realize batch selection of the objects without making the operable objects enter the candidate state and selecting the plurality of objects in the candidate state one by one, so that batch operation of the objects can be realized, the user operation is simplified, the response time of the batch operation is shortened, and the high-efficiency requirement on batch processing of the objects is met.
The embodiment described above mainly introduces a specific implementation manner of the batch processing method by taking the album client as an example, but the batch processing method provided in the embodiment of the present application is not limited to the application scenario described above, and may also be applied to an instant messaging client to batch process instant messaging contacts in the instant messaging client, for example, multiple instant messaging contacts may be deleted in batch or shared in batch, or multiple instant messaging contacts may also be added to a group in batch to create a group session. The batch processing method can also be applied to a desktop management client to batch process a plurality of application icons, for example, the application icons can be deleted in batches, or the batch selected icons can be aggregated into a folder to store a plurality of application icons, so that the classified management of the application programs is realized, and the desktop of the terminal equipment is simpler. As an extension of the embodiment of the present application, when the batch processing method is applied to a desktop management client, at least two of various windows, such as a window of a browser and a window of a video playing client, may also be batch processed, and these windows are aggregated, so as to implement split-screen display of the windows.
The above application scenarios are described below with reference to the accompanying drawings.
Fig. 4 is a schematic diagram illustrating batch processing of instant messaging contacts to create a group session according to an embodiment of the present application. As shown in fig. 4, in a contact list page of the instant messaging client, a plurality of contacts are simultaneously selected by a plurality of fingers, the client can display a "join group" control operable by a user, and the selected contacts can be added to the group in batches by clicking the control, so as to create a group formed by the selected contacts, and the selected contacts can perform a conversation through the group. By the method, the user can directly create the group session without clicking the 'create group' control on the added friend page and then selecting the contacts one by one, so that the user operation is greatly simplified, the batch operation response time is shortened, and the processing efficiency is improved.
It should be noted that the batch processing method is not limited to the instant messaging client, and may also be applied to a client for non-instant messaging applications such as short messages.
Next, a folder is generated by aggregating a plurality of application icons, and an application scene in which the application icons are stored in the folder is introduced.
Fig. 5 is a scene schematic diagram illustrating batch processing of multiple application icons according to an embodiment of the present application. As shown in fig. 5, a user may simultaneously select application icons of a certain category, such as shopping application icons, including a first shopping application icon, a second shopping application icon, and a third shopping application icon, after selecting the three icons, a page displays an "aggregation" control operable by the user, and after clicking the "aggregation" control, the client may generate a folder, and store the first shopping application icon, the second shopping application icon, and the third shopping application icon in the folder in batch.
Next, an application scenario in which a plurality of windows are batch-processed to realize split-screen display is introduced.
Fig. 6 is a schematic view of an application scenario in which a plurality of windows are batch processed to implement split-screen display of the windows according to an embodiment of the present application. In this embodiment, the target object is a window, and the batch operation instruction is used to instruct at least two windows to perform split-screen display. As shown in fig. 6, the window of the video player client and the window of the instant messaging client may be simultaneously selected, so that a batch operation control "split screen display" for user operation may be displayed in the page, and thus, the selected windows may all be displayed, where the display mode is a split screen display mode. By the method, the user can use the other service without interrupting the current service, and the user experience is improved.
In the embodiment shown in fig. 6, the user selects the windows of different clients to perform batch processing, so as to display the windows of different types in a split screen manner. As an extension of the above embodiment, different windows of the same client may also be selected for batch processing, so as to implement split-screen display of windows of the same type, and thus, a user may obtain different information at the same time.
Based on the specific implementation manner of the batch processing method provided by the embodiment of the present application, an embodiment of the present application further provides a batch processing apparatus, and then a specific implementation manner of the batch processing apparatus provided by the embodiment of the present application is introduced from the perspective of functional modularization.
Fig. 7 is a schematic structural diagram of a batch processing apparatus provided in an embodiment of the present application, and referring to fig. 7, the apparatus 700 includes:
a registration module 710 for registering a batch listener;
a monitoring module 720, configured to monitor a batch event through the batch listener, where the batch event is determined according to trigger events of at least two objects belonging to the same time period;
the display module 730 is configured to display a batch operation control operable by a user when the batch processing event is monitored;
and the batch processing module 740 is configured to respond to the batch operation instruction and perform corresponding batch operation processing on the target object involved in the batch processing event.
Optionally, the registration module 710 is specifically configured to:
and acquiring an object container class, and registering a batch processing listener in an operating system through the object container class.
Optionally, the display module 730 is specifically configured to:
and controlling the batch operation control to be changed from the non-operable state to the operable state.
Optionally, the display module 730 is specifically configured to:
and popping up a window and displaying batch operation controls which can be operated by a user on the window.
Optionally, the monitoring module 720 is specifically configured to:
intercepting touch events of the objects through the object container class, and judging whether touch time of at least two objects belongs to the same time period according to the intercepted touch events of the at least two objects;
if so, determining that the user triggers a batch processing event, and transmitting the batch processing event through the batch processing monitor.
Optionally, the monitoring module 720 is specifically configured to:
selecting an event through an object container class interception area;
and if the area selection event comprising at least two objects is intercepted, determining that the user triggers a batch processing event, and transmitting the batch processing event through the batch processing monitor.
Optionally, the batch processing module 740 is specifically configured to:
responding to a batch operation instruction, and acquiring a position or an identity corresponding to each target object from the event attribute information of the batch processing event;
and determining each target object according to the position or the identity of each target object, and performing corresponding batch operation processing on each target object.
Optionally, the batch operation control includes:
at least one editing control related to the target object, wherein the editing control is a functional control capable of editing the target object; and/or the like, and/or,
and the application control is an icon control which realizes corresponding processing on the target object through an application program.
Optionally, the target object is a window; and the batch operation instruction is used for indicating at least two windows to perform split-screen display.
Therefore, the batch processing device comprises a registered batch processing monitor, the batch processing monitor monitors a batch processing event, when the batch processing event is monitored, a batch operation control which can be operated by a user is displayed, the user can send out a batch operation instruction through the batch operation control, and therefore the corresponding batch operation processing can be performed on a target object related to the batch processing event in response to the batch operation instruction. The user can realize batch selection of the objects without making the operable objects enter the candidate state and selecting the plurality of objects in the candidate state one by one, so that batch operation of the objects can be realized, the user operation is simplified, the response time of the batch operation is shortened, and the high-efficiency requirement on batch processing of the objects is met.
Based on the above description, the batch processing apparatus provided in the embodiment of the present application is introduced from the perspective of function modularization, and based on this, the embodiment of the present application further provides a batch processing device, where the batch processing device may be a terminal device, and then the terminal device provided in the embodiment of the present application is introduced from the perspective of hardware materialization.
The embodiment of the present application further provides a batch processing device, where the batch processing device is a terminal device, as shown in fig. 8, for convenience of description, only a part related to the embodiment of the present application is shown, and details of the specific technology are not disclosed, please refer to the method part of the embodiment of the present application. The terminal may be any terminal device including a mobile phone, a tablet computer, a Personal Digital Assistant (PDA, abbreviated as "Personal Digital Assistant"), a Sales terminal (POS, abbreviated as "Point of Sales"), a vehicle-mounted computer, etc., and the terminal is taken as a mobile phone as an example:
fig. 8 is a block diagram illustrating a partial structure of a mobile phone related to a terminal provided in an embodiment of the present application. Referring to fig. 8, the handset includes: radio Frequency (RF) circuit 810, memory 820, input unit 830, display unit 840, sensor 850, audio circuit 860, wireless fidelity (WiFi) module 870, processor 880, and power supply 890. Those skilled in the art will appreciate that the handset configuration shown in fig. 8 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 8:
the RF circuit 810 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for processing downlink information of a base station after receiving the downlink information to the processor 880; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 810 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a low noise Amplifier (Lownoise Amplifier; LNA), a duplexer, and the like. In addition, the RF circuit 810 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), e-mail, Short Message Service (SMS), and so on.
The memory 820 may be used to store software programs and modules, and the processor 880 executes various functional applications and data processing of the cellular phone by operating the software programs and modules stored in the memory 820. The memory 820 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 820 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 830 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 830 may include a touch panel 831 and other input devices 832. The touch panel 831, also referred to as a touch screen, can collect touch operations performed by a user on or near the touch panel 831 (e.g., operations performed by the user on the touch panel 831 or near the touch panel 831 using any suitable object or accessory such as a finger, a stylus, etc.) and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 831 may include two portions, i.e., a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts it to touch point coordinates, and sends the touch point coordinates to the processor 880, and can receive and execute commands from the processor 880. In addition, the touch panel 831 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 830 may include other input devices 832 in addition to the touch panel 831. In particular, other input devices 832 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 840 may be used to display information input by the user or information provided to the user and various menus of the cellular phone. The Display unit 840 may include a Display panel 841, and the Display panel 841 may be optionally configured in the form of a Liquid Crystal Display (LCD), an Organic Light-emitting diode (OLED), or the like. Further, touch panel 831 can overlay display panel 841, and when touch panel 831 detects a touch operation thereon or nearby, communicate to processor 880 to determine the type of touch event, and processor 880 can then provide a corresponding visual output on display panel 841 based on the type of touch event. Although in fig. 8, the touch panel 831 and the display panel 841 are two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 831 and the display panel 841 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 850, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor may include an ambient light sensor that adjusts the brightness of the display panel 841 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 841 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 860, speaker 861, microphone 862 may provide an audio interface between the user and the handset. The audio circuit 860 can transmit the electrical signal converted from the received audio data to the speaker 861, and the electrical signal is converted into a sound signal by the speaker 861 and output; on the other hand, the microphone 862 converts collected sound signals into electrical signals, which are received by the audio circuit 860 and converted into audio data, which are then processed by the audio data output processor 880 and transmitted to, for example, another cellular phone via the RF circuit 810, or output to the memory 820 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the WiFi module 870, and provides wireless broadband Internet access for the user. Although fig. 8 shows WiFi module 870, it is understood that it does not belong to the essential constitution of the handset, and may be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 880 is a control center of the mobile phone, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 820 and calling data stored in the memory 820, thereby integrally monitoring the mobile phone. Optionally, processor 880 may include one or more processing units; preferably, the processor 880 may integrate an application processor, which mainly handles operating systems, user interfaces, applications, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 880.
The handset also includes a power supply 890 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 880 via a power management system to manage charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In the embodiment of the present application, the processor 880 included in the terminal further has the following functions:
registering a batch processing listener;
monitoring a batch processing event through the batch processing monitor, wherein the batch processing event is determined according to trigger events of at least two objects belonging to the same time period;
displaying batch operation controls which can be operated by a user when the batch processing events are monitored;
and responding to the batch operation instruction, and performing corresponding batch operation processing on the target object involved in the batch processing event.
It should be noted that the processor 880 can also be used to execute any one of the implementation manners of the batch processing method provided in the embodiments of the present application.
The present application further provides a computer-readable storage medium for storing a program code, where the program code is configured to execute any one implementation of the batch processing method described in the foregoing embodiments.
The present application further provides a computer program product including instructions, which when run on a computer, causes the computer to execute any one of the embodiments of a batch processing method described in the foregoing embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit 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 application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (9)

1. A method of batch processing, comprising:
registering a batch listener, comprising:
acquiring an object container class, and registering a batch processing monitor in an operating system through the object container class;
monitoring a batch processing event through the batch processing monitor, wherein the batch processing event is determined according to trigger events of at least two objects belonging to the same time period;
displaying batch operation controls which can be operated by a user when the batch processing events are monitored;
responding to a batch operation instruction, and performing corresponding batch operation processing on the target object involved in the batch processing event;
the monitoring of the batch event by the batch listener includes:
selecting an event through the object container class intercepting area;
if an area selection event comprising at least two objects is intercepted, determining that a user triggers a batch processing event, and transmitting the batch processing event through the batch processing monitor;
the responding to the batch operation instruction, and performing corresponding batch operation processing on the target object involved in the batch processing event, including:
responding to a batch operation instruction, and acquiring a position or an identity corresponding to each target object from the event attribute information of the batch processing event;
and determining each target object according to the position or the identity of each target object, and performing corresponding batch operation processing on each target object.
2. The method of claim 1, wherein displaying batch operation controls available for user operation comprises:
and controlling the batch operation control to be changed from the non-operable state to the operable state.
3. The method of claim 1, wherein displaying batch operation controls available for user operation comprises:
and popping up a window and displaying batch operation controls which can be operated by a user on the window.
4. The method of claim 1, wherein listening for batch events by the batch listener comprises:
intercepting touch events of the objects through the object container class, and judging whether touch time of at least two objects belongs to the same time period according to the intercepted touch events of the at least two objects;
if so, determining that the user triggers a batch processing event, and transmitting the batch processing event through the batch processing monitor.
5. The method of any of claims 1 to 4, wherein the batch operation control comprises:
at least one editing control related to the target object, wherein the editing control is a functional control capable of editing the target object; and/or the like, and/or,
and the application control is an icon control which realizes corresponding processing on the target object through an application program.
6. The method of any one of claims 1 to 4, wherein the target object is a window; and the batch operation instruction is used for indicating at least two windows to perform split-screen display.
7. An apparatus for batch processing, the apparatus comprising:
a registration module for registering a batch listener, comprising:
acquiring an object container class, and registering a batch processing monitor in an operating system through the object container class;
the monitoring module is used for monitoring a batch processing event through the batch processing monitor, and the batch processing event is determined according to the trigger events of at least two objects belonging to the same time period;
the display module is used for displaying batch operation controls which can be operated by a user when the batch processing events are monitored;
the batch processing module is used for responding to a batch operation instruction and carrying out corresponding batch operation processing on the target object related in the batch processing event;
the monitoring of the batch event by the batch listener includes:
selecting an event through the object container class intercepting area;
if an area selection event comprising at least two objects is intercepted, determining that a user triggers a batch processing event, and transmitting the batch processing event through the batch processing monitor;
the responding to the batch operation instruction, and performing corresponding batch operation processing on the target object involved in the batch processing event, including:
responding to a batch operation instruction, and acquiring a position or an identity corresponding to each target object from the event attribute information of the batch processing event;
and determining each target object according to the position or the identity of each target object, and performing corresponding batch operation processing on each target object.
8. A terminal device, comprising a processor and a memory:
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to execute the method of batching according to any one of claims 1-6 according to instructions in the program code.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium is configured to store a program code for performing the method of batching according to any one of claims 1-6.
CN201810332387.9A 2018-04-13 2018-04-13 Batch processing method and device and terminal equipment Active CN109739409B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810332387.9A CN109739409B (en) 2018-04-13 2018-04-13 Batch processing method and device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810332387.9A CN109739409B (en) 2018-04-13 2018-04-13 Batch processing method and device and terminal equipment

Publications (2)

Publication Number Publication Date
CN109739409A CN109739409A (en) 2019-05-10
CN109739409B true CN109739409B (en) 2020-03-27

Family

ID=66354399

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810332387.9A Active CN109739409B (en) 2018-04-13 2018-04-13 Batch processing method and device and terminal equipment

Country Status (1)

Country Link
CN (1) CN109739409B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111714874B (en) * 2020-06-18 2024-02-09 网易(杭州)网络有限公司 Control state switching method and device and electronic equipment
CN114339424A (en) * 2021-12-28 2022-04-12 武汉斗鱼鱼乐网络科技有限公司 Method, storage medium, electronic device and system for batch cancellation of concerns

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2393000A2 (en) * 2010-06-04 2011-12-07 Lg Electronics Inc. Mobile terminal capable of providing multiplayer game and method of controlling operation of the mobile terminal
CN102855084A (en) * 2012-08-20 2013-01-02 华为终端有限公司 Multi-selection processing method based on touch screen and UE (user equipment)
CN103513870A (en) * 2012-06-29 2014-01-15 汉王科技股份有限公司 Method and device for selecting multiple articles in list interface of intelligent terminal device
CN105573653A (en) * 2015-12-21 2016-05-11 深圳市万普拉斯科技有限公司 Multi-object selecting method and terminal
CN106648420A (en) * 2016-11-21 2017-05-10 北京技德网络技术有限公司 Method for switching screen-splitting mode and multi-window mode

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2393000A2 (en) * 2010-06-04 2011-12-07 Lg Electronics Inc. Mobile terminal capable of providing multiplayer game and method of controlling operation of the mobile terminal
CN103513870A (en) * 2012-06-29 2014-01-15 汉王科技股份有限公司 Method and device for selecting multiple articles in list interface of intelligent terminal device
CN102855084A (en) * 2012-08-20 2013-01-02 华为终端有限公司 Multi-selection processing method based on touch screen and UE (user equipment)
CN105573653A (en) * 2015-12-21 2016-05-11 深圳市万普拉斯科技有限公司 Multi-object selecting method and terminal
CN106648420A (en) * 2016-11-21 2017-05-10 北京技德网络技术有限公司 Method for switching screen-splitting mode and multi-window mode

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JSP基础-监听器基本功能;李天火;《https://www.jianshu.com/p/4de86405c27d》;20160221;1-2 *

Also Published As

Publication number Publication date
CN109739409A (en) 2019-05-10

Similar Documents

Publication Publication Date Title
US11449955B2 (en) Information processing method and apparatus
CN115357178B (en) Control method applied to screen-throwing scene and related equipment
CN104518953B (en) Method for deleting message, instant communication terminal and system
WO2016169465A1 (en) Method, apparatus and system for displaying screen information
CN105786878B (en) Display method and device of browsing object
CN112637039B (en) Information processing method, device and storage medium
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
CN112291134B (en) Information prompting method, device, equipment and storage medium
CN108549519B (en) Split screen processing method and device, storage medium and electronic equipment
CN106506321B (en) Group message processing method and terminal device
CN106303070B (en) notification message prompting method and device and mobile terminal
WO2018045873A1 (en) Message processing method for instant messaging application and related product
WO2018120905A1 (en) Message reminding method for terminal, and terminal
US20140379824A1 (en) Apparatuses and methods for web page sharing
CN106293738B (en) Expression image updating method and device
WO2019001348A1 (en) Object interception method, terminal, server and storage medium
WO2021238840A1 (en) Information sharing method, information sharing apparatus, and electronic device
JP2017509051A (en) Method and system for collecting statistics on streaming media data and associated apparatus
TW201502986A (en) Apparatus, system and method of showing notifications of web browser application
JP6915074B2 (en) Message notification method and terminal
US20200310771A1 (en) Application Processing Method for Terminal Device, and Terminal Device
CN109739409B (en) Batch processing method and device and terminal equipment
CN106020945B (en) Shortcut item adding method and device
CN112087364A (en) Session list display method, device and storage medium
CN106339402B (en) Method, device and system for pushing recommended content

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