public class SwtWidgetHelper extends java.lang.Object implements GralWidgetImpl_ifc
Modifier and Type | Field and Description |
---|---|
SwtMng |
mng |
static int |
version
Version and history
2011-11-18 Hartmut chg:
setFocusOfTabSwt(Control) is the implementation of all
org.vishia.gral.base.GralWidget#setFocusGThread() implementations. |
org.eclipse.swt.widgets.Control |
widgetSwt |
Constructor and Description |
---|
SwtWidgetHelper(org.eclipse.swt.widgets.Control widgetSwt,
SwtMng mng) |
Modifier and Type | Method and Description |
---|---|
static GralColor |
getColor(org.eclipse.swt.graphics.Color swtColor) |
static org.eclipse.swt.graphics.Color |
getColor(GralColor color) |
GralRectangle |
getPixelPositionSize() |
void |
removeWidgetImplementation() |
static GralColor |
setBackgroundColor(GralColor color,
org.eclipse.swt.widgets.Control swtWidget) |
void |
setBoundsPixel(int x,
int y,
int dx,
int dy) |
boolean |
setFocusGThread() |
static boolean |
setFocusOfTabSwt(org.eclipse.swt.widgets.Control control)
Sets the correct TabItem if any widget at this TabItem is focused.
|
static GralColor |
setForegroundColor(GralColor color,
org.eclipse.swt.widgets.Control swtWidget) |
void |
setVisibleGThread(boolean bVisible)
Sets the implementation widget vible or not.
|
void |
specifyContextMenu(GralMenu menu) |
void |
swtUpdateRedraw() |
public static final int version
setFocusOfTabSwt(Control)
is the implementation of all
org.vishia.gral.base.GralWidget#setFocusGThread()
implementations. It regards that a tab in a TabFolder
should be selected if any widget inside the tab-panel is focused. Used extensive in JavaCommander.
public org.eclipse.swt.widgets.Control widgetSwt
public SwtWidgetHelper(org.eclipse.swt.widgets.Control widgetSwt, SwtMng mng)
public GralRectangle getPixelPositionSize()
public void removeWidgetImplementation()
public static GralColor setBackgroundColor(GralColor color, org.eclipse.swt.widgets.Control swtWidget)
public void setBoundsPixel(int x, int y, int dx, int dy)
public boolean setFocusGThread()
public static boolean setFocusOfTabSwt(org.eclipse.swt.widgets.Control control)
control
- public static GralColor setForegroundColor(GralColor color, org.eclipse.swt.widgets.Control swtWidget)
public void setVisibleGThread(boolean bVisible)
public void specifyContextMenu(GralMenu menu)
specifyContextMenu
in interface GralWidgetImpl_ifc
public void swtUpdateRedraw()