The StatePattern enables a component to alter it's behaviour depending on which state it is in. Components representing each state are created and held as member objects of the main component.
Back to DesignPatterns