Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

Share this Page URL

States and Events for Login Scenario > States and Events for Login Scenario - Pg. 85

Building user interaction 85 the login service on the backend and we display the UI panel accordingly. states and events for login scenario We can dispose our application according to Table 2.1. The first event is triggered by the user and the second and third are generatedbythebackend.TheUIcanreacttoalloftheseevents and switch to the correspondent state. First let's set up the UI. FollowingispartofthecodedevelopedinSection1.Thegraphi- cal counterpart is shown in Figure 2.1. table 2.1 correspondence between events and States in our application event Login button click State Logging