public class SwtSubWindow extends GralWindow.GraphicImplAccess implements GralWidgImpl_ifc
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
SwtSubWindow.ActionUserMenuItem |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
bFullScreen
State of the window in swt.
|
private boolean |
bHasMouseAction
Some flags to set an action listener a first time if the action is given.
|
private boolean |
bHasResizeAction
Some flags to set an action listener a first time if the action is given.
|
private org.eclipse.swt.events.DisposeListener |
disposeListener |
private org.eclipse.swt.events.DisposeListener |
disposeListenerMainWindow |
protected SwtMenu |
menuBar |
(package private) org.eclipse.swt.events.MouseListener |
mouseListener
The mouseListener will be activated if
GralWindow.setMouseAction(GralUserAction) will be called. |
private org.eclipse.swt.events.ControlListener |
resizeListener
The resizeListener will be activated if
GralWindow.setResizeAction(GralUserAction) will be called. |
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). |
(package private) SwtWidgetHelper |
swtWidgWrapper
It contains the association to the swt widget (Control) and the
SwtMng
and implements some methods of GralWidgImpl_ifc which are delegate from this. |
protected org.eclipse.swt.widgets.Shell |
window |
gralWindowchgBitsDerived, chgColorBack, chgColorLine, chgColorText, chgEditable, chgFloat, chgFocus, chgFont, chgIntg, chgInvisible, chgObjects, chgPos, chgText, chgVisible, chgVisibleInfo, pixBounds, wdgimpl, widgg| Constructor and Description |
|---|
SwtSubWindow(SwtMng mng,
GralWindow wdgGral)
Constructs a window (primary or sub window maybe for dialog etc.).
|
| 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.
|
(package private) void |
stop() |
actionOnCloseWindow, getTitle, getWindowProps, isFullScreen, mouseAction, resizeAction, shouldClosegralPanelacknChanged, actionShow, dyda, getActionChange, getChanged, gralWidgetFromImplData, setDragEnable, setDropEnable, setFocused, setTextChanged, setVisibleState, XXXfocusGainedpublic 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.
SwtWidgetHelper swtWidgWrapper
SwtMng
and implements some methods of GralWidgImpl_ifc which are delegate from this.protected org.eclipse.swt.widgets.Shell window
protected boolean bFullScreen
private boolean bHasResizeAction
private boolean bHasMouseAction
private final org.eclipse.swt.events.ControlListener resizeListener
GralWindow.setResizeAction(GralUserAction) will be called.
It calls this user action on resize.protected org.eclipse.swt.events.ShellListener shellListener
private final org.eclipse.swt.events.DisposeListener disposeListener
private final org.eclipse.swt.events.DisposeListener disposeListenerMainWindow
org.eclipse.swt.events.MouseListener mouseListener
GralWindow.setMouseAction(GralUserAction) will be called.
It calls this user action on resize.SwtSubWindow(SwtMng mng, GralWindow wdgGral)
name - display - title - windProps - gralMng - public java.lang.Object getWidgetImplementation()
GralWidgImpl_ifcComponent.
GralWidget._wdgImpl class
which should contain the references to that implementation widgets.getWidgetImplementation in interface GralWidgImpl_ifcpublic void removeWidgetImplementation()
GralWidgImpl_ifcremoveWidgetImplementation in interface GralWidgImpl_ifcpublic 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)
Scrollable.getClientArea() to get the size.setBoundsPixel in interface GralWidgImpl_ifcvoid stop()
public boolean setFocusGThread()
GralWidgImpl_ifcGralMng_ifc#setFocus(GralWidget).setFocusGThread in interface GralWidgImpl_ifcpublic void setVisibleGThread(boolean bVisible)
GralWidgImpl_ifcGralWidget.bVisibleState too. Therewith it is able to quest GralWidget.isVisible() in any thread.setVisibleGThread in interface GralWidgImpl_ifcbVisible - true then the widget should be visible, false it is set to invisible.public void repaintGthread()
GralWidgImpl_ifc#repaintRequrepaintGthread in interface GralWidgImpl_ifc