public interface GralWindow_ifc extends GralWindow_getifc, GralWindow_setifc, GralWidget_ifc
GralWindow
is the base of implementation.
This interface contains the get and set access-interfaces (the base ones)
and contains the build-method-definition for windows.GralWidget_ifc.ActionChange, GralWidget_ifc.ActionChangeWhen
Modifier and Type | Field and Description |
---|---|
static int |
version
Version, history and license.
|
static int |
windConcurrently
Property defines that the window is opened concurrently together with other windows
of the application, especially concurrently to the primary window.
|
static int |
windExclusive
Property defines that the window is opened exclusive for the application.
|
static int |
windHasMenu |
static int |
windIsMain |
static int |
windOnTop |
static int |
windRemoveOnClose
Property defines that the window should be removed on closing.
|
static int |
windResizeable
Property defines that the window is able to resize
|
sVersion
Modifier and Type | Method and Description |
---|---|
void |
addMenuBarItemGThread(java.lang.String nameWidg,
java.lang.String sMenuPath,
GralUserAction action)
Deprecated.
|
GralMenu |
getMenuBar()
Gets the menu bar to add a menu item.
|
void |
setFullScreen(boolean full) |
void |
setMouseAction(GralUserAction action)
Sets an action which is invoked if any mouse button is pressed in the windows area on the screen.
|
void |
setResizeAction(GralUserAction action)
Sets an action which is invoked if the whole window is resized by user handling on the window borders.
|
void |
setTitle(java.lang.String sTitle) |
void |
specifyActionOnCloseWindow(GralUserAction action)
Sets an action which is invoked if the window is set invisible or it is disposed.
|
getPixelPositionSize, isWindowsVisible
closeWindow, setWindowVisible
createImplWidget_Gthread, getActionChange, getBackColor, getCmd, getContentIdent, getContentInfo, getData, getDataPath, getName, gralMng, isChanged, isEditable, isGraphicDisposed, isInFocus, isNotEditableOrShouldInitialize, isVisible, refreshFromVariable, refreshFromVariable, repaint, repaint, setBackColor, setBackgroundColor, setBoundsPixel, setCmd, setContentIdent, setData, setDataPath, setEditable, setFocus, setFocus, setForegroundColor, setHtmlHelp, setLineColor, setText, setTextColor, setToPanel, setVisible
remove
static final int version
specifyActionOnCloseWindow(GralUserAction)
instead 'setActionOnSettingInvisible', more expressive name.
windRemoveOnClose
static final int windRemoveOnClose
static final int windResizeable
static final int windExclusive
static final int windConcurrently
windExclusive
property is not set.
It is 'application non-modal'.static final int windOnTop
static final int windHasMenu
static final int windIsMain
void setResizeAction(GralUserAction action)
action
- The GralUserAction.userActionGui(int, GralWidget, Object...)
will be called
without parameter.void setMouseAction(GralUserAction action)
action
- The GralUserAction.userActionGui(int, GralWidget, Object...)
will be called
with parameter key: The mouse key. params[0]: Instance of GralRectangle
with mouse coordinates.@Deprecated void addMenuBarItemGThread(java.lang.String nameWidg, java.lang.String sMenuPath, GralUserAction action)
getMenuBar()
and then GralMenu.addMenuItem(String, String, GralUserAction)
name
- name of the menu, it is used as widget name.sMenuPath
- Menu position. Use slash as separator, use & for hot key.
For example "&edit/&search/co&ntinue" creates a menu 'edit' or uses the existing one in the top level (menu bar),
then creates the search menu item as pull down in menu bar, and then 'continue' with 'n' as hot key as sub-menu.
It is stored in GralWidget.sDataPath
action
- called on menu activation.GralMenu getMenuBar()
GralMng#createMenuBar(GralWindow)
.
If the window has a menu bar already, it is stored in the reference #menuBarGral
.void specifyActionOnCloseWindow(GralUserAction action)
windRemoveOnClose
the window is disposed or it is set invisible without disposing
if the close action is done by the user. In both cases this action will be invoked.action
- The GralUserAction.userActionGui(int, GralWidget, Object...)
will be called
without parameter.void setFullScreen(boolean full)
setFullScreen
in interface GralWindow_setifc
void setTitle(java.lang.String sTitle)