public class SwtSubWindow extends GralWindow.GraphicImplAccess implements GralWidgImpl_ifc
Modifier and Type | Field and Description |
---|---|
protected boolean |
bFullScreen
State of the window in swt.
|
protected SwtMenu |
menuBar |
protected org.eclipse.swt.events.ShellListener |
shellListener |
static java.lang.String |
sVersion
Version, history and license:
2016-08-31 Hartmut chg: Now disposes the window in
shellListener
2015-05-31 Hartmut setFocusGThread() now regards the GralPanelContent.setPrimaryWidget(GralWidget) . |
protected org.eclipse.swt.widgets.Shell |
window |
gralWindow
chgBitsDerived, chgColorBack, chgColorLine, chgColorText, chgEditable, chgFloat, chgFocus, chgFont, chgIntg, chgInvisible, chgObjects, chgPos, chgText, chgVisible, chgVisibleInfo, pixBounds, wdgimpl, widgg
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.
|
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)
Returns the size of the working area without border, menu and title of the window.
|
boolean |
setFocusGThread()
Sets the focus to the widget.
|
void |
setVisibleGThread(boolean bVisible)
Sets the implementation widget(s) visible state.
|
actionOnCloseWindow, getTitle, getWindowProps, isFullScreen, mouseAction, resizeAction, shouldClose
gralPanel
acknChanged, actionShow, dyda, getActionChange, getChanged, gralWidgetFromImplData, setDragEnable, setDropEnable, setFocused, setTextChanged, setVisibleState, XXXfocusGained
protected boolean bFullScreen
protected org.eclipse.swt.events.ShellListener shellListener
public static final java.lang.String sVersion
shellListener
setFocusGThread()
now regards the GralPanelContent.setPrimaryWidget(GralWidget)
.
GralWindow_ifc.windRemoveOnClose
getPixelSize()
, chg: getPixelPositionSize()
in all implementations.
A swt.widget.Shell now returns the absolute position and the real size of its client area without menu and title bar.
GralWindow.setResizeAction(GralUserAction)
now for both ctors, resize on subwindow works.
SwtMenu
. Instance refered with menuBar
#addMenuBarArea9ItemGThread(String, String, GralUserAction)
moved from
SwtPrimaryWindow
to this, because the capability to have a menu bar may needed on a sub-window too.
SwtSubWindow#SwtSubWindow(String, Display, String, int, GralMng)
now gets an int-property instead boolean 'exclusive'. A window has more as one property. Constants
are defined in GralWindow_ifc.windExclusive
etc.
shellListener
and disposeListener
added, but empty yet.
mouseListener
and GralWindow.setMouseAction(GralUserAction)
.
resizeListener
, GralWindow.setResizeAction(GralUserAction)
etc:
Not this class is base of SwtPrimaryWindow
and contains this capabilities yet.
getPixelPositionSize()
and setBoundsPixel(int, int, int, int)
to support pixel-orientation too. Note it isn't a concept of GRAL anyway, but it is needed.
GralMng
as parameter of constructor: The GralWidget
refers it, it should be initialized.
removeWidgetImplementation()
.
GralWindow.setWindowVisible(boolean)
, it hasn't
the focus automatically.
GralWindow
.
Some methods GralWidget.setBackColor(GralColor, int)
, GralWindow.setWindowVisible(boolean)
etc added
to comply the interface and super class definitions.
GralPanelContent
.
protected org.eclipse.swt.widgets.Shell window
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.getWidgetImplementation
in interface GralWidgImpl_ifc
public void removeWidgetImplementation()
GralWidgImpl_ifc
removeWidgetImplementation
in interface GralWidgImpl_ifc
public void repaintGthread()
GralWidgImpl_ifc
#repaintRequ
repaintGthread
in interface GralWidgImpl_ifc
public void setBoundsPixel(int x, int y, int dx, int dy)
Scrollable.getClientArea()
to get the size.setBoundsPixel
in interface GralWidgImpl_ifc
public boolean setFocusGThread()
GralWidgImpl_ifc
GralMng_ifc#setFocus(GralWidget)
.setFocusGThread
in interface GralWidgImpl_ifc
public void setVisibleGThread(boolean bVisible)
GralWidgImpl_ifc
GralWidget.bVisibleState
too. Therewith it is able to quest GralWidget.isVisible()
in any thread.setVisibleGThread
in interface GralWidgImpl_ifc
bVisible
- true then the widget should be visible, false it is set to invisible.