CN106371850A - Method for establishing customizable desktop widget - Google Patents
Method for establishing customizable desktop widget Download PDFInfo
- Publication number
- CN106371850A CN106371850A CN201610830626.4A CN201610830626A CN106371850A CN 106371850 A CN106371850 A CN 106371850A CN 201610830626 A CN201610830626 A CN 201610830626A CN 106371850 A CN106371850 A CN 106371850A
- Authority
- CN
- China
- Prior art keywords
- widgets
- desktop
- self
- state
- file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/34—Graphical or visual programming
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
- G06F9/44526—Plug-ins; Add-ons
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The invention relates to the technical field of mobile terminals, and provides a method for establishing a customizable desktop widget. The method comprises the following steps: 1) defining and describing the size of a widget file in a description file; 2) implementing a widget by customizing a view and a logic; 3) starting a desktop to load the widget; 4) loading the widget onto the desktop, wherein in the step 2) of implementing the widget by customizing the view and the logic comprises the following substeps: a) defining a business interface needed by the widget in a desktop system; b) defining the view and the logic of the widget in the business interface. By the method, through an own customizable desktop widget, full customization of functions of the widget is achieved; the widget with a variety of functions is added in the desktop, so that diversity of the functions of the widget is ensured, and different working requirements can be met, such as drawing; the customizable widget is not limited by drawing in the desktop system, completely independent playing can be performed to draw a very brilliant animational effect, and 3D drawing is supported.
Description
Technical field
The present invention relates to mobile terminal technical field, a kind of method of the desktop widgets that can customize particularly to establishment.
Background technology
In Mobile operating system field, a lot of systems are all based on desktop system exploitation;All carry in these operating systems
Supplied ARIXTRA widgets this by ARIXTRA official definition general interface.But the widgets on existing ARIXTRA desktop, have relatively
Many restrictions, such as can not run the animation of complexity, limit species of view etc.;That can only run that desktop system specifies special regards
Figure.
Therefore, mobile terminal technical field is badly in need of a kind of method creating self-defining desktop widgets, by having table by oneself
The self-defined widgets in face, the function of realizing widgets is completely self-defined;With the addition of the widgets of several functions in our desktop,
Ensure the variation of its function, disclosure satisfy that the requirement of different operating, for example: draw etc., self-defined widgets need not be under
The restriction that desktop system widgets are drawn, can carry out entirely autonomous performance above;This is with the addition of in our desktop
Widgets, can draw out the very gorgeous effect of animation, support that 3d draws simultaneously.
Content of the invention
The present invention is in order to solve the above problems, there is provided a kind of method of the desktop widgets that establishment can customize, technology
Scheme is as follows:
A kind of method of the desktop widgets that establishment can customize, comprising:
1) size of widgets file is described defined in description file;
2) self-defined view and logic realization widgets are passed through;
3) according to 1) and 2) the widgets file size that defines respectively, self-defined view, logic start desktop loading widgets;
4) widgets are loaded on desktop.
Preferably, in the method for the desktop widgets that a kind of above-mentioned establishment can customize, 1) fixed in description file
The size of justice description widgets file includes:
The size of description widgets file is the formal definition according to grid, defines respectively in description file and laterally takies
Grid number and the vertical grid number taking;
There is in desktop system an inventory file, can be increased some in the inventory file being defined by this system self-defining
Field;Assume that transverse grid number is defined as x, longitudinal grid number is defined as y, then defined in inventory file: x=1, y=1.
Preferably, in the method for the desktop widgets that a kind of above-mentioned establishment can customize, 2) pass through self-defined view
And logic realization widgets include:
A) go out the business interface of widgets needs defined in desktop system;
Business interface includes :) construct self-defined widgets;) self-defined widgets start state;) self-defined widgets are extensive
Multiple state;) self-defined widgets halted state;) self-defined widgets halted state;) self-defined widgets destruction shape
State;) return self-defined widgets view;
B) view and the logic of widgets are gone out defined in business interface;
The related function of business interface is realized according to the business interface in a);Corresponding above-mentioned business interface, realizes some corresponding industry
The concrete function of business interface;
) widgets carried out construct, initialize etc. with operation, form self-defined widgets;
) when self-defined widgets are in beginning state, through i-th) step construction after can change state, when changing state,
Carry out operation or the behavior of some acquiescences;
) when self-defined widgets enter halted state, service logic stops, and waits widgets to recover the instruction of state;
) when self-defined widgets enter halted state, recover the work before state makes widgets be in by widgets
State, when widgets are in recovery state, needs to execute the operation of some refreshings;
) when self-defined widgets are in halted state, service logic cannot be recovered, that is, self-defined widgets enter and destroy shape
State;
) when self-defined widgets are in destruction state, self-defined widgets outwards discharge resource;
) when self-defined widgets complete destruction action, self-defined widgets return the view of widgets, for system desktop weight
Newly call self-defined widgets
Preferably, in the method for the desktop widgets that a kind of above-mentioned establishment can customize, 3) start desktop loading widgets
Including: when desktop detects and has software to achieve the business interface defined in step a) in system, start desktop and load group
Part;
First, the reflector of self-defined widgets and the code of reflector are predefined in desktop;
Then, reflector is loaded according to the size of self-defined widgets file, business interface;Load little when starting
The building method of assembly, desktop calls the start method of self-defined widgets when entering beginning state, enter and call certainly when recovering
Define the recovery state of widgets, enter the halted state calling widgets when suspending, when entering halted state, call widgets
Halted state, call the destruction state of widgets when entering destruction state, realize the loading of self-defined widgets, self-defined little
Assembly returns to be located at after the completion of loading and obtains widgets form on desktop.
Preferably, in the method for the desktop widgets that a kind of above-mentioned establishment can customize, 4) widgets are loaded into table
Include on face: by the operation method in the interface that defined, the code in widgets is loaded in desktop and runs, when
When the widgets that can customize are installed in system, desktop detects according to the good view size of predefined, placement location
With the self-defined widgets of installation.
Preferably, in the method for the desktop widgets that a kind of above-mentioned establishment can customize, desktop is from desktop system
Read 1) in widgets inventory file, by the information Store in inventory file in the data base of desktop.
Preferably, in the method for the desktop widgets that a kind of above-mentioned establishment can customize, desktop is provided with establishment
View, recoil state and stopping modular, are all to be realized by business interface.
Preferably, in the method for the desktop widgets that a kind of above-mentioned establishment can customize, self-defined widgets are to paint
Figure widgets, are used for realizing 3d drawing, the step of concrete loading drawing widgets is:
A) size of widgets file is described defined in description file;
B) self-defined view and logic realization widgets are passed through;
C) inherit the view surfaceview of desktop system, drawn using opgles;
D) desktop loads drawing widgets on desktop.
Preferably, in the method for the desktop widgets that a kind of above-mentioned establishment can customize, desktop system is ARIXTRA system
System.
Beneficial effects of the present invention:
The present invention passes through the method creating the desktop widgets that can customize, and the function of realizing widgets is completely self-defined;Make by oneself
Adopted widgets need not be under the restriction of desktop system widgets drawing, can carry out entirely autonomous performance above.
Brief description
To describe the present invention with reference to the accompanying drawings and detailed description in detail:
Fig. 1 is the flow chart of the method for desktop widgets that a kind of establishment of the present invention can customize.
Specific embodiment
In order that measure, creation characteristic, reached purpose and effect that the technology of the present invention is realized are easy to understand, below will
In conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described it is clear that
Described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the enforcement in the present invention
Example, the every other embodiment that those of ordinary skill in the art are obtained under the premise of not making creative work, broadly fall into
The scope of protection of the invention.
Embodiment 1:
Fig. 1 is the flow chart of the method for desktop widgets that a kind of establishment of the present invention can customize.
As shown in figure 1, a kind of method of desktop widgets that establishment can customize, comprising:
1) size of widgets file is described defined in description file;
2) self-defined view and logic realization widgets are passed through;
3) according to 1) and 2) the widgets file size that defines respectively, self-defined view, logic start desktop loading widgets;
4) widgets are loaded on desktop.
Embodiment 2:
Fig. 1 is the flow chart of the method for desktop widgets that a kind of establishment of the present invention can customize.
As shown in figure 1, a kind of method of desktop widgets that establishment can customize, comprise the steps:
1) size of widgets file is described defined in description file;
Desktop is the size definition describing widgets file according to grid, defines horizontal occupancy in description file respectively
Grid number and the vertical grid number taking;
There is in desktop system an inventory file, can be increased some in the inventory file being defined by this system self-defining
Field;Hypothesis desktop system desktop longitudinal grid number is a, and transverse grid number is b;(a, b are the positive integer more than 0) assumes group
Laterally shared grid number is defined as x to part, and (b >=x > 0) grid number shared by longitudinal direction is defined as y(a >=y > 0) it is assumed that in inventory file
Defined in the size of widgets: x=1, y=1;
2) self-defined view and logic realization widgets are passed through;
A) go out the business interface of widgets needs defined in desktop system;
Business interface includes :) construct self-defined widgets;) self-defined widgets start state;) self-defined widgets are extensive
Multiple state;) self-defined widgets halted state;) self-defined widgets halted state;) self-defined widgets destruction shape
State;) return self-defined widgets view;
B) view and the logic of widgets are gone out defined in business interface;
The related function of business interface is realized according to the business interface in a);Corresponding above-mentioned business interface, realizes some corresponding industry
The concrete function of business interface;
) widgets carried out construct, initialize etc. with operation, form self-defined widgets;
) when self-defined widgets are in beginning state, through i-th) step construction after can change state, when changing state,
Carry out operation or the behavior of some acquiescences;
) when self-defined widgets enter halted state, service logic stops, and waits widgets to recover the instruction of state;
) when self-defined widgets enter halted state, recover the work before state makes widgets be in by widgets
State, when widgets are in recovery state, needs to execute the operation of some refreshings;
) when self-defined widgets are in halted state, service logic cannot be recovered, that is, self-defined widgets enter and destroy shape
State;
) when self-defined widgets are in destruction state, self-defined widgets outwards discharge resource;
) when self-defined widgets complete destruction action, self-defined widgets return the view of widgets, for system desktop weight
Newly call self-defined widgets;
3) start desktop and load widgets;
When desktop detects and has software to achieve the business interface defined in step a) in system, start desktop and load group
Part;
The reflector of self-defined widgets and the code of reflector is predefined in desktop;Reflector is according to self-defined widgets
The size of file, business interface are loaded;Load the building method of widgets when starting, desktop enters beginning state
When call the start method of self-defined widgets, enter the recovery state calling self-defined widgets when recovering, enter when suspending
Call the halted state of widgets, when entering halted state, call the halted state of widgets, call little when entering destruction state
The destruction state of assembly, realizes the loading of self-defined widgets, and self-defined widgets return to be located at after the completion of loading and obtain on desktop
To widgets form;
4) widgets are loaded on desktop.
By the operation method in the interface that defined, the code in widgets is loaded in desktop and runs, when
When self-defining widgets are installed in system, desktop detected according to the good view size of predefined, placement location and
Self-defined widgets are installed;
When 4) in desktop after self-defined widgets is detected and install, desktop reads 1 from desktop system) in widgets inventory civilian
Part, by the information Store in inventory file in the data base of desktop.
Establishment view, recoil state and stopping modular are provided with desktop, are all to be realized by business interface.
When self-defined widgets are drawing widgets, it is used for realizing 3d drawing, be can achieve by drawing widgets autonomous
Draw, need not be drawn by desktop system, the very gorgeous effect of animation can be drawn out, the concrete step loading drawing widgets
Suddenly it is:
A) size of widgets file is described defined in description file;
B) self-defined view and logic realization widgets are passed through;
C) inherit the view surfaceview of desktop system, drawn using opgles;
D) desktop loads drawing widgets on desktop.
Desktop system mentioned above is Android system.
A kind of method of the desktop widgets that the present invention be can customize by establishment, the function of realizing widgets is made by oneself completely
Justice;Self-defined widgets need not be under the restriction of desktop system widgets drawing, can be by the drawing function of calling system.
Ultimate principle, principal character and the advantages of the present invention of the present invention have been shown and described above.The technology of the industry
, it should be appreciated that the present invention is not restricted to the described embodiments, the simply explanation described in above-described embodiment and description is originally for personnel
Invention principle, without departing from the spirit and scope of the present invention the present invention also have various changes and modifications, these change
Change and improvement both falls within scope of the claimed invention.Claimed scope by appending claims and its
Equivalent defines.
Claims (9)
1. a kind of method of the desktop widgets that establishment can customize is it is characterised in that include:
1) size of widgets file is described defined in description file;
2) self-defined view and logic realization widgets are passed through;
3) according to 1) and 2) the widgets file size that defines respectively, self-defined view, logic start desktop loading widgets;
4) widgets are loaded on desktop.
2. the method for the desktop widgets that a kind of establishment according to claim 1 can customize is it is characterised in that described 1)
The size describing widgets file defined in description file includes:
The size of description widgets file is the formal definition according to grid, defines respectively in description file and laterally takies
Grid number and the vertical grid number taking;
There is in desktop system an inventory file, can be increased some in the inventory file being defined by this system self-defining
Field;Assume that transverse grid number is defined as x, longitudinal grid number is defined as y, then defined in inventory file: x=1, y=1.
3. the self-defined widgets of a kind of desktop according to claim 1 are it is characterised in that self-defined view is passed through in described 2)
And logic realization widgets include:
A) go out the business interface of widgets needs defined in desktop system;
Business interface includes :) construct self-defined widgets;) self-defined widgets start state;) self-defined widgets are extensive
Multiple state;) self-defined widgets halted state;) self-defined widgets halted state;) self-defined widgets destruction shape
State;) return self-defined widgets view;
B) view and the logic of widgets are gone out defined in business interface;
The related function of business interface is realized according to the business interface in a);Corresponding above-mentioned business interface, realizes some corresponding industry
The concrete function of business interface;
) widgets carried out construct, initialize etc. with operation, form self-defined widgets;
) when self-defined widgets are in beginning state, through i-th) step construction after can change state, when changing state,
Carry out operation or the behavior of some acquiescences;
) when self-defined widgets enter halted state, service logic stops, and waits widgets to recover the instruction of state;
) when self-defined widgets enter halted state, recover the work before state makes widgets be in by widgets
State, when widgets are in recovery state, needs to execute the operation of some refreshings;
) when self-defined widgets are in halted state, service logic cannot be recovered, that is, self-defined widgets enter and destroy shape
State;
) when self-defined widgets are in destruction state, self-defined widgets outwards discharge resource;
) when self-defined widgets complete destruction action, self-defined widgets return the view of widgets, for system desktop weight
Newly call self-defined widgets.
4. the method for the desktop widgets that a kind of establishment according to claim 3 can customize is it is characterised in that described 3)
Start desktop loading widgets to include: have software to achieve the business interface defined in step a) in system when desktop detects
When, start desktop and load widgets;
First, the reflector of self-defined widgets and the code of reflector are predefined in desktop;
Then, reflector is loaded according to the size of self-defined widgets file, business interface;Load little when starting
The building method of assembly, desktop calls the start method of self-defined widgets when entering beginning state, enter and call certainly when recovering
Define the recovery state of widgets, enter the halted state calling widgets when suspending, when entering halted state, call widgets
Halted state, call the destruction state of widgets when entering destruction state, realize the loading of self-defined widgets, self-defined little
Assembly returns to be located at after the completion of loading and obtains widgets form on desktop.
5. the method for the desktop widgets that a kind of establishment according to claim 4 can customize is it is characterised in that described 4)
Widgets are loaded into and include on desktop: by the operation method in the interface that defined, the code in widgets is loaded
To in desktop run, when self-defining widgets are installed in system, desktop according to the good view size of predefined, put
Seated position is detecting and to install self-defined widgets.
6. the method for the desktop widgets that a kind of establishment according to claim 5 can customize is it is characterised in that described work as
4) in, desktop detects after self-defined widgets install, and desktop reads 1 from desktop system) in widgets inventory file, general
Information Store in inventory file is in the data base of desktop.
7. the method for the desktop widgets that a kind of establishment according to claim 1 can customize is it is characterised in that described table
Establishment view, recoil state and stopping modular are provided with face, are all to be realized by business interface.
8. the desktop widgets that a kind of establishment according to claim 1 can customize method it is characterised in that described from
Definition widgets are drawing widgets, are used for realizing 3d drawing, the step of concrete loading drawing widgets is:
A) size of widgets file is described defined in description file;
B) self-defined view and logic realization widgets are passed through;
C) inherit the view surfaceview of desktop system, drawn using opgles;
D) desktop loads drawing widgets on desktop.
9. the method for the desktop widgets that a kind of establishment according to claim 3 can customize is it is characterised in that described table
Plane system is Android system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610830626.4A CN106371850A (en) | 2016-09-19 | 2016-09-19 | Method for establishing customizable desktop widget |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610830626.4A CN106371850A (en) | 2016-09-19 | 2016-09-19 | Method for establishing customizable desktop widget |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106371850A true CN106371850A (en) | 2017-02-01 |
Family
ID=57896851
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610830626.4A Pending CN106371850A (en) | 2016-09-19 | 2016-09-19 | Method for establishing customizable desktop widget |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106371850A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022042162A1 (en) * | 2020-08-25 | 2022-03-03 | 华为技术有限公司 | Method and apparatus for implementing user interface |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102331934A (en) * | 2011-10-21 | 2012-01-25 | 广州市久邦数码科技有限公司 | Method for implementing desktop component based on GO desktop system |
CN103488686A (en) * | 2013-09-02 | 2014-01-01 | 用友软件股份有限公司 | Device for generating display components and method for generating display components |
CN105718259A (en) * | 2016-01-14 | 2016-06-29 | 广东亿迅科技有限公司 | Eclipse based rapid component plugging development method |
CN105718289A (en) * | 2016-01-21 | 2016-06-29 | 腾讯科技(深圳)有限公司 | Component relationship establishing method and equipment |
CN105740033A (en) * | 2016-03-15 | 2016-07-06 | 广州彩瞳网络技术有限公司 | Terminal equipment, plug-in loading and running device and plug-in loading and running method |
CN105808239A (en) * | 2016-02-29 | 2016-07-27 | 浪潮通信信息系统有限公司 | Module-based IT network management system construction method and IT network management system |
-
2016
- 2016-09-19 CN CN201610830626.4A patent/CN106371850A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102331934A (en) * | 2011-10-21 | 2012-01-25 | 广州市久邦数码科技有限公司 | Method for implementing desktop component based on GO desktop system |
CN103488686A (en) * | 2013-09-02 | 2014-01-01 | 用友软件股份有限公司 | Device for generating display components and method for generating display components |
CN105718259A (en) * | 2016-01-14 | 2016-06-29 | 广东亿迅科技有限公司 | Eclipse based rapid component plugging development method |
CN105718289A (en) * | 2016-01-21 | 2016-06-29 | 腾讯科技(深圳)有限公司 | Component relationship establishing method and equipment |
CN105808239A (en) * | 2016-02-29 | 2016-07-27 | 浪潮通信信息系统有限公司 | Module-based IT network management system construction method and IT network management system |
CN105740033A (en) * | 2016-03-15 | 2016-07-06 | 广州彩瞳网络技术有限公司 | Terminal equipment, plug-in loading and running device and plug-in loading and running method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2022042162A1 (en) * | 2020-08-25 | 2022-03-03 | 华为技术有限公司 | Method and apparatus for implementing user interface |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101222709B (en) | Fast starting method of mobile phone application program | |
CN102932413B (en) | A kind of computational resource allocation method, cloud management platform node and computational resource cluster | |
CN102663003B (en) | Page switching method and system for application of mobile terminal in environment with multiple web pages | |
CN102769937A (en) | Multi-standby terminal with android system and method for realizing multi-standby of terminal | |
CN105138339A (en) | Distributed communication midware developing method based on DDS standard | |
CN105704693A (en) | Call transfer number setting method, call transfer number setting device and terminal | |
CN103744732A (en) | Method and device for skipping system screen locking | |
CN106371850A (en) | Method for establishing customizable desktop widget | |
CN106302210A (en) | A kind of elastic expansion method, Apparatus and system | |
CN102624894B (en) | Method and system for depacketize and message analysis | |
CN103809979A (en) | Man-machine interaction software module integration system and implementing method thereof | |
CN103744911A (en) | Video file scanning method and electronic device | |
CN102073983B (en) | Method and device for optimization processing of PNG (portable network graphic) image resources | |
CN104869129A (en) | Application program management method, application program management and application program management system | |
CN101282367B (en) | Data interactive method for wireless network card and computer | |
CN104572275A (en) | Process loading method, process loading device and process loading system | |
CN102843468A (en) | Digital character string display method and mobile intelligent terminal | |
CN102130957A (en) | Mobile broadband equipment and use method thereof | |
CN101661387B (en) | Menu dynamic loading method for management system | |
CN103049253B (en) | A kind of system for cell-phone customer terminal exploitation | |
CN106530068A (en) | Value-added tax management system and method | |
CN107329804A (en) | It is a kind of automatically created according to configuration, the method for upgrading virtual machine | |
CN103455342B (en) | The method and device that a kind of theme calls | |
CN104345862A (en) | Information processing method and electronic equipment | |
CN102469118B (en) | A kind of method and device realizing information exploitation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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: 20170201 |
|
RJ01 | Rejection of invention patent application after publication |