I am writing about design patterns in mobile applications.
"Button", apart from being a
user control it is also a design pattern used in order to perform some action.
I am trying to abstract the "physical button" (that is, a UI control) from the design pattern of allowing the user to perform a certain action at a given time.
I provided the description to each design pattern by stating the Name, followed by its description (What), usage scenarios (When), reasons to apply such design pattern (Why) and usage examples (omitted from this question).
I am having troubles in defining the
Why among the following points:
- Name: Button
- What: A button can be used in a page to perform an app-specific action. Use a verb or verb phrase to describe the action the button performs.
- When to use it: Use Button to initiate an action.
- Why to use it: Users must be able to ``tell'' the application to perform certain actions.
Do you think my reason is valid enough?
Feel also free to express feelings whether "allowing the user to perform a certain action at a given time" is not actually a design pattern.