CN106610856B - Page control setting method and device - Google Patents

Page control setting method and device Download PDF

Info

Publication number
CN106610856B
CN106610856B CN201611198698.8A CN201611198698A CN106610856B CN 106610856 B CN106610856 B CN 106610856B CN 201611198698 A CN201611198698 A CN 201611198698A CN 106610856 B CN106610856 B CN 106610856B
Authority
CN
China
Prior art keywords
setting
setting information
control
page
custom
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201611198698.8A
Other languages
Chinese (zh)
Other versions
CN106610856A (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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN201611198698.8A priority Critical patent/CN106610856B/en
Publication of CN106610856A publication Critical patent/CN106610856A/en
Application granted granted Critical
Publication of CN106610856B publication Critical patent/CN106610856B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a device for setting a page control, wherein the method comprises the following steps: in the running process of the page, receiving a setting instruction input to the page from the outside, and modifying initial setting information of a designated control in the page based on the setting instruction to obtain user-defined setting information, wherein the initial setting information comprises attribute values of all attributes of the designated control; fusing the initial setting information and the user-defined setting information to obtain corresponding fusion setting information; rendering the specified control by utilizing the fusion setting information, and realizing the user-defined setting of the specified control. According to the technical scheme, in the running process of the page, the user can input the corresponding setting instruction when the appointed control is required to be personalized, and then personalized customization of the corresponding control is realized based on the setting instruction, so that the user can realize independent setting of the page control without compiling codes, and user experience is greatly improved.

Description

Page control setting method and device
Technical Field
The invention relates to the technical field of page setting, in particular to a page control setting method and device.
Background
A control is a package of data and methods that may have its own properties and methods, where properties refer to the simple visitor of the control's data and methods refer to some simple and visible function of the control.
In the prior art, the setting of the page control is realized through the code, if a user needs to modify the setting of the page control according to own habits or preferences, a professional technician who needs to request to understand the code can realize the setting of the page control by modifying the code but cannot independently complete the setting of the page control, and the user experience is greatly reduced.
In summary, how to provide a technical scheme for enabling a user to autonomously complete setting of a page control is a problem to be urgently solved by those skilled in the art at present.
Disclosure of Invention
The invention aims to provide a method and a device for setting a page control, so that a user can autonomously complete setting of the page control.
In order to achieve the above purpose, the invention provides the following technical scheme:
a page control setting method comprises the following steps:
in the running process of a page, receiving a setting instruction input to the page from the outside, and modifying initial setting information of a designated control in the page based on the setting instruction to obtain user-defined setting information, wherein the initial setting information comprises attribute values of all attributes of the designated control;
fusing the initial setting information and the user-defined setting information to obtain corresponding fusion setting information;
and rendering the specified control by using the fusion setting information to realize the custom setting of the specified control.
Preferably, the method further comprises the following steps:
in the page design process, adding two attributes to each control included in the page, and respectively starting the attribute set by the user-defined setting for the control and the attribute of the control which supports the attribute set by the user-defined setting;
modifying the initial setting information of the designated control in the page based on the setting instruction, wherein the modifying comprises the following steps:
and judging whether the appointed control corresponding to the setting instruction is a control for starting custom setting, if so, modifying the initial setting information of the appointed control based on the setting instruction, wherein the modified initial setting information corresponds to the attribute which supports the custom setting and is contained in the appointed control.
Preferably, the method further comprises the following steps:
and if the designated control corresponding to the setting instruction is a control which does not start the custom setting, returning the failure information of the custom setting.
Preferably, the method further comprises the following steps:
and in the page operation process, receiving a display instruction input by the outside, and opening a corresponding visual management interface based on the display instruction, wherein the visual management interface comprises a control for opening custom setting and a property which supports the custom setting and is contained by the control, and the external carries out the custom setting based on the visual management interface.
Preferably, the fusing the initial setting information and the user-defined setting information to obtain corresponding fused setting information includes:
and reserving the same content in the initial setting information and the custom setting information, and reserving the corresponding content in the custom setting information for the different content in the initial setting information and the custom setting information to obtain the fusion setting information.
A page control setting apparatus comprising:
the setting module is used for receiving a setting instruction input to the page from the outside in the running process of the page, and modifying initial setting information of a designated control in the page based on the setting instruction to obtain user-defined setting information, wherein the initial setting information comprises attribute values of all attributes of the designated control;
the fusion module is used for fusing the initial setting information and the user-defined setting information to obtain corresponding fusion setting information;
and the rendering module is used for rendering the specified control by using the fusion setting information to realize the user-defined setting of the specified control.
Preferably, the method further comprises the following steps:
the related module is used for adding two attributes to each control included in the page design process, and respectively starting the attribute set by the user-defined setting for the control and the attribute supporting the attribute set by the user-defined setting for the control;
the setting module includes:
and the setting unit is used for judging whether the appointed control corresponding to the setting instruction is the control for starting the custom setting, if so, modifying the initial setting information of the appointed control based on the setting instruction, wherein the modified initial setting information corresponds to the attribute which supports the custom setting and is contained in the appointed control.
Preferably, the setting unit further includes:
and the return unit is used for returning the self-defining setting failure information if the designated control corresponding to the setting instruction is a control which does not start the self-defining setting.
Preferably, the method further comprises the following steps:
and the display module is used for receiving a display instruction input by the outside in the running process of the page, and opening a corresponding visual management interface based on the display instruction, wherein the visual management interface comprises a control for starting custom setting and an attribute which supports the custom setting and is contained by the control, and the custom setting is carried out by the outside based on the visual management interface.
Preferably, the fusion module comprises:
and the fusion unit is used for reserving the same content in the initial setting information and the user-defined setting information and reserving the corresponding content in the user-defined setting information for the different content in the initial setting information and the user-defined setting information to obtain fusion setting information.
The invention provides a method and a device for setting a page control, wherein the method comprises the following steps: in the running process of a page, receiving a setting instruction input to the page from the outside, and modifying initial setting information of a designated control in the page based on the setting instruction to obtain user-defined setting information, wherein the initial setting information comprises attribute values of all attributes of the designated control; fusing the initial setting information and the user-defined setting information to obtain corresponding fusion setting information; and rendering the specified control by using the fusion setting information to realize the custom setting of the specified control. In the technical scheme disclosed by the application, in the running process of the page, a user can input a corresponding setting instruction when the appointed control is required to be personalized, and then initial setting information of appointed control is modified based on the setting instruction to obtain self-defined setting information, and the initial setting information and the self-defined setting information are fused to obtain fusion setting information capable of representing the self-defined setting information, so that the appointed control is rendered based on the fusion setting information, and therefore the user can realize autonomous setting of the page control without compiling codes, and the user experience is greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a page control setting method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a page control setting apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart of a method for setting a page control according to an embodiment of the present invention is shown, where the method includes:
s11: in the running process of the page, a setting instruction input to the page from the outside is received, initial setting information of the specified control in the page is modified based on the setting instruction, and custom setting information is obtained, wherein the initial setting information comprises attribute values of all attributes of the specified control.
The designated control is the control of which the attribute needs to be modified by the user, and in the running process of the page, when the user needs to modify the attribute value of the attribute corresponding to any control, a setting instruction corresponding to the designated control can be input to the page, so that the attribute value of the attribute needing to be modified in the attributes contained in the initial setting information is modified into the attribute value corresponding to the setting instruction based on the setting instruction, and the user-defined setting information is obtained.
S12: and fusing the initial setting information and the user-defined setting information to obtain corresponding fusion setting information.
It should be noted that the initial setting information and the user-defined setting information may be written into metadata of a page, and then the initial setting information and the user-defined setting information are obtained from the metadata, specifically, when each page control of the page is rendered, for any page control, it may be determined whether corresponding initial setting information and user-defined setting information exist in the metadata, if yes, the two kinds of information are fused, and then the page control is rendered based on the fused setting information obtained by the fusion, and if not, the page control is rendered by directly using the initial setting information.
S13: rendering the specified control by utilizing the fusion setting information, and realizing the user-defined setting of the specified control.
Rendering the appointed control by using the fusion setting information, namely setting the attribute value of each attribute of the appointed control to the attribute value corresponding to the fusion setting information and then finishing the setting. And the personalized customization result can be seen after the interface is refreshed.
In the technical scheme disclosed by the application, in the running process of the page, a user can input a corresponding setting instruction when the appointed control is required to be personalized, and then initial setting information of appointed control is modified based on the setting instruction to obtain self-defined setting information, and the initial setting information and the self-defined setting information are fused to obtain fusion setting information capable of representing the self-defined setting information, so that the appointed control is rendered based on the fusion setting information, and therefore the user can realize autonomous setting of the page control without compiling codes, and the user experience is greatly improved.
In addition, the technical scheme provided by the embodiment of the invention can be used for setting any space supporting personalized customization of the page, and has universality.
The method for setting the page control provided by the embodiment of the invention can further comprise the following steps:
in the process of designing the page, two attributes are added to each control included in the page, and whether the custom-set attribute is started for the control and which attributes of the control support the custom-set attribute are respectively started for the control.
In the page setting process, two attributes can be added to each control, and whether the custom-set attribute is started for the control and which attributes of the control support the custom-set attribute are respectively determined, so that the user can only individually customize the custom-set attribute corresponding to the custom-set starting control.
Correspondingly, modifying the initial setting information of the designated control in the page based on the setting instruction may include:
and judging whether the appointed control corresponding to the setting instruction is the control for starting the custom setting, if so, modifying the initial setting information of the appointed control based on the setting instruction, wherein the modified initial setting information corresponds to the attribute which supports the custom setting and is contained in the appointed control.
If the designated control corresponding to the setting instruction is the control which is not started to be set by the user, the setting of the user on the control is rejected, so that the user can realize personalized customization, and meanwhile, the universal control cannot be modified, and the page has higher universality.
The method for setting the page control provided by the embodiment of the invention can further comprise the following steps:
and if the designated control corresponding to the setting instruction is the control which does not start the custom setting, returning the failure information of the custom setting.
Therefore, the user can know the personalized customization state, and the customized setting failure information can comprise information that the designated control corresponding to the setting instruction is the control which is not opened by the user, so that the user can realize corresponding operation aiming at the information.
The method for setting the page control provided by the embodiment of the invention can further comprise the following steps:
in the page operation process, a display instruction input from the outside is received, a corresponding visual management interface is opened based on the display instruction, and the visual management interface comprises a control for opening custom setting and a property which supports the custom setting and is contained in the control, so that the outside can perform the custom setting based on the visual management interface.
The page can be provided with a general entry, such as an icon, a user can input a display instruction by clicking the general entry, and then a visual management interface is opened, and the visual management interface can comprise all spaces with user-defined settings, so that the user can simultaneously realize personalized customization on a plurality of controls according to needs.
The page control setting method provided by the embodiment of the invention fuses the initial setting information and the user-defined setting information to obtain corresponding fusion setting information, and can include the following steps:
and reserving the same content in the initial setting information and the custom setting information, and reserving the corresponding content in the custom setting information for different contents in the initial setting information and the custom setting information to obtain the fusion setting information.
Certainly, the fusion of the initial setting information and the custom setting information may also be achieved by directly ignoring the initial setting information and using the custom setting information as the fusion setting information, which is within the protection scope of the present invention.
An embodiment of the present invention further provides a page control setting apparatus, as shown in fig. 2, which may include:
the setting module 11 is configured to receive a setting instruction input to a page from the outside during a page operation process, and modify initial setting information of a designated control in the page based on the setting instruction to obtain user-defined setting information, where the initial setting information includes attribute values of various attributes of the designated control;
the fusion module 12 is configured to fuse the initial setting information and the custom setting information to obtain corresponding fusion setting information;
and the rendering module 13 is configured to render the specified control by using the fusion setting information, so as to implement the user-defined setting of the specified control.
The page control setting device provided by the embodiment of the invention can further comprise:
the system comprises a relating module, a setting module and a setting module, wherein the relating module is used for adding two attributes to each control included in a page in the page design process, and respectively starting the attribute set by user definition for the control and the attribute supporting the attribute set by user definition for the control;
the setting module may include:
and the setting unit is used for judging whether the appointed control corresponding to the setting instruction is the control for starting the custom setting, if so, modifying the initial setting information of the appointed control based on the setting instruction, wherein the modified initial setting information corresponds to the attribute which supports the custom setting and is contained in the appointed control.
In the page control setting apparatus provided in the embodiment of the present invention, the setting unit may further include:
and the returning unit is used for returning the self-defining setting failure information if the designated control corresponding to the setting instruction is a control which does not start the self-defining setting.
The page control setting device provided by the embodiment of the invention can further comprise:
and the display module is used for receiving a display instruction input from the outside in the page running process, and opening a corresponding visual management interface based on the display instruction, wherein the visual management interface comprises a control for opening the custom setting and a property which supports the custom setting and is contained by the control, and the external custom setting is carried out based on the visual management interface.
In an apparatus for setting a page control provided in an embodiment of the present invention, a fusion module may include:
and the fusion unit is used for reserving the same content in the initial setting information and the user-defined setting information and reserving the corresponding content in the user-defined setting information for different contents in the initial setting information and the user-defined setting information to obtain the fusion setting information.
For a description of a relevant part in the page control setting apparatus provided in the embodiment of the present invention, reference is made to detailed descriptions of a corresponding part in the page control setting method provided in the embodiment of the present invention, and details are not repeated herein.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (6)

1. A page control setting method is characterized by comprising the following steps:
in the running process of a page, receiving a setting instruction input to the page from the outside, modifying initial setting information of a designated control in the page based on the setting instruction to obtain custom setting information, and writing the custom setting information into metadata, wherein the initial setting information exists in the metadata and comprises attribute values of various attributes of the designated control;
determining whether the metadata has initial setting information and user-defined setting information corresponding to the designated control, and if so, fusing the initial setting information and the user-defined setting information to obtain corresponding fusion setting information;
rendering the specified control by using the fusion setting information to realize the user-defined setting of the specified control;
the method further comprises the following steps:
in the page design process, adding two attributes to each control included in the page, and respectively starting the attribute set by the user-defined setting for the control and the attribute of the control which supports the attribute set by the user-defined setting;
modifying the initial setting information of the designated control in the page based on the setting instruction, wherein the modifying comprises the following steps:
judging whether the designated control corresponding to the setting instruction is a control for starting custom setting, if so, modifying the initial setting information of the designated control based on the setting instruction, wherein the modified initial setting information corresponds to the attribute which supports the custom setting and is contained in the designated control; if not, refusing to modify the initial setting information of the specified control based on the setting instruction;
the method further comprises the following steps:
and in the page operation process, receiving a display instruction input by the outside, and opening a corresponding visual management interface based on the display instruction, wherein the visual management interface comprises a control for opening custom setting and a property which supports the custom setting and is contained by the control, and the external carries out the custom setting based on the visual management interface.
2. The method of claim 1, further comprising:
and if the designated control corresponding to the setting instruction is a control which does not start the custom setting, returning the failure information of the custom setting.
3. The method of claim 1, wherein fusing the initial setting information with the custom setting information to obtain corresponding fused setting information comprises:
and reserving the same content in the initial setting information and the custom setting information, and reserving the corresponding content in the custom setting information for the different content in the initial setting information and the custom setting information to obtain the fusion setting information.
4. A page control setting apparatus, comprising:
the setting module is used for receiving a setting instruction input to the page from the outside in the running process of the page, modifying initial setting information of a designated control in the page based on the setting instruction to obtain custom setting information, and writing the custom setting information into metadata, wherein the initial setting information exists in the metadata and comprises attribute values of all attributes of the designated control;
the fusion module is used for determining whether the metadata has initial setting information and custom setting information corresponding to the specified control, and if so, fusing the initial setting information and the custom setting information to obtain corresponding fusion setting information;
the rendering module is used for rendering the specified control by using the fusion setting information to realize the user-defined setting of the specified control;
the device further comprises:
the related module is used for adding two attributes to each control included in the page design process, and respectively starting the attribute set by the user-defined setting for the control and the attribute supporting the attribute set by the user-defined setting for the control;
the setting module includes:
the setting unit is used for judging whether the designated control corresponding to the setting instruction is a control for starting the custom setting, if so, the initial setting information of the designated control is modified based on the setting instruction, and the modified initial setting information corresponds to the attribute which supports the custom setting and is contained in the designated control; if not, refusing to modify the initial setting information of the specified control based on the setting instruction;
and the display module is used for receiving a display instruction input by the outside in the running process of the page, and opening a corresponding visual management interface based on the display instruction, wherein the visual management interface comprises a control for starting custom setting and an attribute which supports the custom setting and is contained by the control, and the custom setting is carried out by the outside based on the visual management interface.
5. The apparatus according to claim 4, wherein the setting unit further comprises:
and the return unit is used for returning the self-defining setting failure information if the designated control corresponding to the setting instruction is a control which does not start the self-defining setting.
6. The apparatus of claim 4, wherein the fusion module comprises:
and the fusion unit is used for reserving the same content in the initial setting information and the user-defined setting information and reserving the corresponding content in the user-defined setting information for the different content in the initial setting information and the user-defined setting information to obtain fusion setting information.
CN201611198698.8A 2016-12-22 2016-12-22 Page control setting method and device Active CN106610856B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611198698.8A CN106610856B (en) 2016-12-22 2016-12-22 Page control setting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611198698.8A CN106610856B (en) 2016-12-22 2016-12-22 Page control setting method and device

Publications (2)

Publication Number Publication Date
CN106610856A CN106610856A (en) 2017-05-03
CN106610856B true CN106610856B (en) 2020-05-15

Family

ID=58636681

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611198698.8A Active CN106610856B (en) 2016-12-22 2016-12-22 Page control setting method and device

Country Status (1)

Country Link
CN (1) CN106610856B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109783176B (en) * 2019-01-17 2022-02-22 广州酷狗计算机科技有限公司 Page switching method and device
CN111399836B (en) * 2020-03-24 2023-09-26 网易(杭州)网络有限公司 Method and device for modifying page attribute
CN114035716A (en) * 2021-11-11 2022-02-11 北京字跳网络技术有限公司 Display control method, display control device, electronic equipment and storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101456506B1 (en) * 2012-08-06 2014-10-31 인크로스 주식회사 An authoring tool for web applications and the authoring method thereof
CN103955366B (en) * 2014-04-18 2017-04-19 南威软件股份有限公司 Producing method of visualized website template
CN105468377A (en) * 2015-12-10 2016-04-06 北京中科汇联科技股份有限公司 Method and system for generating page of mobile terminal
CN106202016A (en) * 2016-07-06 2016-12-07 浪潮软件集团有限公司 Bootstrap-based user-defined form system

Also Published As

Publication number Publication date
CN106610856A (en) 2017-05-03

Similar Documents

Publication Publication Date Title
CN105635063B (en) Internet of Things communication protocol configuration method and device
EP2570917B1 (en) Method and device for adding menu items in android menu
CN109933322B (en) Page editing method and device and computer readable storage medium
EP2775416A2 (en) Apparatus and method for configuring password and for releasing lock
US20170083495A1 (en) Method for Modifying Webpage and Apparatus for Modifying Webpage
EP3413602B1 (en) Application processing method and apparatus for embedded universal integrated circuit card
CN106610856B (en) Page control setting method and device
US20210019106A1 (en) Desktop Sharing Method and Mobile Terminal
US11113019B2 (en) Multi-device selective integration system
CN109145034B (en) Resource presentation method and device and computer terminal
US20140047368A1 (en) Application development tool
WO2016011879A1 (en) Web page display method and apparatus
WO2016197461A1 (en) Application software permission recommendation method, apparatus and system, and storage medium
KR102018931B1 (en) Contextual solicitation in a starter application
CN111367518A (en) Page layout method and device, computing equipment and computer storage medium
CN106815037B (en) Application function execution method and device
CN108874808A (en) A kind of page elements interlock method, device and server
CN106445479B (en) Information-pushing method and device
EP3153966A1 (en) Graphical user interface editors
WO2016138703A1 (en) Standby interface processing method, device and computer storage medium
CN113342420B (en) Firmware configuration method, device, equipment and storage medium
CN104461615A (en) Skin resource processing method and electronic equipment
KR101660248B1 (en) Smart card processing multi subscribers' information, electronic device using thereof, and method for managing multi subscribers in the electronic device
CN104102736A (en) Personalized web page display method and personalized web page display device
WO2018083679A1 (en) System and method for providing personalized solutions using bots

Legal Events

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