Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Control identification method and device

A technology of identification and factory method, applied in the computer field, can solve the problems of inability to guarantee unique identification of controls, performance consumption, etc., and achieve the effect of reducing performance consumption and not damaging performance

Pending Publication Date: 2021-03-19
上海尚往网络科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, clicking the position of the control in the tree structure to locate its uniqueness also has its limitations. Each click needs to traverse the tree structure to locate the specific position, which consumes more performance.
Moreover, once the tree structure is changed, its position will also change, and it cannot be guaranteed to be used to uniquely identify the control

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Control identification method and device
  • Control identification method and device
  • Control identification method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain related inventions, rather than to limit the invention. It should also be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.

[0030] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

[0031] figure 1 A flow 100 of the first embodiment of the control identification method according to the present application is shown. The control identification method includes the following steps:

[0032] Step 101, customize the factory method in the base class.

[003...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the invention discloses a control identification method and device. A specific embodiment of the method comprises the following steps: defining a factory method in a base class; defining a renaming variable in the factory method based on the name of a target class and the name of an extensible markup language (XML) layout file, wherein the target class is inherited from the baseclass; when the control is analyzed from the XML layout file, generating a user-defined control corresponding to the control; generating a character string based on the renamed variable and the name of the control; and identifying the user-defined control based on the character string. According to the embodiment, the control is identified by combining the name of the target class, the name of theXML layout file and the name of the control, so that the control can be uniquely identified, it is ensured that the uniqueness does not change with the tree structure, and the performance consumptionrequired for generating the unique identifier is reduced.

Description

technical field [0001] The embodiment of the present application relates to the field of computer technology, and in particular to a control identification method and device. Background technique [0002] After the traceless burying of the application, by determining the unique identifier of the control clicked by the user, the specific control clicked by the user can be determined for later data analysis and processing. [0003] Since adding any resource will change the control ID, the control ID cannot be used to uniquely identify the control. At present, the mainstream control identification method is to determine the control clicked by the user based on the position of the control in the tree structure. However, clicking the position of the control in the tree structure to locate its uniqueness also has its limitations. Each click needs to traverse the tree structure to locate the specific position, which consumes performance. Moreover, once the tree structure is chang...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F40/106G06F40/166G06F40/205
CPCG06F40/106G06F40/166G06F40/205Y02P90/02
Inventor 杨华
Owner 上海尚往网络科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products