John.Wiley.and.Sons.Professional.Java.User.Interfaces.May.2006.pdf

(26746 KB) Pobierz
ffirs.fm
3269938.002.png
3269938.003.png
10:39 AM 8 March 2006
ffirs.fm
1.0
3269938.004.png
Main Patterns and Design Strategies organized by functional layer
2:9 PM 10 March 2006
front_inter_cover.fm
1.0
3269938.005.png
Main principles
• GUI design and overall development
– User-centered design (44)
A design approach for building highly usable user interfaces, putting the emphasis
on the user.
– Cost-driven design (81)
GUI design comes first, with an eye on development complexity. For example,
avoid using ad-hoc components (81) in your GUI as far as possible.
– Iterative GUI development (169)
Iterate: GUI design and implementation, profiling, software and usability testing.
• Implementation
– The principle of Single Functional Responsibility (227)
Provide only one functional responsibility per class/method.
– Object lifecycle management – a general mindset (281)
Instantiate lazily and dispose eagerly, avoid garbage collector bottlenecks.
– Don’t go against the flow (284)
GUI toolkits are complex beasts, so don’t ignore them and implement fancy
designs counter to the architecture or style of the underlying GUI toolkits and
infrastructure (RCP).
Visual refactorings
Other refactorings are discussed in Chapter 5.
• Extract explicit panel (195), Extract stand-alone panel (196), and Composable units (292)
Extract the code of an existing GUI panel into a separate implementation to enhance
modularity and reusability.
• Merge panel (197)
Merge different implementations representing the same panel into a common one.
• Add parameter to panel (197) and Remove parameter from panel (198)
Add parameters to customize a panel and its opposite refactoring, Remove parameter
from panel (198).
• Parameterize panel (199)
Implement two slightly different panels with a unique code base.
• Replace parameter with panel (200)
Instead of adding a parameter, separate the implementation of the two panels.
• Rename panel (201)
Change the name of a panel.
12:20 PM 8 March 2006
front_inner_paper.fm
1.0
3269938.001.png
Zgłoś jeśli naruszono regulamin