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) Color |
black |
(package private) 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 GralWidgImplAccess_ifc which are delegate from this. |
static int |
version
Version, history and license.
|
(package private) Color |
white |
(package private) Canvas |
widgetSwt |
colorgback, colorgline, mouseWidgetAction, sButtonText, widggbRedrawOnlyDynamics, chgBitsDerived, chgColorBack, chgColorLine, chgColorText, chgCurrTab, chgEditable, chgFloat, chgFocus, chgFont, chgIntg, chgInvisible, chgObjects, chgPos, chgText, chgVisible, chgVisibleInfo, mngImpl, 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(PaintEvent e,
Canvas canvas) |
void |
redrawGthread()
This method should be implemented in all Widget implementations of the adapter for the
underlying graphic system.
|
void |
removeWidgetImplementation()
Removes the graphical widget in the graphic.
|
(package private) void |
setBoundsGraphic(GralPos pos,
SwtMng mng) |
void |
setBoundsPixel(int x,
int y,
int dx,
int dy)
Set the bounds of the implementation widget.
|
boolean |
setFocusGThread()
Sets the focus to the widget.
|
void |
setVisibleGThread(boolean bVisible)
Sets the implementation widget vible or not.
|
void |
updateValuesForAction()
This operation should be called before any action is invoked in the user space.
|
isPressed, paint1, prepareWidgetacknChanged, actionShow, dyda, getActionChange, getChanged, gralMng, gralWidgetFromImplData, redrawOnlyDynamics, setDragEnable, setDropEnable, setPosBounds, setTextChanged, setVisibleState, XXXfocusGainedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetPosBoundspublic 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 GralWidgImplAccess_ifc which are delegate from this.Canvas widgetSwt
final Color black
final Color white
final Font fontText
final SwtGralMouseListener.MouseListenerGralAction mouseListener
SwtButton(GralButton widgg, SwtMng mng)
public GralRectangle getPixelPositionSize()
public void removeWidgetImplementation()
GralWidgImplAccess_ifcpublic java.lang.Object getWidgetImplementation()
GralWidgImplAccess_ifcComponent.
GralWidget._wdgImpl class
which should contain the references to that implementation widgets.getWidgetImplementation in interface GralWidgImplAccess_ifcgetWidgetImplementation in class GralWidget.ImplAccesspublic void setBoundsPixel(int x,
int y,
int dx,
int dy)
GralWidgImplAccess_ifcpublic boolean setFocusGThread()
GralWidgImplAccess_ifcGralMng_ifc#setFocus(GralWidget).public void setVisibleGThread(boolean bVisible)
bVisible - true then the widget should be visible, false it is set to invisible.GralWidgImplAccess_ifc.setVisibleGThread(boolean)public void redrawGthread()
GralWidgImplAccess_ifc#repaintRequprotected void paintRoutine(PaintEvent e,
Canvas canvas)
public void updateValuesForAction()
GralWidgImplAccess_ifc