Java org.eclipse.swt.widgets Composite fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.swt.widgets Composite fields, constructors, methods, implement or subclass

Introduction

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

The text is from its open source code.

Subclass

org.eclipse.swt.widgets.Composite has subclasses.
Click this link to see all its subclasses.

Field

Layoutlayout

Constructor

Composite(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.
PointcomputeSize(int wHint, int hHint)
Returns the preferred size of the receiver.
voiddispose()
Disposes of the operating system resources associated with the receiver and all its descendents.
ColorgetBackground()
Returns the receiver's background color.
RectanglegetBounds()
Returns a rectangle describing the receiver's size and location relative to its parent (or its display if its parent is null), unless the receiver is a shell.
Control[]getChildren()
Returns a (possibly empty) array containing the receiver's children.
RectanglegetClientArea()
Returns a rectangle which describes the area of the receiver which is capable of displaying data (that is, not covered by the "trimmings").
DisplaygetDisplay()
Returns the Display that is associated with the receiver.
FontgetFont()
Returns the font that the receiver will use to paint textual information.
ColorgetForeground()
Returns the foreground color that the receiver will use to draw.
LayoutgetLayout()
Returns layout which is associated with the receiver, or null if one has not been set.
ObjectgetLayoutData()
Returns layout data which is associated with the receiver.
PointgetLocation()
Returns a point describing the receiver's location relative to its parent (or its display if its parent is null), unless the receiver is a shell.
MonitorgetMonitor()
Returns the receiver's monitor.
CompositegetParent()
Returns the receiver's parent, which must be a Composite or null when the receiver is a shell that was created with null or a display for a parent.
ShellgetShell()
Returns the receiver's shell.
PointgetSize()
Returns a point describing the receiver's size.
booleanisDisposed()
Returns true if the widget has been disposed, and false otherwise.
booleanisFocusControl()
Returns true if the receiver has the user-interface focus, and false otherwise.
voidpack()
Causes the receiver to be resized to its preferred size.
voidpack(boolean changed)
Causes the receiver to be resized to its preferred size.
voidredraw()
Causes the entire bounds of the receiver to be marked as needing to be redrawn.
voidreskin(int flags)
Marks the widget to be skinned.
voidsetBackground(Color color)
Sets the receiver's background color to the color specified by the argument, or to the default system color for the control if the argument is null.
voidsetBounds(int x, int y, int width, int height)
Sets the receiver's size and location to the rectangular area specified by the arguments.
voidsetEnabled(boolean enabled)
Enables the receiver if the argument is true, and disables it otherwise.
booleansetFocus()
voidsetFont(Font font)
Sets the font that the receiver will use to paint textual information to the font specified by the argument, or to the default font for that kind of control if the argument is null.
voidsetForeground(Color color)
Sets the receiver's foreground color to the color specified by the argument, or to the default system color for the control if the argument is null.
voidsetLayout(Layout layout)
Sets the layout which is associated with the receiver to be the argument which may be null.
voidsetLayoutData(Object layoutData)
Sets the layout data associated with the receiver to the argument.
voidsetLocation(int x, int y)
Sets the receiver's location to the point specified by the arguments which are relative to the receiver's parent (or its display if its parent is null), unless the receiver is a shell.
voidsetLocation(Point location)
Sets the receiver's location to the point specified by the arguments which are relative to the receiver's parent (or its display if its parent is null), unless the receiver is a shell.
voidsetMenu(Menu menu)
Sets the receiver's pop up menu to the argument.
voidsetSize(int width, int height)
Sets the receiver's size to the point specified by the arguments.
voidsetTabList(Control[] tabList)
Sets the tabbing order for the specified controls to match the order that they occur in the argument list.
PointtoDisplay(int x, int y)
Returns a point which is the result of converting the argument, which is specified in coordinates relative to the receiver, to display relative coordinates.
PointtoDisplay(Point point)
Returns a point which is the result of converting the argument, which is specified in coordinates relative to the receiver, to display relative coordinates.