Method and device for handling events
An event and event processing technology, applied in the computer field, can solve problems such as abnormalities
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0046] Such as figure 1 As shown, the embodiment of the present invention provides a method for processing events, including:
[0047] Step 101: when an event occurs, obtain an event handler for processing the event;
[0048] Step 102: Obtain all context information required to process the event from the main process;
[0049] Step 103: Use the acquired context information to process the event through the event handler.
[0050] In the embodiment of the present invention, by obtaining the event handler for processing the event, and obtaining all the context information required for processing the event, and then processing the event by using the context information through the event handler, thus avoiding abnormal phenomena happened.
Embodiment 2
[0052] Such as figure 2 As shown, the embodiment of the present invention provides a method for processing events, including:
[0053] Step 201: when an event occurs, obtain the event source and related parameters of the event;
[0054] Wherein, when the main process is running the program, an event occurs at the event source due to an operation, and the event source is a component where the event occurs. For example, a programmer clicks a radio button and triggers a click event for the radio button. Additionally, one event or multiple events can occur from an event source.
[0055] Among them, when an event occurs in the event source, set relevant parameters for the event; the relevant parameters set by the event source at least include identification, creation time, processing time and processing timing, etc.; the identification of the event is used to uniquely identify the event. Event, the creation time of the event is the time when the event occurs, and the processing...
Embodiment 3
[0077] Such as image 3 As shown, the embodiment of the present invention provides a method for processing events, including:
[0078] Step 301: when an event occurs, obtain the event source and related parameters of the event;
[0079] Wherein, when the main process is running the program, an event occurs at the event source due to an operation. When an event occurs in the event source, set relevant parameters for the event; the relevant parameters set by the event source for the event at least include identification, creation time, processing time, and processing timing.
[0080] Step 302: According to the event source of the event, the event handler is obtained from the corresponding relationship between the event source and the event handler;
[0081] Wherein, the programmer writes one or more event handlers for each event source in advance, and at the same time, the programmer establishes a corresponding relationship between the event source and the written event handle...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com