CN108415890B - Method for setting top display unit cell, terminal equipment and computer readable storage medium - Google Patents

Method for setting top display unit cell, terminal equipment and computer readable storage medium Download PDF

Info

Publication number
CN108415890B
CN108415890B CN201810041066.3A CN201810041066A CN108415890B CN 108415890 B CN108415890 B CN 108415890B CN 201810041066 A CN201810041066 A CN 201810041066A CN 108415890 B CN108415890 B CN 108415890B
Authority
CN
China
Prior art keywords
target
cell
operation instruction
matched
displaying
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
CN201810041066.3A
Other languages
Chinese (zh)
Other versions
CN108415890A (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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201810041066.3A priority Critical patent/CN108415890B/en
Publication of CN108415890A publication Critical patent/CN108415890A/en
Application granted granted Critical
Publication of CN108415890B publication Critical patent/CN108415890B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention is applicable to the technical field of human-computer interaction interfaces, and provides a method for setting a display cell on top, terminal equipment and a computer readable storage medium. The method for displaying the cells at the top comprises the steps of obtaining cell top conditions set by a user; allocating a top label to a target cell meeting the cell top condition in the table, when an operation instruction for controlling the table to roll is detected, judging whether a target direction for controlling the table to roll according to the operation instruction is matched with the top direction, if the target rolling direction is matched with the top direction, generating a top table according to the top label in the process of responding to the operation instruction, and displaying the top table in the table, wherein the top table comprises the target cell, and if the target rolling direction is not matched with the top direction, only responding to the operation instruction, realizing the top operation of partial cells in the table, and enriching the control mode of top display in the table.

Description

Method for setting top display unit cell, terminal equipment and computer readable storage medium
Technical Field
The invention belongs to the technical field of human-computer interaction interfaces, and particularly relates to a method for displaying a cell on top, a terminal device and a computer readable storage medium.
Background
With the increasing promotion of paperless office, the electronic forms can be seen everywhere in work. An application providing an electronic form editing function on the market, such as an Excel electronic form editing application, can set a part of contents in a form at the top under the setting of a user. However, when the top setting operation is performed on the contents in the table, only a certain row and a certain column in the table can be set in a unified manner, and the control mode is too single.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method for displaying a cell on top, a terminal device, and a computer-readable storage medium, which can solve the problem that when a top operation is performed on a content in a table, a control manner is too single.
A first aspect of an embodiment of the present invention provides a method for setting a display cell on top, including:
acquiring a cell top condition formulated by a user;
assigning a top label to a target cell in a table that meets the cell top condition, the top label for identifying a top direction of the target cell, the top direction matching at least one scrolling direction of the table;
when an operation instruction for controlling the table to roll is detected, judging whether a target direction for controlling the table to roll according to the operation instruction is matched with the top setting direction or not;
if the target rolling direction is matched with the set-top direction, generating a set-top table according to the set-top label in the process of responding to the operation instruction, and displaying the set-top table in the table, wherein the set-top table comprises the target cell;
and if the target rolling direction is not matched with the top setting direction, only responding to the operation instruction.
A second aspect of embodiments of the present invention provides an apparatus for a top-mounted display unit cell, including means for performing the method of the first aspect.
A third aspect of an embodiment of the present invention provides a terminal device, including: a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the steps of the method of the first aspect when executing the computer program.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium, which when executed by a processor implements the steps of the method of the first aspect.
The embodiment of the invention obtains the cell top condition set by the user; allocating a top label to a target cell meeting the cell top condition in the table, when an operation instruction for controlling the table to roll is detected, judging whether a target direction for controlling the table to roll according to the operation instruction is matched with the top direction, if the target rolling direction is matched with the top direction, generating a top table according to the top label in the process of responding to the operation instruction, and displaying the top table in the table, wherein the top table comprises the target cell, and if the target rolling direction is not matched with the top direction, only responding to the operation instruction, realizing the top operation of partial cells in the table, and enriching the control mode of top display in the table.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a schematic flow chart illustrating an implementation of a method for displaying a cell on a top according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating an implementation of a method for displaying a cell on a top according to another embodiment of the present invention;
FIG. 3 is a flowchart illustrating an implementation of step S24 of a method for displaying a cell on top according to another embodiment of the present invention;
fig. 4 is a flowchart illustrating a detailed implementation of step S241 of a method for displaying a cell on top according to another embodiment of the present invention;
FIG. 5 is a flowchart illustrating an implementation of step S25 of a method for displaying a cell on top according to another embodiment of the present invention;
FIG. 6A is a schematic diagram of a control table before scrolling;
FIG. 6B is a schematic diagram of a rendered image during control of table scrolling;
FIG. 6C is a schematic diagram of a top-up display with the target direction for controlling the scrolling of the table being horizontal;
FIG. 6D is a schematic view of a top-mounted display with the target direction for controlling scrolling of the table being vertical;
FIG. 7 is a schematic structural diagram of an apparatus for setting a top display unit cell according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Referring to fig. 1, which is a flowchart illustrating an implementation of a method for displaying a cell on top according to an embodiment of the present invention, the method for displaying a cell on top as shown in fig. 1 may include:
s11: and acquiring a cell top condition formulated by a user.
In step S11, the cell-top condition is used to describe the commonality or common feature between the target cells in the table, which are the cells in the table that are set to be top-displayed.
In this embodiment, the cell top condition may be that the user sets content information of a cell to be top-displayed through a preset form, or coordinates of a cell or a cell number generated after the user selects a target cell in the form.
Take the cell top condition as the content information of the cell as an example.
For example, in the examination result table of the student, the first cell occupied by the first row and the first column is the table head, the first column is the name of the student, the first row is the examination subject, and the cell top condition may be that, except for the first row and the first column, the cell with the examination result larger than 90 points is top-placed, that is, the cell with the numerical value larger than 90 in each subject is top-placed and displayed.
And the cell top condition is taken as the coordinate of the cell or the number of the cell as an example.
For example, similar to the coordinate of a certain point in the coordinate axis being (X, Y), the coordinate of a cell includes a row coordinate N and a column coordinate M, when the user selects a cell in the table, and the cell selected by the user is the fifth row and the seventh column, the coordinate of the generated cell is (5, 7), and the coordinate (5, 7) of the cell is used as the cell-top condition.
It is understood that, in practical applications, the cell top condition is the content information of the cell, and may include at least one of numbers, words, letters, and symbols. The cell top condition is the coordinates of a cell or the number of a cell, and may include the coordinates of a plurality of groups of cells or the number of cells.
S12: and allocating a top label to the target cell meeting the cell top condition in the table, wherein the top label is used for identifying the top direction of the target cell.
In step S12, the set top direction matches at least one scroll direction of the table. The set-top direction is used to reflect the position of the set-top display of the set-top form in the form during scrolling of the control form, and may be opposite to or the same as the position pointed to by the direction of scrolling of the control form.
Take the direction of scrolling the control table as scrolling from left to right as an example.
For example, when the position of the top-set table in the table is opposite to the position pointed by the direction of the control table scrolling, the direction of the control table scrolling is from left to right scrolling, the position pointed by the direction of the control table scrolling is the right side of the table, and the position of the top-set table in the table is the left side of the table.
For example, when the position of the top-set table in the table is the same as the position pointed by the direction of the control table scrolling, the direction of the control table scrolling is from left to right scrolling, the position pointed by the direction of the control table scrolling is the right side of the table, and the position of the top-set table in the table is the right side of the table.
In this embodiment, in order to distinguish the target cell from the non-target cell, when assigning the top label to the target cell in the table, the target cell may be marked by modifying the background color of the cell, or the target cell may be marked by modifying the font color in the cell.
S13: and when an operation instruction for controlling the table to roll is detected, judging whether the target direction for controlling the table to roll according to the operation instruction is matched with the set top direction or not.
In step S13, the operation instruction for controlling the table scrolling may be generated when the user displays the content by dragging the table, or generated when the user drags a drag bar in the table frame.
In this embodiment, it is determined whether the target direction of the table controlled by the operation instruction is matched with the set-top direction, and the corresponding direction information may be searched from the corresponding list according to the operation instruction through a preset corresponding list between the operation instruction and the direction information, and then the direction information is compared with the set-top direction, and if the direction represented by the direction information is matched with the set-top direction, the target direction of the table controlled by the operation instruction is matched with the set-top direction.
In practical application, according to the actual content of the form and the habit of the user browsing the form, the target direction of the operation instruction for controlling the form to scroll is matched with the top setting direction, and specifically, the target direction of the operation instruction for controlling the form to scroll may be the same as or opposite to the top setting direction.
It should be noted that, in all embodiments of the present application, the top-setting direction is used to distinguish whether the top-setting position of the top-setting table is the same as or different from the position pointed by the target direction, and is not the direction in which the top-setting table is dragged or scrolled.
S14: and if the target rolling direction is matched with the set-top direction, generating a set-top table according to the set-top label in the process of responding to the operation instruction, and displaying the set-top table in the table.
In step S14, the set-top table includes the target cell, and the target cell is all the cells in the table that meet the set-top condition of the cell.
In this embodiment, responding to the operation instruction means controlling the table to scroll in the target scroll direction according to the operation instruction. And in the process that the table is scrolled according to an operation instruction of a user, extracting the target cell from the original table according to the top setting label to form a top setting table, wherein only the target cell is in the top setting table, and overlaying and displaying the top setting table on the original table.
It should be noted that, in each target cell in the set-top table, at least one coordinate in the coordinate information in the table is the same as the coordinate before the set-top.
For example, if the position of the target cell in the original table is the sixth row and the eighth column, the original coordinate is (6, 8), and after the top-set table is generated, if the position of the target cell in the top-set table is the first row and the eighth column, the coordinate of the target cell is (1, 8), or if the position of the target cell in the top-set table is the sixth row and the 1 st column, the coordinate of the target cell is (6, 1).
It should be noted that the method provided in this embodiment further includes step S15 in parallel with step S14. Step S14 is not in sequence with step S15, and step S15 is not executed again after step S14 is executed, and step S14 is not executed again after step S15 is executed.
S15: and if the target rolling direction is not matched with the top setting direction, only responding to the operation instruction.
In step S15, if the target scrolling direction does not match the top-placing direction, it indicates that the target cell is not top-placed when the user drags the form for scrolling.
As can be seen from the above, in the embodiment of the present invention, the cell set top condition defined by the user is obtained; allocating a top label to a target cell meeting the cell top condition in the table, when an operation instruction for controlling the table to roll is detected, judging whether a target direction for controlling the table to roll according to the operation instruction is matched with the top direction, if the target rolling direction is matched with the top direction, generating a top table according to the top label in the process of responding to the operation instruction, and displaying the top table in the table, wherein the top table comprises the target cell, and if the target rolling direction is not matched with the top direction, only responding to the operation instruction, realizing the top operation of partial cells in the table, and enriching the control mode of top display in the table.
Referring to fig. 2, fig. 2 is a schematic flow chart of a method for setting a display cell on top according to another embodiment of the present invention. In this embodiment, on the basis of the previous embodiment, the operation steps before the step of obtaining the cell top condition formulated by the user are further defined. As shown in fig. 2, a method for setting a top display cell according to another embodiment of the present invention may include:
s21: and if a preset instruction for setting the cell top condition is detected, displaying a preset form, wherein the preset form is used for providing the user to set the cell top condition.
In step S21, the preset form may include a coordinate option of a cell or a number option of a cell, an area for inputting cell content filling, and an option to start a set-top operation or disable a set-top operation.
In practical application, the setting of the cell top condition in the form can be performed according to the content of the local form file, and a corresponding form can be configured for the top function of the form according to the specific content of the form to be displayed in the browser.
S22: and acquiring a cell top condition formulated by a user.
In step S11, the cell-top condition is used to describe the commonality or common feature between the target cells in the table, which are the cells in the table that are set to be top-displayed.
In this embodiment, the cell top condition may be that the user sets content information of a cell to be top-displayed through a preset form, or coordinates of a cell or a cell number generated after the user selects a target cell in the form.
S23: and allocating a top label to the target cell meeting the cell top condition in the table, wherein the top label is used for identifying the top direction of the target cell.
In step S23, the set top direction matches at least one scroll direction of the table. The set-top direction is used to reflect the position of the set-top display of the set-top form in the form during scrolling of the control form, and may be opposite to or the same as the position pointed to by the direction of scrolling of the control form.
It should be understood that, in the present embodiment, the specific implementation manner of steps S22 to S23 is the same as the specific implementation manner of steps S11 to S12 in the previous embodiment, and please refer to the description of steps S11 to S12, which is not described herein again.
S24: when an operation instruction for controlling the form to roll is detected, whether a target direction for controlling the form to roll according to the operation instruction is matched with the set-top direction or not is judged
In step S24, the operation instruction for controlling the table scrolling may be generated when the user displays the content by dragging the table, or generated when the user drags a drag bar in the table frame.
As a possible implementation manner of this embodiment, on the basis of the above embodiments, a manner of determining whether the target direction of the operation instruction control table scrolling matches the set-top direction is further defined. As shown in fig. 3, step S24 specifically includes:
s241: and determining the target rolling direction in the process of controlling the table to roll according to the operation instruction.
S242: and if the target rolling direction is parallel to the top setting direction, matching the target rolling direction with the top setting direction.
S243: and if the target rolling direction is vertical to the top setting direction, the target rolling direction is not matched with the top setting direction.
In this embodiment, when the target cell in the control table is set, since the target cell is the cell that the user wishes to be set, and the content of the target cell has a certain referential property with the content of other cells, the set-top operation is executed only when the set-top direction of the target cell is compared with the target scrolling direction and the two directions are matched with each other, so that the set-top operation of the target cell is not performed in a scene where the target cell is not required to be set top, and the obstacle in the table reading process caused by the set-top of the target cell is avoided.
In practice, when the target direction of scrolling the user control table is horizontal, the displayed cell is changed, but in the process of changing the cell, the row coordinate value between the previous cell displayed at the same position and the current cell is kept unchanged, and the column coordinate value is correspondingly increased or decreased. And if the top setting direction of the target cell is parallel to the target direction, the top setting table is positioned at the left side or the right side of the table, namely the content displayed in the top setting table is used as a reference object and is compared with the changed table content. When the target direction of the user control table scrolling is the vertical direction, the displayed cells are changed, but in the process of changing the cells, the column coordinate values between the previous cell displayed at the same position and the current cell are kept unchanged, and the row coordinate values are correspondingly increased or decreased. And if the top setting direction of the target cell is parallel to the target direction, the top setting table is positioned at the upper side or the lower side of the table, namely the content displayed in the top setting table is taken as a reference object and is compared with the changed table content.
As a possible implementation manner of this embodiment, on the basis of the above embodiments, a manner of determining the target scrolling direction is further defined. As shown in fig. 4, step S241 specifically includes:
s2411: acquiring at least one frame of rendering image of the table in the scrolling process, wherein the rendering image comprises a part which is overlapped with the image content of the table before scrolling.
S2412: and identifying a part which is not overlapped with the image content before the table is scrolled in the rendering image as a target image block.
S2413: and identifying the direction pointing from the first position to the second position as the target scrolling direction by taking the position of the target image block in the rendered image as the first position and identifying the relative position of the first position as the second position.
The rendered image is a rendered image of any frame table during scrolling of the table according to a control instruction of a user.
Fig. 6A shows an image before table scrolling, and fig. 6B shows a rendered image during table scrolling.
Taking the target scrolling direction from left to right as an example, as shown in fig. 6B, the rendered image includes a portion 10 that coincides with the image content before the table is scrolled, and a portion that does not coincide with the image content before the table is scrolled, i.e., a target image block 20. Taking the position of the target image block 20 in the rendered image as the first position 20, the relative position 11 of the first position, i.e. the second position 11, the direction pointing from the first position 20 to the second position 11 is identified as the target scrolling direction, i.e. the target scrolling direction is from left to right.
In this embodiment, it is considered that the table display may be on a touchless computer display screen, and when a user drags a table content or a scroll bar in a table through a mouse, a target scroll direction cannot be directly determined according to an operation instruction, and a corresponding execution environment script needs to be configured to be able to know the target scroll direction corresponding to the operation instruction, that is, the manner of determining the target scroll direction is too cumbersome, so that in the process of controlling the table scrolling by the user, the implementation process of the top display cell can be simplified by determining the target scroll direction by obtaining a change of a table image picture.
It can be understood that, besides the way of determining the target scrolling direction provided by the embodiment, in practical applications, if the table is displayed on the touch terminal, the target scrolling direction can be directly determined according to the operation gesture of the user on the touch terminal.
S25: and if the target rolling direction is matched with the set-top direction, generating a set-top table according to the set-top label in the process of responding to the operation instruction, and displaying the set-top table in the table.
In step S25, the set-top table includes the target cell, and the target cell is all the cells in the table that meet the set-top condition of the cell.
In this embodiment, responding to the operation instruction means controlling the table to scroll in the target scroll direction according to the operation instruction. And in the process that the table is scrolled according to an operation instruction of a user, extracting the target cell from the original table according to the top setting label to form a top setting table, wherein only the target cell is in the top setting table, and overlaying and displaying the top setting table on the original table.
As a possible implementation manner of this embodiment, on the basis of the above embodiments, a manner of displaying the top table in the table is further defined. As shown in fig. 5, step S25 specifically includes:
s251: and generating a locking area in the table according to the position pointed by the top-placing party, wherein the locking area is used for fixing the display position of the top-placing table in the process of controlling the table to scroll according to the operation instruction.
S252: displaying the set-top table in the locked region.
Whether the target scrolling direction and the set-top direction match each other is exemplified below with reference to fig. 6A to 6D.
Fig. 6A shows a display state of the table when the set-top operation is not performed. In fig. 6, the cell with the content "1" is in the first row and the first column of the table, and the coordinates thereof are (1, 1), and so on, the cell with the content "3" has the coordinates of (2, 2), the cell with the content "5" has the coordinates of (3, 3), and the cell with the content "4" has the coordinates of (3, 4).
As shown in fig. 6C, when the target direction for the user to control the scrolling of the form is the horizontal direction, the lock area 30 may be on the left side of the form, and it is understood that the lock area 30 may also be on the right side of the form (not shown in the figure).
As shown in fig. 6D, when the target direction for the user to control the scrolling of the form is the vertical direction, the lock area 30 may be on the upper side of the form, and it is understood that the lock area 30 may also be on the lower side of the form (not shown in the figure).
It should be noted that the method provided in this embodiment further includes step S26 in parallel with step S25. Step S25 is not in sequence with step S26, and step S26 is not executed again after step S25 is executed, and step S25 is not executed again after step S26 is executed.
S26: and if the target rolling direction is not matched with the top setting direction, only responding to the operation instruction.
In step S26, if the target scrolling direction does not match the top-placing direction, it indicates that the target cell is not top-placed when the user drags the form for scrolling.
As can be seen from the above, in the embodiment of the present invention, the cell set top condition defined by the user is obtained; allocating a top label to a target cell meeting the cell top condition in the table, when an operation instruction for controlling the table to roll is detected, judging whether a target direction for controlling the table to roll according to the operation instruction is matched with the top direction, if the target rolling direction is matched with the top direction, generating a top table according to the top label in the process of responding to the operation instruction, and displaying the top table in the table, wherein the top table comprises the target cell, and if the target rolling direction is not matched with the top direction, only responding to the operation instruction, realizing the top operation of partial cells in the table, and enriching the control mode of top display in the table.
Referring to fig. 7, fig. 7 is a schematic block diagram of an apparatus for setting a display cell on top according to an embodiment of the present invention. For details, please refer to fig. 2 and the related description in the embodiment corresponding to fig. 2, which are not repeated herein. An apparatus 30 for a set-top display unit cell of the present embodiment comprises: a form unit 31, an acquisition unit 32, a marking unit 33, a determination unit 34, a first execution unit 35, and a second execution unit 36. Specifically, the method comprises the following steps:
the form unit 31 is configured to display a preset form if a preset instruction for setting the cell top condition is detected, where the preset form is used for providing a user to set the cell top condition.
The obtaining unit 32 is configured to obtain a cell top condition formulated by a user.
The marking unit 33 is configured to assign a top label to a target cell in the table that meets the cell top condition, where the top label is used to identify a top direction of the target cell, and the top direction matches with at least one scrolling direction of the table.
The judging unit 34 is configured to, when an operation instruction for controlling the table to roll is detected, judge whether a target direction for controlling the table to roll according to the operation instruction matches the set-top direction.
Further, as a possible implementation manner of this embodiment, the determining unit 34 is specifically configured to determine the target scrolling direction in a process of controlling the table to scroll according to the operation instruction; if the target rolling direction is parallel to the top setting direction, the target rolling direction is matched with the top setting direction; and if the target rolling direction is vertical to the top setting direction, the target rolling direction is not matched with the top setting direction.
Further, as a possible implementation manner of this embodiment, the determining unit 34 is further specifically configured to acquire at least one frame of rendering image of the table in the scrolling process, where the rendering image includes a portion that coincides with the image content of the table before scrolling; identifying a part which is not overlapped with the image content before the table is scrolled in the rendering image as a target image block; and identifying the direction pointing from the first position to the second position as the target scrolling direction by taking the position of the target image block in the rendered image as the first position and identifying the relative position of the first position as the second position.
The first executing unit 35 is configured to, if the target scrolling direction matches the set-top direction, generate a set-top table according to the set-top tag in a process of responding to the operation instruction, and display the set-top table in the table, where the set-top table includes the target cell.
Further, as a possible implementation manner of this embodiment, the first executing unit 35 is specifically configured to generate a lock area in the table according to the position pointed by the top-placing party, where the lock area is used to fix the display position of the top-placing table in the process of controlling the table to scroll according to the operation instruction; displaying the set-top table in the locked region.
The second executing unit 36 is configured to only respond to the operation instruction if the target scrolling direction does not match the top-setting direction.
As can be seen from the above, in the embodiment of the present invention, the cell set top condition defined by the user is obtained; allocating a top label to a target cell meeting the cell top condition in the table, when an operation instruction for controlling the table to roll is detected, judging whether a target direction for controlling the table to roll according to the operation instruction is matched with the top direction, if the target rolling direction is matched with the top direction, generating a top table according to the top label in the process of responding to the operation instruction, and displaying the top table in the table, wherein the top table comprises the target cell, and if the target rolling direction is not matched with the top direction, only responding to the operation instruction, realizing the top operation of partial cells in the table, and enriching the control mode of top display in the table.
Referring to fig. 8, a schematic block diagram of a terminal device according to another embodiment of the present invention is shown. The terminal device 400 in the present embodiment as shown in the figure may include: one or more processors 401; one or more input devices 402, one or more output devices 403, and memory 404. The processor 401, the input device 402, the output device 403, and the memory 404 are connected by a bus 405. The memory 402 is used for storing, the computer program comprises instructions, and the processor 401 executes the following operations by calling the computer program stored in the memory 402:
the processor 401 is configured to: and acquiring a cell top condition formulated by a user.
The processor 401 is configured to: assigning a top label to a target cell in the table that meets the cell top condition, the top label for identifying a top direction of the target cell, the top direction matching at least one scrolling direction of the table.
The processor 401 is configured to: and when an operation instruction for controlling the table to roll is detected, judging whether the target direction for controlling the table to roll according to the operation instruction is matched with the set top direction or not.
The processor 401 is configured to: and if the target rolling direction is matched with the set-top direction, generating a set-top table according to the set-top label in the process of responding to the operation instruction, and displaying the set-top table in the table, wherein the set-top table comprises the target cell.
The processor 401 is configured to: and if the target rolling direction is not matched with the top setting direction, only responding to the operation instruction.
The processor 401 is further configured to: and if a preset instruction for setting the cell top condition is detected, displaying a preset form, wherein the preset form is used for providing the user to set the cell top condition.
The processor 401 is specifically configured to: determining the target rolling direction in the process of controlling the form to roll according to the operation instruction; if the target rolling direction is parallel to the top setting direction, the target rolling direction is matched with the top setting direction; and if the target rolling direction is vertical to the top setting direction, the target rolling direction is not matched with the top setting direction.
The processor 401 is specifically configured to: acquiring at least one frame of rendering image of the table in the rolling process, wherein the rendering image comprises a part which is overlapped with the image content of the table before rolling; identifying a part which is not overlapped with the image content before the table is scrolled in the rendering image as a target image block; and identifying the direction pointing from the first position to the second position as the target scrolling direction by taking the position of the target image block in the rendered image as the first position and identifying the relative position of the first position as the second position.
The processor 401 is specifically configured to: generating a locking area in the table according to the position pointed by the top-placing party, wherein the locking area is used for fixing the display position of the top-placing table in the process of controlling the table to scroll according to the operation instruction; displaying the set-top table in the locked region.
It should be understood that, in the embodiment of the present invention, the Processor 501 may be a Central Processing Unit (CPU), and the Processor may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The input device 402 may include a touch pad, a fingerprint sensor (for collecting fingerprint information of a user and direction information of the fingerprint), a microphone, etc., and the output device 403 may include a display (LCD, etc.), a speaker, etc.
The memory 404 may include a read-only memory and a random access memory, and provides instructions and data to the processor 401. A portion of the memory 404 may also include non-volatile random access memory. For example, the memory 404 may also store device type information.
In a specific implementation, the processor 401, the input device 402, and the output device 403 described in this embodiment of the present invention may execute the implementation manners described in the first embodiment and the second embodiment of the method for setting a top display cell provided in this embodiment of the present invention, and may also execute the implementation manners of the devices described in this embodiment of the present invention, which is not described herein again.
In another embodiment of the invention, a computer-readable storage medium is provided, storing a computer program which, when executed by a processor, implements:
acquiring a cell top condition formulated by a user;
assigning a top label to a target cell in a table that meets the cell top condition, the top label for identifying a top direction of the target cell, the top direction matching at least one scrolling direction of the table;
when an operation instruction for controlling the table to roll is detected, judging whether a target direction for controlling the table to roll according to the operation instruction is matched with the top setting direction or not;
if the target rolling direction is matched with the set-top direction, generating a set-top table according to the set-top label in the process of responding to the operation instruction, and displaying the set-top table in the table, wherein the set-top table comprises the target cell;
and if the target rolling direction is not matched with the top setting direction, only responding to the operation instruction.
The computer program when executed by the processor further implements:
determining the target rolling direction in the process of controlling the form to roll according to the operation instruction;
if the target rolling direction is parallel to the top setting direction, the target rolling direction is matched with the top setting direction;
and if the target rolling direction is vertical to the top setting direction, the target rolling direction is not matched with the top setting direction.
The computer program when executed by the processor further implements:
acquiring at least one frame of rendering image of the table in the rolling process, wherein the rendering image comprises a part which is overlapped with the image content of the table before rolling;
identifying a part which is not overlapped with the image content before the table is scrolled in the rendering image as a target image block;
and identifying the direction pointing from the first position to the second position as the target scrolling direction by taking the position of the target image block in the rendered image as the first position and identifying the relative position of the first position as the second position.
The computer program when executed by the processor further implements:
generating a locking area in the table according to the position pointed by the top-placing party, wherein the locking area is used for fixing the display position of the top-placing table in the process of controlling the table to scroll according to the operation instruction;
displaying the set-top table in the locked region.
The computer program when executed by the processor further implements:
and if a preset instruction for setting the cell top condition is detected, displaying a preset form, wherein the preset form is used for providing the user to set the cell top condition.
As can be seen from the above, in the embodiment of the present invention, the cell set top condition defined by the user is obtained; allocating a top label to a target cell meeting the cell top condition in the table, when an operation instruction for controlling the table to roll is detected, judging whether a target direction for controlling the table to roll according to the operation instruction is matched with the top direction, if the target rolling direction is matched with the top direction, generating a top table according to the top label in the process of responding to the operation instruction, and displaying the top table in the table, wherein the top table comprises the target cell, and if the target rolling direction is not matched with the top direction, only responding to the operation instruction, realizing the top operation of partial cells in the table, and enriching the control mode of top display in the table.
The computer readable storage medium may be an internal storage unit of the device according to any of the foregoing embodiments, for example, a hard disk or a memory of a computer. The computer readable storage medium may also be an external storage device of the device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the device. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the apparatus. The computer-readable storage medium is used for storing the computer program and other programs and data required by the apparatus. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.
In addition, functional units in the embodiments of the present invention 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 invention may be embodied in the form of 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 invention. 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-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical 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 of the embodiments of the present invention.

Claims (6)

1. A method of placing a display cell on top, comprising:
acquiring a cell top condition formulated by a user;
assigning a top label to a target cell in a table that meets the cell top condition, the top label for identifying a top direction of the target cell, the top direction matching at least one scrolling direction of the table;
acquiring at least one frame of rendering image of the table in the rolling process, wherein the rendering image comprises a part which is overlapped with the image content of the table before rolling;
identifying a part which is not overlapped with the image content before the table is scrolled in the rendering image as a target image block;
taking the position of the target image block in the rendered image as a first position, identifying the relative position of the first position as a second position, and identifying the direction pointing from the first position to the second position as a target scrolling direction; the relative position is the position in the rendered image which is farthest to the side of the first position;
if the target rolling direction is parallel to the top setting direction, the target rolling direction is matched with the top setting direction;
if the target rolling direction is vertical to the top setting direction, the target rolling direction is not matched with the top setting direction;
if the target rolling direction is matched with the set-top direction, generating a set-top table according to the set-top label in the process of responding to an operation instruction, and displaying the set-top table in the table, wherein the set-top table comprises the target cell;
and if the target rolling direction is not matched with the top setting direction, only responding to the operation instruction.
2. The method of claim 1, wherein said displaying the top-placed table in the table comprises:
generating a locking area in the table according to the position pointed by the top-placing party, wherein the locking area is used for fixing the display position of the top-placing table in the process of controlling the table to scroll according to the operation instruction;
displaying the set-top table in the locked region.
3. The method of claim 1 or 2, wherein the method further comprises:
and if a preset instruction for setting the cell top condition is detected, displaying a preset form, wherein the preset form is used for providing the user to set the cell top condition.
4. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
acquiring a cell top condition formulated by a user;
assigning a top label to a target cell in a table that meets the cell top condition, the top label for identifying a top direction of the target cell, the top direction matching at least one scrolling direction of the table;
acquiring at least one frame of rendering image of the table in the rolling process, wherein the rendering image comprises a part which is overlapped with the image content of the table before rolling;
identifying a part which is not overlapped with the image content before the table is scrolled in the rendering image as a target image block;
taking the position of the target image block in the rendered image as a first position, identifying the relative position of the first position as a second position, and identifying the direction pointing from the first position to the second position as a target scrolling direction; the relative position is the position in the rendered image which is farthest to the side of the first position;
if the target rolling direction is parallel to the top setting direction, the target rolling direction is matched with the top setting direction;
if the target rolling direction is vertical to the top setting direction, the target rolling direction is not matched with the top setting direction;
if the target rolling direction is matched with the set-top direction, generating a set-top table according to the set-top label in the process of responding to an operation instruction, and displaying the set-top table in the table, wherein the set-top table comprises the target cell;
and if the target rolling direction is not matched with the top setting direction, only responding to the operation instruction.
5. The terminal device of claim 4, wherein said displaying the set-top table in the table comprises:
generating a locking area in the table according to the position pointed by the top-placing party, wherein the locking area is used for fixing the display position of the top-placing table in the process of controlling the table to scroll according to the operation instruction;
displaying the set-top table in the locked region.
6. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 3.
CN201810041066.3A 2018-01-16 2018-01-16 Method for setting top display unit cell, terminal equipment and computer readable storage medium Active CN108415890B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810041066.3A CN108415890B (en) 2018-01-16 2018-01-16 Method for setting top display unit cell, terminal equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810041066.3A CN108415890B (en) 2018-01-16 2018-01-16 Method for setting top display unit cell, terminal equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108415890A CN108415890A (en) 2018-08-17
CN108415890B true CN108415890B (en) 2021-08-13

Family

ID=63125797

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810041066.3A Active CN108415890B (en) 2018-01-16 2018-01-16 Method for setting top display unit cell, terminal equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108415890B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111460890B (en) * 2020-02-28 2023-01-20 通彩视听科技(上海)有限公司 Suspension tool setting method and device for intelligent equipment, equipment and storage medium
CN113964396A (en) * 2021-09-01 2022-01-21 深圳艾斯特创新科技有限公司 Battery, battery identification method and device, electronic equipment and readable storage medium
CN117311575B (en) * 2023-11-21 2024-04-19 深圳市东信时代信息技术有限公司 Page display method, page display device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916518A (en) * 2012-12-31 2014-07-09 北京新媒传信科技有限公司 Information display method and apparatus based on list
CN105353959A (en) * 2015-10-30 2016-02-24 小米科技有限责任公司 Method and apparatus for controlling list to slide
CN105677624A (en) * 2014-11-20 2016-06-15 珠海金山办公软件有限公司 Adjusting method and device for adjusting frozen region of electronic table
CN105867752A (en) * 2015-02-11 2016-08-17 国际商业机器公司 Method and system for pinning sections on user interface
CN105988982A (en) * 2015-01-28 2016-10-05 腾讯科技(深圳)有限公司 Table locking method and apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9223771B2 (en) * 2008-09-30 2015-12-29 Apple Inc. Locking spreadsheet cells

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103916518A (en) * 2012-12-31 2014-07-09 北京新媒传信科技有限公司 Information display method and apparatus based on list
CN105677624A (en) * 2014-11-20 2016-06-15 珠海金山办公软件有限公司 Adjusting method and device for adjusting frozen region of electronic table
CN105988982A (en) * 2015-01-28 2016-10-05 腾讯科技(深圳)有限公司 Table locking method and apparatus
CN105867752A (en) * 2015-02-11 2016-08-17 国际商业机器公司 Method and system for pinning sections on user interface
CN105353959A (en) * 2015-10-30 2016-02-24 小米科技有限责任公司 Method and apparatus for controlling list to slide

Also Published As

Publication number Publication date
CN108415890A (en) 2018-08-17

Similar Documents

Publication Publication Date Title
CN106484266B (en) Text processing method and device
US9098942B2 (en) Legend indicator for selecting an active graph series
US10409366B2 (en) Method and apparatus for controlling display of digital content using eye movement
TWI611338B (en) Method for zooming screen and electronic apparatus and computer program product using the same
US20150277571A1 (en) User interface to capture a partial screen display responsive to a user gesture
US10013156B2 (en) Information processing apparatus, information processing method, and computer-readable recording medium
CN108415890B (en) Method for setting top display unit cell, terminal equipment and computer readable storage medium
CN107844953B (en) Conference file management method, device, terminal and computer readable storage medium
CN108762740B (en) Page data generation method and device and electronic equipment
CN112965645B (en) Page dragging method and device, computer equipment and storage medium
CN107977155B (en) Handwriting recognition method, device, equipment and storage medium
CN110867243B (en) Image annotation method, device, computer system and readable storage medium
CN109271027B (en) Page control method and device and electronic equipment
CN113538623B (en) Method, device, electronic equipment and storage medium for determining target image
CN110737417B (en) Demonstration equipment and display control method and device of marking line of demonstration equipment
CN111428452A (en) Comment data storage method and device
CN108776669B (en) Map display method, map display device, computer device and storage medium
US9229608B2 (en) Character display apparatus, character display method, and computer readable medium
CN105094668A (en) Message processing method and electronic device
CN114518859A (en) Display control method, display control device, electronic equipment and storage medium
CN106598315B (en) Touch display device and background image replacement method thereof
CN111694498B (en) Interface display method and device and electronic equipment
WO2021082652A1 (en) Information display method and apparatus, and computer-readable storage medium
CN114491309A (en) Picture processing method and device
CN113901033A (en) Data migration method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant