Package com.diffplug.common.swt
Class ControlWrapper.AroundControl<T extends Control>
- java.lang.Object
-
- com.diffplug.common.swt.ControlWrapper.AroundControl<T>
-
- All Implemented Interfaces:
ControlWrapper
- Direct Known Subclasses:
ButtonPanel
,CoatMux
,FlatBtn
,LinkBtn
,NoBorderBtn
,ScaleCtl
,VScrollCtl
- Enclosing interface:
- ControlWrapper
public static class ControlWrapper.AroundControl<T extends Control> extends java.lang.Object implements ControlWrapper
Default implementation of aControlWrapper
which wraps aControl
.
-
-
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 AroundControl(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
-
-
-
-
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 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
-
-