Package com.diffplug.common.swt
Class ControlWrapper.AroundWrapper<T extends ControlWrapper>
- java.lang.Object
-
- com.diffplug.common.swt.ControlWrapper.AroundWrapper<T>
-
- All Implemented Interfaces:
ControlWrapper
- Enclosing interface:
- ControlWrapper
public static class ControlWrapper.AroundWrapper<T extends ControlWrapper> extends java.lang.Object implements ControlWrapper
Default implementation of aControlWrapper
which wraps some other form of `ControlWrapper` with a new interface.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.diffplug.common.swt.ControlWrapper
ControlWrapper.AroundControl<T extends Control>, ControlWrapper.AroundWrapper<T extends ControlWrapper>, ControlWrapper.Transparent<T extends Control>
-
-
Constructor Summary
Constructors Constructor Description AroundWrapper(T wrapped)
Creates a ControlWrapper which wraps the given control.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Control
getRootControl()
Returns the wrappedControl
(only appropriate for limited purposes!).-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.diffplug.common.swt.ControlWrapper
dispose, getLayoutData, getParent, getShell, isDisposed, setLayoutData, setParent
-
-
-
-
Field Detail
-
wrapped
protected final T extends ControlWrapper wrapped
The wrapped control.
-
-
Constructor Detail
-
AroundWrapper
public AroundWrapper(T wrapped)
Creates a ControlWrapper which wraps the given control.
-
-
Method Detail
-
getRootControl
public Control getRootControl()
Description copied from interface:ControlWrapper
Returns the wrappedControl
(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:
- 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 interfaceControlWrapper
-
-