Table operation method, device, medium, and equipment
By monitoring the setting events in the table area and moving the target row horizontally according to the drag event, the problem of inconvenience in operation when there is too much content in the table is solved, and the table is quickly and conveniently moved and convenient to operate.
Patent Information
- Application Number
- CN202110647833.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-10
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2041-06-10
AI Technical Summary
When there is too much content on the table, the user needs to take multiple steps to browse all the content, which is inconvenient.
By listening to the setting events in the table area, selecting the target row, and moving the target row horizontally according to the events of the drag drag dragger, achieving fast and convenient movement of the table.
It improves the convenience of table operation, reduces the operation steps of users when moving tables horizontally, and can quickly view or record the horizontal content of the table.
Smart Images

Figure CN113312888B_ABST
Abstract
Description
Background Art
[0002] This section is intended to provide a background or context to the embodiments of the disclosure that are recited in the claims. No description herein is admitted to be prior art by inclusion in this section.
[0003] With the development of computer technology, users can not only record text, character content, image content, etc. through text editing, web page editing and other functional modules, but also organize information in tables to classify and organize information, and facilitate information retrieval.
[0004] Generally, tables may exist in document files, web pages, information processing systems and other devices. The rows and columns of a table can be used to record the same category of information, or different rows and columns can be used to represent different categories of information. As the number of information categories and items that need to be recorded in the table increases, the table layout also increases, and the number of rows or columns of the table also increases. When the length of the table rows / columns increases, if the display area cannot display the complete table rows / columns, you can move the table up and down by scrolling the mouse, and you can move the table left and right by clicking the horizontal movement operation button of the table. However, this table operation method is inconvenient, and users need to take multiple steps to browse all the table contents. Summary of the invention
[0005] In this context, embodiments of the present disclosure are intended to provide a table operation method and apparatus, medium, and device.
[0006] In a first aspect of the embodiments of the present disclosure, a table operation method is provided, comprising:
[0007] Listen for the first set event that occurs in the table area;
[0008] According to the location where the first set event occurs, a target row in the table is selected;
[0009] Listen for the second setting event;
[0010] According to the second setting event, the target row is moved horizontally.
[0011] In one implementation, the first setting event is a mouse double-click event; and selecting a target row in the table according to a location where the first setting event occurs includes:
[0012] Generate a dragger based on the position of the mouse cursor when a double-click event occurs;
[0013] Set the row where the dragger is located as the target row in the table.
[0014] In one implementation, the second setting event is an event of dragging the dragger; and according to the second setting event, moving the target row horizontally includes:
[0015] Determine the horizontal moving direction of the target row according to the direction corresponding to the event of dragging the dragger;
[0016] Move the target row according to the horizontal movement direction.
[0017] In one embodiment, the table operation method further includes:
[0018] Listen for the third setting event;
[0019] According to the third setting event, the table is moved vertically.
[0020] In one embodiment, the table operation method further includes:
[0021] Monitor the fourth setting event;
[0022] According to the fourth setting event, the target row is deselected.
[0023] In one embodiment, the table operation method further includes:
[0024] Highlight the target row.
[0025] In one implementation, highlighting a target row includes:
[0026] Changes the background color of the target row.
[0027] In a second aspect of the embodiments of the present disclosure, a table operation device is provided, comprising:
[0028] A first monitoring module, used for monitoring a first set event occurring in the table area;
[0029] A target row selection module, used to select a target row in the table according to the location where the first set event occurs;
[0030] A second monitoring module, used for monitoring a second set event;
[0031] The lateral movement module is used to move the target row horizontally according to the second set event.
[0032] In one embodiment, the first setting event is a mouse double-click event; the target row selection module includes:
[0033] A dragger generating unit, used for generating a dragger according to the position of the mouse cursor when a double-click event occurs;
[0034] The dragger processing unit is used to use the row where the dragger is located as the target row in the table.
[0035] In one embodiment, the second setting event is an event of dragging the dragger; the lateral movement module includes:
[0036] A direction determination unit, used to determine the lateral moving direction of the target row according to the direction corresponding to the event of dragging the dragger;
[0037] The moving unit is used for moving the target row according to a lateral moving direction.
[0038] In one embodiment, the table operation device further includes:
[0039] A third monitoring module, used for monitoring a third set event;
[0040] The vertical movement module is used to vertically move the table according to a third set event.
[0041] In one embodiment, the table operation device further includes:
[0042] A fourth monitoring module, used for monitoring a fourth set event;
[0043] The deselection module is used to deselect the target row according to the fourth setting event.
[0044] In one embodiment, the table operation device further includes:
[0045] Highlight module, used to highlight the target row.
[0046] In one embodiment, the highlighting module is further configured to:
[0047] Changes the background color of the target row.
[0048] In a third aspect of the embodiments of the present disclosure, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the steps of the above table operation method are implemented.
[0049] In a fourth aspect of the embodiments of the present disclosure, a computing device is provided, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the steps of the table operation method are implemented when the processor executes the program.
[0050] According to the table operation method and device of the embodiment of the present disclosure, it is possible to realize fast and convenient horizontal and vertical movement of the table. Among them, through the table operation method of the embodiment of the present disclosure, it is possible to monitor the first setting event, determine the target row of the table according to the first setting event, and horizontally move the target row of the table according to the monitored second setting event, so that after the user selects the target row, the second setting event can be used to horizontally move the target row beyond the current display area, and quickly view or perform other operations on the content, thereby improving the convenience of table operation. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:
[0052] Figure 1 The following schematically shows a flowchart of a table operation method according to an embodiment of the present disclosure;
[0053] Figure 2 The following schematically shows the steps included in the table operation method according to another embodiment of the present disclosure;
[0054] Figure 3A Schematically shows a schematic diagram of a dragger according to an example of the present disclosure;
[0055] Figure 3B Schematically shows a table dragger and a target row diagram according to an example of the present disclosure;
[0056] Figure 4 The following schematically shows the steps included in the table operation method according to another embodiment of the present disclosure;
[0057] Figure 5A The following schematically shows the steps included in the table operation method according to another embodiment of the present disclosure;
[0058] Figure 5B The following schematically shows the steps included in the table operation method according to another exemplary embodiment of the present disclosure;
[0059] Figure 6 A schematic diagram of a medium for a table operation method according to another embodiment of the present disclosure is schematically shown;
[0060] Figure 7 The structure diagram of a table operation device according to an embodiment of the present disclosure is schematically shown;
[0061] Figure 8The figure schematically shows a structural diagram of a computing device according to an embodiment of the present disclosure.
[0062] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts. DETAILED DESCRIPTION
[0063] The principles and spirit of the present disclosure will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present disclosure, and are not intended to limit the scope of the present disclosure in any way. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.
[0064] Those skilled in the art will appreciate that the embodiments of the present disclosure may be implemented as a system, device, apparatus, method or computer program product. Therefore, the present disclosure may be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.
[0065] According to an embodiment of the present disclosure, a table operation method, medium, apparatus and computing device are proposed.
[0066] In this document, any number of elements in the drawings is used for illustration rather than limitation, and any naming is used only for distinction and does not have any limiting meaning.
[0067] The principle and spirit of the present disclosure are explained in detail below with reference to several representative embodiments of the present disclosure. SUMMARY OF THE INVENTION
[0069] The inventors have discovered that as the amount and types of information that users need to list when using documents and systems increase, when using tables to organize and display information, the content of the table may significantly exceed the display area of the display device, so that users need to drag the table horizontally or vertically to view the complete content of the table, resulting in inconvenience in use.
[0070] In view of this, the present disclosure provides a table operation method and device, which monitors a first setting event occurring in a table area; selects a target row in the table according to the location where the first setting event occurs; after selecting the target row, moves the target row horizontally according to the monitored second setting event. Since the target row can be moved horizontally by the set second event, the convenience of the table horizontal movement operation can be improved, and the operations performed when the user needs to move the table rows horizontally can be reduced.
[0071] After introducing the basic principles of the present disclosure, various non-limiting embodiments of the present disclosure are described in detail below.
[0072] Exemplary Methods
[0073] Reference below Figure 1 A table operation method according to an exemplary embodiment of the present disclosure is described below.
[0074] like Figure 1 As shown, the table operation method of the embodiment of the present disclosure includes:
[0075] Step S11: monitoring a first setting event occurring in the table area;
[0076] Step S12: selecting a target row in the table according to the location where the first setting event occurs;
[0077] Step S13: monitoring a second setting event;
[0078] Step S14: according to the second setting event, move the target row horizontally.
[0079] In this embodiment, the execution subject of the above steps may be a terminal, or a controller, or other devices or equipment that can execute the steps of this embodiment. In the case where the execution subject is a terminal, application software may be set in the terminal to execute the method of this embodiment through the application software.
[0080] In this embodiment, the terminal as the execution subject can be a computer or an information processing device connected to a computer system that can process application programs. The computer in the embodiment of the present disclosure can be, but is not limited to, a desktop computer, a laptop computer, a server device with storage memory computing functions, a handheld computer, an intelligent mobile terminal, a touch terminal, a wearable intelligent device, and a computing device with a table display function.
[0081] In this embodiment, the operation of monitoring the first set event occurring in the table area can be started under set conditions.
[0082] For example, when it is detected that a table located on a display interface of a display device exists in a setting file, a setting application, or a setting program module, an operation of monitoring a first setting event occurring in the table area may be started.
[0083] For another example, when it is detected that there is a table located on the display interface of the display device in the setting file, setting application, or setting program module, it can be determined whether the content displayed in the row direction of the table exceeds the display interface of the current display device. When the content displayed in the row direction of the table exceeds the display interface of the current display device, the operation of monitoring the first setting event occurring in the table area is started.
[0084] The first set event may be an event in which the user performs a first operation. For example, the user may perform operations such as double-clicking the mouse, clicking the left mouse button, pressing the mouse wheel, long pressing the laptop touchpad, pressing a combination of shortcut keys, etc. When the user performs the set first operation, it is determined to send the first set event.
[0085] In the case where the display device for displaying the table is a touch display device, the first setting event may be an event of detecting a touch operation such as a long press or multi-point press in the table area.
[0086] According to the location where the first setting event occurs, a target row in the table is selected, and the table row corresponding to the location where the first setting event occurs may be used as the target row.
[0087] In this embodiment, the target row in the table is selected according to the location where the first setting event occurs. Alternatively, in the case of a single selection mode, a row in the table is selected as the target row according to the location where the first setting event is most recently detected. In the case of a multiple selection mode, a row in the table is selected as a newly added target row according to the location where the first setting event is most recently detected, and is used together with the currently existing target row as the target row.
[0088] When the embodiment of the present disclosure is applied to a terminal device having a computer keyboard, the multiple selection mode can be entered by pressing keys such as Ctrl or Shift.
[0089] The multiple selection mode may also be entered by receiving selection information of a function option in a given menu from the user.
[0090] In this embodiment, the second set event may be a cursor dragging event, a mouse scrolling event, a cursor scrolling event detected by a touchpad, etc. The cursor dragging event may be a pressing (mouse, touchpad) dragging or a simple cursor moving event.
[0091] According to the second setting event, the target row is moved horizontally. This may include determining a direction for moving the target row horizontally according to the second setting event, and moving the target row horizontally according to the determined direction.
[0092] For example, the second set event is an event of rolling the mouse wheel when the cursor stays at the position of the target row. Then one rolling direction of the mouse wheel can be set to correspond to the horizontal left movement of the target row; and the other rolling direction of the mouse wheel corresponds to the horizontal right movement of the target row.
[0093] In the process of horizontally moving the target row, the target rows not selected in the table may be moved or not moved, and may be partially moved. For example, other table rows in the display interface of the display device may move together with the target row. In this way, when the table is moved up and down so that the target row is not in the display interface of the display device, the non-target rows in the display interface may also be horizontally moved with the occurrence of the second setting event.
[0094] In the disclosed embodiment, the target row to be moved horizontally in the table can be selected by monitoring the first setting event, so that when the table contains a lot of horizontal content information, the user does not need to drag the horizontal pull bar below, thereby reducing the number of operations the user performs on the table when viewing or recording the horizontal content of the table.
[0095] In one embodiment, the first setting event is a mouse double-click event; Figure 2 As shown, according to the location where the first setting event occurs, a target row in the table is selected, including:
[0096] Step S21: generating a dragger according to the position of the mouse cursor when the double-click event occurs;
[0097] Step S22: The row where the dragger is located is used as the target row in the table.
[0098] In this embodiment, a dragger is generated according to the position of the mouse cursor when a double-click event occurs. An icon corresponding to the dragger may be generated at the position of the cursor when the double-click event occurs. For example, a circular icon dragger 31 as shown in Figure 3 may be generated at the position of the cursor when the double-click event occurs.
[0099] In another implementation, the above steps S21 and S22 may be performed in the following manner:
[0100] The row corresponding to the position of the mouse cursor when the double-click event occurs is used as the target row; a dragger is generated on the target row.
[0101] The dragger can be in the target row and coincide with the mouse cursor. In rows other than the target row, the dragger and the mouse cursor can exist independently.
[0102] In this embodiment, a mouse double-click event is used as the first setting event, and a dragger is generated according to the location where the first setting event occurs, so that it can be more intuitively determined that the table is in a state that can be horizontally dragged according to the second setting event.
[0103] In one embodiment, the second setting event is an event of dragging the dragger; Figure 4 As shown, according to the second setting event, the target row is moved horizontally, including:
[0104] Step S41: determining the horizontal moving direction of the target row according to the direction corresponding to the event of dragging the dragger;
[0105] Step S42: Move the target row according to the horizontal moving direction.
[0106] The event of dragging the dragger may be a drag event in a state where a selected function key such as pressing a mouse button or pressing a touchpad button is pressed.
[0107] When a target row exists in the table or within the display area, all rows in the display area can be moved together with the target row.
[0108] In another possible implementation, the event of dragging the dragger may be a simple event of moving the cursor without pressing the selected function key. For example, when the mouse cursor is moved to the target row, the mouse cursor disappears, and the dragger moves with the movement of the mouse until it moves to the edge of the current display area of the table. Then, the content beyond the current display area of the table moves into the display area in the direction of the dragger's movement.
[0109] The lateral movement direction of the target row may be the same as or opposite to the lateral movement direction of the dragger.
[0110] In a specific implementation, according to the second set event, moving the target row horizontally may further include, according to the second set event, moving the target row according to a set moving step. Alternatively, according to the second set event, moving the target row horizontally may further include, according to the distance at which the second set event occurs, moving the target row.
[0111] In this embodiment, the target row can be moved according to the lateral movement direction of the dragger, so that the operation of the user to move the rows of the table horizontally is simplified, the steps are reduced, and the efficiency of table consultation and operation is improved.
[0112] In one embodiment, the table operation method further includes:
[0113] Listen for the third setting event;
[0114] According to the third setting event, the table is moved vertically.
[0115] In this embodiment, the third setting event may be the same as the event of moving the table vertically when the target row is not selected. For example, the table may be moved vertically by rolling the mouse in other areas of the table except the target row.
[0116] In another embodiment, when the third setting event and the second setting event are different events, when the third setting event is generated at the location where the target row is located, the table may also be moved vertically.
[0117] In this embodiment, the table can be moved vertically when a target row is selected, so that horizontal reference and operation of the table and vertical reference and operation of the table do not interfere with each other, thereby improving the convenience of table operation and reference.
[0118] In a specific implementation, when the table is moved vertically according to the third setting event, the target row does not move along with the table and is fixedly displayed at the original position, for example, when the target row is highlighted as described below.
[0119] In one embodiment, Figure 5A As shown, the table operation method also includes:
[0120] Step S51: monitoring a fourth setting event;
[0121] Step S52: cancel the selection of the target row according to the fourth setting event.
[0122] In one implementation, the fourth setting event may be the same as the second setting event, that is, when the second setting event is monitored for the first time, the target row is selected; when the second setting event is monitored for the second time, the target row is deselected.
[0123] In another implementation, the fourth setting event may be different from the second setting event. That is, when the fourth setting event occurs, if there is a selected target row corresponding to the table in the current display area, the target row is deselected.
[0124] In one implementation, the fourth setting event may be different from the second setting event. For example, the second setting event may be a double-click event, and the fourth setting event may be a single-click event. If the second setting event is detected within the display area, the table row corresponding to the location where the second setting event occurs within the display area is used as the target row. If the fourth setting event is detected within the display area, all target rows of the table within the display area are deselected.
[0125] The fourth setting event may also be, for example, an event of clicking a setting button of the mouse, a long press event, a menu item selection event, etc.
[0126] When multiple target rows are selected, you can deselect all of them. You can also deselect individual selected target rows step by step in the multi-selection mode, while the target rows that are not deselected remain selected.
[0127] In this embodiment, when the target row is deselected, the state of the target row can be retained at the latest state of the target row moved by the horizontal movement operation. When the target row is deselected, the non-target rows in other tables can be aligned according to the target row; when the target row is deselected, the target row can be aligned with the non-target rows in the display area according to the non-target rows.
[0128] In this embodiment, the target row can be deselected according to the monitored fourth setting event, so that the user can choose to enter or exit the mode of horizontally moving the target row through the second setting event, providing convenience for the user to quickly and easily operate the table.
[0129] In one embodiment, the table operation method further includes:
[0130] Highlight the target row.
[0131] In this embodiment, after the first setting event is monitored, the target row may be determined according to the occurrence position of the first setting event, and the target row may be highlighted while the target row is determined, so that the target row is visually distinguished from non-target rows.
[0132] In this embodiment, when highlighting the target row, the target row in the display area of the display device and the target row outside the display area can be highlighted at the same time. Alternatively, only the target row in the display area can be highlighted, and when the target row outside the display area is dragged into the display area, the portion of the target row newly dragged into the display area can be highlighted.
[0133] In this embodiment, the target row is highlighted so that when the user operates the table, the user can determine the position of the target row without being unable to determine the position of the target row due to the horizontal movement of the target row, thereby improving the convenience of table operation.
[0134] In one embodiment, highlighting the target row includes: at the location where the first set event occurs, popping up and displaying the target row.
[0135] In one implementation, highlighting a target row includes:
[0136] Changes the background color of the target row.
[0137] In this embodiment, the background color of the target row may be changed so that the background color of the target row is different from the background color of the non-target rows.
[0138] In another implementation, the color of the characters of the target row may be changed so that the font color of the target row is different from the font color of the non-target row.
[0139] In one implementation, the target row can be highlighted while a dragger is generated within the display area corresponding to the target row, such as Figure 3B When the target row generates the dragger 31, the target row is displayed in the form of background shadow.
[0140] In other implementations, the display mode of the target row may be changed by other means, such as changing the font and / or font size, border style, border color, shading, etc. of the target row, so that the target row is visually distinguished from other non-target rows.
[0141] In this embodiment, the background color of the target row can be changed so that the display effect of the target row is different from that of the non-target rows. This ensures that the user will not lose the tracked row when checking the horizontal information of the table, thereby improving the convenience and efficiency of table operations.
[0142] In the specific implementation process, the execution steps and processes of the above embodiments can be combined in any order as long as the purpose of facilitating user operation of the present disclosure is achieved. For example, in an example of the present disclosure, Figure 5B As shown, the table operation method may include the following steps:
[0143] Step S501: monitor a mouse double-click event.
[0144] Step S502: Draw a scroll dragger at the double-click position of the table.
[0145] Step S503: Drag the dragger left or right with the mouse.
[0146] Step S504: Synchronize the table container according to the direction and distance corresponding to the drag. When the dragger is dragged, the target row is moved left and right according to the dragging direction of the dragger. The table container can be used to store information about the table process after the table process is created. After the above-mentioned direction and distance information corresponding to the drag is synchronized to the table container, when the table process performs a horizontal drag operation of the target row, the direction and distance are read from the table container, and the target row is horizontally dragged a corresponding distance in the read direction.
[0147] Step S505: The target row of the table is moved horizontally along with the drag operation. For example, the drag operation may be the second setting operation of the aforementioned embodiment, and when the second setting operation occurs, the target row is moved horizontally synchronously.
[0148] In a specific implementation, if there is a target row in the table, the target row may be moved horizontally with the drag operation when the target row is in the display area. When the target row is not in the display area, the target row may not be moved horizontally when the drag operation occurs.
[0149] In a specific implementation, if there are multiple target rows in the table, the target rows in the display area may be moved horizontally with the drag operation when some of the target rows are in the display area. Alternatively, all target rows may be moved horizontally with the drag operation when at least some of the target rows are in the display area.
[0150] Exemplary Media
[0151] After introducing the method of the exemplary embodiment of the present disclosure, next, refer to Figure 6 A medium according to an exemplary embodiment of the present disclosure is described.
[0152] In some possible implementations, various aspects of the present disclosure may also be implemented as a computer-readable medium having a program stored thereon. When the program is executed by a processor, it is used to implement the steps of the table operation method according to various exemplary implementations of the present disclosure described in the above “Exemplary Method” section of this specification.
[0153] Specifically, the processor is used to implement the following steps when executing the program:
[0154] Listen for the first set event that occurs in the table area;
[0155] According to the location where the first set event occurs, a target row in the table is selected;
[0156] Listen for the second setting event;
[0157] According to the second setting event, the target row is moved horizontally.
[0158] It should be noted that the above-mentioned medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0159] like Figure 6 As shown, a medium 60 according to an embodiment of the present disclosure is described, which can be a portable compact disk read-only memory (CD-ROM) and include a program and can be run on a device. However, the present disclosure is not limited to this. In this document, a readable storage medium can be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, an apparatus or a device.
[0160] A readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, wherein readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to: electromagnetic signals, optical signals, or any suitable combination of the above. A readable signal medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0161] Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user computing device, partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device via any type of network, including a local area network (LAN) or a wide area network (WAN).
[0162] Exemplary Devices
[0163] After introducing the medium of the exemplary embodiment of the present disclosure, next, reference is made to Figure 7 A device according to an exemplary embodiment of the present disclosure is described.
[0164] like Figure 7 As shown, the table operation device of the embodiment of the present disclosure includes:
[0165] A first monitoring module 71, used for monitoring a first set event occurring in a table area;
[0166] A target row selection module 72, used to select a target row in the table according to the location where the first setting event occurs;
[0167] The second monitoring module 73 is used to monitor a second set event;
[0168] The lateral movement module 74 is used to move the target row laterally according to the second set event.
[0169] In one embodiment, the first setting event is a mouse double-click event; still referring to Figure 7 , the target row selection module 72 includes:
[0170] The dragger generating unit 721 is used to generate a dragger according to the position of the mouse cursor when the double-click event occurs;
[0171] The dragger processing unit 722 is used to use the row where the dragger is located as the target row in the table.
[0172] In one embodiment, the second setting event is an event of dragging the dragger; the lateral movement module 74 includes:
[0173] A direction determination unit 741, configured to determine a lateral moving direction of a target row according to a direction corresponding to an event of dragging the dragger;
[0174] The moving unit 742 is used to move the target row according to the horizontal moving direction.
[0175] In one embodiment, still referring to Figure 7 , the table operation device also includes:
[0176] The third monitoring module 75 is used to monitor a third set event;
[0177] The vertical movement module 76 is used to vertically move the table according to the third set event.
[0178] In one embodiment, still referring to Figure 7 , the table operation device also includes:
[0179] The fourth monitoring module 77 is used to monitor a fourth setting event;
[0180] The deselection module 78 is used to deselect the target row according to the fourth setting event.
[0181] In one embodiment, still referring to Figure 7 , the table operation device also includes:
[0182] The highlighting module 79 is used to highlight the target row.
[0183] In one embodiment, the highlighting module is further configured to:
[0184] Changes the background color of the target row.
[0185] Exemplary Computing Devices
[0186] After introducing the method, medium and apparatus of the exemplary embodiments of the present disclosure, next, reference is made to Figure 8 A computing device according to an exemplary embodiment of the present disclosure is described.
[0187] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".
[0188] In some possible implementations, a computing device according to an implementation of the present disclosure may include at least one processing unit and at least one storage unit. The storage unit stores program code, and when the program code is executed by the processing unit, the processing unit executes the steps of the table operation method according to various exemplary implementations of the present disclosure described in the above “Exemplary Method” section of this specification.
[0189] Refer to the following Figure 8 80 according to this embodiment of the present disclosure. Figure 8 The computing device 80 shown is merely an example and should not bring any limitation to the functionality and scope of use of the embodiments of the present disclosure.
[0190] like Figure 8 As shown, the computing device 80 is in the form of a general computing device. The components of the computing device 80 may include but are not limited to: at least one processing unit 801, at least one storage unit 802, and a bus 803 connecting different system components (including the processing unit 801 and the storage unit 802).
[0191] The bus 803 includes a data bus, a control bus, and an address bus.
[0192] The storage unit 802 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 8021 and / or a cache memory 8022 , and may further include a readable medium in the form of a non-volatile memory, such as a read-only memory (ROM) 8023 .
[0193] The storage unit 802 may also include a program / utility 8025 having a set (at least one) of program modules 8024, such program modules 8024 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0194] The computing device 80 may also communicate with one or more external devices 804 (e.g., keyboards, pointing devices, etc.). Such communication may be performed via an input / output (I / O) interface 805. Furthermore, the computing device 80 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 806. Figure 8 As shown, the network adapter 806 communicates with other modules of the computing device 80 via the bus 803. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the computing device 80, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0195] It should be noted that although several units / modules or subunits / modules of the above-mentioned device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.
[0196] In addition, although the operations of the disclosed method are described in a specific order in the drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.
[0197] Although the spirit and principle of the present disclosure have been described with reference to several specific embodiments, it should be understood that the present disclosure is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined to benefit, and such division is only for the convenience of expression. The present disclosure is intended to cover various modifications and equivalent arrangements included in the spirit and scope of the attached claims.
Claims
1. A table operation method, comprising: Listen for the first set event that occurs in the table area; According to the location where the first setting event occurs, selecting a target row in the table; Listen for the second setting event; According to the second setting event, the target row is moved horizontally; wherein the second setting event includes at least one of a cursor dragging event, a mouse scrolling event, and a cursor scrolling event detected by a touch pad, and the direction of the target row being moved horizontally is determined according to the second setting event, and the target row is moved horizontally according to the determined direction; Wherein, in the case where the first setting event is a mouse double-click event, selecting a target row in the table according to the location where the first setting event occurs includes: Generate a dragger based on the position of the mouse cursor when a double-click event occurs; The row where the dragger is located is used as the target row in the table; In a case where the second setting event is an event of dragging the dragger, the step of horizontally moving the target row according to the second setting event includes: Determining a lateral moving direction of the target row according to a direction corresponding to the event of dragging the dragger; The target row is moved according to the lateral moving direction.
2. The method according to claim 1, further comprising: Listen for the third setting event; According to the third setting event, the table is moved vertically.
3. The method according to claim 1, further comprising: Monitor the fourth setting event; According to the fourth setting event, the target row is deselected.
4. The method according to claim 1, further comprising: The target row is highlighted.
5. The method according to claim 4, wherein: The step of highlighting the target row comprises: Changes the background color of the target row.
6. A table operation device, comprising: A first monitoring module, used for monitoring a first set event occurring in the table area; A target row selection module, used for selecting a target row in the table according to the location where the first setting event occurs; A second monitoring module, used for monitoring a second set event; a lateral movement module, configured to horizontally move the target row according to the second setting event; wherein the second setting event includes at least one of a cursor dragging event, a mouse scrolling event, and a cursor scrolling event detected by a touch pad, and a direction of horizontally moving the target row is determined according to the second setting event, and the target row is horizontally moved according to the determined direction; Wherein, in the case where the first setting event is a mouse double-click event, the target row selection module includes: A dragger generating unit, used for generating a dragger according to the position of the mouse cursor when a double-click event occurs; A dragger processing unit, used for taking the row where the dragger is located as a target row in the table; In the case where the second setting event is an event of dragging the dragger, the lateral movement module includes: a direction determination unit, configured to determine a lateral moving direction of the target row according to a direction corresponding to the event of dragging the dragger; The moving unit is used to move the target row according to the lateral moving direction.
7. The device according to claim 6, wherein: Also includes: A third monitoring module, used for monitoring a third set event; The vertical movement module is used to vertically move the table according to the third setting event.
8. The device according to claim 6, wherein: Also includes: A fourth monitoring module, used for monitoring a fourth set event; The deselection module is used to deselect the target row according to the fourth setting event.
9. The device according to claim 6, wherein: Also includes: A highlighting module is used to highlight the target row.
10. The device according to claim 9, wherein: The highlighting module is also used to: Changes the background color of the target row.
11. A medium storing a computer program, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
12. A computing device comprising: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors are enabled to implement the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Form display method and apparatus
CN107180019A
Spreadsheet processing method and device, computer readable storage medium and computer equipment
CN110968241A