GUI as a finite state machine

前端 未结 3 1146
独厮守ぢ
独厮守ぢ 2021-02-05 19:50

To implement application\'s GUI I would like to have all the logic to go from one form to another centralized. This GUI manager will behave as a finite state machine. Although I

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-05 20:10

    The State design pattern describes how to implement a finite state machine.

    There are many, slightly different design patterns to control screens in UI, but I think that the Application Controller design pattern fits what you are trying to do.

提交回复
热议问题