public interface GuiWindow extends Widget<GuiOutputManager>
Widget.ZOrderClass
Modifier and Type | Method and Description |
---|---|
void |
close()
Close this window.
|
CoordinatesConversion |
coordinates()
Returns the output window's coordinates conversion service.
|
Border<GuiOutputManager> |
getBorder()
Returns the window's border implementation.
|
MessageAreaGuiImpl |
getGuiMessageArea()
Get the message area widget associated with this window.
|
Dimension |
getMaxWorkspaceSize()
Get the maximum size of the window workspace area.
|
MessageArea<GuiOutputManager> |
getMessageArea()
Get the message area widget associated with this window.
|
NativeDimension |
getMinSize()
Returns the window minimum size.
|
NativeDimension |
getResizedSize()
Determine the resized window size.
|
StatusLine<GuiOutputManager> |
getStatusArea()
Get the status area widget associated with this window.
|
WindowTitleBar |
getTitleBar()
Get the title bar widget associated witn this window.
|
NativeDimension |
getWorkspaceNativeSize()
Get the native size of the window workspace area.
|
NativePoint |
getWorkspaceScreenLocation()
Get the screen location of the window workspace area, in native units.
|
boolean |
hasDecorations()
Determine if this window can have decorations.
|
void |
iconify()
Iconify the window.
|
void |
iconify(int sourceId)
Iconify the window.
|
void |
iconify(int sourceId,
boolean postEvent)
Iconify the window.
|
boolean |
isMaximized()
Check if the window is already maximized - it can't be resized.
|
boolean |
isResizeWorkspace()
Determine if this window workspace needs to be resized.
|
boolean |
isResizing()
Determine if this window is being resized.
|
default boolean |
isShareActivationWithOwner()
This method indicates whether the window shares its activation
state with its owner.
|
boolean |
loadWindowIcon(boolean small,
java.lang.String name)
Loads the new application icon for given window from the client side filesystem.
|
void |
maximize()
Maximize this window.
|
void |
maximize(boolean postEvent)
Maximize this window.
|
void |
resizeTo(NativePoint origin,
NativeDimension size)
Resize the widget to the specified dimensions.
|
void |
resizeTo(NativePoint origin,
NativeDimension size,
boolean raise)
Resize the widget to the specified dimensions.
|
int |
resolveTitleFont()
Resolve the font associated with the window's title.
|
void |
restore()
Restore the window by raising the
WINDOW-RESTORE event. |
void |
restore(int sourceId)
Restore the window by raising the
WINDOW-RESTORE event. |
void |
restore(int sourceId,
boolean postEvent)
Restore the window by raising the
WINDOW-RESTORE event. |
void |
setLocation(double x,
double y)
Set window location.
|
void |
setPhysicalLocation(int x,
int y)
Set window physical location.
|
void |
setSize(double width,
double height)
Set window size.
|
boolean |
setWindowIcon(byte[] newIcon)
Sets the new application icon for given window on the client side.
|
void |
setWorkspaceLocation(int x,
int y)
Sets the window workspace location.
|
void |
setWorkspaceNativeSize(int width,
int height)
Sets the native size of the window workspace area.
|
addFocusListener, addKeyListener, ancestor, ancestorId, bounds, clearWidget, config, defaultMousePtr, destroy, dimension, displayPhysicalLocation, draw, drawCaret, enclosingFrame, enforceDefaultMousePtr, findMouseSource, focusTraversable, forceCursorOnFocus, forceVisibility, getActualBounds, getCustomMousePointer, getEffectiveMousePointer, getId, getLegacyWidget, getLoadedMousePointer, getMenuMouse, getMouseActions, getSelectedText, getState, getVisiblePart, getZOrderClass, hasFocus, height, hidden, hide, highlighted, insets, isDirectManipulable, isDisplayed, isEnabled, isFocusable, isHeader, isRealized, isRMBEntrySupported, isTabStop, isThreeD, isTotallyObscured, isVisible, location, minimumSize, moveToBottom, moveToTop, name, navigable, parent, parent, parentOrSelf, physicalBounds, physicalDimension, physicalLocation, postprocessConfig, processDirectManipulationEvent, processEvent, processFocusEvent, processKeyEvent, processKeyListeners, processMnemonic, raiseLegacyMouseEvents, repaint, repaint, requestFocus, requestSync, screen, screenLocation, screenPhysicalLocation, setEnabled, setHidden, setHighlighted, setLocation, setMousePointer, setParent, setState, setVisible, show, supportsCustomMousePointer, topLevelWindow, unrealize, width, window
int resolveTitleFont()
MessageAreaGuiImpl getGuiMessageArea()
void iconify()
void iconify(int sourceId)
sourceId
- The root ID of the sub-tree which was iconified, and triggered iconification of
this window.void iconify(int sourceId, boolean postEvent)
sourceId
- The root ID of the sub-tree which was iconified, and triggered iconification of
this window.postEvent
- When true
the method posts the WINDOW-MINIMIZED legacy event,
false
means no event is posted.void restore()
WINDOW-RESTORE
event.void restore(int sourceId)
WINDOW-RESTORE
event.sourceId
- The root ID of the sub-tree which was iconified, and triggered iconification of
this window.void restore(int sourceId, boolean postEvent)
WINDOW-RESTORE
event.sourceId
- The root ID of the sub-tree which was iconified, and triggered iconification of
this window.postEvent
- When true
the method posts the WINDOW-RESTORED legacy event,
false
means no event is posted.void maximize()
void maximize(boolean postEvent)
postEvent
- When true
the method posts the WINDOW-MAXIMIZED legacy event,
false
means no event is posted.void resizeTo(NativePoint origin, NativeDimension size)
origin
- The top-left window corner new position.size
- The new window size.void resizeTo(NativePoint origin, NativeDimension size, boolean raise)
resizeTo
in interface Widget<GuiOutputManager>
origin
- The top-left window corner new position.size
- The new window size.raise
- Flag indicating if the 4GL WINDOW-RESIZED event needs to be raised.boolean setWindowIcon(byte[] newIcon)
newIcon
- A new icon image array data.TRUE
if operation successful FALSE
otherwise.boolean loadWindowIcon(boolean small, java.lang.String name)
small
- Flag indicating usage of the small icon case(16x16 in size).name
- The fully qualified file name for the icon to be loaded.TRUE
if operation successful FALSE
otherwise.boolean isMaximized()
true
, false
otherwise.CoordinatesConversion coordinates()
CoordinatesConversion
instance.void setSize(double width, double height)
width
- New width.height
- New height.boolean isResizing()
true
, false
otherwise.boolean isResizeWorkspace()
NativeDimension getResizedSize()
WindowTitleBar getTitleBar()
StatusLine<GuiOutputManager> getStatusArea()
NativePoint getWorkspaceScreenLocation()
NativeDimension getWorkspaceNativeSize()
Dimension getMaxWorkspaceSize()
void setWorkspaceNativeSize(int width, int height)
width
- New workspace width.height
- New workspace height.void setWorkspaceLocation(int x, int y)
x
- The x location.y
- The y location.void close()
MessageArea<GuiOutputManager> getMessageArea()
void setLocation(double x, double y)
setLocation
in interface Widget<GuiOutputManager>
x
- Window COLUMN.y
- Window ROW.void setPhysicalLocation(int x, int y)
setPhysicalLocation
in interface Widget<GuiOutputManager>
x
- Widget physical X.y
- Widget physical Y.NativeDimension getMinSize()
default boolean isShareActivationWithOwner()
Border<GuiOutputManager> getBorder()
null
is returned, the window has no border.null
.boolean hasDecorations()