{hidden}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden}
{sub-section:description|text=}{sub-section}\\
{table:id=|class=servoy sSummary}{colgroup}{column:width=80px|padding=0px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Constants Summary{th}{tr}{tbody}{tr}{td}[Number]{td}{td}[#DEFAULT]
Value used for x, y, width, height of initial bounds when you want the window to auto\-determine bounds when shown for the first time.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#DIALOG]
Window type constant that identifies a non\-modal dialog type.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#FULL_SCREEN]
Value that can be used for bounds in order to specify that a dialog/window should completely fill the screen.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#MODAL_DIALOG]
Window type constant that identifies a modal dialog type.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#WINDOW]
Window type constant that identifies a window type.{td}{tr}{tbody}{table}\\
{table:id=|class=servoy sSummary}{colgroup}{column:width=80px|padding=0px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property Summary{th}{tr}{tbody}{tr}{td}[controller]{td}{td}[#controller]
Get the current controller from the window/dialog.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#resizable]
Gets/Sets whether or not this window can be resized by the user (default true).{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#storeBounds]
Tells whether or not the bounds of this window should be stored/persisted (default false).{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#title]
Gets/Sets the title text.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#undecorated]
Gets/Sets the undecorated property.{td}{tr}{tbody}{table}\\
{table:id=|class=servoy sSummary}{colgroup}{column:width=80px|padding=0px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method Summary{th}{tr}{tbody}{tr}{td}void{td}{td}[#destroy]\()
Frees the resources allocated by this window.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getHeight]\()
Returns the height.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#getName]\()
Returns the window name.{td}{tr}{tbody}{tbody}{tr}{td}[JSWindow]{td}{td}[#getParent]\()
Returns the parent JSWindow, if available.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getType]\()
Returns the window type.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getWidth]\()
Returns the width.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getX]\()
Returns the x coordinate.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#getY]\()
Returns the y coordinate.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#hide]\()
Hides the window.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#isVisible]\()
Returns true if the window is visible, false otherwise.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#resetBounds]\()
Deletes the window's currently stored bounds.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setInitialBounds]\(x, y, width, height)
Sets the initial window bounds.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setLocation]\(x, y)
Set the window location.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setSize]\(width, height)
Set the window size.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#show]\(form)
Shows the given form(form name, form object or JSForm) in this window.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#showTextToolbar]\(showTextToolbar)
Sets whether or not this window should have a text tool bar.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#toBack]\()
Shows this window behind other windows, if possible.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#toFront]\()
Bring this window in front of other windows, if possible.{td}{tr}{tbody}{table}\\
{table:id=constant|class=servoy sDetail}{colgroup}{column:width=100%|padding=0px}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Constants Details{th}{tr}{tbody:id=DEFAULT|class=node}{tr:id=name}{td}h6.DEFAULT{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:DEFAULT_des|trigger=button|text=}{sub-section}{sub-section:DEFAULT_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:DEFAULT_snc|trigger=button|text=}{sub-section}{sub-section:DEFAULT_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:DEFAULT_prs|trigger=button|text=}{sub-section}{sub-section:DEFAULT_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DEFAULT_ret|trigger=button|text=}{sub-section}{sub-section:DEFAULT_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DEFAULT_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:DEFAULT_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DEFAULT_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:DEFAULT_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DEFAULT_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:DEFAULT_sam|trigger=none}{code:language=javascript}
// show a dialog that self-determines bounds the first time it it open, then remembers last bounds for future show operations
var win = application.createWindow("myName", JSWindow.DIALOG);
win.setInitialBounds(JSWindow.DEFAULT, JSWindow.DEFAULT, JSWindow.DEFAULT, JSWindow.DEFAULT); // will be shown initially centred and with preferred size
forms.myForm.show(win);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=DIALOG|class=node}{tr:id=name}{td}h6.DIALOG{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:DIALOG_des|trigger=button|text=}{sub-section}{sub-section:DIALOG_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:DIALOG_snc|trigger=button|text=}{sub-section}{sub-section:DIALOG_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:DIALOG_prs|trigger=button|text=}{sub-section}{sub-section:DIALOG_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:DIALOG_ret|trigger=button|text=}{sub-section}{sub-section:DIALOG_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:DIALOG_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:DIALOG_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DIALOG_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:DIALOG_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:DIALOG_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:DIALOG_sam|trigger=none}{code:language=javascript}
// create a non-modal dialog on top of current active form's window and show a form inside it
var myWindow = application.createWindow("myName", JSWindow.DIALOG);
myWindow.show(forms.myForm);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=FULL_SCREEN|class=node}{tr:id=name}{td}h6.FULL_SCREEN{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:FULL_SCREEN_des|trigger=button|text=}{sub-section}{sub-section:FULL_SCREEN_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:FULL_SCREEN_snc|trigger=button|text=}{sub-section}{sub-section:FULL_SCREEN_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:FULL_SCREEN_prs|trigger=button|text=}{sub-section}{sub-section:FULL_SCREEN_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:FULL_SCREEN_ret|trigger=button|text=}{sub-section}{sub-section:FULL_SCREEN_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:FULL_SCREEN_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:FULL_SCREEN_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:FULL_SCREEN_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:FULL_SCREEN_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:FULL_SCREEN_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:FULL_SCREEN_sam|trigger=none}{code:language=javascript}
// create and show a window, with specified title, full screen
var win = application.createWindow("windowName", JSWindow.WINDOW);
win.setInitialBounds(JSWindow.FULL_SCREEN, JSWindow.FULL_SCREEN, JSWindow.FULL_SCREEN, JSWindow.FULL_SCREEN);
win.setTitle("This is a window");
controller.show(win);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=MODAL_DIALOG|class=node}{tr:id=name}{td}h6.MODAL_DIALOG{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:MODAL_DIALOG_des|trigger=button|text=}{sub-section}{sub-section:MODAL_DIALOG_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:MODAL_DIALOG_snc|trigger=button|text=}{sub-section}{sub-section:MODAL_DIALOG_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:MODAL_DIALOG_prs|trigger=button|text=}{sub-section}{sub-section:MODAL_DIALOG_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:MODAL_DIALOG_ret|trigger=button|text=}{sub-section}{sub-section:MODAL_DIALOG_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:MODAL_DIALOG_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:MODAL_DIALOG_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:MODAL_DIALOG_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:MODAL_DIALOG_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:MODAL_DIALOG_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:MODAL_DIALOG_sam|trigger=none}{code:language=javascript}
// create a modal dialog on top of current active form's window and show a form inside it
var myWindow = application.createWindow("myName", JSWindow.MODAL_DIALOG);
myWindow.show(forms.myForm);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=WINDOW|class=node}{tr:id=name}{td}h6.WINDOW{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:WINDOW_des|trigger=button|text=}{sub-section}{sub-section:WINDOW_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:WINDOW_snc|trigger=button|text=}{sub-section}{sub-section:WINDOW_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:WINDOW_prs|trigger=button|text=}{sub-section}{sub-section:WINDOW_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:WINDOW_ret|trigger=button|text=}{sub-section}{sub-section:WINDOW_ret|trigger=none|class=sIndent}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:WINDOW_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:WINDOW_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:WINDOW_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:WINDOW_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:WINDOW_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:WINDOW_sam|trigger=none}{code:language=javascript}
// create a window and show a form inside it
var myWindow = application.createWindow("myName", JSWindow.WINDOW);
myWindow.show(forms.myForm);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\
{table:id=property|class=servoy sDetail}{colgroup}{column:width=100%|padding=0px}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=controller|class=node}{tr:id=name}{td}h6.controller{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:controller_des|trigger=button|text=}{sub-section}{sub-section:controller_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:controller_snc|trigger=button|text=}{sub-section}{sub-section:controller_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:controller_prs|trigger=button|text=}{sub-section}{sub-section:controller_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:controller_ret|trigger=button|text=}{sub-section}{sub-section:controller_ret|trigger=none|class=sIndent}[controller]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:controller_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:controller_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:controller_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:controller_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:controller_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:controller_sam|trigger=none}{code:language=javascript}
var formName = application.getWindow('test').controller.getName();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=resizable|class=node}{tr:id=name}{td}h6.resizable{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:resizable_des|trigger=button|text=}{sub-section}{sub-section:resizable_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:resizable_snc|trigger=button|text=}{sub-section}{sub-section:resizable_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:resizable_prs|trigger=button|text=}{sub-section}{sub-section:resizable_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:resizable_ret|trigger=button|text=}{sub-section}{sub-section:resizable_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:resizable_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:resizable_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:resizable_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:resizable_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:resizable_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:resizable_sam|trigger=none}{code:language=javascript}
var someWindow = application.getWindow("someWindowName");
if (someWindow.isVisible() == false) {
controller.show(someWindow);
someWindow.resizable = false;
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=storeBounds|class=node}{tr:id=name}{td}h6.storeBounds{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:storeBounds_des|trigger=button|text=}{sub-section}{sub-section:storeBounds_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:storeBounds_snc|trigger=button|text=}{sub-section}{sub-section:storeBounds_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:storeBounds_prs|trigger=button|text=}{sub-section}{sub-section:storeBounds_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:storeBounds_ret|trigger=button|text=}{sub-section}{sub-section:storeBounds_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:storeBounds_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:storeBounds_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:storeBounds_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:storeBounds_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:storeBounds_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:storeBounds_sam|trigger=none}{code:language=javascript}
var win1 = application.createWindow("Window 1", JSWindow.DIALOG, null);
win1.setInitialBounds(200, 200, 450, 350);
win1.resizable = false;
win1.storeBounds = true;
win1.title = "Window 1";
controller.show(win1);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=title|class=node}{tr:id=name}{td}h6.title{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:title_des|trigger=button|text=}{sub-section}{sub-section:title_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:title_snc|trigger=button|text=}{sub-section}{sub-section:title_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:title_prs|trigger=button|text=}{sub-section}{sub-section:title_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:title_ret|trigger=button|text=}{sub-section}{sub-section:title_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:title_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:title_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:title_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:title_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:title_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:title_sam|trigger=none}{code:language=javascript}
var win1 = application.createWindow("Window 1", JSWindow.WINDOW, null);
win1.setInitialBounds(200, 200, 450, 350);
win1.title = "Window 1";
controller.show(win1);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=undecorated|class=node}{tr:id=name}{td}h6.undecorated{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:undecorated_des|trigger=button|text=}{sub-section}{sub-section:undecorated_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:undecorated_snc|trigger=button|text=}{sub-section}{sub-section:undecorated_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:undecorated_prs|trigger=button|text=}{sub-section}{sub-section:undecorated_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:undecorated_ret|trigger=button|text=}{sub-section}{sub-section:undecorated_ret|trigger=none|class=sIndent}[Boolean] -- if this window will be undecorated{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:undecorated_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:undecorated_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:undecorated_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:undecorated_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:undecorated_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:undecorated_sam|trigger=none}{code:language=javascript}
var someWindow = application.createWindow("someWindowName", JSWindow.WINDOW, null);
someWindow.setInitialBounds(200, 200, 450, 350);
controller.show(someWindow);
var name = "Name: " + someWindow.getName() + "\n"
var parent = "Parent: " + (someWindow.getParent() == null ? "none" : someWindow.getParent()) + "\n"
var type = "TypeNumber: " + someWindow.getType() + "\n"
var height = "Height: " + someWindow.getHeight() + "\n"
var width = "Width: " + someWindow.getWidth() + "\n"
var undecorated = "Undecorated: " + someWindow.isUndecorated() + "\n"
var locationX = "Location-X-coordinate: " + someWindow.getX() + "\n"
var locationY = "Location-Y-coordinate: " + someWindow.getY() + "\n"
var info = name + parent + type + height + width + locationX + locationY + undecorated + "\n"
var closeMsg = "Press 'Ok' to close this dialog."
var infoDialog = plugins.dialogs.showInfoDialog("Window Info", info + closeMsg, "Ok");
if (infoDialog == "Ok") someWindow.close()
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\
{table:id=function|class=servoy sDetail}{colgroup}{column:width=100%|padding=0px}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=destroy|class=node}{tr:id=name}{td}h6.destroy{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}destroy{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:destroy_des|trigger=button|text=}{sub-section}{sub-section:destroy_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:destroy_snc|trigger=button|text=}{sub-section}{sub-section:destroy_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:destroy_prs|trigger=button|text=}{sub-section}{sub-section:destroy_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:destroy_ret|trigger=button|text=}{sub-section}{sub-section:destroy_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:destroy_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:destroy_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:destroy_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:destroy_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:destroy_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:destroy_sam|trigger=none}{code:language=javascript}
var getWindow = application.getWindow("someWindowName");
getWindow.destroy();
getWindow = application.getWindow("someWindowName");
if (getWindow == null) {
application.output("Window has been destroyed");
} else {
application.output("Window could not be destroyed");
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getHeight|class=node}{tr:id=name}{td}h6.getHeight{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getHeight{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getHeight_des|trigger=button|text=}{sub-section}{sub-section:getHeight_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getHeight_snc|trigger=button|text=}{sub-section}{sub-section:getHeight_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getHeight_prs|trigger=button|text=}{sub-section}{sub-section:getHeight_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getHeight_ret|trigger=button|text=}{sub-section}{sub-section:getHeight_ret|trigger=none|class=sIndent}[Number] -- the height.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getHeight_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getHeight_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getHeight_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getHeight_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getHeight_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getHeight_sam|trigger=none}{code:language=javascript}
var someWindow = application.createWindow("someWindowName", JSWindow.WINDOW, null);
someWindow.setInitialBounds(200, 200, 450, 350);
controller.show(someWindow);
var name = "Name: " + someWindow.getName() + "\n"
var parent = "Parent: " + (someWindow.getParent() == null ? "none" : someWindow.getParent()) + "\n"
var type = "TypeNumber: " + someWindow.getType() + "\n"
var height = "Height: " + someWindow.getHeight() + "\n"
var width = "Width: " + someWindow.getWidth() + "\n"
var undecorated = "Undecorated: " + someWindow.isUndecorated() + "\n"
var locationX = "Location-X-coordinate: " + someWindow.getX() + "\n"
var locationY = "Location-Y-coordinate: " + someWindow.getY() + "\n"
var info = name + parent + type + height + width + locationX + locationY + undecorated + "\n"
var closeMsg = "Press 'Ok' to close this dialog."
var infoDialog = plugins.dialogs.showInfoDialog("Window Info", info + closeMsg, "Ok");
if (infoDialog == "Ok") someWindow.close()
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getName|class=node}{tr:id=name}{td}h6.getName{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}getName{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getName_des|trigger=button|text=}{sub-section}{sub-section:getName_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getName_snc|trigger=button|text=}{sub-section}{sub-section:getName_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getName_prs|trigger=button|text=}{sub-section}{sub-section:getName_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getName_ret|trigger=button|text=}{sub-section}{sub-section:getName_ret|trigger=none|class=sIndent}[String] -- the window name.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getName_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getName_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getName_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getName_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getName_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getName_sam|trigger=none}{code:language=javascript}
var someWindow = application.createWindow("someWindowName", JSWindow.WINDOW, null);
someWindow.setInitialBounds(200, 200, 450, 350);
controller.show(someWindow);
var name = "Name: " + someWindow.getName() + "\n"
var parent = "Parent: " + (someWindow.getParent() == null ? "none" : someWindow.getParent()) + "\n"
var type = "TypeNumber: " + someWindow.getType() + "\n"
var height = "Height: " + someWindow.getHeight() + "\n"
var width = "Width: " + someWindow.getWidth() + "\n"
var undecorated = "Undecorated: " + someWindow.isUndecorated() + "\n"
var locationX = "Location-X-coordinate: " + someWindow.getX() + "\n"
var locationY = "Location-Y-coordinate: " + someWindow.getY() + "\n"
var info = name + parent + type + height + width + locationX + locationY + undecorated + "\n"
var closeMsg = "Press 'Ok' to close this dialog."
var infoDialog = plugins.dialogs.showInfoDialog("Window Info", info + closeMsg, "Ok");
if (infoDialog == "Ok") someWindow.close()
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getParent|class=node}{tr:id=name}{td}h6.getParent{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[JSWindow]{span}{span:id=iets|style=float: left; font-weight: bold;}getParent{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getParent_des|trigger=button|text=}{sub-section}{sub-section:getParent_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getParent_snc|trigger=button|text=}{sub-section}{sub-section:getParent_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getParent_prs|trigger=button|text=}{sub-section}{sub-section:getParent_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getParent_ret|trigger=button|text=}{sub-section}{sub-section:getParent_ret|trigger=none|class=sIndent}[JSWindow] -- the parent JSWindow, if available. If there is no parent JSWindow, it will return null.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getParent_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getParent_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getParent_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getParent_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getParent_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getParent_sam|trigger=none}{code:language=javascript}
var someWindow = application.createWindow("someWindowName", JSWindow.WINDOW, null);
someWindow.setInitialBounds(200, 200, 450, 350);
controller.show(someWindow);
var name = "Name: " + someWindow.getName() + "\n"
var parent = "Parent: " + (someWindow.getParent() == null ? "none" : someWindow.getParent()) + "\n"
var type = "TypeNumber: " + someWindow.getType() + "\n"
var height = "Height: " + someWindow.getHeight() + "\n"
var width = "Width: " + someWindow.getWidth() + "\n"
var undecorated = "Undecorated: " + someWindow.isUndecorated() + "\n"
var locationX = "Location-X-coordinate: " + someWindow.getX() + "\n"
var locationY = "Location-Y-coordinate: " + someWindow.getY() + "\n"
var info = name + parent + type + height + width + locationX + locationY + undecorated + "\n"
var closeMsg = "Press 'Ok' to close this dialog."
var infoDialog = plugins.dialogs.showInfoDialog("Window Info", info + closeMsg, "Ok");
if (infoDialog == "Ok") someWindow.close()
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getType|class=node}{tr:id=name}{td}h6.getType{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getType{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getType_des|trigger=button|text=}{sub-section}{sub-section:getType_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getType_snc|trigger=button|text=}{sub-section}{sub-section:getType_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getType_prs|trigger=button|text=}{sub-section}{sub-section:getType_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getType_ret|trigger=button|text=}{sub-section}{sub-section:getType_ret|trigger=none|class=sIndent}[Number] -- the window type. Can be one of JSWindow.DIALOG, JSWindow.MODAL_DIALOG, JSWindow.WINDOW.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getType_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getType_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getType_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getType_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getType_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getType_sam|trigger=none}{code:language=javascript}
var someWindow = application.createWindow("someWindowName", JSWindow.WINDOW, null);
someWindow.setInitialBounds(200, 200, 450, 350);
controller.show(someWindow);
var name = "Name: " + someWindow.getName() + "\n"
var parent = "Parent: " + (someWindow.getParent() == null ? "none" : someWindow.getParent()) + "\n"
var type = "TypeNumber: " + someWindow.getType() + "\n"
var height = "Height: " + someWindow.getHeight() + "\n"
var width = "Width: " + someWindow.getWidth() + "\n"
var undecorated = "Undecorated: " + someWindow.isUndecorated() + "\n"
var locationX = "Location-X-coordinate: " + someWindow.getX() + "\n"
var locationY = "Location-Y-coordinate: " + someWindow.getY() + "\n"
var info = name + parent + type + height + width + locationX + locationY + undecorated + "\n"
var closeMsg = "Press 'Ok' to close this dialog."
var infoDialog = plugins.dialogs.showInfoDialog("Window Info", info + closeMsg, "Ok");
if (infoDialog == "Ok") someWindow.close()
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getWidth|class=node}{tr:id=name}{td}h6.getWidth{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getWidth{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getWidth_des|trigger=button|text=}{sub-section}{sub-section:getWidth_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getWidth_snc|trigger=button|text=}{sub-section}{sub-section:getWidth_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getWidth_prs|trigger=button|text=}{sub-section}{sub-section:getWidth_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getWidth_ret|trigger=button|text=}{sub-section}{sub-section:getWidth_ret|trigger=none|class=sIndent}[Number] -- the width.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getWidth_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getWidth_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getWidth_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getWidth_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getWidth_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getWidth_sam|trigger=none}{code:language=javascript}
var someWindow = application.createWindow("someWindowName", JSWindow.WINDOW, null);
someWindow.setInitialBounds(200, 200, 450, 350);
controller.show(someWindow);
var name = "Name: " + someWindow.getName() + "\n"
var parent = "Parent: " + (someWindow.getParent() == null ? "none" : someWindow.getParent()) + "\n"
var type = "TypeNumber: " + someWindow.getType() + "\n"
var height = "Height: " + someWindow.getHeight() + "\n"
var width = "Width: " + someWindow.getWidth() + "\n"
var undecorated = "Undecorated: " + someWindow.isUndecorated() + "\n"
var locationX = "Location-X-coordinate: " + someWindow.getX() + "\n"
var locationY = "Location-Y-coordinate: " + someWindow.getY() + "\n"
var info = name + parent + type + height + width + locationX + locationY + undecorated + "\n"
var closeMsg = "Press 'Ok' to close this dialog."
var infoDialog = plugins.dialogs.showInfoDialog("Window Info", info + closeMsg, "Ok");
if (infoDialog == "Ok") someWindow.close()
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getX|class=node}{tr:id=name}{td}h6.getX{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getX{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getX_des|trigger=button|text=}{sub-section}{sub-section:getX_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getX_snc|trigger=button|text=}{sub-section}{sub-section:getX_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getX_prs|trigger=button|text=}{sub-section}{sub-section:getX_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getX_ret|trigger=button|text=}{sub-section}{sub-section:getX_ret|trigger=none|class=sIndent}[Number] -- the x coordinate.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getX_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getX_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getX_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getX_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getX_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getX_sam|trigger=none}{code:language=javascript}
var someWindow = application.createWindow("someWindowName", JSWindow.WINDOW, null);
someWindow.setInitialBounds(200, 200, 450, 350);
controller.show(someWindow);
var name = "Name: " + someWindow.getName() + "\n"
var parent = "Parent: " + (someWindow.getParent() == null ? "none" : someWindow.getParent()) + "\n"
var type = "TypeNumber: " + someWindow.getType() + "\n"
var height = "Height: " + someWindow.getHeight() + "\n"
var width = "Width: " + someWindow.getWidth() + "\n"
var undecorated = "Undecorated: " + someWindow.isUndecorated() + "\n"
var locationX = "Location-X-coordinate: " + someWindow.getX() + "\n"
var locationY = "Location-Y-coordinate: " + someWindow.getY() + "\n"
var info = name + parent + type + height + width + locationX + locationY + undecorated + "\n"
var closeMsg = "Press 'Ok' to close this dialog."
var infoDialog = plugins.dialogs.showInfoDialog("Window Info", info + closeMsg, "Ok");
if (infoDialog == "Ok") someWindow.close()
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getY|class=node}{tr:id=name}{td}h6.getY{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Number]{span}{span:id=iets|style=float: left; font-weight: bold;}getY{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:getY_des|trigger=button|text=}{sub-section}{sub-section:getY_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getY_snc|trigger=button|text=}{sub-section}{sub-section:getY_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:getY_prs|trigger=button|text=}{sub-section}{sub-section:getY_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getY_ret|trigger=button|text=}{sub-section}{sub-section:getY_ret|trigger=none|class=sIndent}[Number] -- the y coordinate.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getY_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getY_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getY_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getY_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getY_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:getY_sam|trigger=none}{code:language=javascript}
var someWindow = application.createWindow("someWindowName", JSWindow.WINDOW, null);
someWindow.setInitialBounds(200, 200, 450, 350);
controller.show(someWindow);
var name = "Name: " + someWindow.getName() + "\n"
var parent = "Parent: " + (someWindow.getParent() == null ? "none" : someWindow.getParent()) + "\n"
var type = "TypeNumber: " + someWindow.getType() + "\n"
var height = "Height: " + someWindow.getHeight() + "\n"
var width = "Width: " + someWindow.getWidth() + "\n"
var undecorated = "Undecorated: " + someWindow.isUndecorated() + "\n"
var locationX = "Location-X-coordinate: " + someWindow.getX() + "\n"
var locationY = "Location-Y-coordinate: " + someWindow.getY() + "\n"
var info = name + parent + type + height + width + locationX + locationY + undecorated + "\n"
var closeMsg = "Press 'Ok' to close this dialog."
var infoDialog = plugins.dialogs.showInfoDialog("Window Info", info + closeMsg, "Ok");
if (infoDialog == "Ok") someWindow.close()
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=hide|class=node}{tr:id=name}{td}h6.hide{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}hide{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:hide_des|trigger=button|text=}{sub-section}{sub-section:hide_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:hide_snc|trigger=button|text=}{sub-section}{sub-section:hide_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:hide_prs|trigger=button|text=}{sub-section}{sub-section:hide_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:hide_ret|trigger=button|text=}{sub-section}{sub-section:hide_ret|trigger=none|class=sIndent}[Boolean] -- Boolean true if the window was successfully closed and false otherwise.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:hide_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:hide_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:hide_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:hide_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:hide_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:hide_sam|trigger=none}{code:language=javascript}
//creates and shows a window for 3 seconds before closing it
var win = application.createWindow("someWindowName", JSWindow.WINDOW, null);
win.setInitialBounds(200, 200, 450, 350);
controller.show(win);
application.sleep(3000);
win.hide();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=isVisible|class=node}{tr:id=name}{td}h6.isVisible{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}isVisible{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:isVisible_des|trigger=button|text=}{sub-section}{sub-section:isVisible_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:isVisible_snc|trigger=button|text=}{sub-section}{sub-section:isVisible_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:isVisible_prs|trigger=button|text=}{sub-section}{sub-section:isVisible_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:isVisible_ret|trigger=button|text=}{sub-section}{sub-section:isVisible_ret|trigger=none|class=sIndent}[Boolean] -- true if the window is visible, false otherwise.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:isVisible_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:isVisible_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:isVisible_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:isVisible_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:isVisible_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:isVisible_sam|trigger=none}{code:language=javascript}
var someWindow = application.getWindow("someWindowName");
if (someWindow.isVisible() == false) {
controller.show(someWindow);
someWindow.resizable = false;
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=resetBounds|class=node}{tr:id=name}{td}h6.resetBounds{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}resetBounds{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:resetBounds_des|trigger=button|text=}{sub-section}{sub-section:resetBounds_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:resetBounds_snc|trigger=button|text=}{sub-section}{sub-section:resetBounds_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:resetBounds_prs|trigger=button|text=}{sub-section}{sub-section:resetBounds_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:resetBounds_ret|trigger=button|text=}{sub-section}{sub-section:resetBounds_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:resetBounds_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:resetBounds_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:resetBounds_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:resetBounds_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:resetBounds_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:resetBounds_sam|trigger=none}{code:language=javascript}
var win1 = application.createWindow("Window 1", JSWindow.DIALOG, null);
win1.title = "Window 1";
win1.setInitialBounds(200, 200, 400, 600);
win1.storeBounds = true;
if (newSolutionVersion) win1.resetBounds();
win1.show(forms.myform);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=setInitialBounds-Number_Number_Number_Number|class=node}{tr:id=name}{td}h6.setInitialBounds{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setInitialBounds{span}{span:id=iets|style=float: left;}\(x, y, width, height){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:setInitialBounds-Number_Number_Number_Number_des|trigger=button|text=}{sub-section}{sub-section:setInitialBounds-Number_Number_Number_Number_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:setInitialBounds-Number_Number_Number_Number_snc|trigger=button|text=}{sub-section}{sub-section:setInitialBounds-Number_Number_Number_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:setInitialBounds-Number_Number_Number_Number_prs|trigger=button|text=}{sub-section}{sub-section:setInitialBounds-Number_Number_Number_Number_prs|trigger=none|class=sIndent}\{[Number]} x -- the initial x coordinate of the window. Can be JSWindow.DEFAULT, JSWindow.FULL\_SCREEN.
\{[Number]} y -- the initial y coordinate of the window. Can be JSWindow.DEFAULT, JSWindow.FULL\_SCREEN.
\{[Number]} width -- the initial width of the window. Can be JSWindow.DEFAULT, JSWindow.FULL\_SCREEN.
\{[Number]} height -- the initial height of the window. Can be JSWindow.DEFAULT, JSWindow.FULL\_SCREEN.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:setInitialBounds-Number_Number_Number_Number_ret|trigger=button|text=}{sub-section}{sub-section:setInitialBounds-Number_Number_Number_Number_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:setInitialBounds-Number_Number_Number_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:setInitialBounds-Number_Number_Number_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:setInitialBounds-Number_Number_Number_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:setInitialBounds-Number_Number_Number_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:setInitialBounds-Number_Number_Number_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:setInitialBounds-Number_Number_Number_Number_sam|trigger=none}{code:language=javascript}
var win = application.createWindow("myName", JSWindow.DIALOG);
win.setInitialBounds(20, 10, 300, 200);
forms.myForm.show(win);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=setLocation-Number_Number|class=node}{tr:id=name}{td}h6.setLocation{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setLocation{span}{span:id=iets|style=float: left;}\(x, y){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:setLocation-Number_Number_des|trigger=button|text=}{sub-section}{sub-section:setLocation-Number_Number_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:setLocation-Number_Number_snc|trigger=button|text=}{sub-section}{sub-section:setLocation-Number_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:setLocation-Number_Number_prs|trigger=button|text=}{sub-section}{sub-section:setLocation-Number_Number_prs|trigger=none|class=sIndent}\{[Number]} x -- x coordinate.
\{[Number]} y -- y coordinate.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:setLocation-Number_Number_ret|trigger=button|text=}{sub-section}{sub-section:setLocation-Number_Number_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:setLocation-Number_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:setLocation-Number_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:setLocation-Number_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:setLocation-Number_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:setLocation-Number_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:setLocation-Number_Number_sam|trigger=none}{code:language=javascript}
var window = application.createWindow('test',JSWindow.DIALOG);
window.show(forms.child1);
window.setLocation(0,0);
window.setSize(400,600);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=setSize-Number_Number|class=node}{tr:id=name}{td}h6.setSize{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setSize{span}{span:id=iets|style=float: left;}\(width, height){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:setSize-Number_Number_des|trigger=button|text=}{sub-section}{sub-section:setSize-Number_Number_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:setSize-Number_Number_snc|trigger=button|text=}{sub-section}{sub-section:setSize-Number_Number_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:setSize-Number_Number_prs|trigger=button|text=}{sub-section}{sub-section:setSize-Number_Number_prs|trigger=none|class=sIndent}\{[Number]} width -- the width.
\{[Number]} height -- the height.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:setSize-Number_Number_ret|trigger=button|text=}{sub-section}{sub-section:setSize-Number_Number_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:setSize-Number_Number_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:setSize-Number_Number_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:setSize-Number_Number_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:setSize-Number_Number_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:setSize-Number_Number_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:setSize-Number_Number_sam|trigger=none}{code:language=javascript}
var window = application.createWindow('test',JSWindow.DIALOG);
window.show(forms.child1);
window.setLocation(0,0);
window.setSize(400,600);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=show-Object|class=node}{tr:id=name}{td}h6.show{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}show{span}{span:id=iets|style=float: left;}\(form){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:show-Object_des|trigger=button|text=}{sub-section}{sub-section:show-Object_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:show-Object_snc|trigger=button|text=}{sub-section}{sub-section:show-Object_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:show-Object_prs|trigger=button|text=}{sub-section}{sub-section:show-Object_prs|trigger=none|class=sIndent}\{[Object]} form -- the form that will be shown inside this window. It can be a form name or a form object (actual form or JSForm).
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:show-Object_ret|trigger=button|text=}{sub-section}{sub-section:show-Object_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:show-Object_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:show-Object_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:show-Object_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:show-Object_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:show-Object_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:show-Object_sam|trigger=none}{code:language=javascript}
win.show(forms.myForm);
// win.show("myForm");
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=showTextToolbar-Boolean|class=node}{tr:id=name}{td}h6.showTextToolbar{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}showTextToolbar{span}{span:id=iets|style=float: left;}\(showTextToolbar){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:showTextToolbar-Boolean_des|trigger=button|text=}{sub-section}{sub-section:showTextToolbar-Boolean_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:showTextToolbar-Boolean_snc|trigger=button|text=}{sub-section}{sub-section:showTextToolbar-Boolean_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:showTextToolbar-Boolean_prs|trigger=button|text=}{sub-section}{sub-section:showTextToolbar-Boolean_prs|trigger=none|class=sIndent}\{[Boolean]} showTextToolbar -- true if you want a text tool bar to be added to this window, false otherwise.
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:showTextToolbar-Boolean_ret|trigger=button|text=}{sub-section}{sub-section:showTextToolbar-Boolean_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:showTextToolbar-Boolean_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:showTextToolbar-Boolean_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:showTextToolbar-Boolean_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:showTextToolbar-Boolean_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:showTextToolbar-Boolean_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:showTextToolbar-Boolean_sam|trigger=none}{code:language=javascript}
var win1 = application.createWindow("Window 1", JSWindow.WINDOW, null);
win1.setInitialBounds(200, 200, 450, 350);
win1.setTitle("Window 1");
win1.showTextToolbar(false);
controller.show(win1);
var win2 = application.createWindow("Window 2", JSWindow.WINDOW, null);
win2.setInitialBounds(500, 500, 450, 350);
win2.setTitle("Window 2");
win2.showTextToolbar(false);
controller.show(win2);
var win3 = application.createWindow("Window 3", JSWindow.WINDOW, null);
win3.setInitialBounds(650, 700, 450, 350);
win3.setTitle("Window 3");
win3.showTextToolbar(true);
controller.show(win3);
application.sleep(2000);
win3.toBack();
application.sleep(2000);
win1.toFront();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=toBack|class=node}{tr:id=name}{td}h6.toBack{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}toBack{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:toBack_des|trigger=button|text=}{sub-section}{sub-section:toBack_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:toBack_snc|trigger=button|text=}{sub-section}{sub-section:toBack_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:toBack_prs|trigger=button|text=}{sub-section}{sub-section:toBack_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:toBack_ret|trigger=button|text=}{sub-section}{sub-section:toBack_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:toBack_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:toBack_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:toBack_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:toBack_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:toBack_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:toBack_sam|trigger=none}{code:language=javascript}
var win1 = application.createWindow("Window 1", JSWindow.WINDOW, null);
win1.setInitialBounds(200, 200, 450, 350);
win1.setTitle("Window 1");
win1.showTextToolbar(false);
controller.show(win1);
var win2 = application.createWindow("Window 2", JSWindow.WINDOW, null);
win2.setInitialBounds(500, 500, 450, 350);
win2.setTitle("Window 2");
win2.showTextToolbar(false);
controller.show(win2);
var win3 = application.createWindow("Window 3", JSWindow.WINDOW, null);
win3.setInitialBounds(650, 700, 450, 350);
win3.setTitle("Window 3");
win3.showTextToolbar(true);
controller.show(win3);
application.sleep(2000);
win3.toBack();
application.sleep(2000);
win1.toFront();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=toFront|class=node}{tr:id=name}{td}h6.toFront{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}toFront{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:toFront_des|trigger=button|text=}{sub-section}{sub-section:toFront_des|trigger=none|class=sIndent}Replace with description{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:toFront_snc|trigger=button|text=}{sub-section}{sub-section:toFront_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:toFront_prs|trigger=button|text=}{sub-section}{sub-section:toFront_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:toFront_ret|trigger=button|text=}{sub-section}{sub-section:toFront_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:toFront_see|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:toFront_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:toFront_link|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:toFront_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:toFront_sam|trigger=button|text=}{sub-section}{div:class=sIndent}{sub-section:toFront_sam|trigger=none}{code:language=javascript}
var win1 = application.createWindow("Window 1", JSWindow.WINDOW, null);
win1.setInitialBounds(200, 200, 450, 350);
win1.setTitle("Window 1");
win1.showTextToolbar(false);
controller.show(win1);
var win2 = application.createWindow("Window 2", JSWindow.WINDOW, null);
win2.setInitialBounds(500, 500, 450, 350);
win2.setTitle("Window 2");
win2.showTextToolbar(false);
controller.show(win2);
var win3 = application.createWindow("Window 3", JSWindow.WINDOW, null);
win3.setInitialBounds(650, 700, 450, 350);
win3.setTitle("Window 3");
win3.showTextToolbar(true);
controller.show(win3);
application.sleep(2000);
win3.toBack();
application.sleep(2000);
win1.toFront();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}
Cache
index
true
refresh
100d
showRefresh
true
id
doc
title
Refresh page
showDate
true
retry
Enable
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.c 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 dialog CSS class, can not be used to alter it when already showing, this should be set before the dialog is used.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
dessIndent
Value 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
sIdentjavascriptlastDetailRowDIALOGname
DIALOG
dessIndent
Window 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
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowFULL_SCREENname
FULL_SCREEN
dessIndent
Value that can be used for bounds in order to specify that a dialog/window should completely fill the screen.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowMODAL_DIALOGname
MODAL_DIALOG
dessIndent
c
Window 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
sIdentjavascriptlastDetailRowWINDOWname
WINDOW
dessIndent
Window 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.
Get the current controller from the window/dialog.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowopacityname
opacity
dessIndent
Gets/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
sIndent the opacity of this windowclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowresizablename
resizable
dessIndent
Gets/Sets whether or not this window can be resized by the user (default true).
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowstoreBoundsname
storeBounds
dessIndent
Tells 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
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowtitlename
title
dessIndent
Gets/Sets the title text.
ret
Returns
sIndentclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowtransparentname
transparent
dessIndent
Gets/Sets the transparency property.
NOTE: For smart clients, the window must be undecorated or the
servoy.smartclient.allowLAFWindowDecoration property set to true
ret
Returns
sIndent transparency state of the windowclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowundecoratedname
undecorated
dessIndent
Gets/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.
Frees 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.
clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetHeightname
getHeight()
dessIndent
Returns the height.
ret
Returns
sIndent the height.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetNamename
getName()
dessIndent
Returns the window name. It will be null in case of main application frame.
ret
Returns
sIndent the window name.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetParentname
getParent()
dessIndent
Returns the parent JSWindow, if available.
ret
Returns
sIndent the parent JSWindow, if available. If there is no parent JSWindow, it will return null.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetTypename
getType()
dessIndent
Returns the window type.
ret
Returns
sIndent the window type. Can be one of JSWindow.DIALOG, JSWindow.MODAL_DIALOG, JSWindow.WINDOW.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetWidthname
getWidth()
dessIndent
Returns the width.
ret
Returns
sIndent the width.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetXname
getX()
dessIndent
Returns the x coordinate.
ret
Returns
sIndent the x coordinate.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowgetYname
getY()
dessIndent
Returns the y coordinate.
ret
Returns
sIndent the y coordinate.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowhidename
hide()
dessIndent
Hides the window. It can be shown again using window.show(), controller.show() or controller.showRecords().
The main application window cannot be hidden.
ret
Returns
sIndent Boolean true if the window was successfully closed and false otherwise.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowisVisiblename
isVisible()
dessIndent
Returns true if the window is visible, false otherwise.
ret
Returns
sIndent true if the window is visible, false otherwise.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowresetBoundsname
resetBounds()
dessIndent
Deletes the window's currently stored bounds. It will only affect the next show of the window.
clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowsetCSSClassname
setCSSClass(cssClassName)
dessIndent
Sets the dialog CSS class, can not be used to alter it when already showing, this should be set before the dialog is used.
See sample code for examples of CSS classes for display customizations
prs
Parameters
sIndentcssClassNameCSS class nameclients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowsetInitialBoundsname
setInitialBounds(x, y, width, height)
dessIndent
Sets 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.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowsetLocationname
setLocation(x, y)
dessIndent
Set the window location.
If the coordinates are not valid they might be corrected. (for example out of screen locations)
prs
Parameters
sIndentxx coordinate.yy coordinate.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowsetSizename
setSize(width, height)
dessIndent
Set the window size.
prs
Parameters
sIndentwidththe width.heightthe height.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowshowname
show(form)
dessIndent
Shows the given form(form name, form object or JSForm) in this window.
prs
Parameters
sIndentformthe form that will be shown inside this window. It can be a form name or a form object (actual form or JSForm).clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowshowTextToolbarname
showTextToolbar(showTextToolbar)
dessIndent
Sets whether or not this window should have a text tool bar. Has no effect on web client or smart client main application frame.
prs
Parameters
sIndentshowTextToolbartrue if you want a text tool bar to be added to this window, false otherwise.clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowtoBackname
toBack()
dessIndent
Shows this window behind other windows, if possible.
clients
Supported Clients
sIndentSmartClient,WebClient,NGClientsam
Sample
sIdentjavascriptlastDetailRowtoFrontname
toFront()
dessIndent
Bring this window in front of other windows, if possible.