Class ControlWrapper.AroundControl<T extends Control>

    • Field Detail

      • wrapped

        protected final T extends Control wrapped
        The wrapped control.
    • Constructor Detail

      • AroundControl

        public AroundControl​(T wrapped)
        Creates a ControlWrapper which wraps the given control.
    • Method Detail

      • getRootControl

        public Control getRootControl()
        Description copied from interface: ControlWrapper
        Returns the wrapped Control (only appropriate for limited purposes!).

        The implementor of this ControlWrapper is free to change the wrapped Control as she sees fit, and she doesn't have to tell you about it! You shouldn't rely on this control being anything in particular.

        You can rely on this Control for:

        1. Managing lifetimes: `wrapped.getRootControl().addListener(SWT.Dispose, ...`

        But that's all. If you use it for something else, it's on you when it breaks.

        Specified by:
        getRootControl in interface ControlWrapper