public class SwtButton extends GralButton.GraphicImplAccess
Modifier and Type | Class and Description |
---|---|
protected class |
SwtButton.KeyListener |
private class |
SwtButton.SwtButtonImpl |
Modifier and Type | Field and Description |
---|---|
(package private) org.eclipse.swt.graphics.Color |
black |
(package private) org.eclipse.swt.graphics.Font |
fontText |
(package private) SwtGralMouseListener.MouseListenerGralAction |
mouseListener |
private SwtWidgetHelper |
swtWidgHelper
It contains the association to the swt widget (Control) and the
SwtMng
and implements some methods of GralWidgImpl_ifc which are delegate from this. |
static int |
version
Version, history and license.
|
(package private) org.eclipse.swt.graphics.Color |
white |
(package private) org.eclipse.swt.widgets.Canvas |
widgetSwt |
colorgback, colorgline, mouseWidgetAction, sButtonText, widgg
chgBitsDerived, chgColorBack, chgColorLine, chgColorText, chgEditable, chgFloat, chgFocus, chgFont, chgIntg, chgInvisible, chgObjects, chgPos, chgText, chgVisible, chgVisibleInfo, pixBounds, wdgimpl
Constructor and Description |
---|
SwtButton(GralButton widgg,
SwtMng mng) |
Modifier and Type | Method and Description |
---|---|
GralRectangle |
getPixelPositionSize() |
java.lang.Object |
getWidgetImplementation()
Returns the implementation class of the widget.
|
protected void |
paintRoutine(org.eclipse.swt.events.PaintEvent e,
org.eclipse.swt.widgets.Canvas canvas) |
void |
removeWidgetImplementation()
Removes the graphical widget in the graphic.
|
void |
repaintGthread()
This method should be implemented in all Widget implementations of the adapter for the
underlying graphic system.
|
(package private) void |
setBoundsGraphic(GralPos pos,
SwtMng mng) |
void |
setBoundsPixel(int x,
int y,
int dx,
int dy) |
boolean |
setFocusGThread()
Sets the focus to the widget.
|
void |
setVisibleGThread(boolean bVisible)
Sets the implementation widget vible or not.
|
isPressed, paint1, prepareWidget
acknChanged, actionShow, dyda, getActionChange, getChanged, gralWidgetFromImplData, setDragEnable, setDropEnable, setFocused, setTextChanged, setVisibleState, XXXfocusGained
public static final int version
GralButton
uses the new concept of instantiation: It is not
the super class of the implementation class. But it provides GralButton.GraphicImplAccess
as the super class.
private final SwtWidgetHelper swtWidgHelper
SwtMng
and implements some methods of GralWidgImpl_ifc
which are delegate from this.org.eclipse.swt.widgets.Canvas widgetSwt
final org.eclipse.swt.graphics.Color black
final org.eclipse.swt.graphics.Color white
final org.eclipse.swt.graphics.Font fontText
final SwtGralMouseListener.MouseListenerGralAction mouseListener
SwtButton(GralButton widgg, SwtMng mng)
public GralRectangle getPixelPositionSize()
void setBoundsGraphic(GralPos pos, SwtMng mng)
public void removeWidgetImplementation()
GralWidgImpl_ifc
public java.lang.Object getWidgetImplementation()
GralWidgImpl_ifc
Component
.
GralWidget._wdgImpl
class
which should contain the references to that implementation widgets.public void setBoundsPixel(int x, int y, int dx, int dy)
public boolean setFocusGThread()
GralWidgImpl_ifc
GralMng_ifc#setFocus(GralWidget)
.public void setVisibleGThread(boolean bVisible)
bVisible
- true then the widget should be visible, false it is set to invisible.GralWidgImpl_ifc.setVisibleGThread(boolean)
public void repaintGthread()
GralWidgImpl_ifc
#repaintRequ
protected void paintRoutine(org.eclipse.swt.events.PaintEvent e, org.eclipse.swt.widgets.Canvas canvas)