public class SwtWidgetHelper extends java.lang.Object implements GralWidgetImpl_ifc
Modifier and Type | Field and Description |
---|---|
SwtMng |
mng |
private static SwtMng |
mngs |
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() |
static GralRectangle |
getPixelPositionSize(org.eclipse.swt.widgets.Control widg)
Deprecated.
this routine is implemented in
SwtWidgetHelper
which can be used for all widgets (new concept). |
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 static GralColor setBackgroundColor(GralColor color, org.eclipse.swt.widgets.Control swtWidget)
public static GralColor setForegroundColor(GralColor color, org.eclipse.swt.widgets.Control swtWidget)
public static boolean setFocusOfTabSwt(org.eclipse.swt.widgets.Control control)
control
- public void swtUpdateRedraw()
public boolean setFocusGThread()
public void setVisibleGThread(boolean bVisible)
public void removeWidgetImplementation()
public void setBoundsPixel(int x, int y, int dx, int dy)
public GralRectangle getPixelPositionSize()
@Deprecated public static GralRectangle getPixelPositionSize(org.eclipse.swt.widgets.Control widg)
SwtWidgetHelper
which can be used for all widgets (new concept).widg
- public void specifyContextMenu(GralMenu menu)
specifyContextMenu
in interface GralWidgetImpl_ifc