public static class ControlWrapper.AroundControl<T extends Control> extends Object implements ControlWrapper
ControlWrapper
which wraps a Control
.ControlWrapper.AroundControl<T extends Control>, ControlWrapper.AroundWrapper<T extends ControlWrapper>, ControlWrapper.Transparent<T extends Control>
Modifier and Type | Field and Description |
---|---|
protected T |
wrapped
The wrapped control.
|
Constructor and Description |
---|
AroundControl(T wrapped)
Creates a ControlWrapper which wraps the given control.
|
Modifier and Type | Method and Description |
---|---|
Control |
getRootControl()
Returns the wrapped
Control (only appropriate for limited purposes!). |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose, getLayoutData, getParent, getShell, isDisposed, setLayoutData, setParent, transparent
public AroundControl(T wrapped)
public Control getRootControl()
ControlWrapper
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:
But that's all. If you use it for something else, it's on you when it breaks.
getRootControl
in interface ControlWrapper