CN111459482A - Interface customization control method, system and software - Google Patents

Interface customization control method, system and software Download PDF

Info

Publication number
CN111459482A
CN111459482A CN202010230368.2A CN202010230368A CN111459482A CN 111459482 A CN111459482 A CN 111459482A CN 202010230368 A CN202010230368 A CN 202010230368A CN 111459482 A CN111459482 A CN 111459482A
Authority
CN
China
Prior art keywords
rule
control
interface
control rule
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010230368.2A
Other languages
Chinese (zh)
Inventor
陈圣杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Inspur Genersoft Information Technology Co Ltd
Original Assignee
Shandong Inspur Genersoft Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Inspur Genersoft Information Technology Co Ltd filed Critical Shandong Inspur Genersoft Information Technology Co Ltd
Priority to CN202010230368.2A priority Critical patent/CN111459482A/en
Publication of CN111459482A publication Critical patent/CN111459482A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The invention discloses an interface control method, a system and software, and the method comprises the following steps: s1, establishing a control rule group aiming at the interface element; s2, calculating the rule value of the control rule group of the interface element; and S3, applying the control rule set to control the interface elements. The invention also provides an interface customization control system, which comprises a control rule definition module, a control rule calculation engine and a control rule API. The invention also provides software comprising the interface customization control system. The invention achieves the purpose of limiting the software customization range according to certain requirements by defining the control rule for the interface element of the software interface and calculating the final control rule table through the method, and solves the problems that the flexible interface customization capability is hoped to be provided for the software product, the customized content is hoped to be highly controlled, and the consistency of the standard product and the customized product is ensured.

Description

Interface customization control method, system and software
Technical Field
The invention relates to the technical field of computers, in particular to an interface control method, system and software.
Background
During the development of the software product, the customer can put personalized customization demands on the software product. Software products are often customized to meet customer requirements, including adding entry fields, adjusting interface layout, personalizing interface display text, and the like. After the client accesses the software product, the product can continue to be iteratively developed and continuously upgraded, and the situation of conflict with customized content of the client can occur after the product is upgraded. To avoid conflicts with software upgrades, software vendors want the customization of content to be done within a controlled range.
Disclosure of Invention
The invention aims to overcome the defects, provides an interface customization control method which is suitable for expanding a customization development UI interface and is used for software customization development in a controlled range, and correspondingly provides an interface customization control system and software comprising the interface customization control system.
The technical scheme adopted by the invention is as follows:
an interface customization control method comprises the following steps:
s1, establishing a control rule group aiming at the interface element;
s2, calculating the rule value of the control rule group of the interface element;
and S3, applying the control rule set to control the interface elements.
As a further optimization, in step S1 of the present invention, the set of control rules includes control rules that act on the interface element object and control rules that act on the attributes of the interface element object, where:
the control rules acting on the interface element object include whether customization is allowed, whether addition of a child element is allowed, the type of child element allowed to be added, whether deletion of a child element is allowed, and the type of child element allowed to be deleted;
the control rules that act on the properties of the interface element object include whether the properties allow modification.
Specifically, the parameters of the control rule include an action range, a rule value and a rule content, wherein the action range of the control rule is a specified element type and a specified element identifier.
Specifically, the interface elements are in a tree-shaped hierarchical structure, and the value of one control rule of the interface elements is determined by superposing the value of the control rule and the value of the corresponding control rule of the superior element.
As a further optimization, when the rule value of one of the control rules of the interface element of the present invention is default, the rule value inherits the rule value of the corresponding control rule of the superior interface element.
As a further optimization, the superposition process of the control rule values of the interface elements follows weight control, the control rule value with large weight covers the control rule value with small weight, the weight depends on the source of the control rule, and the weight comprises a forcing rule, a rule for specifying an implementation object identifier, a rule for specifying an implementation object type and a rule obtained by inheritance in sequence.
As a further optimization, in step S2 of the present invention, the step of calculating the rule value of the control rule set of the interface element includes the following steps:
s21, initializing the rule value of the control rule group, and if the rule value of the Boolean type is negative, the rule value of the array type is a null array;
s22, assigning a control rule of the required interface element based on the operation of the operation and maintenance personnel;
s23, traversing from the bottom interface element to the upper level until the upper level element is empty, comparing the weight of the rule value of the corresponding control rule pairwise, and calculating the rule values of all the control rules of the interface element according to the weight rule followed in the superposition process;
and S24, updating the rule values of the control rule group according to the calculation result of S23 to obtain a final control rule group.
The invention also provides an interface customization control system, which comprises a control rule definition module, a control rule calculation engine and a control rule API; wherein the content of the first and second substances,
the control fixed definition module assigns a control rule of the required interface element based on the control requirement of the interface element;
the control rule calculation engine is used for avoiding control rule conflict of the interface elements and calculating a final control rule group;
the control rules API controls the modification of the interface elements using the calculated set of control rules.
As a further optimization, the control rule calculation engine of the present invention follows the superposition and inheritance when calculating the control rules; wherein:
the inheritance is used for the rule value of one control rule of the interface elements, and when the inheritance is used for the rule value of one control rule of the interface elements, the rule value inherits the rule value of the corresponding control rule of the superior interface element;
the superposition follows a weight rule, a control rule value with a large weight covers a control rule value with a small weight, the weight depends on the source of the control rule, and the weight comprises a forcing rule, a rule for specifying an implementation object identifier, a rule for specifying an implementation object type and a rule obtained by inheritance in sequence from large to small.
The invention also provides software comprising a processor and a memory, wherein the memory stores one or more interface customization control programs, and the programs are executed by the processor to realize the interface customization control method.
The invention has the following advantages:
1. the invention defines the control rule for the interface element of the software interface and calculates the final control rule table, and can judge whether the interface element customization is in compliance according to the control rule table when customizing the software interface, thereby achieving the purpose of limiting the software customization range according to certain requirements by the method, and solving the problems that the flexible interface customization capability is hoped to be provided for the software product, the customized content is hoped to be highly controlled, and the consistency of the standard product and the customized product is ensured;
2. the control rule of the interface element has the superposition property, the rule value of the control rule of the interface element is determined by superposing the corresponding rule value of the superior element with the own value, the superposition process follows weight control, the rule value with high weight covers the rule value with low weight, and the conflict of the control rule among the hierarchical interface elements is avoided;
3. the control rules of the interface elements have inheritance, and the default control rules in the interface elements inherit the corresponding rule values of the superior interface elements, so that the configuration workload of operation and maintenance personnel on software is reduced.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
The invention is further described below with reference to the accompanying drawings:
FIG. 1 is a schematic view of an interface;
FIG. 2 is a schematic flow diagram of the process of the present invention;
FIG. 3 is a schematic diagram of the system of the present invention.
Detailed Description
The present invention is further described in the following with reference to the drawings and the specific embodiments so that those skilled in the art can better understand the present invention and can implement the present invention, but the embodiments are not to be construed as limiting the present invention, and the embodiments and the technical features of the embodiments can be combined with each other without conflict.
It is to be understood that the terms first, second, and the like in the description of the embodiments of the invention are used for distinguishing between the descriptions and not necessarily for describing a sequential or chronological order. The "plurality" in the embodiment of the present invention means two or more.
The term "and/or" in the embodiment of the present invention is only an association relationship describing an associated object, and indicates that three relationships may exist, for example, a and/or B may indicate: a exists alone, B exists alone, and A and B exist at the same time. In addition, the character "/" herein generally indicates that the former and latter associated objects are in an "or" relationship.
The embodiment provides an interface customization control method, which is used for calculating a control rule set and judging whether a software interface is modified or not when a software interface is customized, and specifically, as shown in fig. 2, the method includes the following steps:
s1, establishing a control rule group aiming at the interface elements, and preferentially establishing a control rule table; the control rule set comprises control rules acting on the interface element object and control rules acting on the attributes of the interface element object, the parameters of the control rules comprise an action range, a rule value and rule contents, wherein the action range of the control rules is a specified element type and a specified element identifier, and each control rule is described in detail in a form of a table:
the control rules that act on the interface element object include:
Figure BDA0002429104700000041
Figure BDA0002429104700000051
the control rules that act on the properties of the interface element object include:
Figure BDA0002429104700000052
in the software interface, the interface elements are in a tree-shaped hierarchical structure, and the value of one control rule of the interface elements is determined by overlapping the value of the control rule and the value of the corresponding control rule of the superior element. When the rule value of one control rule of the interface elements is default, the rule value inherits the rule value of the corresponding control rule of the superior interface element. The superposition process of the control rule values of the interface elements follows weight control, the control rule value with large weight covers the control rule value with small weight, the weight depends on the source of the control rule, and the weight comprises a forcing rule, a rule for specifying an implementation object identifier, a rule for specifying an implementation object type and a rule obtained by inheritance in sequence from large to small.
S2, calculating a rule value of a control rule set of the interface element, specifically, the calculation process includes the following steps:
s21, initializing the rule value of the control rule group, and if the rule value of the Boolean type is negative, the rule value of the array type is a null array;
s22, assigning a control rule of the required interface element based on the operation of the operation and maintenance personnel;
s23, traversing from the bottom interface element to the upper level until the upper level element is empty, comparing the weight of the rule value of the corresponding control rule pairwise, and calculating the rule values of all the control rules of the interface element according to the weight rule followed in the superposition process;
s24, updating the rule values of the control rule group according to the calculation result of S23 to obtain a final control rule group;
and S3, applying the control rule set to control the interface elements.
The method of this embodiment is described in detail below by a specific development example:
as shown in FIG. 1, on the display interface, the developer designates two Splitter Panel as extension containers, defined for distinction as L eft Splitter Panel and Right Splitter Panel, respectively, and adds a DataGrid component within L eft Splitter Panel, and only allows the addition of Column type sub-elements within DataGrid, and does not allow the deletion of existing elements.
Establishing a control rule table of each component, and initializing rule values to obtain a control rule table taking element types as action ranges, as follows:
Figure BDA0002429104700000061
based on the above description, the control of the components by the developer is organized into a control rule assignment table as follows:
Figure BDA0002429104700000071
calculating the rules in the steps to obtain a final control rule list as follows:
Figure BDA0002429104700000072
and obtaining the final control rule list, and when the software interface is modified, judging whether the modification of the software interface is in compliance according to the control rule, so that the rule control of interface customization is realized.
Example two
Based on the interface customization control method of the embodiment, the embodiment provides an interface customization control system, which comprises a control rule definition module, a control rule calculation engine and a control rule API; wherein the content of the first and second substances,
the control fixed definition module assigns a control rule of the required interface element based on the control requirement of the interface element;
the control rule calculation engine is used for avoiding control rule conflict of the interface elements and calculating a final control rule group;
the control rules API controls the modification of the interface elements using the calculated set of control rules.
As a preferred embodiment, the control rule calculation engine follows the additivity and the inheritance when calculating the control rules; wherein:
the inheritance is used for the rule value of one control rule of the interface elements, and when the inheritance is used for the rule value of one control rule of the interface elements, the rule value inherits the rule value of the corresponding control rule of the superior interface element;
the superposition follows a weight rule, a control rule value with a large weight covers a control rule value with a small weight, the weight depends on the source of the control rule, and the weight is a forcing rule, a rule for specifying an implementation object identifier, a rule for specifying an implementation object type and a rule obtained by inheritance in turn from large to small.
EXAMPLE III
Software comprising a processor and a memory, said memory storing one or more interface customization control programs which are executed by the processor for implementing the interface customization control method according to an embodiment.
The above-mentioned embodiments are merely preferred embodiments for fully illustrating the present invention, and the scope of the present invention is not limited thereto. The equivalent substitution or change made by the technical personnel in the technical field on the basis of the invention is all within the protection scope of the invention. The protection scope of the invention is subject to the claims.

Claims (10)

1. An interface customization control method is characterized in that: the method comprises the following steps:
s1, establishing a control rule group aiming at the interface element;
s2, calculating each rule value of the control rule group of the interface element;
and S3, applying the control rule set to control the interface elements.
2. The method of claim 1, wherein: in step S1, the set of control rules includes control rules that act on the interface element object and control rules that act on the attributes of the interface element object, where:
the control rules acting on the interface element object include whether customization is allowed, whether addition of a child element is allowed, the type of child element allowed to be added, whether deletion of a child element is allowed, and the type of child element allowed to be deleted;
the control rules that act on the properties of the interface element object include whether the properties allow modification.
3. The method of claim 2, wherein: the parameters of the control rule comprise an action range, a rule value and rule content, wherein the action range of the control rule is a specified element type and a specified element identification.
4. The method of claim 3, wherein: the interface elements are of a tree-shaped hierarchical structure, and the value of one control rule of the interface elements is determined by superposition of the value of the interface element and the value of the corresponding control rule of the superior element.
5. The method of claim 4, wherein: when the rule value of one control rule of the interface elements is default, the rule value inherits the rule value of the corresponding control rule of the superior interface element.
6. The method of claim 5, wherein: the superposition process of the control rule values of the interface elements follows weight control, the control rule value with large weight covers the control rule value with small weight, the weight depends on the source of the control rule, and the weight is a forcing rule, a rule for specifying an implementation object identifier, a rule for specifying an implementation object type and a rule obtained by inheritance in turn from large to small.
7. The method of claim 6, wherein: in step S2, the step of calculating the rule value of the control rule set of the interface element includes the steps of:
s21, initializing the rule value of the control rule group, and if the rule value of the Boolean type is negative, the rule value of the array type is a null array;
s22, assigning a control rule of the required interface element based on the operation of the operation and maintenance personnel;
s23, traversing from the bottom interface element to the upper level until the upper level element is empty, comparing the weight of the rule value of the corresponding control rule pairwise, and calculating the rule values of all the control rules of the interface element according to the weight rule followed in the superposition process;
and S24, updating the rule values of the control rule group according to the calculation result of S23 to obtain a final control rule group.
8. An interface customization control system, comprising: the system comprises a control rule definition module, a control rule calculation engine and a control rule API; wherein the content of the first and second substances,
the control fixed definition module assigns a control rule of the required interface element based on the control requirement of the interface element;
the control rule calculation engine is used for avoiding control rule conflict of the interface elements and calculating a final control rule group;
the control rules API controls the modification of the interface elements using the calculated set of control rules.
9. The system of claim 8, wherein: the control rule calculation engine follows the superposition and inheritance when calculating the control rule; wherein:
the inheritance is used for the rule value of one control rule of the interface elements, and when the inheritance is used for the rule value of one control rule of the interface elements, the rule value inherits the rule value of the corresponding control rule of the superior interface element;
the superposition follows a weight rule, a control rule value with a large weight covers a control rule value with a small weight, the weight depends on the source of the control rule, and the weight is a forcing rule, a rule for specifying an implementation object identifier, a rule for specifying an implementation object type and a rule obtained by inheritance in turn from large to small.
10. A software, characterized by: comprising a processor and a memory, said memory storing one or more interface customization control programs, which are executed by the processor for implementing the interface customization control method according to any one of claims 1-7.
CN202010230368.2A 2020-03-27 2020-03-27 Interface customization control method, system and software Pending CN111459482A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010230368.2A CN111459482A (en) 2020-03-27 2020-03-27 Interface customization control method, system and software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010230368.2A CN111459482A (en) 2020-03-27 2020-03-27 Interface customization control method, system and software

Publications (1)

Publication Number Publication Date
CN111459482A true CN111459482A (en) 2020-07-28

Family

ID=71681546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010230368.2A Pending CN111459482A (en) 2020-03-27 2020-03-27 Interface customization control method, system and software

Country Status (1)

Country Link
CN (1) CN111459482A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050246686A1 (en) * 2004-04-30 2005-11-03 Microsoft Corporation Rules framework for definition and execution of end-user rules logic
CN102609271A (en) * 2012-02-20 2012-07-25 山东大学 Metadata-driven visual SaaS (Software as a Service) application customizing method and metadata-driven visual SaaS application customizing system
CN104267962A (en) * 2014-10-09 2015-01-07 浪潮通用软件有限公司 Interface UI (user interface) control configuration method based on description
CN105335389A (en) * 2014-07-09 2016-02-17 阿里巴巴集团控股有限公司 Business visualization method and system
CN108304181A (en) * 2018-01-03 2018-07-20 浪潮通用软件有限公司 A kind of method and device modified to interface

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050246686A1 (en) * 2004-04-30 2005-11-03 Microsoft Corporation Rules framework for definition and execution of end-user rules logic
CN102609271A (en) * 2012-02-20 2012-07-25 山东大学 Metadata-driven visual SaaS (Software as a Service) application customizing method and metadata-driven visual SaaS application customizing system
CN105335389A (en) * 2014-07-09 2016-02-17 阿里巴巴集团控股有限公司 Business visualization method and system
CN104267962A (en) * 2014-10-09 2015-01-07 浪潮通用软件有限公司 Interface UI (user interface) control configuration method based on description
CN108304181A (en) * 2018-01-03 2018-07-20 浪潮通用软件有限公司 A kind of method and device modified to interface

Similar Documents

Publication Publication Date Title
US10678536B2 (en) Callable notebook for cluster execution
US11681502B2 (en) Industrial automation domain-specific language programming paradigm
US6298476B1 (en) Object oriented software build framework mechanism
US8126925B2 (en) Dynamic generation and automated distribution of user interface from database model
US5915252A (en) Object oriented framework mechanism for data transfer between a data source and a data target
EP1934794B1 (en) Apparatus, method and system for rapid delivery of distributed applications
US8798775B2 (en) Binding graphic elements to controller data
US10949381B2 (en) Reusable transformation mechanism to allow mappings between incompatible data types
US6513152B1 (en) Object oriented framework mechanism for customization of object oriented frameworks
US20050172261A1 (en) Architecture for creating a user interface using a data schema
US8402430B2 (en) System and method for integrating object-oriented model profiles and object-oriented programming languages
US8140589B2 (en) Autonomic updating of templates in a content management system
CN105511873B (en) User interface control display method and device
US7140000B2 (en) Knowledge oriented programming
US9141353B2 (en) Dynamically building locale objects at run-time
US10732940B2 (en) Enterprise services framework for presentation layer management
CA2030438C (en) Method of reducing data storage requirements associated with computer windowing environments
CN111459482A (en) Interface customization control method, system and software
US11914994B2 (en) Collaborative work in industrial system projects
US5802362A (en) System and method for enabling adapters in a computer system
US20240103826A1 (en) Collaborative work on translations in industrial system projects
JPH0346059A (en) Document generation control system
US20240019851A1 (en) Extensible profiles for industrial controller devices
US20120066265A1 (en) Method and Apparatus for Supporting Multiple Users Working on a Project
US9792093B2 (en) Dynamically building subsections of locale objects at run-time

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