Java org.eclipse.swt.custom ScrolledComposite fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.swt.custom ScrolledComposite fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.swt.custom ScrolledComposite.

The text is from its open source code.

Constructor

ScrolledComposite(Composite parent, int style)
Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.

Method

voidaddControlListener(ControlListener listener)
Adds the listener to the collection of listeners who will be notified when the control is moved or resized, by sending it one of the messages defined in the ControlListener interface.
voidaddListener(int eventType, Listener listener)
Adds the listener to the collection of listeners who will be notified when an event of the given type occurs.
RectanglegetClientArea()
Returns a rectangle which describes the area of the receiver which is capable of displaying data (that is, not covered by the "trimmings").
ScrollBargetHorizontalBar()
Returns the receiver's horizontal scroll bar if it has one, and null if it does not.
PointgetOrigin()
Return the point in the content that currently appears in the top left corner of the scrolled composite.
ScrollBargetVerticalBar()
Returns the receiver's vertical scroll bar if it has one, and null if it does not.
voidpack()
Causes the receiver to be resized to its preferred size.
voidsetAlwaysShowScrollBars(boolean show)
Set the Always Show Scrollbars flag.
voidsetBounds(int x, int y, int width, int height)
Sets the receiver's size and location to the rectangular area specified by the arguments.
voidsetContent(Control content)
Set the content that will be scrolled.
voidsetExpandHorizontal(boolean expand)
Configure the ScrolledComposite to resize the content object to be as wide as the ScrolledComposite when the width of the ScrolledComposite is greater than the minimum width specified in setMinWidth.
voidsetExpandVertical(boolean expand)
Configure the ScrolledComposite to resize the content object to be as tall as the ScrolledComposite when the height of the ScrolledComposite is greater than the minimum height specified in setMinHeight.
voidsetLayoutData(Object layoutData)
Sets the layout data associated with the receiver to the argument.
voidsetMinHeight(int height)
Specify the minimum height at which the ScrolledComposite will begin scrolling the content with the vertical scroll bar.
voidsetMinSize(int width, int height)
Specify the minimum width and height at which the ScrolledComposite will begin scrolling the content with the horizontal scroll bar.
voidsetMinSize(Point size)
Specify the minimum width and height at which the ScrolledComposite will begin scrolling the content with the horizontal scroll bar.
voidsetMinWidth(int width)
Specify the minimum width at which the ScrolledComposite will begin scrolling the content with the horizontal scroll bar.
voidsetOrigin(int left, int top)
Scrolls the content so that the specified point in the content is in the top left corner.
voidsetOrigin(Point origin)
Scrolls the content so that the specified point in the content is in the top left corner.
voidsetShowFocusedControl(boolean show)
Configure the receiver to automatically scroll to a focused child control to make it visible.