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

Control state update method and device

A state update and control technology, applied in the computer field, can solve the problems of slow interface response and frequent control refresh, and achieve the effect of reducing interface refresh, reducing the difficulty of debugging, and improving the response speed.

Active Publication Date: 2021-06-04
ZHUHAI KINGSOFT OFFICE SOFTWARE +2
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In the above-mentioned technical solution of the prior art, when a registered event occurs, no matter whether the event is dispatched synchronously or asynchronously, an update notification will be sent to all controls, but in fact not all controls are visible , for invisible controls, there is no need to update the state at this time. It can be seen that the existing technical solutions will cause many unnecessary control state updates, making the controls on the interface refresh frequently and the interface response speed is slow

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 state update method and device
  • Control state update method and device
  • Control state update method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0047]In each embodiment of the present invention, controls are divided into multiple levels in advance, and when the object learns that a registered event occurs, an update notification is sent to the first-level control that registered the event, and the first-level control is determined It is the current level control, when the current level control judges that its own state is visible, update the state according to the update notification, and when the curr...

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 present invention provides a control state update method and device. The method includes: the first-level control receives the update notification sent by the object; the level of the control is pre-divided; the first-level control is determined as the current-level control; Status update; if the current-level control has a next-level control, the current-level control sends an update notification to the next-level control; the next-level control that receives the update notification is determined as the current-level control; returns the current-level control in Steps to update the status according to the update notification when the self status is visible. In this way, it is possible to update the status when an update is required, reduce unnecessary interface refreshes, and improve the response speed of the interface. At the same time, by grading the controls, update notifications can be sent step by step, reducing the difficulty of debugging.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a control state updating method and device. Background technique [0002] The observer pattern is one of the most commonly used design patterns in software development. In the observer pattern, multiple observer events are registered on an object. When the object detects a change in the state of any of these observer events , will notify all observers registered on the object to update the state. For example, if a piece of text is selected in Word Processing System (WPS) office software, and the object detects that a selected event occurs, it will send a message to the corresponding font size, font color and other controls on the toolbar (that is, the observer of this event) Update notification, these controls update their states to the state corresponding to the font size and font color of the selected text according to the update notification. [0003] A common implementati...

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 Patents(China)
IPC IPC(8): G06F8/65
CPCG06F8/65
Inventor 刘济清
Owner ZHUHAI KINGSOFT OFFICE SOFTWARE
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