servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClientservoy sSummary12%30%58%height: 30px;3Constants SummaryValue used for x, y, width, height of initial bounds when you want the window to auto-determine bounds when shown for the first time.Window type constant that identifies a non-modal dialog type.Value that can be used for bounds in order to specify that a dialog/window should completely fill the screen.Window type constant that identifies a modal dialog type.Window type constant that identifies a window type.servoy sSummary12%30%58%height: 30px;3Property SummaryGet the current controller from the window/dialog.Gets/Sets the opacity property.Gets/Sets whether or not this window can be resized by the user (default true).Tells whether or not the bounds of this window should be stored/persisted (default false).Gets/Sets the title text.Gets/Sets the transparency property.Gets/Sets the undecorated property.servoy sSummary12%30%58%height: 30px;3Methods SummaryvoidFrees the resources allocated by this window.Returns the height.Returns the window name.Returns the parent JSWindow, if available.Returns the window type.Returns the width.Returns the x coordinate.Returns the y coordinate.Hides the window.Returns true if the window is visible, false otherwise.voidDeletes the window's currently stored bounds.voidSets the initial window bounds.voidSet the window location.voidSet the window size.voidShows the given form(form name, form object or JSForm) in this window.voidSets whether or not this window should have a text tool bar.voidShows this window behind other windows, if possible.voidBring this window in front of other windows, if possible.constantservoy sDetail2100%height:30px2Constants DetailsDEFAULTname
DEFAULT
dessIndentValue used for x, y, width, height of initial bounds when you want the window to auto-determine bounds when shown for the first time.ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRow DIALOGname
DIALOG
dessIndentWindow type constant that identifies a non-modal dialog type. Non-modal dialogs will allow the user to interact with parent windows, but are less independent then windows with WINDOW type. Dialogs will stay on top of parent windows and are less accessible through the OS window manager. In web-client dialogs will not open in a separate browser window.ret
dessIndentWindow type constant that identifies a modal dialog type. Modal dialogs will not allow the user to interact with the parent window(s) until closed. Dialogs will stay on top of parent windows and are less accessible through the OS window manager. In web-client dialogs will not open in a separate browser window. NOTE: no code is executed in Smart Client after a modal dialog is shown (the show operation blocks) until this dialog closes.ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRow WINDOWname
WINDOW
dessIndentWindow type constant that identifies a window type. WINDOW type is the most independent type of window. It will be more accessible through the OS window manager, it can appear both in front of and under other windows and it doesn't block user interaction for other windows. In web-client windows will open in a separate browser window.ret
dessIndentGet the current controller from the window/dialog.ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRow opacityname
opacity
dessIndentGets/Sets the opacity property. By default will have value 1 (completely opaque), and can be assigned to values between 0 and 1. If set then window will also be undecorated. This should be set before the dialog/window is shown, otherwise it has no effect.ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRow resizablename
resizable
dessIndentGets/Sets whether or not this window can be resized by the user (default true).ret
dessIndentTells whether or not the bounds of this window should be stored/persisted (default false). If true, the window's bounds will be stored when the window is closed. Stored bounds will be used when the window is shown again instead of initialBounds. For non resizable windows, only location is stored/persisted.ret
dessIndentGets/Sets the transparency property. NOTE: For smart clients, the window must be undecorated or the servoy.smartclient.allowLAFWindowDecoration property set to trueret
dessIndentGets/Sets the undecorated property. If set then this window will not have any decoration and can't be moved/resized or closed. This should be set before dialog/window is shown, otherwise has no effect.ret
dessIndentFrees the resources allocated by this window. If window is visible, it will close it first. The window will no longer be available with application.getWindow('windowName') and will no longer be usable. The main application window cannot be destroyed.ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRow getHeightname
getHeight()
dessIndentReturns the height.ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRow getNamename
getName()
dessIndentReturns the window name. It will be null in case of main application frame.ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRow getParentname
getParent()
dessIndentReturns the parent JSWindow, if available.ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRow getTypename
getType()
dessIndentReturns the window type.ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRow getWidthname
getWidth()
dessIndentReturns the width.ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRow getXname
getX()
dessIndentReturns the x coordinate.ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRow getYname
getY()
dessIndentReturns the y coordinate.ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRow hidename
hide()
dessIndentHides the window. It can be shown again using window.show(), controller.show() or controller.showRecords(). The main application window cannot be hidden.ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRow isVisiblename
isVisible()
dessIndentReturns true if the window is visible, false otherwise.ret
dessIndentSets the initial window bounds. The initial bounds are only used the first time this window is shown (what first show means depends on storeBounds property).prs
Parameters
sIndentxthe initial x coordinate of the window. Can be JSWindow.DEFAULT, JSWindow.FULL_SCREEN.ythe initial y coordinate of the window. Can be JSWindow.DEFAULT, JSWindow.FULL_SCREEN.widththe initial width of the window. Can be JSWindow.DEFAULT, JSWindow.FULL_SCREEN.heightthe initial height of the window. Can be JSWindow.DEFAULT, JSWindow.FULL_SCREEN.ret