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
Constructor and Description |
---|
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.
|
gralPanel
acknChanged, actionShow, dyda, getActionChange, getChanged, gralWidgetFromImplData, setDragEnable, setDropEnable, setFocused, setTextChanged, setVisibleState, XXXfocusGained
public org.eclipse.swt.widgets.TabItem itsTabSwt
public org.eclipse.swt.widgets.Composite panelComposite
protected org.eclipse.swt.events.ControlListener resizeItemListener
public static final int version
itsTabSwt
with correct type moved from GralPanelContent
.
GralPanelContent
for the implementation
in a common form.
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.ImplAccess
getPixelPositionSize
in interface GralWidgImpl_ifc
getPixelPositionSize
in class GralPanelContent.ImplAccess
public GralRectangle getPixelSize()
GralPanelContent.ImplAccess
getPixelSize
in class GralPanelContent.ImplAccess
public java.lang.Object getWidgetImplementation()
GralWidgImpl_ifc
Component
.
GralWidget._wdgImpl
class
which should contain the references to that implementation widgets.public boolean remove()
public void removeWidgetImplementation()
GralWidgImpl_ifc
public void repaintGthread()
GralWidgImpl_ifc
#repaintRequ
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)
GralWidgImpl_ifc
GralWidget.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.