<<< Composite Benefits and Disadvantages     Index     Decorator Sample >>>

35. Decorator


    Text view example
  • Word processing application

  • The application displays text in a window.

  • If the text fits into the view, the window has no scroll bars.

  • Otherwise, scroll bars are added to the view.

  • Additional window decorations may be required, such as a border with particular thickness.

     

  • How could we add dynamic view functionality to our design?


<<< Composite Benefits and Disadvantages     Index     Decorator Sample >>>