CN104391703B - It is rapidly completed the apparatus and method of page layout - Google Patents
It is rapidly completed the apparatus and method of page layout Download PDFInfo
- Publication number
- CN104391703B CN104391703B CN201410671608.7A CN201410671608A CN104391703B CN 104391703 B CN104391703 B CN 104391703B CN 201410671608 A CN201410671608 A CN 201410671608A CN 104391703 B CN104391703 B CN 104391703B
- Authority
- CN
- China
- Prior art keywords
- control
- layout
- page
- parent
- controls
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Document Processing Apparatus (AREA)
Abstract
The invention provides a kind of device for being rapidly completed page layout, including:Control acquiring unit, for carrying out before interface layout, control needed for obtaining;Layout types judging unit, for judge obtain control in, whether the control positioned at current page associated with other controls, in other words positioned at current page control other controls where;Control layout unit, for based on layout types judging unit to current control whether the judged result associated with other controls, current page is laid out.Present invention also offers a kind of method for being rapidly completed page layout.By technical scheme, on the basis of existing page layout completion mode single object type can be made full use of to complete the page layout of many object types, set up general, the uniform service thinking of the page layout that many object types are participated in.
Description
Technical field
The present invention relates to field of computer technology, in particular it relates to a kind of device and one kind for being rapidly completed page layout
It is rapidly completed the method for page layout.
Background technology
The layout type of all pages is using FormLayout layouts, if we are needed to a certain control entirely in Kettle
Part is laid out, and traditional layout type needs to define FormData, and then carrying out initialization to its each attribute could be laid out, such as
Really we are to more than ten of control layout, and whole program can seem very long, and the process write is lost time very much, and one is seen
The developer a whole morning even darg time can be but consumed like simple interface, the most important is so write
Program is highly detrimental to later maintenance.
Accordingly, it would be desirable to it is a kind of it is new be rapidly completed page layout technology, mode base can be completed in existing page layout
On plinth, make full use of single object type to complete the page layout of many object types, set up the page layout that many object types are participated in
General, uniform service thinking.
The content of the invention
The present invention is based on above mentioned problem, it is proposed that it is a kind of it is new be rapidly completed page layout technology, can be existing
Page layout completion mode on the basis of, make full use of single object type to complete the page layout of many object types, set up multipair
As general, the uniform service thinking of the page layout that type is participated in.
In view of this, the present invention proposes a kind of device for being rapidly completed page layout, including:Control acquiring unit, is used
In carrying out before interface layout, required control is obtained;In layout types judging unit, the control for judging acquisition, positioned at current
Whether the control of the page associated with other controls, in other words positioned at current page control other controls where;
Control layout unit, for based on the layout types judging unit judgement knot whether associated with other controls to current control
Really, current page is laid out.In the technical scheme, can by complicated FormLayout topological simplicities and easily the later stage enter
Row is safeguarded, is that interface basis has been accomplished fluently in the upgrading of later AEDI Designer versions so that interface layout becomes simple, conveniently,
And it is easy to developer's later maintenance.
In the above-mentioned technical solutions, it is preferable that the control layout unit, specifically include:The parent at interface is called to carry out
The module of page layout, for when layout types judging unit judged result for current control get along well other controls be associated
When, current page is laid out by way of calling interface parent;The module that control carries out page layout is added, for working as
When the judged result of layout types judging unit is that current control is associated with other controls, to working as by way of adding control
The preceding page is laid out.In the technical scheme, traditional layout type can be divided into two kinds, both placement schemes are simple
It is convenient, it is not error-prone.
In the above-mentioned technical solutions, it is preferable that the module for calling the parent at interface to carry out page layout, further wrap
Include:Parent submodule is called, the nodal method of the parent for calling interface;Control layout submodule, for utilizing interface
The nodal method of parent, is laid out to control.In the technical scheme, it can be directed to not related with other control locations
Control is directly laid out with setPosition ().
In the above-mentioned technical solutions, it is preferable that the parent at the interface for calling parent submodule to call, further wrap
Include:Job step node parent is that JobEntryDialog, switch process node parent are BaseStepDialog.
In the above-mentioned technical solutions, it is preferable that the addition control carries out the module of page layout, further comprises:Wound
Object submodule is built, for when the judged result of layout types judging unit is associated with other controls for current control, creating
Build an AEDIForm objects form;Control submodule is added, for being the form created member variable according to preset order
AEDIFormItem adds control;Unified layout submodule, for after addition control terminates, calling form layoutForm
() method, which is that control is unified, to be laid out., can be for needing to use table with the related control of other controls in the technical scheme
Single class AEDIForm, which is added, specifies list of controls, is finally laid out.
According to a further aspect of the invention, it is also proposed that a kind of method for being rapidly completed page layout, including:Step
202:Carry out before interface layout, control needed for obtaining;Step 204:In the control for judging acquisition, the control positioned at current page is
It is no associated with other controls, in other words positioned at current page control other controls where;Step 206:It is based on
Step 204 to current control whether the judged result associated with other controls, current page is laid out.In the technical side
In case, can by complicated FormLayout topological simplicities and easily the later stage safeguarded, be later AEDI Designer versions
Interface basis has been accomplished fluently in upgrading so that interface layout becomes simple, conveniently, and is easy to developer's later maintenance.
In the above-mentioned technical solutions, it is preferable that the step 206, specifically include:Step 302:When layout types judge single
The judged result of member for current control get along well other controls it is associated when, current page is entered by way of calling interface parent
Row layout;Step 402:When the judged result of layout types judging unit is associated with other controls for current control, pass through
The mode of addition control is laid out to current page.In the technical scheme, traditional layout type can be divided into two kinds,
Both placement schemes are simple and convenient, not error-prone.
In the above-mentioned technical solutions, it is preferable that the step 302, further comprise:Step 502:Call the parent at interface
Nodal method;Step 504:Using the nodal method of the parent at interface, control is laid out., can in the technical scheme
With for being directly laid out with the not related control of other control locations with setPosition ().
In the above-mentioned technical solutions, it is preferable that the parent at the interface that the step 502 is called, further include:Operation
Step node parent is that JobEntryDialog, switch process node parent are BaseStepDialog.
In the above-mentioned technical solutions, it is preferable that the step 402, further comprise:Step 602:When layout types judge
When the judged result of unit is that current control is associated with other controls, an AEDIForm objects form is created;Step 604:Root
The member variable AEDIFormItem of form according to preset order to create adds control;Step 606:When addition control terminates
Afterwards, form layoutForm () method is called to be laid out for control is unified.In the technical scheme, it can be directed to and other controls
The related control of part needs to use list class AEDIForm to add and specifies list of controls, is finally laid out.
By above technical scheme, single object class can be made full use of on the basis of existing page layout completion mode
Type completes the page layout of many object types, sets up general, the uniform service thinking of the page layout that many object types are participated in.
Brief description of the drawings
Fig. 1 shows the block diagram for the device for being rapidly completed page layout according to an embodiment of the invention;
Fig. 2 shows the flow chart for the method for being rapidly completed page layout according to an embodiment of the invention;
Fig. 3 shows that the principle for the module for calling the parent at interface to carry out page layout according to an embodiment of the invention is shown
It is intended to;
Fig. 4 shows the principle schematic of the module of addition control progress page layout according to an embodiment of the invention;
Fig. 5 shows the flow chart of traditional FormLayout layouts;
Fig. 6 shows interface layout according to an embodiment of the invention(I.e. improved interface layout)Flow chart.
Embodiment
It is below in conjunction with the accompanying drawings and specific real in order to be more clearly understood that the above objects, features and advantages of the present invention
Mode is applied the present invention is further described in detail.It should be noted that in the case where not conflicting, the implementation of the application
Feature in example and embodiment can be mutually combined.
Many details are elaborated in the following description to facilitate a thorough understanding of the present invention, still, the present invention may be used also
Implemented with being different from other modes described here using other, therefore, protection scope of the present invention is not by described below
Specific embodiment limitation.
Fig. 1 shows the block diagram for the device for being rapidly completed page layout according to an embodiment of the invention.
As shown in figure 1, the device 100 of page layout is rapidly completed according to an embodiment of the invention, including:Control is obtained
Unit 102, for carrying out before interface layout, control needed for obtaining;Layout types judging unit 104, for the control for judging to obtain
In part, whether the control positioned at current page is associated with other controls, and the control positioned at current page is controlled at other in other words
Where is part;Control layout unit 106, for based on layout types judging unit to current control whether with other controls
Associated judged result, is laid out to current page.In the technical scheme, complicated FormLayout can be laid out letter
Change and the easy later stage is safeguarded, be that interface basis has been accomplished fluently in the upgrading of later AEDI Designer versions so that interface layout
Become simple, conveniently, and be easy to developer's later maintenance.
In the above-mentioned technical solutions, it is preferable that control layout unit 106, specifically include:The parent at interface is called to carry out page
Face layout module 1062, for when layout types judging unit judged result for current control get along well other controls be associated
When, current page is laid out by way of calling interface parent;The module 1064 that control carries out page layout is added, is used
In when the judged result of layout types judging unit is associated with other controls for current control, by way of adding control
Current page is laid out.In the technical scheme, traditional layout type can be divided into two kinds, both placement schemes
It is simple and convenient, it is not error-prone.
In the above-mentioned technical solutions, it is preferable that call the parent at interface to carry out the module 1062 of page layout, further bag
Include:Parent submodule 10622 is called, the nodal method of the parent for calling interface;Control layout submodule 10624, is used for
Using the nodal method of the parent at interface, control is laid out.In the technical scheme, it can be directed to and other control locations
Not related control is directly laid out with setPosition ().
In the above-mentioned technical solutions, it is preferable that call the parent at the interface that parent submodule 10622 calls, further
Including:Job step node parent is that JobEntryDialog, switch process node parent are BaseStepDialog.
In the above-mentioned technical solutions, it is preferable that addition control carries out the module 1064 of page layout, further comprises:Wound
Object submodule 10642 is built, it is associated with other controls for current control for the judged result when layout types judging unit
When, create an AEDIForm objects form;Control submodule 10644 is added, for being the form's of establishment according to preset order
Member variable AEDIFormItem adds control;Unified layout submodule 10646, for after addition control terminates, calling
Form layoutForm () method, which is that control is unified, to be laid out., can be for having relation with other controls in the technical scheme
Control need to use list class AEDIForm add specify list of controls, be finally laid out.
Fig. 2 shows the flow chart for the method for being rapidly completed page layout according to an embodiment of the invention.
As shown in Fig. 2 the method for page layout is rapidly completed according to an embodiment of the invention, including:Step 202:Enter
Before row interface layout, control needed for obtaining;Step 204:Judge obtain control in, positioned at current page control whether with its
His control is associated, in other words positioned at current page control other controls where;Step 206:Based on step 204
To current control whether the judged result associated with other controls, current page is laid out., can in the technical scheme
It is that the upgrading of later AEDI Designer versions is beaten so that by complicated FormLayout topological simplicities, simultaneously easily the later stage is safeguarded
Interface basis is got well so that interface layout becomes simple, conveniently, and is easy to developer's later maintenance.
In the above-mentioned technical solutions, it is preferable that step 206, specifically include:Step 302:When layout types judging unit
Judged result be current control get along well other controls it is associated when, cloth is carried out to current page by way of calling interface parent
Office;Step 402:When the judged result of layout types judging unit is associated with other controls for current control, pass through addition
The mode of control is laid out to current page.In the technical scheme, traditional layout type can be divided into two kinds, this two
Plant placement scheme simple and convenient, it is not error-prone.
In the above-mentioned technical solutions, it is preferable that as shown in figure 3, step 302, further comprises:Step 502:Call interface
Parent nodal method;Step 504:Using the nodal method of the parent at interface, control is laid out.In the technical scheme
In, it can be directed to and be directly laid out with the not related control of other control locations with setPosition ().
In the above-mentioned technical solutions, it is preferable that the parent at the interface that step 502 is called, further include:Job step
Node parent is that JobEntryDialog, switch process node parent are BaseStepDialog.
In the above-mentioned technical solutions, it is preferable that as shown in figure 4, step 402, further comprises:Step 602:When layout class
When the judged result of type judging unit is that current control is associated with other controls, an AEDIForm objects form is created;Step
604:The member variable AEDIFormItem of form according to preset order to create adds control;Step 606:When addition control
After end, form layoutForm () method is called to be laid out for control is unified.In the technical scheme, it can be directed to and it
The related control of his control needs to use list class AEDIForm to add and specifies list of controls, is finally laid out.
Technical scheme, can be used for SWT(It is a kind of interface instrument class)In page layout, for
The characteristics of layout type at all interfaces of Kettle is similar, extracts a cloth station interface and method, for being laid out, simple and convenient,
Easily safeguard.
Technical scheme, the general character for exactly extracting interface structure sets up list class(AEDIForm), or making
Industry parent(Such as JobEntryDialog), conversion parent(Such as BaseStepDialog)Middle addition general character method【Such as
setPosition()】, traditional layout type is divided into two kinds:1. it is directed to and the not related control of other control locations
Directly use general character method【Such as setPosition ()】Layout;2. for needing to make with the related control of other controls
Use list class(AEDIForm)Add and specify list of controls, be finally laid out.Both placement schemes are simple and convenient, not error-prone.
Technical scheme, can solve the problem that how to simplify traditional FormLayout layout type, that is, can solve the problem that
How traditional SWT layout type is simplified, referring to Fig. 5.For the main technical problem to be solved in the present invention, solution is proposed
Flow chart it is as shown in Figure 6.
Technical scheme, complicated FormLayout is laid out(Such as SWT layouts)Simplify and easily the later stage is tieed up
Shield, is that interface basis has been accomplished fluently in the upgrading of later AEDI Designer versions.It can be observed first when interface layout is carried out
Whether some controls associated with other controls, that is to say, that other controls where, if the control gets along well other
Control is associated, and now developer just can call the parent at interface(As job step node parent is
JobEntryDialog, switch process node parent are BaseStepDialog)General character method【Such as setPosition ()】
Control is laid out;If the control is associated with other controls, now developer can be united using list class for control
One layout, for example:Developer can create an AEDIForm object form, then according to the member that certain order is form
Variables A EDIFormItem adds control, and after addition control terminates, it is that control is united to call form layoutForm () method
One layout.
Technical scheme, through in AEDI Designer(It is a product that version is sent out by UAP AE departments of UFSOFT)Production
Tested in product and experimental verification, it is known that:Improved quick interface arrangement method layout becomes simple, conveniently, and even more important one
Point is that code is concise, is easy to developer's later maintenance.
Technical scheme is described in detail above in association with accompanying drawing, it is contemplated that there is no simplicity, system in correlation technique
One solution completed for complicated type page layout.Existing page layout, which completes mode, can not complete complex class
The page layout complete process that type is participated in.Therefore, to propose a kind of device and one kind for being rapidly completed page layout fast by the present invention
The method that speed completes page layout, can make full use of single object type complete on the basis of existing page layout completion mode
Into the page layout of many object types, general, the uniform service thinking for the page layout that many object types are participated in are set up.
The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies
Change, equivalent substitution, improvement etc., should be included in the scope of the protection.
Claims (8)
1. a kind of device for being rapidly completed page layout, it is characterised in that including:
Control acquiring unit, for carrying out before interface layout, control needed for obtaining;
Layout types judging unit, for judge obtain control in, positioned at current page control whether with other control phases
Association, in other words positioned at current page control other controls where;
Control layout unit, for based on layout types judging unit to current control whether the judgement associated with other controls
As a result, current page is laid out, the control layout unit is specifically included:
Call the parent at interface to carry out the module of page layout, be current control for the judged result when layout types judging unit
Part get along well other controls it is associated when, current page is laid out by way of calling interface parent;
The module that control carries out page layout is added, is current control and its for the judged result when layout types judging unit
When his control is associated, current page is laid out by way of adding control.
2. the device according to claim 1 for being rapidly completed page layout, it is characterised in that the parent for calling interface
The module of page layout is carried out, is further comprised:
Parent submodule is called, the nodal method of the parent for calling interface;
Control layout submodule, for the nodal method of the parent using interface, is laid out to control.
3. the device according to claim 2 for being rapidly completed page layout, it is characterised in that described to call parent submodule
The parent at the interface called, further includes:Job step node parent is JobEntryDialog, switch process node father
Class is BaseStepDialog.
4. the device for being rapidly completed page layout according to any one of claim 1-3, it is characterised in that the addition
Control carries out the module of page layout, further comprises:
Object submodule is created, it is associated with other controls for current control for the judged result when layout types judging unit
When, create an AEDIForm objects form;
Control submodule is added, the member variable AEDIFormItem of the form for being created according to preset order, which is added, to be controlled
Part;
Unified layout submodule, for after addition control terminates, it to be that control is unified to call form layoutForm () method
Layout.
5. a kind of method for being rapidly completed page layout, it is characterised in that including:
Step 202:Carry out before interface layout, control needed for obtaining;
Step 204:In the control for judging acquisition, whether the control positioned at current page is associated with other controls, in other words position
In current page control other controls where;
Step 206:Based on step 204 to current control whether the judged result associated with other controls, current page is entered
Row layout, the step 206 is specifically included:
Step 302:When layout types judging unit judged result for current control get along well other controls it is associated when, pass through and adjust
Current page is laid out with the mode of interface parent;
Step 402:When the judged result of layout types judging unit is associated with other controls for current control, pass through addition
The mode of control is laid out to current page.
6. the method according to claim 5 for being rapidly completed page layout, it is characterised in that the step 302, further
Including:
Step 502:Call the nodal method of the parent at interface;
Step 504:Using the nodal method of the parent at interface, control is laid out.
7. the method according to claim 6 for being rapidly completed page layout, it is characterised in that what the step 502 was called
The parent at interface, further includes:Job step node parent is that JobEntryDialog, switch process node parent are
BaseStepDialog。
8. the method for being rapidly completed page layout according to any one of claim 5-7, it is characterised in that the step
402, further comprise:
Step 602:When the judged result of layout types judging unit is associated with other controls for current control, one is created
AEDIForm objects form;
Step 604:The member variable AEDIFormItem of form according to preset order to create adds control;
Step 606:After addition control terminates, form layoutForm () method is called to be laid out for control is unified.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410671608.7A CN104391703B (en) | 2014-11-21 | 2014-11-21 | It is rapidly completed the apparatus and method of page layout |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410671608.7A CN104391703B (en) | 2014-11-21 | 2014-11-21 | It is rapidly completed the apparatus and method of page layout |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104391703A CN104391703A (en) | 2015-03-04 |
CN104391703B true CN104391703B (en) | 2017-11-07 |
Family
ID=52609611
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410671608.7A Active CN104391703B (en) | 2014-11-21 | 2014-11-21 | It is rapidly completed the apparatus and method of page layout |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104391703B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106708484B (en) * | 2015-11-13 | 2020-08-25 | 菜鸟智能物流控股有限公司 | Method and device for establishing page |
CN105487858B (en) * | 2015-11-25 | 2019-04-02 | 深圳联友科技有限公司 | A kind of online form design system based on HTML5 |
CN105760155A (en) * | 2016-01-28 | 2016-07-13 | 浪潮通用软件有限公司 | Method and device for web interface layout |
CN106406683B (en) * | 2016-11-30 | 2019-08-02 | 武汉斗鱼网络科技有限公司 | Response method and device are clicked in a kind of setting of radio button |
CN109324796B (en) * | 2018-08-01 | 2022-09-09 | 浙江口碑网络技术有限公司 | Interface layout method and device |
CN111258575B (en) * | 2018-11-30 | 2023-09-15 | 阿里健康信息技术有限公司 | Page layout processing method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101382887A (en) * | 2008-09-19 | 2009-03-11 | 金蝶软件(中国)有限公司 | Method and apparatus for regulating interface layout |
CN103176797A (en) * | 2013-02-21 | 2013-06-26 | 用友软件股份有限公司 | Interface layout device and interface layout method |
CN103597436A (en) * | 2011-06-06 | 2014-02-19 | 微软公司 | Dynamically controlling collisions of form controls in an electronic document |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9672050B2 (en) * | 2011-10-18 | 2017-06-06 | Blackberry Limited | Method of distributed layout negotiation in a user interface framework |
-
2014
- 2014-11-21 CN CN201410671608.7A patent/CN104391703B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101382887A (en) * | 2008-09-19 | 2009-03-11 | 金蝶软件(中国)有限公司 | Method and apparatus for regulating interface layout |
CN103597436A (en) * | 2011-06-06 | 2014-02-19 | 微软公司 | Dynamically controlling collisions of form controls in an electronic document |
CN103176797A (en) * | 2013-02-21 | 2013-06-26 | 用友软件股份有限公司 | Interface layout device and interface layout method |
Also Published As
Publication number | Publication date |
---|---|
CN104391703A (en) | 2015-03-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104391703B (en) | It is rapidly completed the apparatus and method of page layout | |
KR102131159B1 (en) | Methods and devices for controlling smart devices and computer storage media | |
CN103246578B (en) | Application software carries out the method for collapse processing and carries out the browser of collapse processing | |
MY195275A (en) | Application Interface Management Method and Apparatus | |
CN104158836A (en) | Method for rendering mobile application interface through data | |
CN104035783A (en) | Platform integrating method and platform integrating system matched with third party web page in application program | |
CN107122175B (en) | Interface creating method and device | |
CN106990950A (en) | The method and apparatus of interface layout | |
CN103543993A (en) | Application program building method and system | |
CN104572089B (en) | The method and apparatus for generating Android installation kit | |
CN103425466B (en) | Color matching processing method and color matching processing device | |
CN111679827A (en) | H5 page generation method, device, equipment and storage medium | |
CN104951311B (en) | A kind of page animation method and device | |
CN105025254B (en) | A kind of multi-platform monitoring terminal system development approach | |
CN105701289A (en) | Integrated solution method for full-automatic harness processing device | |
US20170346702A1 (en) | Computer implemented method for displaying a user interface | |
CN104317988A (en) | Method, equipment and system of automatically generating looped network graph based on GIS (geographic information system) distributing graph | |
CN109191078A (en) | A kind of traffic flow modeling method, device and equipment | |
CN104461548B (en) | The adding method and device of code snippet | |
CN107562445A (en) | Methods, devices and systems for dynamically more new user interface | |
CN110161944A (en) | A kind of programmed method of PLC programming software | |
CN104572280B (en) | A kind of Android applications method for switching theme | |
CN104063227B (en) | A kind of instruction learning method based on Internet of Things | |
CN104580298B (en) | File upload process method and device | |
JP2021056997A (en) | System, device, method, and program for processing information |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 100094 Beijing city Haidian District North Road No. 68, UFIDA Software Park Applicant after: Yonyou Network Technology Co., Ltd. Address before: 100094 Beijing city Haidian District North Road No. 68, UFIDA Software Park Applicant before: UFIDA Software Co., Ltd. |
|
COR | Change of bibliographic data | ||
GR01 | Patent grant | ||
GR01 | Patent grant |