public class CBanner extends Composite
Note that although this class is a subclass of Composite
, it
does not make sense to set a layout on it.
IMPORTANT: This class is not intended to be subclassed.
Constructor and Description |
---|
CBanner(Composite parent,
int style)
Constructs a new instance of this class given its parent and a style value
describing its behavior and appearance.
|
Modifier and Type | Method and Description |
---|---|
Control |
getBottom()
Returns the Control that appears on the bottom side of the banner.
|
Rectangle |
getClientArea()
Returns a rectangle which describes the area of the
receiver which is capable of displaying data (that is,
not covered by the "trimmings").
|
Control |
getLeft()
Returns the Control that appears on the left side of the banner.
|
Control |
getRight()
Returns the Control that appears on the right side of the banner.
|
Point |
getRightMinimumSize()
Returns the minimum size of the control that appears on the right of the
banner.
|
int |
getRightWidth()
Returns the width of the control that appears on the right of the banner.
|
boolean |
getSimple()
Returns
true if the CBanner is rendered with a simple,
traditional shape. |
void |
setBottom(Control control)
Set the control that appears on the bottom side of the banner.
|
void |
setLayout(Layout layout)
Sets the layout which is associated with the receiver to be the argument
which may be null.
|
void |
setLeft(Control control)
Set the control that appears on the left side of the banner.
|
void |
setRight(Control control)
Set the control that appears on the right side of the banner.
|
void |
setRightMinimumSize(Point size)
Set the minimum height of the control that appears on the right side of the
banner.
|
void |
setRightWidth(int width)
Set the width of the control that appears on the right side of the banner.
|
void |
setSimple(boolean simple)
Sets the shape that the CBanner will use to render itself.
|
changed, computeSize, getAdapter, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayoutDeferred, setTabList
computeTrim, getHorizontalBar, getVerticalBar
addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addTouchListener, addTraverseListener, computeSize, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getShell, getSize, getToolTipText, getTouchEnabled, getVisible, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCursor, setData, setEnabled, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setSize, setSize, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, update
addDisposeListener, addListener, checkSubclass, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, toString
public CBanner(Composite parent, int style)
The style value is either one of the style constants defined in class
SWT
which is applicable to instances of this class, or must
be built by bitwise OR'ing together (that is, using the
int
"|" operator) two or more of those SWT
style constants. The class description lists the style constants that are
applicable to the class. Style bits are also inherited from superclasses.
parent
- a widget which will be the parent of the new instance (cannot
be null)style
- the style of widget to constructjava.lang.IllegalArgumentException
- SWTException
- public Control getBottom()
SWTException
- public Rectangle getClientArea()
Scrollable
getClientArea
in class Scrollable
Scrollable.computeTrim(int, int, int, int)
public Control getLeft()
SWTException
- public Control getRight()
SWTException
- public Point getRightMinimumSize()
public int getRightWidth()
public boolean getSimple()
true
if the CBanner is rendered with a simple,
traditional shape.true
if the Cbanner is rendered with a simple shapepublic void setBottom(Control control)
control
- the control to be displayed on the bottom or nullSWTException
- public void setLayout(Layout layout)
Note: No Layout can be set on this Control because it already manages the size and position of its children.
setLayout
in class Composite
layout
- the receiver's new layout or nullSWTException
- public void setLeft(Control control)
control
- the control to be displayed on the left or nullSWTException
- public void setRight(Control control)
control
- the control to be displayed on the right or nullSWTException
- public void setRightMinimumSize(Point size)
size
- the minimum size of the control on the rightSWTException
- public void setRightWidth(int width)
width
- the width of the control on the rightSWTException
- public void setSimple(boolean simple)
simple
- true
if the CBanner should render itself in a
simple, traditional styleSWTException
-
Copyright (c) EclipseSource and others 2002, 2016.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0