public class SwtPanel extends GralPanelContent.ImplAccess
| Modifier and Type | Field and Description |
|---|---|
org.eclipse.swt.widgets.TabItem |
itsTabSwt
The associated tab in a TabFolder if this panel is the main panel of the TabItem, or null
if it isn't a main panel of a tab in a tabbed panel.
|
org.eclipse.swt.widgets.Composite |
panelComposite
It is either a Composite or a SwtCanvas
|
protected org.eclipse.swt.events.ControlListener |
resizeItemListener |
static int |
version
Version history:
2011-11-19 Hartmut chg:
itsTabSwt with correct type moved from GralPanelContent. |
chgBitsDerived, chgColorBack, chgColorLine, chgColorText, chgEditable, chgFloat, chgFocus, chgFont, chgIntg, chgInvisible, chgObjects, chgPos, chgText, chgVisible, chgVisibleInfo, pixBounds, wdgimpl, widgg| Modifier | Constructor and Description |
|---|---|
private |
SwtPanel(GralPanelContent panelg) |
|
SwtPanel(GralPanelContent panelg,
org.eclipse.swt.widgets.Composite panelSwt)
Constructs a panel
|
| Modifier and Type | Method and Description |
|---|---|
GralRectangle |
getPixelPositionSize()
Returns the absolute position of this panel on screen and its size.
|
GralRectangle |
getPixelSize()
Returns the size of this panel in pixel.
|
java.lang.Object |
getWidgetImplementation()
Returns the implementation class of the widget.
|
boolean |
remove() |
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.
|
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(s) visible state.
|
gralPanelacknChanged, actionShow, dyda, getActionChange, getChanged, gralWidgetFromImplData, setDragEnable, setDropEnable, setFocused, setTextChanged, setVisibleState, XXXfocusGainedpublic static final int version
itsTabSwt with correct type moved from GralPanelContent.
GralPanelContent for the implementation
in a common form.
public org.eclipse.swt.widgets.Composite panelComposite
public org.eclipse.swt.widgets.TabItem itsTabSwt
protected org.eclipse.swt.events.ControlListener resizeItemListener
private SwtPanel(GralPanelContent panelg)
public SwtPanel(GralPanelContent panelg, org.eclipse.swt.widgets.Composite panelSwt)
name - of panel.mng - The widget managerpanelSwt - may be null, then the GralPanelContent#panelComposite should be set
after construction of a derived class.public GralRectangle getPixelPositionSize()
GralPanelContent.ImplAccessgetPixelPositionSize in interface GralWidgImpl_ifcgetPixelPositionSize in class GralPanelContent.ImplAccesspublic GralRectangle getPixelSize()
GralPanelContent.ImplAccessgetPixelSize in class GralPanelContent.ImplAccesspublic void setBoundsPixel(int x, int y, int dx, int dy)
public void repaintGthread()
GralWidgImpl_ifc#repaintRequpublic void removeWidgetImplementation()
GralWidgImpl_ifcpublic boolean remove()
public boolean setFocusGThread()
GralWidgImpl_ifcGralMng_ifc#setFocus(GralWidget).public void setVisibleGThread(boolean bVisible)
GralWidgImpl_ifcGralWidget.bVisibleState too. Therewith it is able to quest GralWidget.isVisible() in any thread.bVisible - true then the widget should be visible, false it is set to invisible.public java.lang.Object getWidgetImplementation()
GralWidgImpl_ifcComponent.
GralWidget._wdgImpl class
which should contain the references to that implementation widgets.