Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be clearly and completely described below with reference to specific embodiments of the present application and corresponding drawings. It will be apparent that the described embodiments are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The following describes in detail the technical solutions provided by the embodiments of the present application with reference to the accompanying drawings.
In order to solve the problem that in the table display method in the prior art, a user is required to view the contents of all table items in the table through complicated operation, so that complicated user experience is brought to the user, the embodiment of the specification provides an interactive display method of the table. The execution subject of the interactive presentation method of the table provided in the embodiments of the present disclosure may be, but is not limited to, a mobile phone, a tablet computer, a personal computer, etc. configured to execute at least one of the terminal devices of the method provided in the embodiments of the present disclosure. Alternatively, the execution body of the method may be an Application (APP) of the interactive presentation method that can be configured as the table provided in the embodiments of the present specification.
For convenience of description, hereinafter, embodiments of the method will be described taking an execution body of the method as an example of a terminal device capable of executing the method. It will be appreciated that the subject of execution of the method is a terminal device which is merely an exemplary illustration and should not be construed as limiting the method.
Specifically, an implementation flow diagram of a method for interactive presentation of a form provided in one or more embodiments of the present disclosure is shown in fig. 1, and includes:
step 110, the size of the displayable region of the target form is obtained.
It should be understood that, since the display screen of the terminal device has various sizes, for example, the size of the display screen of the personal computer (including the notebook computer and the desktop computer) includes various specifications of 13.3 inches, 14 inches, 15 inches, 17 inches, 19 inches, and so on, the displayable area of the target form on the display screen having different sizes may also be different.
When the contents in the target table are relatively large, all the contents of the target table may not be completely displayed on the display screen of the terminal device. In this case, the content corresponding to some entries in the target table will not be displayed on the display screen, and in order to enable the user to view some non-displayed content, the user needs to repeatedly drag the mouse to scroll the scroll bar in the display interface of the target table, which brings a complex user experience to the user.
To solve this problem, one or more embodiments of the present disclosure may obtain, before the target form is displayed on the display screen of the terminal device, the size of the displayable area of the target form, and determine, based on the size of the displayable area, which entries in the target form can be displayed in the displayable area and which entries can be hidden in the displayable area, so as to enable a better visual experience for the user.
Wherein the size of the displayable area is related to the size of the display screen of the terminal device, it should be appreciated that since the target form is typically displayed within one display window when displayed on the display screen of the terminal device, the size of the displayable area is often less than or equal to the size of the display screen of the terminal device. Therefore, the size of the displayable region of the target form is acquired, and specifically, the size of the display screen of the terminal device that is to display the target form, and the frame size of the display window that displays the target form may be acquired first. The size of the displayable region of the target form is then obtained based on the size of the display screen of the terminal device that is to display the target form, and the size of the bezel of the display window that displays the target form.
Step 120, determining an item to be displayed in the target table based on the size of the displayable region, wherein the item to be displayed includes a core item and a secondary item.
It should be understood that the target table contains a plurality of entries, some of the entries are more important, and some of the entries may be useful for assisting in explanation, that is, the user may look at the target table with the focus on some of the more important entries, and some of the entries for assisting in explanation, and the user may look less frequently. Based on this, one or more embodiments of the present disclosure introduce concepts of core entries and secondary entries in order to avoid crowding the target table with more entries when displayed, with an ambiguous emphasis.
The core table entries are important table entries in the target table, and the secondary table entries may be table entries with lower importance in the target table. Which entries in the target table are core entries and which entries are secondary entries may be preconfigured or determined according to a record of the operation behavior of the user on the target table in a historical period of time. The entries contained in the core and secondary entries of the target table may also be updated in conjunction with the user's operational behavior record of the target table over a historical period of time after the core and secondary entries of the target table have been pre-configured. Determining the entry to be presented in the target table based on the size of the displayable region may then comprise two implementations:
the first way, based on the size of the displayable area, of determining an item to be displayed in the target table may specifically include:
firstly, acquiring a preset core table item list of a target table;
then, based on the size of the displayable region and a preset core list of entries, determining the core entries and secondary entries in the entries to be displayed.
Since the size of the target table displayed in the displayable region is often related to the size of the display screen, the core table entry and the secondary table entry in the table entry to be displayed are determined based on the size of the displayable region and the preset core table entry list, and specifically, the core table entry and the secondary table entry in the table entry to be displayed may be determined based on the size of the displayable region, the preset table entry size matching the size of the target table and the displayable region, and the preset core table entry list.
Specifically, if the sizes of the entries in the target table are the same (for example, the widths or the lengths are the same), the number N of entries in the target table that can be displayed in the displayable region may be determined first based on the size of the displayable region and the preset entry size of the target table that matches the size of the displayable region; if the number M of the entries in the preset core entry list is less than or equal to N, the entries in the preset core entry list may be determined to be core entries in the to-be-displayed entries, then N-M entries are determined from the remaining entries in the target table except for the preset core entry list to be core entries in the to-be-displayed entries, and other entries in the target table except for the core entries are determined to be secondary entries.
Optionally, in order to determine, based on a preset core table entry list, an entry with a higher importance degree from the target table as a core table entry, one or more embodiments of the present disclosure may preset a weight related to the importance degree for each entry in the target table. The higher-weight table item indicates that the higher-importance degree of the table item is, each table item in the target table is arranged according to the sequence from high to low, and the table item with the weight value larger than or equal to the first preset threshold value is selected and added into a preset core table item list.
After determining the number N of entries in the target table that can be displayed in the displayable region, the core entries and the secondary entries in the entries to be displayed may be determined according to the preset core entry list and the weight values of the remaining entries in the target table. That is, the first N entries with higher weight values may be determined as core entries, and the other entries in the target table except for the core entry may be determined as secondary entries.
The second way, based on the size of the displayable area, of determining the item to be displayed in the target table may specifically include:
firstly, acquiring an operation behavior record of a user on an item in a target table in a historical time period;
then, based on the operation behavior record of the user on the table items in the target table in the historical time period, the attention degree of the user on the table items in the target table is obtained;
and finally, determining the core table item and the secondary table item in the table item to be displayed based on the size of the displayable area and the attention of the user to the table item of the target table.
The method comprises the steps of acquiring operation behavior records of a user on items in a target table in a historical time period, and particularly acquiring the items related to clicking, selecting, dragging and other operations on the target table and operation frequency of the user on the items when the user views the target table in the historical time period. And based on the operation behavior record of the user on the table items in the target table in the history period, the attention degree of the user on the table items in the target table is obtained, specifically, the attention degree of the user on the table items in the target table can be determined based on the table items involved in clicking, selecting, dragging and other operations on the target table and the operation frequency of the user on the table items when the user views the target table in the history period.
For example, the attention of the user to each item in the target table can be determined based on the operation frequency of the user to each item, and the operation frequency can be used as a measurement of the attention. Specifically, an entry with an operation frequency greater than or equal to a second preset threshold may be determined as a core entry, and an entry with an operation frequency less than the second preset threshold may be determined as a secondary entry.
If the sizes of the entries in the target table are the same, when determining the core entry and the secondary entry in the to-be-displayed entry based on the size of the displayable region and the attention of the user to the entries in the target table, specifically, the number N of entries in the target table that can be displayed in the displayable region may be determined based on the size of the displayable region and the preset entry size of the target table that matches the size of the displayable region, then based on the operation frequency of the user to each entry in the target table, N entries with higher operation frequency are determined from the entries in the target table as core entries, and other entries in the target table except the core entry are determined as secondary entries.
It should be noted that, after the core table entry and the secondary table entry are determined in the first manner, the table entry in the preset core table entry list may be updated based on the attention of the user to the table entry of the target table in the second manner.
And 130, displaying the list items to be displayed in the displayable area, wherein the core list items are configured to be in a displayable state, and the secondary list items are configured to be in a hidden state.
Wherein the entries in the displayable region are capable of transitioning between a displayable state and a hidden state under a preset operation. As shown in fig. 2, a schematic diagram of the method provided in the embodiment of the present disclosure applied in a practical scenario is shown. The to-be-displayed table items of the target table in fig. 2 comprise table items 1 to 7 and hidden items 1 to 6 (i.e. illustration 11), wherein the table items 1 to 7 are core table items, and the hidden items 1 to 6 are secondary table items. The core entries in the to-be-displayed entries of the target table shown in fig. 2 (a) are in a display state, and the secondary entries are in a hidden state.
Optionally, when the user wants to view the secondary item in the hidden state in the displayable region, the hidden item in the displayable region may also be presented in response to an item expansion operation by the user.
Optionally, the displayable region may further include at least one expansion button, where the at least one expansion button may correspond to a hidden table entry, and the hidden table entry in the displayable region may be displayed in response to an expansion operation of the table entry by the user, and in particular, the hidden table entry corresponding to the expansion button in the displayable region may be displayed in response to a click operation of the expansion button by the user.
Optionally, when the user wants to hide the secondary item displayed by expanding again, after the hidden item corresponding to the expansion button in the displayable region is displayed in response to the click operation of the expansion button by the user, the hidden item of the displayable region may be hidden in response to the click operation of the expansion button by the user.
Optionally, in response to an item expanding operation of the user, the hidden item in the displayable region is displayed, and in particular, in response to a drag operation of the user on the preset region, the hidden item in the displayable region may be expanded. As shown in fig. 2 (a), the preset area is an area shown in fig. 12, which may also be referred to as a drag point, and when the hidden items 1 to 6 are in the hidden state in fig. 2 (a), the user may drag the drag point to the right to expand the hidden table item in the displayable area, that is, expand the hidden table item in the displayable area as shown in fig. 2 (b). In fig. 2 (b), when the hidden entries in the displayable region are in the expanded state, the hidden entries, i.e., the table contents corresponding to hidden entries 1 to 6, may temporarily cover the core entry in the displayed state and the table contents corresponding thereto, so that the user may view the table contents corresponding to the hidden entries.
Optionally, after the hidden list item of the displayable region is unfolded in response to the drag operation of the user on the preset region, in order to bring more convenient use experience to the user, the hidden list item of the unfolded display is prevented from being manually hidden by the user, and the hidden list item of the displayable region can be hidden when the drag operation of the user on the preset region is stopped; or, after the user stops dragging the preset area for a preset period of time, hiding the hidden list item of the displayable area.
Optionally, the user may further perform an operation of adding or deleting an entry included in the core entry and the secondary entry according to an actual requirement of the user. I.e. a certain core entry in the display state may be moved to a secondary entry in the hidden state, or a secondary entry in the hidden state of more interest may be added to a core entry in the display state. The table items contained in the core table items can be updated in response to the table item configuration operation of the user on the core table items; and/or updating the table items contained in the hidden table items in response to the table item configuration operation of the user on the hidden table items; the table item configuration operation comprises operations of adding and deleting table items.
In practical application, a user can freely drag and sort the core table items and the secondary table items in the target table according to the requirement of viewing the table, namely, the core table items can be dragged to the positions of the secondary table items, the secondary table items can be dragged to the positions of the core table items, and the core table items in the display state can be subjected to custom sorting according to the requirement of the user, and the secondary table items in the hidden state can be subjected to custom sorting.
Before the target table is displayed, the size of a displayable area of the target table can be firstly obtained, then, based on the size of the displayable area, an item to be displayed in the target table is determined, the item to be displayed comprises a core item and a secondary item, and the item to be displayed is displayed in the displayable area, wherein the core item is configured to be in a displayable state, the secondary item is configured to be in a hidden state, and the item in the displayable area can be converted between the displayable state and the hidden state under a preset operation.
Therefore, when more entries in the target table can not display all the entries in the displayable area of the target table, the core entries and the secondary entries in the target table can be determined, the core entries are preferentially displayed in the displayable area of the target table, and the secondary entries are hidden. And the list items in the displayable region can be converted between the displayable state and the hidden state under the preset operation, so that when a user views a target list with more list items, the user is prevented from repeatedly dragging a scroll bar of a list display interface to view each list item in the target list, the operation of viewing the target list by the user is simplified, and the user experience is improved.
Fig. 3 is a schematic structural diagram of an interactive display device 300 of a form provided in the present specification. Referring to fig. 3, in a software embodiment, an interactive display device 300 of a table may include an obtaining unit 301, a determining unit 302, and a display unit 303, where:
an acquisition unit 301 that acquires the size of a displayable region of the target form;
a determining unit 302, configured to determine an item to be displayed in the target table, based on the size of the displayable region, where the item to be displayed includes a core item and a secondary item;
a display unit 303, configured to display the to-be-displayed item in the displayable region, where the core item is configured to be in a displayable state, and the secondary item is configured to be in a hidden state;
the entries in the displayable region are capable of transitioning between a displayable state and a hidden state under a preset operation.
Before the target table is displayed, the size of the displayable area of the target table can be firstly acquired through the acquiring unit 301, then the determining unit 302 determines an item to be displayed in the target table based on the size of the displayable area, the item to be displayed includes a core item and a secondary item, and finally the displaying unit 303 can display the item to be displayed in the displayable area, wherein the core item is configured to be in a displayable state, the secondary item is configured to be in a hidden state, and the item in the displayable area can be converted between the displayable state and the hidden state under a preset operation.
Therefore, when more entries in the target table can not display all the entries in the displayable area of the target table, the core entries and the secondary entries in the target table can be determined, the core entries are preferentially displayed in the displayable area of the target table, and the secondary entries are hidden. And the list items in the displayable region can be converted between the displayable state and the hidden state under the preset operation, so that when a user views a target list with more list items, the user is prevented from repeatedly dragging a scroll bar of a list display interface to view each list item in the target list, the operation of viewing the target list by the user is simplified, and the user experience is improved.
Optionally, in one embodiment, the apparatus further comprises:
the first display unit 304 displays the hidden entries in the displayable region in response to the entry expansion operation of the user.
Optionally, in an embodiment, the displayable area includes at least one expansion button, where the at least one expansion button corresponds to the hidden table entry, and the first display unit 304 is specifically configured to:
and responding to the click operation of the user on the telescopic button, and displaying the hidden list item corresponding to the telescopic button in the displayable region.
Optionally, in one embodiment, the first display unit 304 is specifically configured to:
and responding to the drag operation of the user on the preset area, and expanding the hidden list item of the displayable area.
Optionally, in one embodiment, after the first presenting unit 304 presents the hidden entry corresponding to the telescopic button in the displayable region in response to the clicking operation of the telescopic button by the user, the apparatus further includes:
and the first hiding unit is used for hiding the hidden list item of the displayable area in response to the click operation of the user on the telescopic button.
Optionally, in an embodiment, after the first display unit 304 expands the hidden entry of the displayable region in response to the drag operation of the user on the preset region, the apparatus further includes a second hiding unit, specifically configured to:
hiding the hidden list item of the displayable region when the user stops dragging the preset region; or (b)
And hiding the hidden list item of the displayable region after the user stops dragging the preset region for a preset time period.
Optionally, in one embodiment, the determining unit 302 is specifically configured to:
acquiring a preset core table item list of the target table;
and determining the core list item and the secondary list item in the list item to be displayed based on the size of the displayable region and a preset core list item list.
Optionally, in one embodiment, the determining unit 302 is specifically configured to:
acquiring an operation behavior record of a user on an item in the target table in a historical time period;
acquiring the attention degree of the user to the table items in the target table based on the operation behavior record of the user to the table items in the target table in the historical time period;
and determining a core table item and a secondary table item in the table item to be displayed based on the size of the displayable region and the attention of the user to the table item of the target table.
Optionally, in an implementation manner, the apparatus further includes an entry updating unit, specifically configured to:
updating the table items contained in the core table items in response to the table item configuration operation of the user on the core table items; and/or
Updating the list items contained in the hidden list items in response to the list item configuration operation of the user on the hidden list items;
the table item configuration operation comprises the operation of adding and deleting table items.
The form interactive display device 300 can implement the method of the method embodiments of fig. 1 to 2, and specifically, reference may be made to the form interactive display method of the embodiment shown in fig. 1 to 2, which is not repeated.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. Referring to fig. 4, at the hardware level, the electronic device includes a processor, and optionally an internal bus, a network interface, and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory (non-volatile Memory), such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, network interface, and memory may be interconnected by an internal bus, which may be an ISA (Industry Standard Architecture ) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus, or EISA (Extended Industry Standard Architecture ) bus, among others. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 4, but not only one bus or type of bus.
And the memory is used for storing programs. In particular, the program may include program code including computer-operating instructions. The memory may include memory and non-volatile storage and provide instructions and data to the processor.
The processor reads the corresponding computer program from the nonvolatile memory into the memory and then runs the computer program to form the interactive display device of the table on the logic level. The processor is used for executing the programs stored in the memory and is specifically used for executing the following operations:
acquiring the size of a displayable area of the target table;
determining an item to be displayed in the target table based on the size of the displayable region, wherein the item to be displayed comprises a core item and a secondary item;
displaying the to-be-displayed list item in the displayable area, wherein the core list item is configured to be in a displayable state, and the secondary list item is configured to be in a hidden state;
the entries in the displayable region are capable of transitioning between a displayable state and a hidden state under a preset operation.
The method for interactively displaying the tables disclosed in the embodiments shown in fig. 1-2 of the present specification can be applied to a processor or implemented by the processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or by instructions in the form of software. The processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; but also digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The various methods, steps, and logic blocks disclosed in one or more embodiments of the present description may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with one or more embodiments of the present disclosure may be embodied directly in a hardware decoding processor or in a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory, and the processor reads the information in the memory and, in combination with its hardware, performs the steps of the above method.
The electronic device may also execute the interactive display method of the tables of fig. 1 to 2, which is not described herein.
Of course, in addition to the software implementation, the electronic device in this specification does not exclude other implementations, such as a logic device or a combination of software and hardware, that is, the execution subject of the following process is not limited to each logic unit, but may also be hardware or a logic device.
In summary, the foregoing description is only a preferred embodiment of the present application and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement, or the like, which is within the spirit and principles of one or more embodiments of the present disclosure, is intended to be included within the scope of one or more embodiments of the present disclosure.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. One typical implementation is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises the element.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for system embodiments, since they are substantially similar to method embodiments, the description is relatively simple, as relevant to see a section of the description of method embodiments.