Package com.diffplug.common.swt
Class ControlWrapper.Transparent<T extends Control>
- java.lang.Object
-
- com.diffplug.common.swt.ControlWrapper.Transparent<T>
-
- All Implemented Interfaces:
ControlWrapper
- Enclosing interface:
- ControlWrapper
public static final class ControlWrapper.Transparent<T extends Control> extends java.lang.Object implements ControlWrapper
-
-
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 Transparent(T wrapped)Creates a ControlWrapper which wraps the given control.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetRootControl()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
-
-
-
-
Constructor Detail
-
Transparent
public Transparent(T wrapped)
Creates a ControlWrapper which wraps the given control.
-
-
Method Detail
-
getRootControl
public T getRootControl()
Description copied from interface:ControlWrapperReturns 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:
getRootControlin interfaceControlWrapper
-
-