public class ControlWrapper extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
GAP
Seperator width.
|
| Constructor and Description |
|---|
ControlWrapper(org.eclipse.swt.widgets.Control widget,
int top,
int height,
boolean changed)
Create ControlWrapper object
|
| Modifier and Type | Method and Description |
|---|---|
int |
alignRight(int clientLeft)
Position control aligned with the right of the status line client area
|
int |
getWidth()
Returns computed width of control
|
int |
position(int x)
Position control at specified position
|
void |
position(int x,
int width)
Position control according to specified position and width
|
void |
setWidth(int width)
Set width of control
|
public static final int GAP
public ControlWrapper(org.eclipse.swt.widgets.Control widget,
int top,
int height,
boolean changed)
widget - The control being wrappedtop - Vertical relative positionheight - Parent client area heightchanged - true if the control's contents have changedpublic int getWidth()
public void setWidth(int width)
width - int valuepublic int position(int x)
x - Horizontal relative positionpublic void position(int x,
int width)
x - Horizontal relative positionwidth - Revised control widthpublic int alignRight(int clientLeft)
clientLeft - Position of the left hand side of the client areaCopyright © 2016. All rights reserved.