Commands and messages in powerplant

Source: Internet
Author: User

In powerplant, The lcommander class processes messages. Its commands are processed by obeycommand. This class is mainly used to process menu commands. You can set the menu status in findcommandstatus.

In lcommander, the command processing is hierarchical, and the lower-level data is transmitted to the upper-level data. Currently, the static variable received by lcommander is starget, which can be used
Switchtarget to switch. The lcommander object indicated by starget first receives the command and then processes it. I used it accidentally.
Switchtargetw (null) makes the current object that does not receive messages, so the menu cannot respond to anything.

In addition, there is a broadcaster and listener class which is generally used to process messages outside the menu, and its processing is direct, unlike the lcommander class. Yes
I have always thought that the messages sent out from broadcastmessage are asynchronous.Source codeBroadcast is also synchronous, but its message
It just arrived.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.