CN110162374A - Method for switching theme, device, equipment and computer readable storage medium - Google Patents

Method for switching theme, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN110162374A
CN110162374A CN201910455170.1A CN201910455170A CN110162374A CN 110162374 A CN110162374 A CN 110162374A CN 201910455170 A CN201910455170 A CN 201910455170A CN 110162374 A CN110162374 A CN 110162374A
Authority
CN
China
Prior art keywords
theme
switching
control object
observer
preset
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.)
Granted
Application number
CN201910455170.1A
Other languages
Chinese (zh)
Other versions
CN110162374B (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.)
WeBank Co Ltd
Original Assignee
WeBank 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 WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201910455170.1A priority Critical patent/CN110162374B/en
Publication of CN110162374A publication Critical patent/CN110162374A/en
Application granted granted Critical
Publication of CN110162374B publication Critical patent/CN110162374B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/448Execution paradigms, e.g. implementations of programming paradigms
    • G06F9/4488Object-oriented
    • G06F9/4492Inheritance
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention relates to financial technology fields, and disclose a kind of method for switching theme, device, equipment and computer readable storage medium.The method for switching theme includes: a Subject Manager person to be pre-created, and control object is stored into observer's set of the Subject Manager person;Preset themes switching method is added to respondent's class, so that each control object inherits the preset themes switching method;When receiving theme switching request, the control object in observer's set, which is traversed, by the Subject Manager person executes the preset themes switching method, so that the control object receives the target topic handover information in the theme switching request, and theme handover operation is executed according to the target topic handover information.The present invention, which is able to solve, to be needed in the prior art aiming at the problem that each control object is respectively created a subclass, is not easy to the management of class.

Description

Method for switching theme, device, equipment and computer readable storage medium
Technical field
The present invention relates to financial technology (Fintech) technical field more particularly to a kind of method for switching theme, device, set Standby and computer readable storage medium.
Background technique
With the development of computer technology, more and more technology (big data, distribution, block chain Blockchain, people Work intelligence etc.) it applies in financial field, traditional financial industry gradually changes to financial technology (Fintech), but due to finance The safety of industry, requirement of real-time, also to technology, more stringent requirements are proposed.
Currently, App (application) the theme switching in iOS system is what the message notification mechanism based on iOS was realized, that is, right Different control object (such as UIButton button, UILabel label etc.) SubClassings, each subclass are infused with the identity of observer Volume arrives message informing center, to pay close attention to the notice of switching theme.When needing to switch theme, ThemeManager (Subject Manager) Class makes an announcement to message informing center, and then the notice is distributed to each observer by message informing center, so that observer The method for switching theme of itself is called to complete theme switching according to the notice.When carrying out theme switching using aforesaid way, need A subclass is respectively created for each control object, it is corresponding if the type of the control object used in project is more Many subclasses need to be created, to be not easy to the management of class.
Summary of the invention
The main purpose of the present invention is to provide a kind of method for switching theme, device, equipment and computer-readable storage mediums Matter, it is intended to solve to need that a subclass is respectively created for each control object in the prior art, the management that is not easy to class is asked Topic.
To achieve the above object, the present invention provides a kind of method for switching theme, and the method for switching theme includes:
A Subject Manager person is pre-created, and control object is stored into observer's set of the Subject Manager person;
Preset themes switching method is added to respondent's class, so that each control object inherits the preset themes switching side Method;
When receiving theme switching request, the control pair in observer's set is traversed by the Subject Manager person As executing the preset themes switching method, so that the control object receives the target topic in the theme switching request Handover information, and theme handover operation is executed according to the target topic handover information.
Optionally, the method for switching theme further include:
The control object in observer's set is traversed by the Subject Manager person every preset time, obtains each control The reference count of part object;
Reference count based on each control object detects whether that there are the control objects that reference count is preset value;
Reference count is the control object of preset value if it exists, then removes existing reference from observer set It is counted as the control object of preset value.
Optionally, the method for switching theme further include:
When detecting new page and occurring, control object corresponding with the new page is added to the observer and is gathered In.
Optionally, described that preset themes switching method is added to respondent's class, so that the succession of each control object is described pre- If the step of method for switching theme, includes:
Preset themes switching method is added to respondent's class using mode classification, so that the succession of each control object is described pre- If method for switching theme.
Optionally, the target topic handover information includes text size information, text style information, in background colour information It is one or more.
In addition, to achieve the above object, the present invention also provides a kind of theme switching device, the theme switching device packet It includes:
Manager's creation module is stored for a Subject Manager person to be pre-created, and by control object to the theme pipe In observer's set of reason person;
Method adding module, for adding preset themes switching method to respondent's class, so that each control object is inherited The preset themes switching method;
Theme switching module, for traversing the sight by the Subject Manager person when receiving theme switching request Control object in the person's of examining set executes the preset themes switching method, cuts so that the control object receives the theme The target topic handover information in request is changed, and theme handover operation is executed according to the target topic handover information.
Optionally, the theme switching device further include:
Data obtaining module, for being traversed in observer's set every preset time by the Subject Manager person Control object obtains the reference count of each control object;
Information detecting module detects whether there are reference count to be pre- for the reference count based on each control object If the control object of value;
Object remove module is the control object of preset value for reference count if it exists, then gathers from the observer Reference count present in middle removal is the control object of preset value.
Optionally, the theme switching device further include:
Object adding module, for when detecting new page and occurring, control object corresponding with the new page to be added It adds in observer's set.
In addition, to achieve the above object, the present invention also provides a kind of theme switching equipment, the theme switching equipment packet It includes: memory, processor and being stored in the theme changeover program that can be run on the memory and on the processor, it is described The step of theme changeover program realizes method for switching theme as described above when being executed by the processor.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium Theme changeover program is stored on storage medium, the theme changeover program realizes theme as described above when being executed by processor The step of switching method.
The present invention provides a kind of method for switching theme, device, equipment and computer readable storage medium, and it is main to be pre-created one Manager is inscribed, and control object is stored into observer's set of Subject Manager person, default master then is added to respondent's class Switching method is inscribed, is passed through so that each control object inherits the preset themes switching method when receiving theme switching request The control object that Subject Manager person traverses in observer's set executes the preset themes switching method, so that control object receives Target topic handover information in the theme switching request, and theme handover operation is executed according to target topic handover information.It is logical It crosses aforesaid way, by adding preset themes switching method to system class respondent's class in the present invention, may make each control object The preset themes switching method is all inherited, and then when receiving theme switching request, control object can call execution, and this is default Method for switching theme to receive target topic handover information, and then executes theme handover operation, is needed compared with the prior art to each Control object all creates a subclass, the classification of only one respondent, the management for class of being more convenient in the present invention.
Detailed description of the invention
Fig. 1 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of present subject matter switching method first embodiment;
Fig. 3 is the functional block diagram of present subject matter switching device first embodiment.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Referring to Fig.1, Fig. 1 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
Theme switching equipment of the embodiment of the present invention can be smart phone, be also possible to PC (Personal Computer, Personal computer), tablet computer, the terminal devices such as portable computer.
As shown in Figure 1, the theme switching equipment may include: processor 1001, such as CPU, communication bus 1002, user Interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is for realizing the connection between these components Communication.User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user Interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include having for standard Line interface, wireless interface (such as Wi-Fi interface).Memory 1005 can be high speed RAM memory, be also possible to stable storage Device (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processing The storage device of device 1001.
Theme is switched it will be understood by those skilled in the art that theme switching equipment structure shown in Fig. 1 is not constituted The restriction of equipment may include perhaps combining certain components or different component cloth than illustrating more or fewer components It sets.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium Believe module, Subscriber Interface Module SIM and theme changeover program.
In terminal shown in Fig. 1, network interface 1004 is mainly used for connecting background server, carries out with background server Data communication;User interface 1003 is mainly used for connecting client, carries out data communication with client;And processor 1001 can be with For calling the theme changeover program stored in memory 1005, and execute following operation:
A Subject Manager person is pre-created, and control object is stored into observer's set of the Subject Manager person;
Preset themes switching method is added to respondent's class, so that each control object inherits the preset themes switching side Method;
When receiving theme switching request, the control pair in observer's set is traversed by the Subject Manager person As executing the preset themes switching method, so that the control object receives the target topic in the theme switching request Handover information, and theme handover operation is executed according to the target topic handover information.
Further, processor 1001 can call the theme changeover program stored in memory 1005, also execute following Operation:
The control object in observer's set is traversed by the Subject Manager person every preset time, obtains each control The reference count of part object;
Reference count based on each control object detects whether that there are the control objects that reference count is preset value;
Reference count is the control object of preset value if it exists, then removes existing reference from observer set It is counted as the control object of preset value.
Further, processor 1001 can call the theme changeover program stored in memory 1005, also execute following Operation:
When detecting new page and occurring, control object corresponding with the new page is added to the observer and is gathered In.
Further, processor 1001 can call the theme changeover program stored in memory 1005, also execute following Operation:
Preset themes switching method is added to respondent's class using mode classification, so that the succession of each control object is described pre- If method for switching theme.
Further, the target topic handover information includes text size information, text style information, background colour information One of or it is a variety of.
Based on above-mentioned hardware configuration, each embodiment of present subject matter switching method is proposed.
The present invention provides a kind of method for switching theme.
It is the flow diagram of present subject matter switching method first embodiment referring to Fig. 2, Fig. 2.
In the present embodiment, which includes:
Step S10 is pre-created a Subject Manager person, and control object is stored to the observer of the Subject Manager person In set;
The method for switching theme of the present embodiment is realized by theme switching equipment, and the theme switching equipment is equipped with iOS System.In the present embodiment, be pre-created a singleton class ThemeManager (Subject Manager person), and by control object store to In the observer observers set of Subject Manager person.Wherein, there is a NSMutableSet in the ThemeManager The observers of (NSMutableSet is a set) type, needs to switch the control object of theme (such as managing storage Button button, label label).
Step S20 adds preset themes switching method to respondent's class, so that each control object inherits the default master Inscribe switching method;
Then, preset themes switching method is added to respondent's class, is cut so that each control object inherits the preset themes Change method.Wherein, respondent UIResponder class is system class, in UI (the User Interface, Yong Hujie of iOS system Face) in interface, participate in predominantly UIButton (button), UILabel (label), UITextField (input of theme switching Frame) etc. text size, text style, background colour on control instances etc., and these control classes have a general character, are all inherited from Therefore this class of UIResponder by adding preset themes switching method to respondent, may make each system control pair As all inheriting this preset themes switching method, by the above-mentioned means, in the present embodiment only one UIResponder point Class creates subclass each by SubClassing without each control object, so as to be convenient for the management of class.Furthermore, it is necessary to explanation It is that this method parameter dic is dictionary type, for receiving text size information, the text style that switching theme needs to use The target topics handover informations such as information, background colour information, meanwhile, when control object, which is called, executes this method, this method can be obtained The type of called control object is got, and then by dictionary enquiring to the corresponding data information of the type, to execute theme Handover operation.
Addition for preset themes switching method can be used mode classification and be added, that is, step S20 may include: Preset themes switching method is added to respondent's class using mode classification, is cut so that each control object inherits the preset themes Change method.
Preset themes switching method is added to respondent's class that is, mode classification can be used, so that each control object is inherited Preset themes switching method.Wherein, classification (category) is the method for expansion system class and a kind of mode generated, Main function is dynamically to add certain methods to this class under the premise of not changing original class.It can be in category Increase attribute, method, agreement etc. to original class, in system loads classification, instance method, agreement and the attribute of category It is added in original class, and the class method and agreement of category are added in the metaclass of original class.Specifically, first will Preset themes switching method in category, attribute, protocol data are placed in category_t structural body, then by structural body Interior method list copies in the method list of Responder class object, to the addition preset themes switching of Responder class Method.
Step S30 is traversed in observer's set when receiving theme switching request by the Subject Manager person Control object execute the preset themes switching method so that the control object receives in the theme switching request Target topic handover information, and theme handover operation is executed according to the target topic handover information.
Finally, traversing the control in observers set by ThemeManager when receiving theme switching request Object executes the preset themes switching method, so that control object receives the switching letter of the target topic in the theme switching request Breath, and theme handover operation is executed according to target topic handover information.Wherein, target topic handover information includes text size letter One of breath, text style information, background colour information are a variety of, such as, it can be achieved that label be switched to red bottom wrongly written or mispronounced character, Button is switched to theme handover operation as blue bottom surplus.
The embodiment of the present invention provides a kind of method for switching theme, a Subject Manager person is pre-created, and control object is deposited It stores up into observer's set of Subject Manager person, preset themes switching method then is added to respondent's class, so that each control Object inherits the preset themes switching method, when receiving theme switching request, traverses observer's collection by Subject Manager person Control object in conjunction executes the preset themes switching method, so that control object receives the target in the theme switching request Theme handover information, and theme handover operation is executed according to target topic handover information.By the above-mentioned means, the embodiment of the present invention In by system class respondent's class add preset themes switching method, may make each control object all to inherit the preset themes and cut Method is changed, and then when receiving theme switching request, control object, which can be called, executes the preset themes switching method, to receive Target topic handover information, and then theme handover operation is executed, it needs all to create one to each control object compared with the prior art Subclass, the classification of only one respondent, the management for class of being more convenient in the present embodiment.
In the prior art, it when observer no longer needs to receive notice, needs to be unregistered at message informing center, this When, it needs manager to be manually removed the subclass of these control objects, otherwise will lead to RAM leakage.In this regard, proposing that the present invention is main The second embodiment for inscribing switching method by obtaining the reference count of each control object, and then determines whether according to reference count It is removed, removes control object to realize that intelligence is automatic, avoid RAM leakage.
In the present embodiment, after step slo, the method for switching theme further include:
Step A is traversed by the Subject Manager person control object in observer's set every preset time, obtained Take the reference count of each control object;
In the present embodiment, terminal system can pass through Subject Manager person ThemeManager traversal observation every preset time Control object in person observers set, obtains the reference count of each control object.Wherein, reference count is that computer is compiled One of Cheng Yuyan memory management technology refers to being cited resource (can be object, memory or disk space etc.) Number saves, the process just discharged when citation times become zero.Wherein, preset time can be according to the actual situation It is specifically set, is not especially limited herein.
Step B, the reference count based on each control object detect whether that there are the controls that reference count is preset value Object;
After the reference count for getting each control object, the reference count based on each control object detects whether exist Reference count is the control object of preset value.Wherein, by control object at least can observed person set held, i.e., reference count When number is 1, illustrate that control object at this time held by observed person's set, it is corresponding, preset value can be set as 1.
Step C, reference count is the control object of preset value if it exists, then from observer set present in removal Reference count be preset value control object.
Reference count is the control object of preset value (i.e. 1) if it exists, then need to be from observer's set present in removal Reference count is the control object of preset value, to avoid RAM leakage.Meanwhile but also control object be not necessarily to notice of cancellation, from And make using simpler.
For example, there is multiple pages in certain App, the different pages is corresponding with different control objects, as Button (button), Label (label) etc. when initial, (is needed in the observer's set for the person that can be added to Subject Manager for the control object in each page It is noted that can only add control object relevant to theme switching in each page in addition).User browses in App When a certain page, possible at this time observed person's set of the corresponding control object of remaining page is held, i.e. reference count is 1, At this point, removing the control object that these reference counts are 1, automatically from observer's set then to avoid RAM leakage.
Further, the method for switching theme further include:
When detecting new page and occurring, control object corresponding with the new page is added to the observer and is gathered In.
In the present embodiment, terminal system, will control object corresponding with the new page when detecting new page and occurring It is added in observer's set, so that corresponding control object receives theme switching notice, and then executes theme switching behaviour Make.For example, only existing the corresponding control pair of page A in possible observer's set before user when browsing the page A in App As, when user jumps to page B, at this point, terminal system can detect the appearance of new page B, at this point, then need by with the page The corresponding control object of B is added in observer's set, so that the corresponding control object of page B receives theme switching notice, And then execute theme handover operation.
The present invention specifically can be applicable in all kinds of App theme handoff procedures, including but not limited under financial technology field Mobile banking App, insurance institution APP, Investment & Financing APP etc., such as in a certain Mobile banking App, to make the App can It realizes different theme switchings, a singleton class ThemeManager (Subject Manager person) can be pre-created, and control object is deposited It stores up into the observer observers set of Subject Manager person, preset themes switching side then is added to UIResponder class Method, so that each control object inherits the preset themes switching method;When receiving theme switching request, pass through Control object in ThemeManager traversal observers set executes the preset themes switching method, so that control pair Theme switching behaviour is executed as receiving the target topic handover information in the theme switching request, and according to target topic handover information Make.By the above-mentioned means, may make in the present invention by adding preset themes switching method to system class UIResponder class Each control object all inherits the preset themes switching method, when user clicks theme switching key in App, at this point, terminal System can receive corresponding theme switching request, and control object, which can be called, executes the preset themes switching method, to receive mesh Theme handover information is marked, and then executes theme handover operation, needs all to create each control object one son compared with the prior art Class, the classification of only one respondent UIResponder in the present invention, the management for class of being more convenient for realizes Mobile banking App etc. The management of class is more convenient in financial APP.
The present invention also provides a kind of theme switching devices.
It is the functional block diagram of present subject matter switching device first embodiment referring to Fig. 3, Fig. 3.
As shown in figure 3, the theme switching device includes:
Manager's creation module 10 is stored for a Subject Manager person to be pre-created, and by control object to the theme In observer's set of manager;
Method adding module 20, for respondent's class add preset themes switching method so that each control object after Hold the preset themes switching method;
Theme switching module 30, for when receiving theme switching request, by described in Subject Manager person traversal Control object in observer's set executes the preset themes switching method, so that the control object receives the theme Target topic handover information in switching request, and theme handover operation is executed according to the target topic handover information.
Further, the theme switching device further include:
Data obtaining module, for being traversed in observer's set every preset time by the Subject Manager person Control object obtains the reference count of each control object;
Information detecting module detects whether there are reference count to be pre- for the reference count based on each control object If the control object of value;
Object remove module is the control object of preset value for reference count if it exists, then gathers from the observer Reference count present in middle removal is the control object of preset value.
Further, the theme switching device further include:
Object adding module, for when detecting new page and occurring, control object corresponding with the new page to be added It adds in observer's set.
Further, the method adding module 20 is specifically used for adding default master to respondent's class using mode classification Switching method is inscribed, so that each control object inherits the preset themes switching method.
Further, the target topic handover information includes text size information, text style information, background colour information One of or it is a variety of.
Wherein, each in the function realization and above-mentioned method for switching theme embodiment of modules in above-mentioned theme switching device Step is corresponding, and function and realization process no longer repeat one by one here.
The present invention also provides a kind of computer readable storage medium, theme is stored on the computer readable storage medium and is cut Program is changed, the method for switching theme as described in any of the above item embodiment is realized when the theme changeover program is executed by processor The step of.
The specific embodiment of computer readable storage medium of the present invention and the basic phase of each embodiment of above-mentioned method for switching theme Together, therefore not to repeat here.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of method for switching theme, which is characterized in that the method for switching theme includes:
A Subject Manager person is pre-created, and control object is stored into observer's set of the Subject Manager person;
Preset themes switching method is added to respondent's class, so that each control object inherits the preset themes switching method;
When receiving theme switching request, the control object in observer's set is traversed by the Subject Manager person and is held The row preset themes switching method, so that the control object receives the switching of the target topic in the theme switching request Information, and theme handover operation is executed according to the target topic handover information.
2. method for switching theme as described in claim 1, which is characterized in that the method for switching theme further include:
The control object in observer's set is traversed by the Subject Manager person every preset time, obtains each control pair The reference count of elephant;
Reference count based on each control object detects whether that there are the control objects that reference count is preset value;
Reference count is the control object of preset value if it exists, then removes existing reference count from observer set For the control object of preset value.
3. method for switching theme as described in claim 1, which is characterized in that the method for switching theme further include:
When detecting new page and occurring, control object corresponding with the new page is added in observer's set.
4. method for switching theme as described in claim 1, which is characterized in that described to the addition preset themes switching of respondent's class Method, so that each control object includes: the step of inheriting the preset themes switching method
Preset themes switching method is added to respondent's class using mode classification, so that each control object inherits the default master Inscribe switching method.
5. method for switching theme according to any one of claims 1-4, which is characterized in that the target topic handover information packet Include one of text size information, text style information, background colour information or a variety of.
6. a kind of theme switching device, which is characterized in that the theme switching device includes:
Manager's creation module is stored for a Subject Manager person to be pre-created, and by control object to the Subject Manager person Observer set in;
Method adding module, for adding preset themes switching method to respondent's class, so that described in the succession of each control object Preset themes switching method;
Theme switching module, for traversing the observer by the Subject Manager person when receiving theme switching request Control object in set executes the preset themes switching method, asks so that the control object receives the theme switching Target topic handover information in asking, and theme handover operation is executed according to the target topic handover information.
7. theme switching device as claimed in claim 6, which is characterized in that the theme switching device further include:
Data obtaining module, for traversing by the Subject Manager person control in observer's set every preset time Object obtains the reference count of each control object;
Information detecting module detects whether there are reference count to be preset value for the reference count based on each control object Control object;
Object remove module is the control object of preset value for reference count if it exists, then moves from observer set Except the control object that existing reference count is preset value.
8. theme switching device as claimed in claims 6 or 7, which is characterized in that the theme switching device further include:
Object adding module, for when detecting new page and occurring, control object corresponding with the new page to be added to In observer's set.
9. a kind of theme switching equipment, which is characterized in that the theme switching equipment includes: memory, processor and is stored in On the memory and the theme changeover program that can run on the processor, the theme changeover program is by the processor The step of method for switching theme as described in any one of claims 1 to 5 is realized when execution.
10. a kind of computer readable storage medium, which is characterized in that be stored with theme on the computer readable storage medium and cut Program is changed, the theme switching as described in any one of claims 1 to 5 is realized when the theme changeover program is executed by processor The step of method.
CN201910455170.1A 2019-05-28 2019-05-28 Theme switching method, device, equipment and computer readable storage medium Active CN110162374B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910455170.1A CN110162374B (en) 2019-05-28 2019-05-28 Theme switching method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910455170.1A CN110162374B (en) 2019-05-28 2019-05-28 Theme switching method, device, equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110162374A true CN110162374A (en) 2019-08-23
CN110162374B CN110162374B (en) 2024-06-25

Family

ID=67629569

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910455170.1A Active CN110162374B (en) 2019-05-28 2019-05-28 Theme switching method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110162374B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552537A (en) * 2020-05-06 2020-08-18 深圳市卡牛科技有限公司 Theme switching method and device, computer equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984350A (en) * 2012-11-01 2013-03-20 广东欧珀移动通信有限公司 User-defined subject switchover method and device in mobile terminal of Android operating system
WO2014182067A1 (en) * 2013-05-06 2014-11-13 (주)카카오 Method for displaying widget in mobile device, and mobile device
CN106231102A (en) * 2016-08-03 2016-12-14 苏州美房云客软件科技股份有限公司 Method for switching themes by one key based on iOS system
CN106569885A (en) * 2016-10-13 2017-04-19 乐视控股(北京)有限公司 Application theme switching method and device
CN106802794A (en) * 2016-12-20 2017-06-06 智车优行科技(北京)有限公司 Method for switching theme, device, vehicle and system
CN106843953A (en) * 2017-01-16 2017-06-13 百融(北京)金融信息服务股份有限公司 Application program transverse direction switching system and method based on iOS system
CN106959806A (en) * 2017-03-22 2017-07-18 武汉斗鱼网络科技有限公司 Page identity acquisition methods and device
CN107678813A (en) * 2017-09-08 2018-02-09 维沃移动通信有限公司 A kind of switching method and mobile terminal of the theme of desktop icons
WO2019024495A1 (en) * 2017-08-04 2019-02-07 平安科技(深圳)有限公司 Application theme pushing terminal and method, and computer-readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102984350A (en) * 2012-11-01 2013-03-20 广东欧珀移动通信有限公司 User-defined subject switchover method and device in mobile terminal of Android operating system
WO2014182067A1 (en) * 2013-05-06 2014-11-13 (주)카카오 Method for displaying widget in mobile device, and mobile device
CN106231102A (en) * 2016-08-03 2016-12-14 苏州美房云客软件科技股份有限公司 Method for switching themes by one key based on iOS system
CN106569885A (en) * 2016-10-13 2017-04-19 乐视控股(北京)有限公司 Application theme switching method and device
CN106802794A (en) * 2016-12-20 2017-06-06 智车优行科技(北京)有限公司 Method for switching theme, device, vehicle and system
CN106843953A (en) * 2017-01-16 2017-06-13 百融(北京)金融信息服务股份有限公司 Application program transverse direction switching system and method based on iOS system
CN106959806A (en) * 2017-03-22 2017-07-18 武汉斗鱼网络科技有限公司 Page identity acquisition methods and device
WO2019024495A1 (en) * 2017-08-04 2019-02-07 平安科技(深圳)有限公司 Application theme pushing terminal and method, and computer-readable storage medium
CN107678813A (en) * 2017-09-08 2018-02-09 维沃移动通信有限公司 A kind of switching method and mobile terminal of the theme of desktop icons

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李方芳;赵旭东;卢伟文;时振通;: "基于WPF的通用可配置式教员控制台软件引擎研发", 系统仿真学报, no. 08, 8 August 2013 (2013-08-08) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552537A (en) * 2020-05-06 2020-08-18 深圳市卡牛科技有限公司 Theme switching method and device, computer equipment and storage medium
CN111552537B (en) * 2020-05-06 2023-10-20 深圳市卡牛科技有限公司 Theme switching method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN110162374B (en) 2024-06-25

Similar Documents

Publication Publication Date Title
US11018882B2 (en) Session filtering method and device
US9646145B2 (en) Method and system for dynamically assignable user interface
US9973506B2 (en) Method and apparatus for clearing notification icon, and storage medium
US20200396191A1 (en) Efficient processing of unread messages
Bailur et al. Gender, mobile, and mobile internet| gender, mobile, and development: the theory and practice of empowerment—Introduction
CN105630461A (en) Managing method of android application interface
CN107291347A (en) A kind of method for information display and device
CN103970422A (en) Screen transparency automatic changing method of mobile terminal and mobile terminal
CN113010255B (en) Interaction method and device based on binding session group and computer equipment
US10599615B2 (en) System, method, and recording medium for recycle bin management based on cognitive factors
Bashir et al. EUHSA: Extending usability heuristics for smartphone application
CN107515907B (en) The display methods and device of browser page
CN111813308A (en) Interface processing method and device, electronic equipment and storage medium
US20240211281A1 (en) Lock screen interface message processing method, intelligent terminal, and storage medium
CN110162374A (en) Method for switching theme, device, equipment and computer readable storage medium
US20140195946A1 (en) Management of resources for tasks with virtual composite service agents
CN105447384B (en) A kind of anti-method monitored, system and mobile terminal
Miraoui et al. A service oriented definition of context for pervasive computing
CN108021456A (en) touch event processing method, device and operating system
CN109116999A (en) Quick term input method and system suitable for more application switchings
KR20160090785A (en) A method and device for organizing a plurality of items on an electronic device
US20140195942A1 (en) Managing display on a computer system
Zheng et al. Modeling the adaption rule in context-aware systems
US10620977B2 (en) Method and system for providing security features in a smart phone
CN114564707A (en) Application authority management method and device and electronic equipment

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