CN110442410A - Embedded type interface design method, device, electronic equipment and storage medium - Google Patents

Embedded type interface design method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110442410A
CN110442410A CN201910638140.4A CN201910638140A CN110442410A CN 110442410 A CN110442410 A CN 110442410A CN 201910638140 A CN201910638140 A CN 201910638140A CN 110442410 A CN110442410 A CN 110442410A
Authority
CN
China
Prior art keywords
interface
designed
attribute
development equipment
identification information
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
Application number
CN201910638140.4A
Other languages
Chinese (zh)
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.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN201910638140.4A priority Critical patent/CN110442410A/en
Publication of CN110442410A publication Critical patent/CN110442410A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

This application provides a kind of embedded type interface design method, device, electronic equipment and storage mediums, this method comprises: interface development equipment realizes the shared attribute at each interface to be designed, and the shared attribute are placed in base class template;The interface development equipment extracts the base class template at newly-increased first interface to be designed, to generate the shared attribute for the described first interface to be designed;Each interface to be designed includes the described first interface to be designed;The interface development equipment is that exclusive attribute is arranged in the described first interface to be designed.Embedded type interface design method provided by the embodiments of the present application advantageously reduces resources occupation rate, to improve equipment applicability.

Description

Embedded type interface design method, device, electronic equipment and storage medium
Technical field
This application involves Embedded Software Design technical field more particularly to a kind of embedded type interface design method, device, Electronic equipment and storage medium.
Background technique
With the popularization of intelligent terminals, the demand of user interface that presents is more and more diversified when user is to using terminal, This also results in attention of many internet scientific & technical corporation to user interface development.In the related technology, it mostly uses existing Designer tool design user interface, when exploitation be a whole set of user interface when, generally require to use multiple painting canvas to hold The design of this whole set of user interface is connect, is exactly that each user interface in this whole set of user interface will occupy in other words One painting canvas, and in design, corresponding movement is executed for the button addition of each user interface.This allows for user interface and opens It sends out work to stack at a kind of simple task amount, the user interface file generated in design process is excessively huge, resource occupation Rate is higher, and equipment applicability is limited.
Summary of the invention
To solve the above problems, this application provides one kind to advantageously reduce resources occupation rate, it is applicable in improve equipment Embedded type interface design method, device, electronic equipment and the storage medium of property.
The embodiment of the present application first aspect provides a kind of embedded type interface design method, this method comprises:
Interface development equipment realizes the shared attribute at each interface to be designed, and the shared attribute is placed on base class template In;
The interface development equipment extracts the base class template, at newly-increased first interface to be designed for described first Interface to be designed generates the shared attribute;Each interface to be designed includes the described first interface to be designed;
The interface development equipment is that exclusive attribute is arranged in the described first interface to be designed.
In a kind of possible embodiment, the interface development equipment is also generated when increasing first interface to be designed newly There is the identification information at the described first interface to be designed, the method also includes:
Described first interface to be designed is registered to interface management class by the interface development equipment, so that the interface management Class initializes first interface to be designed, and records the mark at the described first interface to be designed Yu the described first interface to be designed Incidence relation between information.
In a kind of possible embodiment, timed task, the interface development equipment are provided in the interface management class After for the described first interface to be designed, exclusive attribute is set, the method also includes:
Whether the interface development equipment monitoring has the generation of interface handover event;
The interface development equipment carries out cleaning operation to the described first interface to be designed if having, and to will enter The second interface to be designed entered before initialization operation;Each interface to be designed includes the described second boundary to be designed Face;
The described first interface to be designed is timed according to the timed task if the interface development equipment described without if Refresh operation.
It is described that cleaning operation is carried out to the described first interface to be designed in a kind of possible embodiment, comprising:
The interface switching method at the first interface to be designed described in the interface development equipment calls, by described first wait set The switching method at meter interface calls cleaning function to clear up the exclusive attribute at the described first interface to be designed;Described first to The interface switching method of design interface is provided by the base class template.
In a kind of possible embodiment, the interface management class is sequentially recorded each interface to be designed and described each Incidence relation between the identification information at interface to be designed, it is described the second interface to be designed that will enter is entered before Initialization operation, comprising:
The interface development equipment is according to the record sequence of the interface management class from described in interface management class acquisition Next target identification information of the identification information at the first interface to be designed;
Interface to be designed associated with the target identification information is determined as described second by the interface development equipment Interface to be designed;
Before the interface development equipment enters the described second interface to be designed based on the target identification information Initialization operation.
The application second aspect provides a kind of embedded type interface design device, which includes:
Shared attribute realizes module, for realizing the shared attribute at each interface to be designed, and the shared attribute is placed on In base class template;
Shared inheritance of attribute module, for extracting the base class template at newly-increased first interface to be designed, to be described First interface to be designed generates the shared attribute;Each interface to be designed includes the described first interface to be designed;
Exclusive attribute setup module, for exclusive attribute to be arranged for the described first interface to be designed.
Optionally, described device further include:
Interface management registration module, for the described first interface to be designed to be registered to interface management class, so that the boundary Facial canal manages class and initializes first interface to be designed, and records the described first interface to be designed and the described first interface to be designed Identification information between incidence relation.
Optionally, described device further include:
Changing interface monitoring modular, for monitoring whether the generation of interface handover event;
Changing interface realizes module, for carrying out cleaning operation to the described first interface to be designed if having, and to i.e. Initialization operation before the second of entrance interface to be designed is entered;Each interface to be designed includes described second wait set Count interface;
Interface periodic refreshing module, for being carried out according to the timed task to the described first interface to be designed if not Periodic refreshing operation.
Optionally, the changing interface realizes module, comprising:
Unit is cleared up, it is to be designed by described first for calling the interface switching method at the described first interface to be designed The switching method at interface calls cleaning function to clear up the exclusive attribute at the described first interface to be designed;Described first wait set The interface switching method at meter interface is provided by the base class template.
Optionally, the changing interface realizes module, further includes:
Sequential search unit, for the record sequence according to the interface management class from described in interface management class acquisition Next target identification information of the identification information at the first interface to be designed;
Into interface determination unit, the interface development equipment will boundary to be designed associated with the target identification information Face is determined as the described second interface to be designed;
Initialization unit, for first before being entered by the target identification information to the described second interface to be designed Beginningization operation.
The embodiment of the present application third aspect provides a kind of electronic equipment, including memory, processor and is stored in described On memory and the computer program that can run on the processor, the processor are realized when executing the computer program Step in above-mentioned embedded type interface design method.
The embodiment of the present application fourth aspect provides a kind of computer readable storage medium, the computer readable storage medium On be stored with computer program, the computer program is realized when being executed by processor in above-mentioned embedded type interface design method The step of.
The above scheme of the application is include at least the following beneficial effects:
Embedded type interface design method provided by the embodiments of the present application realizes each interface to be designed by interface development equipment Shared attribute, and the shared attribute is placed in base class template;Then at newly-increased first interface to be designed, described in extraction Base class template, to generate the shared attribute for the described first interface to be designed;It is finally the described first interface setting to be designed Exclusive attribute.Each interface is shared attribute extraction in this way to come out, is realized by base class, it, can be quick when needing to increase new interface Base class is inherited, exclusive attribute exploitation is absorbed in, realizes and effectively reuse shared attribute, advantageously reduce resources occupation rate, To improve equipment applicability.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described.
Fig. 1 is a kind of flow diagram of embedded type interface design method provided by the embodiments of the present application;
Fig. 2-a is a kind of schematic diagram of the shared attribute at interface to be designed provided by the embodiments of the present application;
Fig. 2-b is a kind of schematic diagram for encapsulating shared attribute provided by the embodiments of the present application;
Fig. 3 is a kind of schematic diagram of the exclusive attribute at interface to be designed provided by the embodiments of the present application;
Fig. 4 is the schematic diagram of the exclusive attribute at another kind interface to be designed provided by the embodiments of the present application;
Fig. 5 is the flow diagram of another embedded type interface design method provided by the embodiments of the present application;
Fig. 6 is a kind of structural schematic diagram of embedded type interface design device provided by the embodiments of the present application;
Fig. 7 is the structural schematic diagram of another embedded type interface design device provided by the embodiments of the present application;
Fig. 8 is the structural schematic diagram of another embedded type interface design device provided by the embodiments of the present application;
Fig. 9 is the structural schematic diagram of another embedded type interface design device provided by the embodiments of the present application;
Figure 10 is the structural schematic diagram of another embedded type interface design device provided by the embodiments of the present application;
Figure 11 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described.Based on the embodiment in the application, ability Domain those of ordinary skill every other embodiment obtained without making creative work, all should belong to this Shen The range that please be protect.
The term " includes " and " having " and their any changes occurred in present specification, claims and attached drawing Shape, it is intended that cover and non-exclusive include.Such as contain the process, method of a series of steps or units, system, product or Equipment is not limited to listed step or unit, but optionally further comprising the step of not listing or unit or optional Ground further includes the other step or units intrinsic for these process, methods, product or equipment.In addition, term " first ", " the Two " and " third " etc. are and to be not intended to describe specific sequence for distinguishing different objects.
The embodiment of the present application is described in detail below with reference to specific attached drawing.
Referring to Figure 1, Fig. 1 is a kind of flow diagram of embedded type interface design method provided by the embodiments of the present application, As shown in Figure 1, comprising steps of
S11, interface development equipment realizes the shared attribute at each interface to be designed, and the shared attribute is placed on base class mould In plate.
Wherein, in the application specific embodiment, interface development equipment refers to Interface Development Tools, is also possible to open equipped with interface Terminal device of hair tool, such as computer, tablet computer, notebook etc..Each interface to be designed, which refers to, will be designed Interface, since they belong to same type of service, such as: a series of interfaces of a software, website a series of boundaries Face, a series of interfaces of terminal etc., so can have numerous public controls (such as time control) in realization, it is referred to as total There is attribute, such as: the displaying of head navigation bar, some small elements displayings in bottom and background style etc..Specifically, above-mentioned realization is each The shared attribute at interface to be designed may include: that PaintEvent function is called to draw the unified Background wind in each interface to be designed Lattice, call Header function realize each interface head to be designed public control attribute, call Footer function realize respectively to The attribute of the public control of design interface bottom.For example, a series of head at interfaces of terminal can have letter as shown in Fig. 2-a Number, the common elements such as return, determination can be arranged at time, common elements, the bottom such as weather, and be all using system in background style One Celestial Background.After the shared attribute stated in realization, as shown in Fig. 2-b, it is encapsulated in base class template Parent, So as to subsequent recycling.In addition, in the base class template, it may include public function as shown in Table 1.
Table 1
Base class template library can also be provided in the application specific embodiment, and the base class template library is for storing different types of base class Template, such as: dialog box, music player, management system etc..
S12, the interface development equipment extract the base class template at newly-increased first interface to be designed, to be described First interface to be designed generates the shared attribute;Each interface to be designed includes the described first interface to be designed.
Wherein, in the application specific embodiment, the first interface to be designed refer to the interface in above-mentioned each interface to be designed it One, for example, being directed to a software, need to design ten interfaces, this newly-increased interface to be designed is exactly in this ten interfaces It one, as which is specifically, is not construed as limiting herein.For interface development equipment in the newly-increased instruction for receiving user, creation should The entity object at the first interface to be designed, and automatically extract the base class template for being packaged with shared attribute, so that this is first to be designed The base class template is inherited at interface, and the first interface to be designed just has the shared attribute such as head, bottom and background.Subsequent newly-increased the Two interfaces to be designed, third interface to be designed are also effectively to avoid repeating to make wheel, favorably in this way, reuse shared attribute In mitigation workload.
S13, the interface development equipment are that exclusive attribute is arranged in the described first interface to be designed.
Wherein, in the application specific embodiment, exclusive attribute refers to the attribute of the exclusive control in each interface to be designed, example Such as, as shown in figure 3, register interface may have registration, account, password, certificate information, submission etc. exclusive control, progress bar control Part or label, certainly, can also be arranged for certain exclusive labels drop-down menus (such as: information drop-down may include identification card number, drive Card number, Hongkong and Macro's pass number etc.);For another example as shown in figure 4, when designing home interface, it may include setting, map, radio reception The exclusive button options such as machine, music, driving recording.The exclusive attribute also may be embodied in some parameters for needing to be separately provided, Such as: the refresh time at the first interface to be designed may be 50 milliseconds, but the refresh time at the second interface to be designed may be 1 Second;The width of the form fields label at the first interface to be designed may be 100 pixel of default value, but the table at the second interface to be designed The width of single field label may be 110 pixels.
In addition, above-mentioned be arranged exclusive attribute for the described first interface to be designed, comprising: the interface development equipment, which receives, to be used The descriptive language of family input is that exclusive attribute is arranged in the described first interface to be designed according to the descriptive voice;When this is exclusive It is above-mentioned that for the described first interface to be designed, exclusive attribute is set when attribute refers in particular to the attribute of the exclusive control at the first interface to be designed It can also include: that the interface development equipment receives user instructions and chooses the described first interface to be designed from preset control library and need The control wanted, wherein include multiple controls in the preset control library, and the control of selection is added to predeterminated position, then It sets a property for the control.
It should be noted that the interface to be designed already has when exclusive attribute is arranged for each interface to be designed Shared attribute, only Fig. 3 and Fig. 4 are not showed that, do not cause any restriction to the embodiment of the present application.
As can be seen that the embodiment of the present application realizes the shared attribute at each interface to be designed by interface development equipment, and will The shared attribute is placed in base class template;Then at newly-increased first interface to be designed, the base class template is extracted, for institute It states the first interface to be designed and generates the shared attribute;Exclusive attribute finally is set for the described first interface to be designed.In this way will Each interface shares attribute extraction and comes out, and is realized by base class, when needing to increase new interface, can quickly inherit base class, be absorbed in Exclusive attribute exploitation, realizes and effectively reuses shared attribute, advantageously reduce resources occupation rate, is applicable in improve equipment Property.
Fig. 5 is referred to, Fig. 5 is the process signal of another embedded type interface design method provided by the embodiments of the present application Figure, as shown in figure 5, comprising steps of
S51, interface development equipment realizes the shared attribute at each interface to be designed, and the shared attribute is placed on base class mould In plate;
S52, the interface development equipment extract the base class template at newly-increased first interface to be designed, to be described First interface to be designed generates the shared attribute;Each interface to be designed includes the described first interface to be designed;
S53, the described first interface to be designed is registered to interface management class by the interface development equipment, so that the interface It manages class and initializes first interface to be designed, and record the described first interface to be designed and the described first interface to be designed Incidence relation between identification information;
Wherein, in the application specific embodiment, interface management class PageManager can realize the page-level parameter to interface Configuration, may include Init function and RunTime function in the interface management class as shown in table 2.The interface development equipment is every It is secondary that interface to be designed is all registered to interface management class when increasing interface to be designed newly, interface derived class is called by interface management class Init completes interface initialization, while interface management class can also be by each interface object example to be designed and each interface to be designed Identification information id bind together, i.e., interface management class record have between each interface object example to be designed and identification information Incidence relation finds the identification information, can find the interface to be designed of identification information meaning, such as: first is found wait set The identification information 1 for counting interface, just has found first interface to be designed.
Table 2
In addition, being provided at least one timed task in interface management class, realized by timing function RunTime, In When being designed, if without the generation of changing interface event, according to the time specified in timed task treat design interface into Row periodic refreshing.Such as: one 50 milliseconds of timed task, 1 second timed task, interface development equipment root can be set One of timed task is selected according to the actual needs at interface to be designed, design interface is treated according to setting time and refreshes, certainly, It can also include more timed tasks.
S54, the interface development equipment are that exclusive attribute is arranged in the described first interface to be designed.
Wherein, the above-mentioned part steps of the present embodiment have related description in the embodiment shown in fig. 1, to avoid repeating, Details are not described herein again.
In a kind of possible embodiment, as shown in fig. 6, being the described first interface to be designed in the interface development equipment It is arranged after exclusive attribute, the method can also include:
Whether the interface development equipment monitoring has the generation of interface handover event;
Wherein, in the application specific embodiment, whether the interface development equipment monitoring has the generation of interface handover event, It include: whether the exclusive control at the first interface to be designed described in the interface development equipment monitoring triggers changing interface event;With/ Or whether the interface development equipment monitoring has external event to trigger changing interface event.
The interface development equipment carries out cleaning operation to the described first interface to be designed if having, and to will enter The second interface to be designed entered before initialization operation;Each interface to be designed includes the described second boundary to be designed Face;
Wherein, in the application specific embodiment, if the first interface to be designed is only described in the interface development equipment monitoring There is control to trigger changing interface event, then calls directly the first ShowNewDlg method in interface to be designed and carry out changing interface;If The interface development equipment monitoring have external event trigger changing interface event, then need by interface management class obtain first to The identification information of design interface, to call ShowNewDlg method to carry out changing interface.When switching interface, call first Clear function the first interface to be designed is exited before cleaning operation, recall Display function to will enter Two interfaces to be designed initialize, and the second interface to be designed is next interface to be designed at the first interface to be designed.
The described first interface to be designed is timed according to the timed task if the interface development equipment described without if Refresh operation.
Wherein, in the application specific embodiment, if without the generation of changing interface event, according to the time of timed task Setting refreshes the first interface to be designed, if there is multiple timed tasks, according to the actual demand at the first interface to be designed, Determine that a timed task refreshes the first interface to be designed.
In the embodiment, the first interface to be designed is refreshed according to timed task, conducive to guaranteeing interface uniformity and cutting The consistency changed.
It is described that cleaning operation is carried out to the described first interface to be designed in a kind of possible embodiment, comprising:
The interface switching method at the first interface to be designed described in the interface development equipment calls, by described first wait set The switching method at meter interface calls cleaning function to clear up the exclusive attribute at the described first interface to be designed;Described first to The interface switching method of design interface is provided by the base class template.
Wherein, in the application specific embodiment, ShowNewDlg method is realized by base class template, the first interface to be designed after Code reuse is realized after holding base class, and the side ShowNewDlg at the first interface to be designed itself is called when carrying out changing interface Method, ShowNewDlg method realize process: calling itself clear Clear reason function, remove the exclusive attribute at the first interface to be designed Or parameter reduction is carried out, the identification information that interface management class obtains the first interface to be designed is needed not move through herein.
In a kind of possible embodiment, it is sequentially recorded the mark at each interface to be designed Yu each interface to be designed Know information between incidence relation, it is described the second interface to be designed that will enter is entered before initialization operation, packet It includes:
The interface development equipment is according to the record sequence of the interface management class from described in interface management class acquisition Next target identification information of the identification information at the first interface to be designed;
Interface to be designed associated with the target identification information is determined as described second by the interface development equipment Interface to be designed;
Before the interface development equipment enters the described second interface to be designed based on the target identification information Initialization operation.
Wherein, in the application specific embodiment, each interface to be designed is switched over by the sequence that interface management class records, example Such as, the identification information at interface management class record interface 1 is 0, and the identification information at next switching interface at interface 1 is 1, identification information The identification information for being next switching interface at 1 interface to be designed is 2 etc., the sequence recorded according to interface management class, it is assumed that The identification information at the first interface to be designed is 1, then interface development equipment is got down by the record sequence of interface management class One target identification information is 2, will be determined as above-mentioned second with the associated interface instance objects to be designed of the target identification information Interface to be designed carries out the second interface to be designed being associated based on the target identification information to enter preceding initialization operation, Being then based on the target identification information calls the show function at the second interface to be designed to show the second interface to be designed.
Optionally, it is described the second interface to be designed that will enter is entered before initialization operation, can also wrap It includes:
The interface development equipment generates a random number in preset range using Generating Random Number, described default Range is set according to the identification information at each interface to be designed;
Identification information identical with the random number is determined as the described second interface to be designed by the interface development equipment Identification information;
The interface development equipment is according to the identification information at the described second interface to be designed to the described second interface to be designed It initializes.
Which interface the second interface to be designed that not limiting when switching interface will enter is specifically, therefore, here Using random number come selected the second interface to be designed that will enter.If the identification information at each interface to be designed is 1,2,3,4,5, Any random number (including 1 and 5) in a 1-5 is just so generated using Generating Random Number, such as: the random number of generation 3, then the identification information for being determined as the described second interface to be designed for 3, call Display function will with it is 3 associated to be designed Interface instance objects are initialized.
Above-mentioned increased a variety of possible embodiments, it is equally applicable to the micro embedded equipment of resource anxiety, be conducive to Solve the problem of that screen shows that user interface is smooth, " green bottom " occurs in switching between Caton user interface.
Fig. 6 is referred to, Fig. 6 is a kind of structural schematic diagram of embedded type interface design device provided by the embodiments of the present application, As shown in Figure 6, comprising:
Shared attribute realizes module 61, for realizing the shared attribute at each interface to be designed, and the shared attribute is put In base class template;
Shared inheritance of attribute module 62, for the base class template being extracted, for institute at newly-increased first interface to be designed It states the first interface to be designed and generates the shared attribute;Each interface to be designed includes the described first interface to be designed;
Exclusive attribute setup module 63, for exclusive attribute to be arranged for the described first interface to be designed.
Optionally, as shown in fig. 7, described device further include:
Interface management registration module 64, for the described first interface to be designed to be registered to interface management class, so that described Interface management class initializes first interface to be designed, and records the described first interface to be designed and the described first boundary to be designed Incidence relation between the identification information in face.
Optionally, as shown in figure 8, described device further include:
Changing interface monitoring modular 65, for monitoring whether the generation of interface handover event;
Changing interface realizes module 66, for carrying out cleaning operation and right to the described first interface to be designed if having The interface to be designed of will enter second entered before initialization operation;Each interface to be designed include described second to Design interface;
Interface periodic refreshing module 67, for if not according to the timed task to the described first interface to be designed into The operation of row periodic refreshing.
Optionally, as shown in figure 9, the changing interface realizes module 66, comprising:
Clear up unit 6601, for calling the interface switching method at the described first interface to be designed, by described first to The switching method of design interface calls cleaning function to clear up the exclusive attribute at the described first interface to be designed;Described first The interface switching method at interface to be designed is provided by the base class template.
Optionally, as shown in Figure 10, the changing interface realizes module 66 further include:
Sequential search unit 6602 is obtained for the record sequence according to the interface management class from the interface management class Next target identification information of the identification information at first interface to be designed;
Into interface determination unit 6603, the interface development equipment will be associated with the target identification information wait set Meter interface is determined as the described second interface to be designed;
Initialization unit 6604, before being entered based on the target identification information to the described second interface to be designed Initialization operation.
Embedded type interface design device provided by the embodiments of the present application can be realized in the embodiment of the method for Fig. 1 and Fig. 5 Each embodiment, and can be applied in any interface scene and corresponding beneficial effect, to avoid repeating, here It repeats no more.
1, Figure 11 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application referring to Figure 1, such as Figure 11 institute Show, comprising: memory 1101, processor 1102 and be stored on the memory 1101 and can be transported on the processor 1102 Capable computer program, in which:
The computer program that processor 1102 is used to that memory 1101 to be called to store executes following steps:
It realizes the shared attribute at each interface to be designed, and the shared attribute is placed in base class template;
At newly-increased first interface to be designed, the base class template is extracted, to generate institute for the described first interface to be designed State shared attribute;Each interface to be designed includes the described first interface to be designed;
For the described first interface to be designed, exclusive attribute is set.
Optionally, the processor 1102 also generated when increasing first interface to be designed newly have it is described first to be designed The identification information at interface, the processor are also used to:
Described first interface to be designed is registered to interface management class, so that interface management class initialization described first Interface to be designed, and record being associated between the described first interface to be designed and the identification information at the described first interface to be designed System.
Optionally, timed task is provided in the interface management class, the processor 1102 is described first to be designed Interface is arranged after exclusive attribute, is also used to execute:
Monitor whether the generation of interface handover event;
Cleaning operation is carried out to the described first interface to be designed if having, and to the second interface to be designed that will enter Initialization operation before being entered;Each interface to be designed includes the described second interface to be designed;
Refresh operation is timed to the described first interface to be designed according to the timed task if not.
Optionally, the processor 1102, which is executed, carries out cleaning operation to the described first interface to be designed, comprising:
The interface switching method for calling the described first interface to be designed passes through the switching method at the described first interface to be designed Cleaning function is called to clear up the exclusive attribute at the described first interface to be designed;It cuts at the interface at first interface to be designed Method is changed to be provided by the base class template.
Optionally, the interface management class is sequentially recorded the mark at each interface to be designed Yu each interface to be designed Know the incidence relation between information, the processor 1102, which executes, described to be entered the second interface to be designed that will enter Preceding initialization operation, comprising:
The interface development equipment is according to the record sequence of the interface management class from described in interface management class acquisition Next target identification information of the identification information at the first interface to be designed;
Interface to be designed associated with the target identification information is determined as described second by the interface development equipment Interface to be designed;
Before the interface development equipment enters the described second interface to be designed based on the target identification information Initialization operation.
Illustratively, above-mentioned electronic equipment can be mobile phone, computer, laptop, tablet computer, palm PC and Wearable device etc..Electronic equipment may include, but are not limited to processor 1102, memory 1101.Those skilled in the art can be with Understand, the schematic diagram is only the example of electronic equipment, does not constitute the restriction to electronic equipment, may include than illustrating more More or less component perhaps combines certain components or different components.
It should be noted that the processor 1102 due to electronic equipment realized when executing computer program it is above-mentioned embedded Step in Interface Design, therefore the embodiment of above-mentioned embedded type interface design method is suitable for the electronic equipment, And it can reach the same or similar beneficial effect.
The embodiment of the present application also provides a kind of computer readable storage medium, computer-readable recording medium storage has meter Calculation machine program, the computer program realize the step in above-mentioned embedded type interface design method when being executed by processor.
Illustratively, the computer program of computer readable storage medium includes computer program code, the computer Program code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer can Reading medium may include: any entity or device, recording medium, USB flash disk, mobile hard that can carry the computer program code Disk, magnetic disk, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..
It should be noted that the computer program due to computer readable storage medium realized when being executed by processor it is above-mentioned Embedded type interface design method in step, therefore all embodiments of above-mentioned embedded type interface design method are suitable for The computer readable storage medium, and can reach the same or similar beneficial effect.
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application and Embodiment is expounded, the description of the example is only used to help understand the method for the present application and its core ideas; At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the application There is change place, in conclusion the contents of this specification should not be construed as limiting the present application.

Claims (10)

1. a kind of embedded type interface design method, which is characterized in that the described method includes:
Interface development equipment realizes the shared attribute at each interface to be designed, and the shared attribute is placed in base class template;
The interface development equipment extracts the base class template at newly-increased first interface to be designed, with for described first wait set It counts interface and generates the shared attribute;Each interface to be designed includes the described first interface to be designed;
The interface development equipment is that exclusive attribute is arranged in the described first interface to be designed.
2. the method according to claim 1, wherein the interface development equipment is to increase described first newly to be designed The identification information for having the described first interface to be designed is also generated when interface, the method also includes:
Described first interface to be designed is registered to interface management class by the interface development equipment, so that at the beginning of the interface management class The interface to be designed of beginningization described first, and record the identification information at the described first interface to be designed Yu the described first interface to be designed Between incidence relation.
3. described according to the method described in claim 2, it is characterized in that, be provided with timed task in the interface management class Interface development equipment is that the described first interface to be designed is arranged after exclusive attribute, the method also includes:
Whether the interface development equipment monitoring has the generation of interface handover event;
The interface development equipment carries out cleaning operation to the described first interface to be designed if having, and to will enter the Two interfaces to be designed entered before initialization operation;Each interface to be designed includes the described second interface to be designed;
Refreshing is timed to the described first interface to be designed according to the timed task if the interface development equipment described without if Operation.
4. method according to claim 1 or 2, which is characterized in that described to clear up the described first interface to be designed Operation, comprising:
The interface switching method at the first interface to be designed described in the interface development equipment calls, passes through the described first boundary to be designed The switching method in face calls cleaning function to clear up the exclusive attribute at the described first interface to be designed;Described first is to be designed The interface switching method at interface is provided by the base class template.
5. according to the method described in claim 3, it is characterized in that, the interface management class be sequentially recorded it is described each to be designed Incidence relation between interface and the identification information at each interface to be designed, it is described to the second interface to be designed that will enter Initialization operation before being entered, comprising:
The interface development equipment obtains described first from the interface management class according to the record sequence of the interface management class Next target identification information of the identification information at interface to be designed;
Interface to be designed associated with the target identification information is determined as described second wait set by the interface development equipment Count interface;
The interface development equipment the described second interface to be designed is entered based on the target identification information before it is initial Change operation.
6. a kind of embedded type interface design device, which is characterized in that described device includes:
Shared attribute realizes module, for realizing the shared attribute at each interface to be designed, and the shared attribute is placed on base class In template;
Shared inheritance of attribute module, for the base class template being extracted, for described first at newly-increased first interface to be designed Interface to be designed generates the shared attribute;Each interface to be designed includes the described first interface to be designed;
Exclusive attribute setup module, for exclusive attribute to be arranged for the described first interface to be designed.
7. device according to claim 6, which is characterized in that described device further include:
Interface management registration module, for the described first interface to be designed to be registered to interface management class, so that the intercellular canals It manages class and initializes first interface to be designed, and record the mark at the described first interface to be designed Yu the described first interface to be designed Know the incidence relation between information.
8. the method according to the description of claim 7 is characterized in that described device further include:
Changing interface monitoring modular, for monitoring whether the generation of interface handover event;
Changing interface realizes module, for carrying out cleaning operation to the described first interface to be designed if having, and to will be into Second entered interface to be designed entered before initialization operation;Each interface to be designed includes the described second boundary to be designed Face;
Interface periodic refreshing module, for being timed according to the timed task to the described first interface to be designed if not Refresh operation.
9. a kind of electronic equipment characterized by comprising memory, processor and be stored on the memory and can be in institute The computer program run on processor is stated, the processor is realized when executing the computer program as in claim 1 to 5 Step in described in any item embedded type interface design methods.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes that the embedded type interface as described in any one of claims 1 to 5 is set when the computer program is executed by processor Step in meter method.
CN201910638140.4A 2019-07-15 2019-07-15 Embedded type interface design method, device, electronic equipment and storage medium Pending CN110442410A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910638140.4A CN110442410A (en) 2019-07-15 2019-07-15 Embedded type interface design method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910638140.4A CN110442410A (en) 2019-07-15 2019-07-15 Embedded type interface design method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110442410A true CN110442410A (en) 2019-11-12

Family

ID=68430481

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910638140.4A Pending CN110442410A (en) 2019-07-15 2019-07-15 Embedded type interface design method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110442410A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111290808A (en) * 2020-01-13 2020-06-16 中国平安财产保险股份有限公司 Product module display method and device based on data transmission object and storage medium
CN111932237A (en) * 2020-07-31 2020-11-13 武汉阿迪克电子股份有限公司 Cloud-based one-card transaction method and system
CN112162748A (en) * 2020-11-10 2021-01-01 平安普惠企业管理有限公司 Application program home page configuration method and device, electronic equipment and readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101359291A (en) * 2008-09-08 2009-02-04 深圳华为通信技术有限公司 Method and device for replacing interface styles
CN102279720A (en) * 2010-06-08 2011-12-14 腾讯科技(北京)有限公司 Method and system for updating screen display contents
CN102955643A (en) * 2011-08-22 2013-03-06 联想(北京)有限公司 Electronic equipment and display interface switching method thereof
CN103019684A (en) * 2012-11-20 2013-04-03 北京思特奇信息技术股份有限公司 Dynamic template-based business page configuring method
CN104699363A (en) * 2013-12-10 2015-06-10 阿里巴巴集团控股有限公司 Window interface display method and system
CN105224353A (en) * 2014-06-26 2016-01-06 北京北方微电子基地设备工艺研究中心有限责任公司 The method and system of dynamic load interface navigation
CN107015785A (en) * 2016-01-27 2017-08-04 广州博鳌纵横网络科技有限公司 The method and control of a kind of Website Moduleization displaying

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101359291A (en) * 2008-09-08 2009-02-04 深圳华为通信技术有限公司 Method and device for replacing interface styles
CN102279720A (en) * 2010-06-08 2011-12-14 腾讯科技(北京)有限公司 Method and system for updating screen display contents
CN102955643A (en) * 2011-08-22 2013-03-06 联想(北京)有限公司 Electronic equipment and display interface switching method thereof
CN103019684A (en) * 2012-11-20 2013-04-03 北京思特奇信息技术股份有限公司 Dynamic template-based business page configuring method
CN104699363A (en) * 2013-12-10 2015-06-10 阿里巴巴集团控股有限公司 Window interface display method and system
CN105224353A (en) * 2014-06-26 2016-01-06 北京北方微电子基地设备工艺研究中心有限责任公司 The method and system of dynamic load interface navigation
CN107015785A (en) * 2016-01-27 2017-08-04 广州博鳌纵横网络科技有限公司 The method and control of a kind of Website Moduleization displaying

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
@ONELEI: "Unity中简单 UI 管理类 - UIManager", 《HTTPS://BLOG.CSDN.NET/ONELEI1994/ARTICLE/DETAILS/49615725》 *
_KAFKA_: "Android UI界面基类(BaseUI)的封装", 《HTTPS://BLOG.CSDN.NET/QQ_32445015/ARTICLE/DETAILS/80798479》 *
小码哥1993: "快速开发之统一界面管理类", 《HTTPS://BLOG.CSDN.NET/ZYROCKY1993/ARTICLE/DETAILS/52504797》 *
池雅庆: "《J2ME手机应用项目开发实践》", 中国铁道出版社 *
百花错拳: "ASP.NET界面设计(二)之使用母版页《ASP.NET2.0网站开发全程解析》", 《HTTPS://WWW.CNBLOGS.COM/HEYUTAO/ARCHIVE/2009/05/29/1491893.HTML》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111290808A (en) * 2020-01-13 2020-06-16 中国平安财产保险股份有限公司 Product module display method and device based on data transmission object and storage medium
CN111290808B (en) * 2020-01-13 2023-10-20 中国平安财产保险股份有限公司 Product module display method and device based on data transmission object and storage medium
CN111932237A (en) * 2020-07-31 2020-11-13 武汉阿迪克电子股份有限公司 Cloud-based one-card transaction method and system
CN112162748A (en) * 2020-11-10 2021-01-01 平安普惠企业管理有限公司 Application program home page configuration method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN110442410A (en) Embedded type interface design method, device, electronic equipment and storage medium
CN108280119A (en) Page generation method, device and user terminal
CN105550344B (en) A kind of vector point element based on grid and weight relationship vacuates method
CN109582452A (en) A kind of container dispatching method, dispatching device and electronic equipment
CN109947502B (en) Configuration method, device and equipment for express cabinet display interface and storage medium
CN107729063A (en) Call method, device and the terminal of SDK
CN106325675A (en) Icon placing method andterminal device
CN107506483A (en) Page loading method, device, electronic equipment and storage medium
CN109104327A (en) A kind of business diary generation method, device and equipment
CN108880700A (en) Frequency hopping method, frequency hopping device and the mobile terminal of clock signal
CN105335036A (en) Input interaction method and input method system
CN108134812A (en) Data processing method and device
CN107678740A (en) A kind of method for packing and computer equipment of UI Service Component
CN106027517B (en) A kind of game subpackage method and apparatus supported by all kinds of means
CN103885756A (en) Intelligent terminal basic application functional configuration method, implementing method and device thereof
CN109086126A (en) Task scheduling processing method, apparatus, server, client and electronic equipment
CN110456921A (en) Predict the method and device of user's keyboard operation behavior
CN104657195A (en) Resource binding method and device
CN106205484B (en) LED display band carries configuration method and device
CN110309065A (en) Concurrently execution method, apparatus, equipment and the storage medium of test assignment
CN107179931A (en) Installation kit packaging method, apparatus and system
CN110764905B (en) Network model generation method and device, computer equipment and storage medium
CN104951683A (en) Information processing method and electronic equipment
CN103984540A (en) Method and device for generating hardware interface running program
CN204595833U (en) A kind of cloud data handling system

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191112

RJ01 Rejection of invention patent application after publication