CN111142735B - Software page creating method and device, terminal equipment and storage medium - Google Patents

Software page creating method and device, terminal equipment and storage medium Download PDF

Info

Publication number
CN111142735B
CN111142735B CN201911257340.1A CN201911257340A CN111142735B CN 111142735 B CN111142735 B CN 111142735B CN 201911257340 A CN201911257340 A CN 201911257340A CN 111142735 B CN111142735 B CN 111142735B
Authority
CN
China
Prior art keywords
page
software
target
file
function item
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911257340.1A
Other languages
Chinese (zh)
Other versions
CN111142735A (en
Inventor
张硕
苏宪伟
刘益彰
谢铮
熊友军
庞建新
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Youbixuan Intelligent Robot Co ltd
Original Assignee
Ubtech Robotics Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ubtech Robotics Corp filed Critical Ubtech Robotics Corp
Priority to CN201911257340.1A priority Critical patent/CN111142735B/en
Publication of CN111142735A publication Critical patent/CN111142735A/en
Application granted granted Critical
Publication of CN111142735B publication Critical patent/CN111142735B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The application relates to the technical field of computers, and provides a software page creating method, a software page creating device, terminal equipment and a storage medium. The software page creating method comprises the following steps: determining a selected target function item in a software interface; extracting the file name of a target file associated with the target function item, wherein the file associated with each function item in the software interface is preset; determining the media type of the target file according to the file name; searching a target page creator corresponding to the media type from all page creators registered in advance; and adopting the target page creator to create a software page corresponding to the target function item. In the whole creating process of the page, the logic of the page is not involved at all, so that the redundant logic judgment in the bottom layer code can be removed, and the expansibility and the maintainability of the bottom layer code are effectively improved.

Description

Software page creating method and device, terminal equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for creating a software page, a terminal device, and a storage medium.
Background
During the development of application software, the following interaction requirements are often encountered: and selecting a certain function item in the software function menu by the user, and displaying the software page corresponding to the function item. Currently, when the above-mentioned interaction requirement is implemented, the type of the function item selected by the user is mainly obtained, then a page corresponding to the type is created, and data required for page initialization is provided to the corresponding instance. However, when the tree structure of the selected function item is very complex or the types of the software pages are many, the underlying code often has the following problems when creating and managing a new page: the redundant logic judgment, expansibility and maintainability are poor.
Disclosure of Invention
In view of this, embodiments of the present application provide a method and an apparatus for creating a software page, a terminal device, and a storage medium, which are used to solve the problems that when a software page is created, a corresponding underlying code has a lengthy logical judgment, and expansibility and maintainability are poor.
A first aspect of an embodiment of the present application provides a method for creating a software page, including:
determining a selected target function item in a software interface;
extracting the file name of a target file associated with the target function item, wherein the file associated with each function item in the software interface is preset;
determining the media type of the target file according to the file name;
searching a target page creator corresponding to the media type from all page creators registered in advance;
and adopting the target page creator to create a software page corresponding to the target function item.
When a user selects a certain function item in the software function menu, the system acquires the file name of a file associated with the function item, determines the media type of the file, then finds a page creator corresponding to the media type to complete page creation, provides corresponding resources for page initialization, and automatically indexes and utilizes the resources during page initialization. In the whole creating process of the page, the logic of the page is not involved at all, so that the redundant logic judgment in the bottom layer code can be removed, and the expansibility and the maintainability of the bottom layer code are effectively improved.
Further, the creating a software page corresponding to the target function item by using the target page creator may include:
instantiating a corresponding software page with the target page creator based on the target file;
and adding the instantiated software page to a main window area of the software interface.
After the target page creator is opened, a corresponding software page is built and instantiated based on the target file, finally, the software page obtained through instantiation is added to the main window area of the software interface, and a user can view the software page obtained through creation in the main window area of the software interface.
Specifically, the instantiating the corresponding software page may include:
if the target file is a file stored in a disk, searching and opening the target file from the disk, and instantiating a software page according to the opened target file;
and if the target file is a file stored in the memory, reading data to be displayed from the specified communication interface, and instantiating a software page according to the read data.
When instantiating a software page, if the target file is a file stored in a disk, the target file may be searched and opened from a specified disk, and the software page may be instantiated according to the opened target file, for example, a word file is searched and opened from the disk, and then an edit page similar to a word is instantiated. If the target file is a file stored in the memory, the data to be displayed can be read from a certain specified communication interface, and a software page can be instantiated according to the read data. For example, the state data of the robot are read from an external interface communicating with the robot, and a state list of the robot and a page of the corresponding control button are instantiated based on the state data.
Specifically, the determining the selected target function item in the software interface may include:
detecting nodes selected by a user in a function tree of the software interface;
and determining the function item pointed by the node as the target function item.
Each function item is added to a function tree of the software interface in a node form, a user can select a certain node in the function tree, and the function item pointed by the node is the selected target function item.
Further, after searching for a target page creator corresponding to the media type from the pre-registered page creators, the method may further include:
and if the target page creator corresponding to the media type cannot be found, outputting preset error reporting information.
If the target page creator corresponding to the media type cannot be found, the corresponding software page cannot be created successfully, and at this time, preset error information, such as "no available page creator found", may be output.
A second aspect of the embodiments of the present application provides an apparatus for creating a software page, including:
the function item determining module is used for determining the selected target function item in the software interface;
the file name extraction module is used for extracting the file name of a target file associated with the target function item, and the file associated with each function item in the software interface is preset;
the media type determining module is used for determining the media type of the target file according to the file name;
the page creator searching module is used for searching a target page creator corresponding to the media type from all page creators registered in advance;
and the page creating module is used for creating a software page corresponding to the target function item by adopting the target page creator.
A third aspect of an embodiment of the present application provides a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method for creating a software page provided in the first aspect of the embodiment of the present application when executing the computer program.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program, when executed by a processor, implements the steps of the method for creating a software page provided by the first aspect of embodiments of the present application.
A fifth aspect of the embodiments of the present application provides a computer program product, which, when running on a terminal device, causes the terminal device to execute the steps of the method for creating a software page according to the first aspect of the embodiments of the present application.
It is understood that the beneficial effects of the second aspect to the fifth aspect can be referred to the related description of the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a flowchart of a first embodiment of a method for creating a software page according to an embodiment of the present application;
fig. 2 is a flowchart of a second embodiment of a method for creating a software page according to an embodiment of the present application;
fig. 3 is a flowchart of a third embodiment of a method for creating a software page according to an embodiment of the present application;
fig. 4 is a block diagram of an embodiment of a device for creating a software page according to an embodiment of the present application;
fig. 5 is a schematic diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail. Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
The embodiment of the application provides a method and a device for creating a software page, terminal equipment and a storage medium, and aims to solve the problems that when the software page is created, redundant logic judgment exists in corresponding bottom layer codes, and expansibility and maintainability are poor. It should be understood that the execution subjects of the various method embodiments of the present application are various types of terminal devices or servers.
Referring to fig. 1, a method for creating a software page in an embodiment of the present application is shown, including:
101. determining a selected target function item in a software interface;
firstly, the selected target function item in the software interface is determined. The interface of the application software can be divided into a function item selection area and a main window area, and when a user selects a certain function item in the function item selection area, a corresponding software interaction page is displayed in the main window area. Specifically, the user may select a certain function item from the function menu or the function tree as the target function item through operations such as clicking, double-clicking, or dragging.
102. Extracting the file name of a target file associated with the target function item, wherein the file associated with each function item in the software interface is preset;
after the selected target function item is determined, the file name of a target file associated with the target function item is extracted, and files associated with the function items in the software interface are preset. For example, the software interface has function item 1, function item 2, and function item 3, and then file 1 associated with function item 1, file 2 associated with function item 2, and file 3 associated with function item 3 are all preset. The associated file may be a file actually stored in a disk, or may be a file generated by a kernel but not present on a hard disk (present in a memory).
103. Determining the media type of the target file according to the file name;
after the file name of the target file is extracted, the media type, namely mimetype, of the target file is determined according to the file name. For example, the system detects that the function item selected by the user corresponds to a disk file named test. This file name is first given to the Mimetype extraction module, which extracts the suffix of the file name and confirms that its first Mimetype is text/cpp, which is also a text file itself, so that the text/cpp is considered as a subtype of the text file type when the Mimetype is initialized by the module, and the other Mimetype of the text.
104. Searching a target page creator corresponding to the media type from all page creators registered in advance;
after the media type of the target file is determined, searching target page creators corresponding to the media type from various page creators registered in advance. Specifically, an object dedicated to managing page creators may be set, and during the system startup process, different components may register different page creators with the object, and each page creator knows which type of mimetype the page can be created for. The system will search for the creator that best matches the mimetype of the target file among the registered page creators, such as in the example shown in step 103, the text/cpp page creator will be searched first, and then the text/play page creator will be searched.
105. And adopting the target page creator to create a software page corresponding to the target function item.
And finally, adopting the searched target page creator to create the software page corresponding to the target function item, thereby completing the creation process of the software page once.
In this embodiment, when a user selects a function item in the software function menu, the system obtains a file name of a file associated with the function item, determines a media type of the file, finds a page creator corresponding to the media type to complete creation of a page, provides corresponding resources for page initialization, and automatically indexes and utilizes the resources during page initialization. In the whole creating process of the page, the logic of the page is not involved at all, so that the redundant logic judgment in the bottom layer code can be removed, and the expansibility and the maintainability of the bottom layer code are effectively improved.
Referring to fig. 2, another software page creation method in the embodiment of the present application is shown, including:
201. detecting nodes selected by a user in a function tree of a software interface;
202. determining the function item pointed by the node as a target function item;
in this embodiment, each function item is added to the function tree of the software interface in the form of a node, and a user can select a certain node in the function tree, where the function item pointed by the node is the selected target function item.
203. Extracting the file name of a target file associated with the target function item, wherein the file associated with each function item in the software interface is preset;
204. determining the media type of the target file according to the file name;
205. searching a target page creator corresponding to the media type from all page creators registered in advance;
the steps 203-.
206. Instantiating a corresponding software page with the target page creator based on the target file;
207. and adding the instantiated software page to a main window area of the software interface.
For step 206-.
Specifically, the instantiating the corresponding software page may include:
(1) if the target file is a file stored in a disk, searching and opening the target file from the disk, and instantiating a software page according to the opened target file;
(2) and if the target file is a file stored in the memory, reading data to be displayed from the specified communication interface, and instantiating a software page according to the read data.
When instantiating a software page, if the target file is a file stored in a disk, the target file may be searched and opened from a specified disk, and the software page may be instantiated according to the opened target file, for example, a word file is searched and opened from the disk, and then an edit page similar to a word is instantiated. If the target file is a file stored in the memory, the data to be displayed can be read from a certain specified communication interface, and a software page can be instantiated according to the read data. For example, the state data of the robot are read from an external interface communicating with the robot, and a state list of the robot and a page of the corresponding control button are instantiated based on the state data.
In actual operation, all nodes of the function tree in the software interface can be regarded as files, that is, the following uniform attributes are provided for pages corresponding to all the nodes: file name, pathname, read-only attribute; simultaneously, the following unified operation interfaces are provided: opening, closing, storing and storing as; and providing a unified status as follows: i.e., modified, is modified.
The node file name and path name corresponding to the ordinary disk file are the conventional file name and path of the file in the disk. For the memory file, the file name may be a node name, and the path may be a position path of the corresponding node in the tree structure, for example, in the following tree structure, the path name of the Func2 function node is: group1/child Group2/Func2, i.e. beginning with ": it is composed of subgroup names of each stage and"/".
Group1
ChildGroup1
Func1
ChildGroup2
Func2
Func3
Group2
ChildGroup3
Func4
In this embodiment, each function item provided by the software can be managed by using the mimetype, and unified creation of the corresponding function page is realized, and the function item can be managed by using the mimetype regardless of whether the function item corresponds to a disk file or a "memory file". For a disk file, it is given a regular file name, and for a "memory file" where no entity exists, it is given a unique name similar to the file name, e.g., "/192.168.11.2/Status/Machine Status. When a user selects a certain function item in the software function menu, the system acquires the file name of a file associated with the function item, determines the media type of the file, then finds a page creator corresponding to the media type to complete page creation, provides corresponding resources for page initialization, and automatically indexes and utilizes the resources during page initialization.
Referring to fig. 3, another software page creating method in the embodiment of the present application is shown, including:
301. determining a selected target function item in a software interface;
302. extracting the file name of a target file associated with the target function item, wherein the file associated with each function item in the software interface is preset;
303. determining the media type of the target file according to the file name;
304. searching a target page creator corresponding to the media type from all page creators registered in advance;
the steps 301-304 are the same as the steps 101-104, and the related description of the steps 101-104 can be referred to.
305. Judging whether a target page creator corresponding to the media type is found;
for page creators of certain media types, registration may not have been made, at which point the corresponding page creator cannot be found. Therefore, it is necessary to determine whether the target page creator corresponding to the media type can be found, if so, step 306 is executed, otherwise, step 307 is executed.
306. Adopting the target page creator to create a software page corresponding to the target function item;
step 306 is the same as step 105, and reference may be made to the related description of step 105.
307. And outputting preset error reporting information.
If the target page creator corresponding to the media type cannot be found, the corresponding software page cannot be created successfully, and at this time, preset error reporting information can be output. For example, an error message such as "no available page creator found" may be output to alert the user. The problem can then be solved by registering the page creator of the corresponding type.
In this embodiment, when a user selects a certain function item in the software function menu, the system may obtain a file name of a file associated with the function item, determine a media type of the file, and then search for a page creator corresponding to the media type to complete creation of a page. And if the page creator corresponding to the media type cannot be found, the system outputs preset error reporting information to remind the user of paying attention, and the page creator of the corresponding type can be registered subsequently to solve the problem, so that the applicability of the page creation method is further improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
The above mainly describes a method for creating a software page, and a device for creating a software page will be described below.
Referring to fig. 4, an embodiment of a device for creating a software page in an embodiment of the present application includes:
a function item determining module 401, configured to determine a selected target function item in the software interface;
a file name extraction module 402, configured to extract a file name of a target file associated with the target function item, where a file associated with each function item in the software interface is preset;
a media type determining module 403, configured to determine a media type of the target file according to the file name;
a page creator searching module 404, configured to search a target page creator corresponding to the media type from pre-registered page creators;
a page creating module 405, configured to create a software page corresponding to the target function item by using the target page creator.
Further, the page creation module may include:
the page instantiation unit is used for instantiating a corresponding software page by adopting the target page creator based on the target file;
and the page adding unit is used for adding the instantiated software page to the main window area of the software interface.
Further, the page instantiation unit may include:
the first instantiation subunit is used for searching and opening the target file from the magnetic disk and instantiating a software page according to the opened target file if the target file is a file stored in the magnetic disk;
and the second instantiation subunit is used for reading the data to be displayed from the specified communication interface and instantiating a software page according to the read data if the target file is a file stored in the memory.
Further, the function item determination module may include:
the node selection unit is used for detecting the node selected by the user in the function tree of the software interface;
a function item determining unit, configured to determine the function item pointed to by the node as the target function item.
Further, the creating device of the software page may further include:
and the error information output module is used for outputting preset error information if the target page creator corresponding to the media type cannot be found.
The embodiment of the present application further provides a terminal device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of any one of the methods for creating a software page shown in fig. 1 to 3 when executing the computer program.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the method for creating any one of the software pages shown in fig. 1 to 3 are implemented.
The embodiment of the present application further provides a computer program product, which, when running on a terminal device, causes the terminal device to execute the steps of implementing the method for creating any one of the software pages shown in fig. 1 to 3.
Fig. 5 is a schematic diagram of a terminal device according to an embodiment of the present application. As shown in fig. 5, the terminal device 5 of this embodiment includes: a processor 50, a memory 51 and a computer program 52 stored in said memory 51 and executable on said processor 50. The processor 50, when executing the computer program 52, implements the steps in the embodiments of the method for creating the respective software page described above, such as the steps 101 to 105 shown in fig. 1. Alternatively, the processor 50, when executing the computer program 52, implements the functions of each module/unit in the above-mentioned device embodiments, for example, the functions of the modules 401 to 405 shown in fig. 4.
The computer program 52 may be divided into one or more modules/units, which are stored in the memory 51 and executed by the processor 50 to accomplish the present application. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program 52 in the terminal device 5.
The Processor 50 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 51 may be an internal storage unit of the terminal device 5, such as a hard disk or a memory of the terminal device 5. The memory 51 may also be an external storage device of the terminal device 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the terminal device 5. Further, the memory 51 may also include both an internal storage unit and an external storage device of the terminal device 5. The memory 51 is used for storing the computer program and other programs and data required by the terminal device. The memory 51 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method of the embodiments described above can be realized by a computer program, which can be stored in a computer-readable storage medium and can realize the steps of the embodiments of the methods described above when the computer program is executed by a processor. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A method for creating a software page, comprising:
determining a selected target function item in a software interface;
extracting the file name of a target file associated with the target function item, wherein the file associated with each function item in the software interface is preset;
determining the media type mimetype of the target file according to the file name;
searching a target page creator matched with the mimetype from all page creators registered in advance;
and adopting the target page creator to create a software page corresponding to the target function item.
2. The method for creating a software page according to claim 1, wherein said creating a software page corresponding to said target function item using said target page creator comprises:
instantiating a corresponding software page with the target page creator based on the target file;
and adding the instantiated software page to a main window area of the software interface.
3. The method of creating a software page according to claim 2, wherein said instantiating a corresponding software page comprises:
if the target file is a file stored in a disk, searching and opening the target file from the disk, and instantiating a software page according to the opened target file;
and if the target file is a file stored in the memory, reading data to be displayed from the specified communication interface, and instantiating a software page according to the read data.
4. The method for creating a software page according to claim 1, wherein said determining the selected target function item in the software interface comprises:
detecting nodes selected by a user in a function tree of the software interface;
and determining the function item pointed by the node as the target function item.
5. The method for creating a software page according to any one of claims 1 to 4, wherein after searching for a target page creator corresponding to the media type from among page creators registered in advance, the method further comprises:
and if the target page creator corresponding to the media type cannot be found, outputting preset error reporting information.
6. An apparatus for creating a software page, comprising:
the function item determining module is used for determining the selected target function item in the software interface;
the file name extraction module is used for extracting the file name of a target file associated with the target function item, and the file associated with each function item in the software interface is preset;
the media type determining module is used for determining the media type mimetype of the target file according to the file name;
the page creator searching module is used for searching a target page creator matched with the mimetype from all pre-registered page creators;
and the page creating module is used for creating a software page corresponding to the target function item by adopting the target page creator.
7. The apparatus for creating a software page according to claim 6, wherein said page creation module comprises:
the page instantiation unit is used for instantiating a corresponding software page by adopting the target page creator based on the target file;
and the page adding unit is used for adding the instantiated software page to the main window area of the software interface.
8. The apparatus for creating a software page according to claim 7, wherein said page instantiation unit comprises:
the first instantiation subunit is used for searching and opening the target file from the magnetic disk and instantiating a software page according to the opened target file if the target file is a file stored in the magnetic disk;
and the second instantiation subunit is used for reading the data to be displayed from the specified communication interface and instantiating a software page according to the read data if the target file is a file stored in the memory.
9. A terminal device comprising a memory, a processor and a computer program stored in said memory and executable on said processor, characterized in that said processor, when executing said computer program, carries out the steps of the method of creating a software page according to any one of claims 1 to 5.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method for creating a software page according to any one of claims 1 to 5.
CN201911257340.1A 2019-12-10 2019-12-10 Software page creating method and device, terminal equipment and storage medium Active CN111142735B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911257340.1A CN111142735B (en) 2019-12-10 2019-12-10 Software page creating method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911257340.1A CN111142735B (en) 2019-12-10 2019-12-10 Software page creating method and device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111142735A CN111142735A (en) 2020-05-12
CN111142735B true CN111142735B (en) 2021-06-29

Family

ID=70517838

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911257340.1A Active CN111142735B (en) 2019-12-10 2019-12-10 Software page creating method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111142735B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112365243B (en) * 2020-11-26 2024-03-19 金蝶软件(中国)有限公司 Subject creation method and device and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101589357A (en) * 2006-10-16 2009-11-25 因文西斯***公司 Data quality and status behavior for human machine interface graphics in industrial control and automation systems
CN101861566A (en) * 2007-10-01 2010-10-13 奥多比公司 System and method for generating an application fragment
CN104142826A (en) * 2014-07-28 2014-11-12 百度在线网络技术(北京)有限公司 Method, device and system for constructing page
CN107291438A (en) * 2016-04-13 2017-10-24 阿里巴巴集团控股有限公司 Generation method, device and the electronic equipment of automatized script

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110321010A1 (en) * 2010-06-24 2011-12-29 Yifei Wang Web application framework based on object oriented class mapping
US10216494B2 (en) * 2016-12-03 2019-02-26 Thomas STACHURA Spreadsheet-based software application development
CN107888483A (en) * 2017-11-23 2018-04-06 上海勋立信息科技有限公司 A kind of Email content batch joining method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101589357A (en) * 2006-10-16 2009-11-25 因文西斯***公司 Data quality and status behavior for human machine interface graphics in industrial control and automation systems
CN101861566A (en) * 2007-10-01 2010-10-13 奥多比公司 System and method for generating an application fragment
CN104142826A (en) * 2014-07-28 2014-11-12 百度在线网络技术(北京)有限公司 Method, device and system for constructing page
CN107291438A (en) * 2016-04-13 2017-10-24 阿里巴巴集团控股有限公司 Generation method, device and the electronic equipment of automatized script

Also Published As

Publication number Publication date
CN111142735A (en) 2020-05-12

Similar Documents

Publication Publication Date Title
US10579344B2 (en) Converting visual diagrams into code
CN110337641B (en) Determining application test results using screen shot primitive data
CN108427731B (en) Page code processing method and device, terminal equipment and medium
CN103890723A (en) Distribution of multiple application versions
US20190147104A1 (en) Method and apparatus for constructing artificial intelligence application
CN113778391A (en) Page processing method, device and equipment for native application program
CN111142863B (en) Page generation method and device
CN115328759A (en) Form verification method and device
CN111142735B (en) Software page creating method and device, terminal equipment and storage medium
US20190196794A1 (en) Visual programming method, system and terminal device
CN113434063A (en) Information display method, device and equipment
CN109345063B (en) Data processing method and device for wind control system and storage medium
CN109582347B (en) Method and device for acquiring front-end codes
CN107562423B (en) UI page development method and device
CN113434582B (en) Service data processing method and device, computer equipment and storage medium
CN112068895B (en) Code configuration method, device, video playing equipment and storage medium
CN113935847A (en) Online process risk processing method, device, server and medium
CN107357926B (en) Webpage processing method and device and electronic equipment
CN111198830B (en) Identification method and device of mobile storage equipment, electronic equipment and storage medium
KR102651294B1 (en) Method for assisting collect information about screen component
CN117008890B (en) Extended application development system and method
CN113779438B (en) Webpage text information processing method and device and terminal equipment
CN111784390B (en) Information delivery processing method and device and processing equipment
CN110750742B (en) Page optimization method, system, medium and electronic equipment
CN107145364B (en) Method and device for Flash cross-domain access data

Legal Events

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

Effective date of registration: 20231206

Address after: Room 601, 6th Floor, Building 13, No. 3 Jinghai Fifth Road, Beijing Economic and Technological Development Zone (Tongzhou), Tongzhou District, Beijing, 100176

Patentee after: Beijing Youbixuan Intelligent Robot Co.,Ltd.

Address before: 518000 16th and 22nd Floors, C1 Building, Nanshan Zhiyuan, 1001 Xueyuan Avenue, Nanshan District, Shenzhen City, Guangdong Province

Patentee before: Shenzhen Youbixuan Technology Co.,Ltd.