public class SwtPanel extends GralPanelContent.ImplAccess
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.String |
nl |
Composite |
panelSwtImpl
It is either a Composite or a SwtCanvas
|
(package private) ControlListener |
resizeListener |
static int |
version
Version history:
2011-11-19 Hartmut chg:
#itsTabSwt with correct type moved from GralPanelContent . |
protected FocusListener |
XXXfocusListener |
protected ControlListener |
XXXresizeItemListener |
_panel, gralPanel
bRedrawOnlyDynamics, chgBitsDerived, chgColorBack, chgColorLine, chgColorText, chgCurrTab, chgEditable, chgFloat, chgFocus, chgFont, chgIntg, chgInvisible, chgObjects, chgPos, chgText, chgVisible, chgVisibleInfo, mngImpl, pixBounds, wdgimpl, widgg
Constructor and Description |
---|
SwtPanel(GralPanelContent panelg)
If this panel represents a Window, it is the GralWindow implementation.
|
SwtPanel(GralPanelContent panelg,
Composite panelSwt,
boolean notUsed)
Constructs a panel
|
Modifier and Type | Method and Description |
---|---|
GralRectangle |
getPixelPositionSize() |
java.lang.Object |
getWidgetImplementation()
Returns the implementation class of the widget.
|
private static void |
outBounds(Control swtWdg,
java.lang.Appendable out) |
void |
redrawGthread()
This routine takes care about tabbed panels.
|
boolean |
remove() |
void |
removeWidgetImplementation()
Removes the graphical widget in the graphic.
|
static void |
reportAllContentImpl(Composite swtComp,
java.lang.Appendable out) |
private static void |
reportAllContentImpl(Composite swtComp,
java.lang.Appendable out,
int level) |
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(s) visible state.
|
void |
updateValuesForAction()
This operation should be called before any action is invoked in the user space.
|
createAllImplWidgets, gralPanel
acknChanged, actionShow, dyda, getActionChange, getChanged, gralMng, gralWidgetFromImplData, redrawOnlyDynamics, setDragEnable, setDropEnable, setPosBounds, setTextChanged, setVisibleState, XXXfocusGained
public static final int version
#itsTabSwt
with correct type moved from GralPanelContent
.
GralPanelContent
for the implementation
in a common form.
public Composite panelSwtImpl
static final java.lang.String nl
protected FocusListener XXXfocusListener
protected ControlListener XXXresizeItemListener
ControlListener resizeListener
SwtPanel(GralPanelContent panelg)
SwtSubWindow
does not inherit from GraphicImplAccess
.
This aggregation is null if the panel is not the window's panel.public SwtPanel(GralPanelContent panelg, Composite panelSwt, boolean notUsed)
name
- of panel.mng
- The widget managerpanelSwt
- may be null, then the GralPanelContent#panelSwtImpl
should be set
after construction of a derived class.public GralRectangle getPixelPositionSize()
public void setBoundsPixel(int x, int y, int dx, int dy)
GralWidgImplAccess_ifc
public void redrawGthread()
GralPanelContent.setFocusedWidget(GralWidgetBase_ifc)
was called
and the primary widget is a tab, this tab is activated on this panel, which is a tab folder.public void removeWidgetImplementation()
GralWidgImplAccess_ifc
public boolean remove()
public boolean setFocusGThread()
GralWidgImplAccess_ifc
GralMng_ifc#setFocus(GralWidget)
.public void setVisibleGThread(boolean bVisible)
GralWidgImplAccess_ifc
GralWidgetBase.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()
GralWidgImplAccess_ifc
Component
.
GralWidget._wdgImpl
class
which should contain the references to that implementation widgets.getWidgetImplementation
in interface GralWidgImplAccess_ifc
getWidgetImplementation
in class GralWidget.ImplAccess
public void updateValuesForAction()
GralWidgImplAccess_ifc
public static void reportAllContentImpl(Composite swtComp, java.lang.Appendable out)
private static void reportAllContentImpl(Composite swtComp, java.lang.Appendable out, int level) throws java.io.IOException
java.io.IOException
private static void outBounds(Control swtWdg, java.lang.Appendable out) throws java.io.IOException
java.io.IOException