CN114153532A - Plug-in interface display method and device, plug-in system and readable storage medium - Google Patents
Plug-in interface display method and device, plug-in system and readable storage medium Download PDFInfo
- Publication number
- CN114153532A CN114153532A CN202010932027.XA CN202010932027A CN114153532A CN 114153532 A CN114153532 A CN 114153532A CN 202010932027 A CN202010932027 A CN 202010932027A CN 114153532 A CN114153532 A CN 114153532A
- Authority
- CN
- China
- Prior art keywords
- information
- plug
- interface
- display
- logic
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 230000003993 interaction Effects 0.000 claims abstract description 147
- 238000009877 rendering Methods 0.000 claims abstract description 30
- 238000000926 separation method Methods 0.000 claims description 7
- 230000008569 process Effects 0.000 abstract description 9
- 230000000694 effects Effects 0.000 abstract description 5
- 230000002452 interceptive effect Effects 0.000 description 68
- 230000006870 function Effects 0.000 description 26
- 230000002159 abnormal effect Effects 0.000 description 16
- 238000006243 chemical reaction Methods 0.000 description 14
- 238000004891 communication Methods 0.000 description 9
- 238000012545 processing Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 238000007689 inspection Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a method and a device for displaying a plug-in interface, a plug-in system and a readable storage medium, wherein the method comprises the following steps: receiving plug-in code information, and splitting the plug-in code information into plug-in logic information and plug-in panel information; acquiring display information of application software corresponding to the plug-in code information, operating the plug-in logic information based on the display information, and generating a plug-in main interface matched with the display information for display; and rendering the plug-in panel information based on the display information, and generating a plug-in interaction panel matched with the display information for display. According to the method and the device, no matter what application software is carried by the plug-in, the display information of the plug-in is acquired to process the logic information of the plug-in and the information of the plug-in panel, so that the acquired plug-in main interface and the plug-in interaction panel are unified with the carried application software in the aspect of display style, and the compatible display effect between the plug-in and the carrying of different types of application software is facilitated.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for displaying a plug-in interface, a plug-in system, and a readable storage medium.
Background
With the development of science and technology, the functions supported by the intelligent terminal are more and more powerful, and most of the functions are realized through application software. Meanwhile, the application software supports compatibility with various plug-ins, the plug-ins are programs written according to application program interfaces with certain specifications, and the functions of the application software are enriched, so that the application software is convenient to maintain and adjust, and the flexibility of application software development is facilitated.
Currently, plug-ins are usually developed independently, and after development, the plug-in interface is displayed in a certain fixed style. Moreover, the same plug-in is usually loaded with different application software for use, and the different application software has different display styles; therefore, the fixed display style of the plug-in interface is difficult to be unified with the display styles of various types of loaded application software, and the compatible display effect between the plug-in and the application software is influenced.
Disclosure of Invention
The invention mainly aims to provide a plug-in interface display method, a plug-in interface display device, a plug-in system and a readable storage medium, and aims to solve the technical problems that in the prior art, the fixed display style of a plug-in interface is difficult to unify with the display styles of various application software, and the compatible display effect between the plug-in and the application software is influenced.
In order to achieve the above object, the present invention provides a method for displaying a plug-in interface, where the method for displaying a plug-in interface includes the following steps:
receiving plug-in code information, and splitting the plug-in code information into plug-in logic information and plug-in panel information;
acquiring display information of application software corresponding to the plug-in code information, operating the plug-in logic information based on the display information, and generating a plug-in main interface matched with the display information for display;
and rendering the plug-in panel information based on the display information, and generating a plug-in interaction panel matched with the display information for display.
Optionally, the step of generating a plug-in main interface and a plug-in interaction panel matched with the display information for displaying includes:
when an interactive request is received based on the plug-in interactive panel, acquiring interactive information carried by the interactive request;
and updating and displaying interface information corresponding to the interaction information in the plug-in main interface based on the interaction information.
Optionally, the step of updating and displaying interface information corresponding to the interaction information in the plug-in main interface based on the interaction information includes:
triggering target logic information corresponding to the interaction information in the plug-in logic information based on an interaction interface corresponding to the plug-in logic information;
according to the target logic information and the interaction information, configuring interface information corresponding to the interaction information in the plug-in main interface to generate a configuration result;
and updating and displaying the interface information in the plug-in main interface based on the configuration result.
Optionally, the step of updating and displaying the interface information corresponding to the interaction information in the plug-in main interface based on the interaction information includes:
acquiring the information attribute of the interactive information and the attribute range of the interface information, and judging whether the information attribute is located in the attribute range;
if the interface information is located in the attribute range, executing a step of updating and displaying the interface information corresponding to the interaction information in the plug-in main interface based on the interaction information;
and if the attribute is not in the attribute range, outputting information exception prompt information.
Optionally, the step of splitting the plug-in code information into plug-in logic information and plug-in panel information includes:
separating logic information and panel information from the plug-in code information;
converting the logic information based on a preset tool to generate plug-in logic information;
caching the panel information based on a preset platform, and generating plug-in panel information of a preset data structure.
Optionally, the step of separating the logic information and the panel information from the plug-in code information is followed by:
judging the validity of the logic information and the panel information according to the plug-in code information;
if the logic information and the panel information are both valid, executing a step of converting the logic information based on a preset tool;
and if the logic information and/or the panel information are invalid, outputting separation invalid prompt information.
Optionally, the step of running the plug-in logic information based on the display information and generating a plug-in main interface matched with the display information for displaying includes:
loading the plug-in logic information, judging whether the plug-in logic information is loaded completely, and if the plug-in logic information is loaded completely, operating the plug-in logic information;
and rendering an interface generated by the plug-in logic information operation based on the display information, and obtaining a plug-in main interface matched with the display information for display.
Optionally, the rendering the plug-in panel information based on the display information, and the generating and displaying a plug-in interaction panel matched with the display information includes:
acquiring an interaction area corresponding to the plug-in main interface, rendering the plug-in panel information based on the display information, and generating a plug-in interaction panel matched with the display information;
and displaying the plug-in interactive panel in the interactive area.
Optionally, the step of splitting the plug-in code information into plug-in logic information and plug-in panel information includes:
and converting the plug-in logic information and the plug-in panel information into conversion information in a binary format, and storing the conversion information into a preset storage unit.
Optionally, the step of splitting the plug-in code information into plug-in logic information and plug-in panel information includes:
compiling the plug-in code information, judging whether logic abnormal information exists in the plug-in code information, and if the logic abnormal information exists, outputting logic abnormal prompt information;
and if the logic exception information does not exist, executing the step of splitting the plug-in code information into plug-in logic information and plug-in panel information.
Further, to achieve the above object, the present invention further provides a display device of a plug-in interface, where the display device of the plug-in interface includes:
the splitting module is used for receiving the plug-in code information and splitting the plug-in code information into plug-in logic information and plug-in panel information;
the generating module is used for acquiring display information of application software corresponding to the plug-in code information, operating the plug-in logic information based on the display information and generating a plug-in main interface matched with the display information for display;
and the rendering module is used for rendering the plug-in panel information based on the display information and generating a plug-in interaction panel matched with the display information for display.
Optionally, the display device of the plug-in interface further includes:
the acquisition module is used for acquiring the interaction information carried by the interaction request when the interaction request is received based on the plug-in interaction panel;
and the updating module is used for updating and displaying the interface information corresponding to the interaction information in the plug-in main interface based on the interaction information.
Optionally, the update module further includes:
the triggering unit is used for triggering target logic information corresponding to the interaction information in the plug-in logic information based on an interaction interface corresponding to the plug-in logic information;
the configuration unit is used for configuring interface information corresponding to the interaction information in the plug-in main interface according to the target logic information and the interaction information to generate a configuration result;
and the updating unit is used for updating and displaying the interface information in the plug-in main interface based on the configuration result.
Optionally, the display device of the plug-in interface further includes:
the judging module is used for acquiring the information attribute of the interactive information and the attribute range of the interface information and judging whether the information attribute is located in the attribute range;
the execution module is used for executing the step of updating and displaying the interface information corresponding to the interaction information in the plug-in main interface based on the interaction information if the execution module is located in the attribute range;
and the output module is used for outputting the information exception prompt information if the attribute range is not located.
Optionally, the splitting module comprises:
the splitting unit is used for separating logic information and panel information from the plug-in code information;
the conversion unit is used for converting the logic information based on a preset tool to generate plug-in logic information;
and the cache unit is used for caching the panel information based on a preset platform and generating plug-in panel information of a preset data structure.
Optionally, the splitting module further comprises:
the judging unit is used for judging the validity of the logic information and the panel information according to the plug-in code information;
the execution unit is used for executing the step of converting the logic information based on a preset tool if the logic information and the panel information are both effective;
and the output unit is used for outputting separation invalid prompt information if the logic information and/or the panel information are invalid.
Optionally, the generating module further includes:
the loading unit is used for loading the plug-in logic information and judging whether the plug-in logic information is loaded completely, and if the plug-in logic information is loaded completely, the plug-in logic information is operated;
and the rendering unit is used for rendering the interface generated by the plug-in logic information operation based on the display information, and obtaining a plug-in main interface matched with the display information for display.
Optionally, the rendering module further comprises:
the generating unit is used for acquiring an interaction area corresponding to the plug-in main interface, rendering the plug-in panel information based on the display information and generating a plug-in interaction panel matched with the display information;
and the display unit is used for displaying the plug-in interaction panel in the interaction area.
Further, in order to achieve the above object, the present invention further provides a plug-in system, where the plug-in system includes a memory, a processor, and a plug-in interface display program stored in the memory and executable on the processor, and when the plug-in interface display program is executed by the processor, the steps of the plug-in interface display method described above are implemented.
Further, to achieve the above object, the present invention further provides a readable storage medium, where a display program of a plug-in interface is stored, and when the display program of the plug-in interface is executed by a processor, the steps of the display method of the plug-in interface are implemented.
The method, the device, the plug-in system and the readable storage medium for displaying the plug-in interface firstly receive plug-in code information and split the plug-in code information into plug-in logic information and plug-in panel information; and then acquiring display information of application software required to be carried by the plug-in code information, respectively processing the plug-in logic information and the plug-in panel information according to the display information, and generating a plug-in main interface and a plug-in interaction panel matched with the display information for display. The invention divides the plug-in code information for realizing the plug-in function into information for realizing the plug-in logic and information for realizing the plug-in panel, the plug-in logic information forms a plug-in main interface of the plug-in function, and the plug-in panel information forms a plug-in interaction panel for setting the attribute of the plug-in main interface; and the plug-in main interface and the plug-in interaction panel are processed and generated according to display information of the application software required to be carried by the plug-in, and the display information represents the display style of the application software. No matter what application software is carried by the plug-in, the display information of the plug-in is acquired to process the logic information and the panel information of the plug-in, so that the display style of the acquired plug-in main interface and the plug-in interaction panel is unified with the carried application software. Therefore, the display effect of compatibility between the plug-in and the application software of different types is facilitated.
Drawings
FIG. 1 is a schematic diagram of a hardware operating environment according to an embodiment of the plug-in system of the present invention;
FIG. 2 is a flowchart illustrating a method for displaying a plug-in interface according to a first embodiment of the present invention;
FIG. 3 is a functional block diagram of a display device of a plug-in interface according to a preferred embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The invention provides a plug-in system, and referring to fig. 1, fig. 1 is a schematic structural diagram of a hardware operating environment according to an embodiment of the plug-in system of the invention.
As shown in fig. 1, the plug-in system may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a memory card system separate from the processor 1001 described above.
Those skilled in the art will appreciate that the hardware configuration of the plug-in system shown in FIG. 1 does not constitute a limitation of the plug-in system, and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a readable storage medium, may include therein a display program of an operating system, a network communication module, a user interface module, and a plug-in interface. The operating system is a program for managing and controlling hardware and software resources of the plug-in system, and supports the running of a network communication module, a user interface module, a display program of a plug-in interface and other programs or software; the network communication module is used to manage and control the network interface 1004; the user interface module is used to manage and control the user interface 1003.
In the hardware structure of the plug-in system shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; the processor 1001 may call the display program of the plug-in interface stored in the memory 1005 and perform the following operations:
receiving plug-in code information, and splitting the plug-in code information into plug-in logic information and plug-in panel information;
acquiring display information of application software corresponding to the plug-in code information, operating the plug-in logic information based on the display information, and generating a plug-in main interface matched with the display information for display;
and rendering the plug-in panel information based on the display information, and generating a plug-in interaction panel matched with the display information for display.
Further, after the step of generating the plug-in host interface and the plug-in interaction panel matched with the display information for displaying, the processor 1001 may call the display program of the plug-in interface stored in the memory 1005, and perform the following operations:
when an interactive request is received based on the plug-in interactive panel, acquiring interactive information carried by the interactive request;
and updating and displaying interface information corresponding to the interaction information in the plug-in main interface based on the interaction information.
Further, the step of updating and displaying the interface information corresponding to the interaction information in the plug-in main interface based on the interaction information includes:
triggering target logic information corresponding to the interaction information in the plug-in logic information based on an interaction interface corresponding to the plug-in logic information;
according to the target logic information and the interaction information, configuring interface information corresponding to the interaction information in the plug-in main interface to generate a configuration result;
and updating and displaying the interface information in the plug-in main interface based on the configuration result.
Further, before the step of updating and displaying the interface information corresponding to the interaction information in the plug-in host interface based on the interaction information, the processor 1001 may call a display program of the plug-in interface stored in the memory 1005, and perform the following operations:
acquiring the information attribute of the interactive information and the attribute range of the interface information, and judging whether the information attribute is located in the attribute range;
if the interface information is located in the attribute range, executing a step of updating and displaying the interface information corresponding to the interaction information in the plug-in main interface based on the interaction information;
and if the attribute is not in the attribute range, outputting information exception prompt information.
Further, the step of splitting the plug-in code information into plug-in logic information and plug-in panel information includes:
separating logic information and panel information from the plug-in code information;
converting the logic information based on a preset tool to generate plug-in logic information;
caching the panel information based on a preset platform, and generating plug-in panel information of a preset data structure.
Further, after the step of separating the logic information and the panel information from the plug-in code information, the processor 1001 may call a display program of the plug-in interface stored in the memory 1005, and perform the following operations:
judging the validity of the logic information and the panel information according to the plug-in code information;
if the logic information and the panel information are both valid, executing a step of converting the logic information based on a preset tool;
and if the logic information and/or the panel information are invalid, outputting separation invalid prompt information.
Further, the step of running the plug-in logic information based on the display information and generating a plug-in main interface matched with the display information for display includes:
loading the plug-in logic information, judging whether the plug-in logic information is loaded completely, and if the plug-in logic information is loaded completely, operating the plug-in logic information;
and rendering an interface generated by the plug-in logic information operation based on the display information, and obtaining a plug-in main interface matched with the display information for display.
Further, the step of rendering the plug-in panel information based on the display information, and generating a plug-in interaction panel matched with the display information for display includes:
acquiring an interaction area corresponding to the plug-in main interface, rendering the plug-in panel information based on the display information, and generating a plug-in interaction panel matched with the display information;
and displaying the plug-in interactive panel in the interactive area.
Further, after the step of splitting the plug-in code information into the plug-in logic information and the plug-in panel information, the processor 1001 may call a display program of the plug-in interface stored in the memory 1005, and perform the following operations:
and converting the plug-in logic information and the plug-in panel information into conversion information in a binary format, and storing the conversion information into a preset storage unit.
Further, before the step of splitting the plug-in code information into the plug-in logic information and the plug-in panel information, the processor 1001 may call a display program of the plug-in interface stored in the memory 1005, and perform the following operations:
compiling the plug-in code information, judging whether logic abnormal information exists in the plug-in code information, and if the logic abnormal information exists, outputting logic abnormal prompt information;
and if the logic exception information does not exist, executing the step of splitting the plug-in code information into plug-in logic information and plug-in panel information.
The specific implementation of the plug-in system of the present invention is substantially the same as the following embodiments of the display method of the plug-in interface, and is not described herein again.
The invention also provides a display method of the plug-in interface.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for displaying a plug-in interface according to a first embodiment of the present invention.
While a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different than that shown. Specifically, the method for displaying the plugin interface of the embodiment includes:
step S10, receiving plug-in code information, and splitting the plug-in code information into plug-in logic information and plug-in panel information;
the display method of the plug-in interface in the embodiment is suitable for the plug-in system, and the display style of the plug-in carried on various application software is consistent with the display style of the various application software through the plug-in system. Specifically, a developer develops plug-ins to form plug-in code information and uploads the plug-in code information to a plug-in system; and the plug-in system receives the plug-in code information and splits the plug-in code information into plug-in logic information and plug-in panel information. The plug-in logic information is a code for logic processing when the plug-in function is realized, and a plug-in main interface of the plug-in function is formed; the plug-in panel information forms a plug-in interaction panel for setting properties of the plug-in host interface. And various application software establishes connection with the plug-in system in the process of loading the plug-in, so that the plug-in system renders the plug-in main interface and the plug-in interaction panel according to the display style of the application software to form a plug-in interface matched with the display style of the application software.
Understandably, the plug-in code information is formed by code written by a developer, where there may be an error that fails to implement the functionality of the plug-in. Therefore, in order to ensure the normal implementation of the plug-in function, the present embodiment is provided with a compiling mechanism before the plug-in code information is split. Specifically, the step of splitting the plug-in code information into the plug-in logic information and the plug-in panel information includes:
a1, compiling the plug-in code information, judging whether logic abnormal information exists in the plug-in code information, and if the logic abnormal information exists, outputting logic abnormal prompt information;
step a2, if there is no logic exception information, executing the step of splitting the plug-in code information into plug-in logic information and plug-in panel information.
Further, after receiving the plug-in code information, the plug-in system stores the plug-in code information into the temporary storage queue unit as code elements, and processes the code elements one by one according to the arrangement sequence of the code elements used for realizing different plug-in functions stored in the temporary storage queue unit. When the plug-in code information is processed, a compiling mechanism is started to compile the plug-in code information, and whether logic abnormal information exists in the plug-in code information is detected through compiling. The logic exception information may include code that has a formal problem, such as a variable that is used without definition, a local variable that is used as a global variable, and the like, in addition to code that has an exception in the logic processing process for implementing the plug-in function.
Furthermore, if the logic exception information exists in the plug-in code information, logic exception prompt information is output aiming at the code with the logic exception in the plug-in code information; the logic abnormal information is generated into logic abnormal prompt information and is output, so that the abnormal code can be quickly positioned and corrected according to the logic abnormal information carried in the logic abnormal prompt information. If the fact that the logic abnormal information does not exist in the plug-in code information and the error code does not exist in the plug-in code information is judged, splitting the plug-in code information; the method is divided into plug-in logic information for realizing logic function and plug-in panel information for realizing interaction function.
Understandably, the plug-in logic information and the plug-in panel information obtained by conversion may occupy a large storage space; in order to facilitate unified storage management, the plugin system converts split plugin logic information and plugin panel information and then compresses and stores the converted split plugin logic information and plugin panel information. Specifically, the step of splitting the plug-in code information into the plug-in logic information and the plug-in panel information includes:
step a3, converting the plug-in logic information and the plug-in panel information into conversion information in binary format, and storing the conversion information in a preset storage unit.
Further, in this embodiment, the binary format is used as a unified storage format, the split plugin logic information and the split plugin panel information are converted, and the two are converted into conversion information in the two-level system format. The converted plug-in logic information and the plug-in panel information independently form conversion information, namely the conversion information comprises the independent converted plug-in logic information and the converted plug-in panel information, and the converted plug-in logic information and the converted plug-in panel information are not mixed in the conversion information. And a preset storage unit is preset, and the conversion information is stored in the preset storage unit so as to form a plug-in main interface and a plug-in interaction panel.
Step S20, acquiring display information of application software corresponding to the plug-in code information, operating the plug-in logic information based on the display information, and generating a plug-in main interface matched with the display information for display;
understandably, the plug-in code information is used for forming a plug-in to realize a certain function, and the application software realizes the function in the application software through loading the plug-in. And taking the application software for loading the plug-in as the application software corresponding to the plug-in code information, and acquiring the display information of the application software. The display information represents the display style of the application software, such as display color, display font, and the like. And controlling the operation of the plug-in logic information according to the display information to generate plug-in main interface display of the plug-in function. And if the function of the plug-in is used for displaying the map, generating a main interface with the map displayed for displaying. And the plug-in main interface is matched with the display information in the display style and has uniformity with the display style of the application software. Specifically, the step of running the plug-in logic information based on the display information and generating a plug-in main interface matched with the display information for display includes:
step S21, loading the plug-in logic information, judging whether the plug-in logic information is loaded completely, and if the plug-in logic information is loaded completely, operating the plug-in logic information;
and step S22, rendering an interface generated by the plug-in logic information operation based on the display information, and obtaining a plug-in main interface matched with the display information for display.
Further, the plug-in logic information is stored in a preset storage unit, and is loaded during running, and whether the loading is completed is judged according to a preset waiting time. And if the loading is finished, controlling the loaded plug-in logic information to run. And if the loading is not finished, continuing waiting for a period of time until the plug-in logic information is judged to be loaded, and controlling the plug-in logic information to run.
Understandably, the plug-in logic information generates an interface which embodies the functions of the plug-in through operation, and the interface is rendered according to the display information; rendering into a style matching the display information to conform to the display style between the application software. And forming a plug-in main interface by the rendered interface, and displaying the plug-in main interface to realize the function of the plug-in.
And step S30, rendering the plug-in panel information based on the display information, and generating a plug-in interaction panel matched with the display information for display.
Furthermore, the plug-in panel information is rendered according to the display information, and a plug-in interaction panel for setting the attribute of the plug-in main interface is generated. The plug-ins with different functions are provided with different plug-in code information, so that the logic information and the panel information of the plug-ins obtained by splitting are different, and equipment is carried out on different attributes of the main interfaces of the respective plug-ins through the plug-in interaction panels of the plug-ins. For the plug-in main interface for displaying the map, the content displayed by the plug-in interaction panel may include a center point coordinate position, a view angle, and the like, so as to set a display position of the map in the application software, a display view angle of the map content, and the like. And rendering the plug-in panel information through the display information, so that the generated plug-in interaction panel is matched with the display information, and the consistency of the display style with the application software is realized.
Further, the step of rendering the plug-in panel information based on the display information, and generating a plug-in interaction panel matched with the display information for display includes:
step S31, acquiring an interaction area corresponding to the plug-in main interface, rendering the plug-in panel information based on the display information, and generating a plug-in interaction panel matched with the display information;
and step S32, displaying the plug-in interactive panel in the interactive area.
Furthermore, the plug-in interaction panel and the plug-in main interface can be simultaneously displayed in different areas of the application software, so that the property of the plug-in main interface can be configured through the plug-in interaction panel. Specifically, an interaction area for displaying a plug-in interaction panel is set in an interface displayed by the application software on the plug-in main interface, for example, the interaction area is set to be a lower left corner or an upper right corner. And in the process of generating the plug-in interactive panel in a rendering mode, acquiring the set interactive area as an interactive area corresponding to the plug-in main interface. And meanwhile, rendering the information of the plug-in panel through the display information to obtain a plug-in interaction interface matched with the display information. And displaying the plug-in interaction interface in the interaction area, thereby realizing that the plug-in interaction panel and the plug-in main interface are simultaneously displayed in different areas and configuring the attribute of the plug-in main interface. And the plug-in interaction panel is rendered and displayed, and the plug-in interaction panel display can be generated in the interaction area by drawing in the interaction area according to the plug-in panel information.
The display method of the plug-in interface of the invention, receive the code information of the plug-in first, and split the code information of the plug-in into logical information and plug-in panel information of the plug-in; and then acquiring display information of application software required to be carried by the plug-in code information, respectively processing the plug-in logic information and the plug-in panel information according to the display information, and generating a plug-in main interface and a plug-in interaction panel matched with the display information for display. The invention divides the plug-in code information for realizing the plug-in function into information for realizing the plug-in logic and information for realizing the plug-in panel, the plug-in logic information forms a plug-in main interface of the plug-in function, and the plug-in panel information forms a plug-in interaction panel for setting the attribute of the plug-in main interface; and the plug-in main interface and the plug-in interaction panel are processed and generated according to display information of the application software required to be carried by the plug-in, and the display information represents the display style of the application software. No matter what application software is carried by the plug-in, the display information of the plug-in is acquired to process the logic information and the panel information of the plug-in, so that the display style of the acquired plug-in main interface and the plug-in interaction panel is unified with the carried application software. Therefore, the display effect of compatibility between the plug-in and the application software of different types is facilitated.
Further, based on the first embodiment of the display method of the plugin interface, the second embodiment of the display method of the plugin interface is provided.
The second embodiment of the display method of the plugin interface is different from the first embodiment of the display method of the plugin interface in that the step of generating and displaying the plugin main interface and the plugin interaction panel matched with the display information includes:
step S40, when receiving an interactive request based on the plug-in interactive panel, acquiring interactive information carried by the interactive request;
and step S50, updating and displaying the interface information corresponding to the interaction information in the plug-in main interface based on the interaction information.
The configuration of the plug-in interaction panel to the attribute of the plug-in host Interface in this embodiment is implemented by an API (Application Programming Interface) interacting with the plug-in system. Specifically, the plug-in interaction panel contains contents of a plurality of support settings, and each content can exist in the form of an input box, a drop-down box, an option or a combination of the input box, the drop-down box and the option. And after receiving the interactive request initiated based on the plug-in interactive panel, the plug-in system acquires the interactive information carried in the interactive request. The interactive information comprises an object set in the plug-in main interface and content required to be set by the object; therefore, the interface information corresponding to the interactive information in the plug-in main interface is searched, the interface information is the set object, and the interface information is updated through the API according to the set content in the interactive information to update the interface information to the set content. Specifically, the step of updating and displaying the interface information corresponding to the interaction information in the plug-in main interface based on the interaction information includes:
step S51, triggering target logic information corresponding to the interactive information in the plug-in logic information based on the interactive interface corresponding to the plug-in logic information;
step S52, according to the target logic information and the interaction information, configuring interface information corresponding to the interaction information in the plug-in main interface to generate a configuration result;
and step S53, updating and displaying the interface information in the plug-in main interface based on the configuration result.
Further, the plug-in system injects an interactive API to the environment where the plug-in runs when the plug-in runs, and the interactive API is used for calling the plug-in logic information to process the interactive information, so that the interactive information is used as an interactive interface corresponding to the plug-in logic information. And triggering target logic information corresponding to the interactive information in the plug-in logic information through the interactive interface, and processing the interactive information by the target logic information. If the plug-in logic information comprises information p1 and p2 for processing the attribute a and the attribute b of the plug-in host interface, the interaction information configured through the plug-in interaction panel is the attribute b, so that p2 is triggered as the target logic information corresponding to the interaction information through the interaction interface.
Furthermore, interface information corresponding to the interaction information in the plug-in main interface is searched through the interaction information, and if the interaction information is used for adjusting the coordinate position of the central point, the position of the original central point in the plug-in main interface is searched to serve as the interface information corresponding to the interaction information. And then adjusting the searched interface information according to the target logic information, adjusting the interface information into interactive information, and realizing the configuration of the interface information. And updating the interface information displayed in the plug-in main interface by configuring the generated configuration result. And if the interactive information of the central point coordinate position is obtained, adjusting the position of the original central point to the central point coordinate position in the interactive information to obtain a configuration result. And then, according to the configuration result, the displayed central position is adjusted, and the interface information corresponding to the interactive information is updated and displayed.
Understandably, the attribute supporting configuration in the plug-in main interface is usually located in a certain selectable range, and the interaction information sent through the plug-in interaction panel needs to be within the selectable range to support valid configuration. Therefore, the step of updating and displaying the interface information corresponding to the interaction information in the plug-in main interface based on the interaction information comprises the following steps:
b1, acquiring the information attribute of the interactive information and the attribute range of the interface information, and judging whether the information attribute is in the attribute range;
b2, if the interface information is located in the attribute range, executing a step of updating and displaying the interface information corresponding to the interaction information in the plug-in main interface based on the interaction information;
and b3, if the attribute is not in the attribute range, outputting information exception prompt information.
Further, after the interactive information is acquired from the interactive request parameter, the information attribute of the interactive information is acquired; the information attribute exists in the form of interactive information characteristic value and is different according to different types of interactive information; and if the interactive information is color, the information attribute is RGB three-channel color data, and if the interactive information is position, the information attribute is coordinate data. And simultaneously, acquiring an attribute range of the interface information corresponding to the interactive information, wherein the attribute range represents a set range supported by the interactive information. If the range of support is 0-255 for the color information, and if the position is not more than the range displayed by the plug-in main interface or the range area displayed by the display terminal, the range of support is the range not more than the range displayed by the plug-in main interface.
Furthermore, the information attribute is compared with the attribute range, and whether the information attribute is located in the attribute range is judged. If the interface information is located in the attribute range, the interactive information is effective, and therefore, the interface information corresponding to the interactive information in the plug-in main interface is updated and displayed according to the interactive information. If the information attribute is judged not to be in the attribute range, the interactive information is invalid, and information abnormity prompting information is output to prompt updating of the interactive information, wherein the information attribute of the interactive information is in the attribute range to support effective configuration.
In this embodiment, the interactive request is triggered through the plug-in interactive panel, and the interface information in the plug-in main panel is set and updated through the interactive information carried in the interactive request, so that the content displayed in the plug-in main panel meets the display requirement. Meanwhile, validity judgment is carried out on the interactive information, and effective display of the content set in the plug-in main panel is ensured.
Further, a third embodiment of the display method of the plugin interface according to the present invention is proposed based on the first or second embodiment of the display method of the plugin interface according to the present invention.
The third embodiment of the method for displaying a plug-in interface is different from the first or second embodiment of the method for displaying a plug-in interface in that the step of splitting the plug-in code information into the plug-in logic information and the plug-in panel information includes:
step S11, separating logic information and panel information from the plug-in code information;
step S12, converting the logic information based on a preset tool to generate plug-in logic information;
and step S13, caching the panel information based on a preset platform, and generating plug-in panel information of a preset data structure.
In this embodiment, the plug-in code information is split, and validity judgment is performed on the logic information and the panel information obtained by splitting. Specifically, the plug-in code information is split, and logic information for realizing logic functions and panel information for realizing panel interactive functions are separated from the plug-in code information. And then, the logic information is converted by a preset tool which is configured in advance, so that an information module with higher compatibility is obtained, and the compatibility with various types of application software is facilitated. Wherein the preset tool is preferably a webpack tool. Meanwhile, the panel information is cached through a preset platform which is configured in advance, and plug-in panel information of a preset data structure is formed. The preset platform is preferably a Node platform, and the preset data structure is preferably a json structure; and caching the panel information through the virtual machine function in the Node platform to generate the plug-in panel information of the json structure. Therefore, the plug-in code information is divided into the plug-in logic information and the plug-in panel information.
Further, in consideration of the fact that influence of uncertain factors may exist in the process of splitting the plug-in code information into the logic information and the panel information, the split logic information and the panel information are wrong. Therefore, a verification mechanism for the logic information and the panel information is provided, and specifically, the step of separating the logic information and the panel information from the plug-in code information includes the following steps:
step c1, according to the plug-in code information, judging the validity of the logic information and the panel information;
step c2, if the logic information and the panel information are both valid, executing the step of converting the logic information based on a preset tool;
and c3, if the logic information and/or the panel information are invalid, outputting a separation invalid prompt message.
Furthermore, after the plug-in code information is separated into the logic information and the panel information, the effectiveness of the separated logic information and the separated panel information is verified through the original plug-in code information, whether the logic information in the code plug-in information is completely separated or not is verified, and whether the panel information in the code plug-in information is completely separated or not is verified. If the logic information in the plug-in code information is completely separated and the panel information is completely separated through inspection, judging that the logic information and the panel information are both effective; the logic information can be converted into the plug-in logic information through a preset tool, and meanwhile, the panel information is cached into the plug-in panel information of a preset data structure through a preset platform. On the contrary, if it is determined that any one of the logic information and the panel information is not completely separated and is influenced by the incompletely separated information, the other information may have an abnormality, so that the logic information and/or the panel information is determined to be invalid, and the separation invalidity prompt information is output at this time.
The implementation divides the plug-in code information into logic information and panel information, and respectively generates the logic information and the panel information into the plug-in logic information and the plug-in panel information after judging that the logic information and the panel information obtained by the division are effective. And the correctness of the generated plug-in logic information and plug-in panel information is ensured through the judgment of effectiveness, so that the logic function and the panel interaction function of the plug-in are accurately realized.
The invention also provides a display device of the plug-in interface. Referring to fig. 3, the display device of the plug-in interface includes:
the splitting module is used for receiving the plug-in code information and splitting the plug-in code information into plug-in logic information and plug-in panel information;
the generating module is used for acquiring display information of application software corresponding to the plug-in code information, operating the plug-in logic information based on the display information and generating a plug-in main interface matched with the display information for display;
and the rendering module is used for rendering the plug-in panel information based on the display information and generating a plug-in interaction panel matched with the display information for display.
Further, the display device of the plug-in interface further comprises:
the acquisition module is used for acquiring the interaction information carried by the interaction request when the interaction request is received based on the plug-in interaction panel;
and the updating module is used for updating and displaying the interface information corresponding to the interaction information in the plug-in main interface based on the interaction information.
Further, the update module further comprises:
the triggering unit is used for triggering target logic information corresponding to the interaction information in the plug-in logic information based on an interaction interface corresponding to the plug-in logic information;
the configuration unit is used for configuring interface information corresponding to the interaction information in the plug-in main interface according to the target logic information and the interaction information to generate a configuration result;
and the updating unit is used for updating and displaying the interface information in the plug-in main interface based on the configuration result.
Further, the display device of the plug-in interface further comprises:
the judging module is used for acquiring the information attribute of the interactive information and the attribute range of the interface information and judging whether the information attribute is located in the attribute range;
the execution module is used for executing the step of updating and displaying the interface information corresponding to the interaction information in the plug-in main interface based on the interaction information if the execution module is located in the attribute range;
and the output module is used for outputting the information exception prompt information if the attribute range is not located.
Further, the splitting module comprises:
the splitting unit is used for separating logic information and panel information from the plug-in code information;
the conversion unit is used for converting the logic information based on a preset tool to generate plug-in logic information;
and the cache unit is used for caching the panel information based on a preset platform and generating plug-in panel information of a preset data structure.
Further, the splitting module further comprises:
the judging unit is used for judging the validity of the logic information and the panel information according to the plug-in code information;
the execution unit is used for executing the step of converting the logic information based on a preset tool if the logic information and the panel information are both effective;
and the output unit is used for outputting separation invalid prompt information if the logic information and/or the panel information are invalid.
Further, the generating module further comprises:
the loading unit is used for loading the plug-in logic information and judging whether the plug-in logic information is loaded completely, and if the plug-in logic information is loaded completely, the plug-in logic information is operated;
and the rendering unit is used for rendering the interface generated by the plug-in logic information operation based on the display information, and obtaining a plug-in main interface matched with the display information for display.
Further, the rendering module further comprises:
the generating unit is used for acquiring an interaction area corresponding to the plug-in main interface, rendering the plug-in panel information based on the display information and generating a plug-in interaction panel matched with the display information;
and the display unit is used for displaying the plug-in interaction panel in the interaction area.
The specific implementation of the display device of the plug-in interface of the present invention is substantially the same as the embodiments of the display method of the plug-in interface, and is not described herein again.
In addition, the embodiment of the invention also provides a readable storage medium.
The readable storage medium stores a display program of the plug-in interface, and the display program of the plug-in interface realizes the steps of the display method of the plug-in interface when being executed by the processor.
The readable storage medium of the present invention may be a computer readable storage medium, and the specific implementation manner of the readable storage medium of the present invention is substantially the same as that of each embodiment of the display method of the plug-in interface, and will not be described herein again.
The present invention is described in connection with the accompanying drawings, but the present invention is not limited to the above embodiments, which are only illustrative and not restrictive, and those skilled in the art can make various changes without departing from the spirit and scope of the invention as defined by the appended claims, and all changes that come within the meaning and range of equivalency of the specification and drawings that are obvious from the description and the attached claims are intended to be embraced therein.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010932027.XA CN114153532A (en) | 2020-09-07 | 2020-09-07 | Plug-in interface display method and device, plug-in system and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010932027.XA CN114153532A (en) | 2020-09-07 | 2020-09-07 | Plug-in interface display method and device, plug-in system and readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114153532A true CN114153532A (en) | 2022-03-08 |
Family
ID=80461556
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010932027.XA Pending CN114153532A (en) | 2020-09-07 | 2020-09-07 | Plug-in interface display method and device, plug-in system and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114153532A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090144645A1 (en) * | 2007-11-30 | 2009-06-04 | Microsoft Corporation | Enable ribbon reloading via a proxy add-in |
CN102135909A (en) * | 2010-01-26 | 2011-07-27 | 株式会社理光 | Information processing apparatus and plug-in interaction method |
WO2013091556A1 (en) * | 2011-12-22 | 2013-06-27 | 腾讯科技(深圳)有限公司 | Browser based application program extension method and device |
US10331502B1 (en) * | 2016-11-14 | 2019-06-25 | Verified First LLC | Systems and methods for integrating with applications |
CN111625379A (en) * | 2020-06-02 | 2020-09-04 | 网易(杭州)网络有限公司 | Information processing method and device, electronic equipment and readable storage medium |
-
2020
- 2020-09-07 CN CN202010932027.XA patent/CN114153532A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090144645A1 (en) * | 2007-11-30 | 2009-06-04 | Microsoft Corporation | Enable ribbon reloading via a proxy add-in |
CN102135909A (en) * | 2010-01-26 | 2011-07-27 | 株式会社理光 | Information processing apparatus and plug-in interaction method |
WO2013091556A1 (en) * | 2011-12-22 | 2013-06-27 | 腾讯科技(深圳)有限公司 | Browser based application program extension method and device |
US10331502B1 (en) * | 2016-11-14 | 2019-06-25 | Verified First LLC | Systems and methods for integrating with applications |
CN111625379A (en) * | 2020-06-02 | 2020-09-04 | 网易(杭州)网络有限公司 | Information processing method and device, electronic equipment and readable storage medium |
Non-Patent Citations (1)
Title |
---|
戴仔强 等: "基于插件的表现集成技术", 指挥信息系统与技术, no. 01, 28 February 2013 (2013-02-28) * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20190243628A1 (en) | Container image building using shared resources | |
EP4246295B1 (en) | Composite graphical interface with shareable data-objects | |
CN112749095B (en) | A method, system and medium for switching operating systems to perform test tasks | |
CN105224456A (en) | A kind of test script generates methods, devices and systems | |
CN108279882B (en) | Framework generation method, device, equipment and computer readable medium | |
CN111026439B (en) | Application program compatibility method, device, equipment and computer storage medium | |
CN108351638B (en) | Programmable display, information processing device, storage medium, and screen display system | |
CN114661375A (en) | Application integration method and device | |
CN110764864A (en) | Terraform-based visual resource arrangement method | |
US12198175B2 (en) | Object comparison method, and device | |
JP6920501B1 (en) | Information processing systems, programs, and information processing methods | |
CN114153532A (en) | Plug-in interface display method and device, plug-in system and readable storage medium | |
WO2022180704A1 (en) | Display control device, display control method, and display control program | |
JP2011053729A (en) | Program development support device and system | |
CN109977169B (en) | Data synchronization method, device, computer readable storage medium and system | |
CN112214712A (en) | Automatic browser switching method and device, storage medium and electronic equipment | |
CN113760707A (en) | Interface testing method, apparatus, device, and computer-readable storage medium | |
CN111008062A (en) | Interface setting method, device, equipment and medium for application program APP | |
EP4428675A1 (en) | Cloud technology-based graphic program online development method and system, and related device | |
CN114090093B (en) | Tuner adaptive method, apparatus, device and storage medium | |
US20240403037A1 (en) | Software development platform and operating method thereof | |
JP7506339B2 (en) | Information processing system, control method thereof, and program | |
JP7106778B1 (en) | BLOCKCHAIN SYSTEM EXECUTION METHOD, APPARATUS, DEVICE, AND STORAGE MEDIUM | |
JP2019197308A (en) | Source code conversion program and source code conversion method | |
JP6928022B2 (en) | Development support equipment, development support system, development support method, and computer program |
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 | ||
CB02 | Change of applicant information |
Country or region after: China Address after: 100020 1765, 15th floor, 17th floor, building 3, No.10, Jiuxianqiao Road, Chaoyang District, Beijing Applicant after: Beijing 360 Zhiling Technology Co.,Ltd. Address before: 100020 1765, 15th floor, 17th floor, building 3, No.10, Jiuxianqiao Road, Chaoyang District, Beijing Applicant before: Beijing Hongxiang Technical Service Co.,Ltd. Country or region before: China |
|
CB02 | Change of applicant information |