public class AwtButton extends GralButton.GraphicImplAccess
Modifier and Type | Class and Description |
---|---|
private class |
AwtButton.AwtButtonImpl |
Modifier and Type | Field and Description |
---|---|
(package private) java.awt.Color |
black |
(package private) java.awt.Font |
fontText |
(package private) AwtWidgetHelper |
helper |
(package private) AwtGralMouseListener.MouseListenerGralAction |
mouseListener |
static int |
version
Version, history and license.
|
(package private) java.awt.Color |
white |
(package private) AwtButton.AwtButtonImpl |
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 |
---|
AwtButton(GralButton widgg,
AwtWidgetMng mng) |
Modifier and Type | Method and Description |
---|---|
GralRectangle |
getPixelPositionSize() |
java.lang.Object |
getWidgetImplementation()
Returns the implementation class of the widget.
|
protected void |
paintRoutine(java.awt.Graphics gc,
java.awt.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(AwtWidgetMng 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.
AwtWidgetHelper helper
AwtButton.AwtButtonImpl widgetSwt
final java.awt.Color black
final java.awt.Color white
final java.awt.Font fontText
final AwtGralMouseListener.MouseListenerGralAction mouseListener
AwtButton(GralButton widgg, AwtWidgetMng mng)
public GralRectangle getPixelPositionSize()
void setBoundsGraphic(AwtWidgetMng mng)
public boolean setFocusGThread()
GralWidgImpl_ifc
GralMng_ifc#setFocus(GralWidget)
.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)
protected void paintRoutine(java.awt.Graphics gc, java.awt.Canvas canvas)
public void repaintGthread()
GralWidgImpl_ifc
#repaintRequ
public void setVisibleGThread(boolean bVisible)
bVisible
- true then the widget should be visible, false it is set to invisible.GralWidgImpl_ifc.setVisibleGThread(boolean)