Class WrapperStyle

All Implemented Interfaces:
Bean, VisualContainerBean, ControlButtonContainer, NestedStyleContainer, Style, StyleContextReceiver

public abstract class WrapperStyle extends AbstractStyle implements NestedStyleContainer
Abstract base class for a style that wraps a single user-selectable style.

When you use this base class, you do not have to handle any life-cycle aspects of the nested style. See NestedStyleContainer for more information on nesting styles in general.

The "customCode" sample project contains the class SunnySkyBackgroundStyle and its associated BeanInfo that show you an example of wrapping a user-selected style with a graphical decoration. For more complex use cases, the source code of WrapperStyle can be used as a starting point.