Design Pattern: Bridge Pattern in Java
Bridge pattern is used to decouple implementation and abstraction. This article demonstrates Bridge pattern implementations in Java.
Bridge pattern is used to decouple implementation and abstraction. This article demonstrates Bridge pattern implementations in Java.
Using Bridge we can decouple the implementation of UI Element and Color Schema, so the elements and colors will have a separate hierarchy. That way the implementation of the Elements and Color will be independent and the element color can be set dynamically.