Decorator
Intent
,
Motivation
,
Applicability
,
Structure
, Participants,
Collaborations
,
Consequences
,
Implementation
,
Sample Code
,
Known Uses
,
Related Patterns
Participants
Component
(VisualComponent)
defines the interface for objects that can have responsibilities added to them dynamically.
ConcreteComponent
(TextView)
defines an object to which additional responsibilities can be attached.
Decorator
maintains a reference to a Component object and defines an interface that conforms to Component's interface.
ConcreteDecorator
(BorderDecorator, ScrollDecorator)
adds responsibilities to the component.
Participants of
Abstract Factory
,
Adapter
,
Bridge
,
Builder
,
Chain of Responsibility
,
Command
,
Composite
, Decorator,
Facade
,
Factory Method
,
Flyweight
,
Interpreter
,
Iterator
,
Mediator
,
Memento
,
Observer
,
Prototype
,
Proxy
,
Singleton
,
State
,
Strategy
,
Template Method
,
Visitor