Package com.diffplug.common.swt.widgets
Class VScrollCtl
- java.lang.Object
-
- com.diffplug.common.swt.ControlWrapper.AroundControl<ScrolledComposite>
-
- com.diffplug.common.swt.widgets.VScrollCtl
-
- All Implemented Interfaces:
ControlWrapper
public class VScrollCtl extends ControlWrapper.AroundControl<ScrolledComposite>
SWT providesScrolledCompositewhich provides a wealth of scrolling behavior ([google](https://www.google.com/search?q=SWT+ScrolledComposite)). However, the most common case is that you only want to scroll vertically. This class makes that easy. Just create your content withgetParentForContent()as the parent, and then set it to be the content withsetContent(Control). Easy!
-
-
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>
-
-
Field Summary
-
Fields inherited from class com.diffplug.common.swt.ControlWrapper.AroundControl
wrapped
-
-
Constructor Summary
Constructors Constructor Description VScrollCtl(Composite parent, int style)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScrolledCompositegetParentForContent()voidsetContent(ControlWrapper wrapper)voidsetContent(Control content)-
Methods inherited from class com.diffplug.common.swt.ControlWrapper.AroundControl
getRootControl
-
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
-
VScrollCtl
public VScrollCtl(Composite parent, int style)
-
-
Method Detail
-
getParentForContent
public ScrolledComposite getParentForContent()
-
setContent
public void setContent(ControlWrapper wrapper)
-
setContent
public void setContent(Control content)
-
-