servoy sReturnTypes 2 100% height: 30px; 2 Supported Clients sWordList SmartClient sWordList WebClient sWordList NGClient
servoy sSummary 12% 30% 58% height: 30px; 3 Constants Summary 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. 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 sSummary 12% 30% 58% height: 30px; 3 Property Summary Get 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 sSummary 12% 30% 58% height: 30px; 3 Methods Summary void Frees 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. void Deletes the window's currently stored bounds . void Sets the dialog CSS class, can not be used to alter it when already showing, this should be set before the dialog is used . void Sets the initial window bounds. void Set the window location. void Set the window size. void Shows the given form(form name, form object or JSForm) in this window. void Sets whether or not this window should have a text tool bar. void Shows this window behind other windows, if possible. void Bring this window in front of other windows, if possible.
constant servoy sDetail 2 100% height:30px 2 Constants Details DEFAULT name DEFAULT des sIndent 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
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow DIALOG name DIALOG des sIndent 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
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow FULL_SCREEN name FULL_SCREEN des sIndent Value that can be used for bounds in order to specify that a dialog/window should completely fill the screen. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow MODAL_DIALOG name MODAL_DIALOG des sIndent 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
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow WINDOW name WINDOW des sIndent 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. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow
property servoy sDetail 2 100% height:30px 2 Property Details controller name controller des sIndent Get the current controller from the window/dialog. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow opacity name opacity des sIndent 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 clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow resizable name resizable des sIndent Gets/Sets whether or not this window can be resized by the user (default true). ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow storeBounds name storeBounds des sIndent 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
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow title name title des sIndent Gets/Sets the title text. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow transparent name transparent des sIndent 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 clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow undecorated name undecorated des sIndent 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. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow
function servoy sDetail 2 100% height:30px 2 Methods Details destroy name destroy() des sIndent 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
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow getHeight name getHeight() des sIndent Returns the height. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow getName name getName() des sIndent Returns the window name. It will be null in case of main application frame. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow getParent name getParent() des sIndent Returns the parent JSWindow, if available. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow getType name getType() des sIndent Returns the window type. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow getWidth name getWidth() des sIndent Returns the width. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow getX name getX() des sIndent Returns the x coordinate. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow getY name getY() des sIndent Returns the y coordinate. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow hide name hide() des sIndent 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 clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow isVisible name isVisible() des sIndent Returns true if the window is visible, false otherwise. ret Returns
sIndent clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow resetBounds name resetBounds() des sIndent Deletes the window's currently stored bounds. It will only affect the next show of the window . clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow setCSSClass name setCSSClass(cssClassName) des sIndent 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
sIndent cssClassName CSS class name clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow setInitialBounds name setInitialBounds(x, y, width, height) des sIndent 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
sIndent x the initial x coordinate of the window. Can be JSWindow.DEFAULT, JSWindow.FULL_SCREEN. y the initial y coordinate of the window. Can be JSWindow.DEFAULT, JSWindow.FULL_SCREEN. width the initial width of the window. Can be JSWindow.DEFAULT, JSWindow.FULL_SCREEN. height the initial height of the window. Can be JSWindow.DEFAULT, JSWindow.FULL_SCREEN. clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow setLocation name setLocation(x, y) des sIndent Set the window location.
If the coordinates are not valid they might be corrected. (for example out of screen locations) prs Parameters
sIndent x x coordinate. y y coordinate. clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow setSize name setSize(width, height) des sIndent Set the window size. prs Parameters
sIndent width the width. height the height. clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow show name show(form) des sIndent Shows the given form(form name, form object or JSForm) in this window. prs Parameters
sIndent form the 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
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow showTextToolbar name showTextToolbar(showTextToolbar) des sIndent 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
sIndent showTextToolbar true if you want a text tool bar to be added to this window, false otherwise. clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow toBack name toBack() des sIndent Shows this window behind other windows, if possible. clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow toFront name toFront() des sIndent Bring this window in front of other windows, if possible. clients Supported Clients
sIndent SmartClient,WebClient,NGClient sam Sample
sIdent javascript lastDetailRow