Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{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 sReturnTypes}{tr:style=height: 30px;}{th}Return Types{th}{tr}{tr}{td}{span:class=sWordList}[CheckBox]{span}{span:class=sWordList}[Menu]{span}{span:class=sWordList}[MenuBar]{span}{span:class=sWordList}[MenuItem]{span}{span:class=sWordList}[Popup]{span}{span:class=sWordList}[RadioButton]{span}{span:class=sWordList}[ToolBar]{span}{td}{tr}{table}\\ 

{table:id=|class=servoy sSummerysSummary}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method SummerySummary{th}{tr}{tbody}{tr}{td}[ToolBar]{td}{td}[#addToolBar]\(name, \[displayname\], \[row\])
Add a toolbar by name and optional displayname and row.{td}{tr}{tbody}{tbody}{tr}{td}[Popup]{td}{td}[#createPopupMenu]\()
{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#createShortcut]\(shortcut, method, \[form_name\])
Create a shortcut.{td}{tr}{tbody}{tbody}{tr}{td}[MenuBar]{td}{td}[#getMenuBar]\(\[windowName\])
Get the menubar of a window.{td}{tr}{tbody}{tbody}{tr}{td}[ToolBar]{td}{td}[#getToolBar]\(name)
Get the toolbar from the toolbar panel by name.{td}{tr}{tbody}{tbody}{tr}{td}[String]\[]{td}{td}[#getToolbarNames]\()
Get all toolbar names from the toolbar panel.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#maximize]\(\[windowName\])
Maximize the current window or the window with the name provided (Smart client only){td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#removeShortcut]\(shortcut, \[form_name\])
Remove a shortcut.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#removeToolBar]\(name)
Remove the toolbar from the toolbar panel.{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setFullScreen]\()
{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setStatusBarVisible]\()
{td}{tr}{tbody}{tbody}{tr}{td}void{td}{td}[#setToolBarVisible#setToolBarAreaVisible]\()
{td}{tr}{tbody}{table}\\ 

{table:id=function|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=addToolBar|class=node}{tr:id=name}{td}h6.addToolBar{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[ToolBar]{span}{span:id=iets|style=float: left; font-weight: bold;}addToolBar{span}{span:id=iets|style=float: left;}\(name, \[displayname\], \[row\]){span}{td}{tr}{tr:id=des}{td}{sub-section:addToolBar_des|text=|trigger=button}{sub-section}{sub-section:addToolBar_des|trigger=none|class=sIndent}Add a toolbar by name and optional displayname and row.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:addToolBar_snc|text=|trigger=button}{sub-section}{sub-section:addToolBar_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:addToolBar_prs|text=|trigger=button}{sub-section}{sub-section:addToolBar_prs|trigger=none|class=sIndent}name
\[displayname\]
\[row\]
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:addToolBar_ret|text=|trigger=button}{sub-section}{sub-section:addToolBar_ret|trigger=none|class=sIndent}[ToolBar]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:addToolBar_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:addToolBar_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:addToolBar_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:addToolBar_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:addToolBar_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:addToolBar_sam|trigger=none}{code:language=javascript}
// Note: method addToolBar only works in the smart client.

// Add a toolbar by name and optional displayname and row.
// add a toolbar with only a name
var toolbar = plugins.window.addToolBar("toolbar_0");

// add a toolbar with a name and internal name
// var toolbar = plugins.window.addToolBar("toolbar_1", "toolbar_1");

// add a toolbar with a name, internal name and the row you want the
// toolbar to show at. rownumber starts at 0 
// var toolbar = plugins.window.addToolBar("toolbar_2", "toolbar_2", 3);

// REMARK: normally you would add buttons, checkboxes etc in the same method
// this example will show no buttons for now!
// we will add them via the other methods on this form.
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=createPopupMenu|class=node}{tr:id=name}{td}h6.createPopupMenu{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Popup]{span}{span:id=iets|style=float: left; font-weight: bold;}createPopupMenu{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:createPopupMenu_des|text=|trigger=button}{sub-section}{sub-section:createPopupMenu_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:createPopupMenu_snc|text=|trigger=button}{sub-section}{sub-section:createPopupMenu_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:createPopupMenu_prs|text=|trigger=button}{sub-section}{sub-section:createPopupMenu_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:createPopupMenu_ret|text=|trigger=button}{sub-section}{sub-section:createPopupMenu_ret|trigger=none|class=sIndent}[Popup]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:createPopupMenu_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createPopupMenu_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:createPopupMenu_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createPopupMenu_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:createPopupMenu_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createPopupMenu_sam|trigger=none}{code:language=javascript}
var popupmenu = plugins.window.createPopupMenu()

var menuitem1 = popupmenu.addMenuItem('A',myMethod)
var menuitem2 = popupmenu.addRadioButton('B',myMethod)
var menuitem3 = popupmenu.addRadioButton('C',myMethod)
var menuitem4 = popupmenu.addSeparator()
var menuitem5 = popupmenu.addMenuItem('<html><b>Hello</b></html>',myMethod)
var menuitem6 = popupmenu.addMenuItem('G', globals.myGlobalMethod)
//add arguments to the method call
menuitem6.methodArguments = ['arg1', 'another argument']

var submenu = popupmenu.addMenu('SubMenu')
var subitem1 = submenu.addCheckBox('i18n:bla_bla',myMethod)
var subitem2 = submenu.addCheckBox('he' , globals.myOtherGlobalMethod , 'media:///day_obj.gif')
var subitem3 = submenu.addCheckBox('more' , globals.myOtherGlobalMethod ,null, 'm') //last parameter is mnemonic-key

menuitem2.setSelected(true)selected = true;
menuitem6.setEnabled(false)enabled = false
subitem2.setSelected(true)selected = true;

var source = event.getSource()
if (source != null)
{
	popupmenu.show(source);
	//or you can set the coordinates popupmenu.show(10, 10);
}
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=createShortcut|class=node}{tr:id=name}{td}h6.createShortcut{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}createShortcut{span}{span:id=iets|style=float: left;}\(shortcut, method, \[form_name\]){span}{td}{tr}{tr:id=des}{td}{sub-section:createShortcut_des|text=|trigger=button}{sub-section}{sub-section:createShortcut_des|trigger=none|class=sIndent}Create a shortcut.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:createShortcut_snc|text=|trigger=button}{sub-section}{sub-section:createShortcut_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:createShortcut_prs|text=|trigger=button}{sub-section}{sub-section:createShortcut_prs|trigger=none|class=sIndent}shortcut
method
\[form\_name\]
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:createShortcut_ret|text=|trigger=button}{sub-section}{sub-section:createShortcut_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:createShortcut_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createShortcut_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:createShortcut_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createShortcut_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:createShortcut_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:createShortcut_sam|trigger=none}{code:language=javascript}
// Create a shortcut.
// this plugin uses the java keystroke parser
// see http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/KeyStroke.html#getKeyStroke(java.lang.String)

// global shortcut (on all forms) on  'apple 1' on a mac client and 'control 1' on other client platforms
plugins.window.createShortcut('menu 1', 'globals.handleShortcut');
// global handler, only triggered when on form frm_orders
plugins.window.createShortcut('control shift I', globals.handleOrdersShortcut, 'frm_orders');
// form method called when shortcut is used
plugins.window.createShortcut('control LEFT', 'frm_products.handleShortcut', 'frm_products');
// same, but use method in stead of string
plugins.window.createShortcut('control RIGHT', forms.frm_contacts.handleMyShortcut, 'frm_contacts');

// remove global shortcut and form-level shortcut
plugins.window.createShortcut('menu 1');
plugins.window.removeShortcut('control RIGHT', 'frm_contacts');

// shortcut handlers are called with an jsevent argument
///**
//* Handle keyboard shortcut.
//*
//* @param {JSEvent} event the event that triggered the action
//*/
//function handleShortcut(event)
//{
//  application.output(event.getType()) // returns 'menu 1'
//  application.output(event.getFormName()) // returns 'frm_contacts'
//  application.output(event.getElementName()) // returns 'contact_name_field' or null when no element is selected
//}

// NOTE: shortcuts will not override existing operating system or browser shortcuts,
// choose your shortcuts careful to make sure they work in all clients.
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getMenuBar|class=node}{tr:id=name}{td}h6.getMenuBar{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[MenuBar]{span}{span:id=iets|style=float: left; font-weight: bold;}getMenuBar{span}{span:id=iets|style=float: left;}\(\[windowName\]){span}{td}{tr}{tr:id=des}{td}{sub-section:getMenuBar_des|text=|trigger=button}{sub-section}{sub-section:getMenuBar_des|trigger=none|class=sIndent}Get the menubar of a window.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getMenuBar_snc|text=|trigger=button}{sub-section}{sub-section:getMenuBar_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getMenuBar_prs|text=|trigger=button}{sub-section}{sub-section:getMenuBar_prs|trigger=none|class=sIndent}\[windowName\]
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getMenuBar_ret|text=|trigger=button}{sub-section}{sub-section:getMenuBar_ret|trigger=none|class=sIndent}[MenuBar]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getMenuBar_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getMenuBar_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getMenuBar_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getMenuBar_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getMenuBar_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getMenuBar_sam|trigger=none}{code:language=javascript}
// Get the menubar of a window.
// get the menubar of the main window
var mainMenubar = plugins.window.getMenuBar();

// get the menubar of a named window
application.showFormInWindow(forms.contacts,100,80,500,300,'my own window title',false,true,'mywindow');
var myWindowMenubar = plugins.window.getMenuBar('mywindow');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getToolBar|class=node}{tr:id=name}{td}h6.getToolBar{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[ToolBar]{span}{span:id=iets|style=float: left; font-weight: bold;}getToolBar{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:getToolBar_des|text=|trigger=button}{sub-section}{sub-section:getToolBar_des|trigger=none|class=sIndent}Get the toolbar from the toolbar panel by name.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getToolBar_snc|text=|trigger=button}{sub-section}{sub-section:getToolBar_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:getToolBar_prs|text=|trigger=button}{sub-section}{sub-section:getToolBar_prs|trigger=none|class=sIndent}name
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:getToolBar_ret|text=|trigger=button}{sub-section}{sub-section:getToolBar_ret|trigger=none|class=sIndent}[ToolBar]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getToolBar_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getToolBar_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getToolBar_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getToolBar_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getToolBar_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getToolBar_sam|trigger=none}{code:language=javascript}
// Note: method getToolBar only works in the smart client.

// Get the toolbar from the toolbar panel by name.
// get the toolbar at the panel by name
var toolbar = plugins.window.getToolBar("toolbar_0");

// add a button with a text and a method
toolbar.addButton("button", feedback_button);

// add an input array to the button for feedback in the selected method
toolbar.addButton("button", feedback_button, [1, "2", "three"]);

// add an icon to the button
toolbar.addButton("button", feedback_button, [1, "2", "three"], "media:///yourimage.gif");

// add a tooltip to the button
toolbar.addButton("button", feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip.");

// show only an icon on the button and disable the button
toolbar.addButton(null, feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip.", false);

// add a separator
toolbar.addSeparator();

// make the button non visible
toolbar.addButton(null, feedback_button, [1, "2", "three"], "media:///yourimage.gif", "tooltip.",true, false);

// and validate the changes
// to make them know to the user interface)
toolbar.validate();
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=getToolbarNames|class=node}{tr:id=name}{td}h6.getToolbarNames{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]\[]{span}{span:id=iets|style=float: left; font-weight: bold;}getToolbarNames{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{tr:id=des}{td}{sub-section:getToolbarNames_des|text=|trigger=button}{sub-section}{sub-section:getToolbarNames_des|trigger=none|class=sIndent}Get all toolbar names from the toolbar panel.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:getToolbarNames_snc|text=|trigger=button}{sub-section}{sub-section:getToolbarNames_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:getToolbarNames_prs|text=|trigger=button}{sub-section}{sub-section:getToolbarNames_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:getToolbarNames_ret|text=|trigger=button}{sub-section}{sub-section:getToolbarNames_ret|trigger=none|class=sIndent}[String]\[]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:getToolbarNames_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getToolbarNames_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:getToolbarNames_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getToolbarNames_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:getToolbarNames_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:getToolbarNames_sam|trigger=none}{code:language=javascript}
// Note: method getToolbarNames only works in the smart client.

// Get all toolbar names from the toolbar panel.
// create an array of toolbar names
var names = plugins.window.getToolbarNames();

// create an empty message variable
var message = "";

// loop through the array
for (var i = 0 ; i < names.length ; i++) {
	//add the name(s) to the message
	message += names[i] + "\n";
}

// show the message
plugins.dialogs.showInfoDialog("toolbar names", message);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=maximize|class=node}{tr:id=name}{td}h6.maximize{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}maximize{span}{span:id=iets|style=float: left;}\(\[windowName\]){span}{td}{tr}{tr:id=des}{td}{sub-section:maximize_des|text=|trigger=button}{sub-section}{sub-section:maximize_des|trigger=none|class=sIndent}Maximize the current window or the window with the name provided (Smart client only){sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:maximize_snc|text=|trigger=button}{sub-section}{sub-section:maximize_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:maximize_prs|text=|trigger=button}{sub-section}{sub-section:maximize_prs|trigger=none|class=sIndent}\[windowName\]
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:maximize_ret|text=|trigger=button}{sub-section}{sub-section:maximize_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:maximize_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:maximize_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:maximize_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:maximize_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:maximize_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:maximize_sam|trigger=none}{code:language=javascript}
// Maximize the current window or the window with the name provided (Smart client only)
// maximize the main window:
plugins.window.maximize();
// or a window constructed with the name 'test':
plugins.window.maximize('test');
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeShortcut|class=node}{tr:id=name}{td}h6.removeShortcut{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}removeShortcut{span}{span:id=iets|style=float: left;}\(shortcut, \[form_name\]){span}{td}{tr}{tr:id=des}{td}{sub-section:removeShortcut_des|text=|trigger=button}{sub-section}{sub-section:removeShortcut_des|trigger=none|class=sIndent}Remove a shortcut.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:removeShortcut_snc|text=|trigger=button}{sub-section}{sub-section:removeShortcut_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:removeShortcut_prs|text=|trigger=button}{sub-section}{sub-section:removeShortcut_prs|trigger=none|class=sIndent}shortcut
\[form\_name\]
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:removeShortcut_ret|text=|trigger=button}{sub-section}{sub-section:removeShortcut_ret|trigger=none|class=sIndent}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:removeShortcut_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeShortcut_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:removeShortcut_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeShortcut_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:removeShortcut_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeShortcut_sam|trigger=none}{code:language=javascript}
// Remove a shortcut.
// this plugin uses the java keystroke parser
// see http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/KeyStroke.html#getKeyStroke(java.lang.String)

// global shortcut (on all forms) on  'apple 1' on a mac client and 'control 1' on other client platforms
plugins.window.createShortcut('menu 1', 'globals.handleShortcut');
// global handler, only triggered when on form frm_orders
plugins.window.createShortcut('control shift I', globals.handleOrdersShortcut, 'frm_orders');
// form method called when shortcut is used
plugins.window.createShortcut('control LEFT', 'frm_products.handleShortcut', 'frm_products');
// same, but use method in stead of string
plugins.window.createShortcut('control RIGHT', forms.frm_contacts.handleMyShortcut, 'frm_contacts');

// remove global shortcut and form-level shortcut
plugins.window.createShortcut('menu 1');
plugins.window.removeShortcut('control RIGHT', 'frm_contacts');

// shortcut handlers are called with an jsevent argument
///**
//* Handle keyboard shortcut.
//*
//* @param {JSEvent} event the event that triggered the action
//*/
//function handleShortcut(event)
//{
//  application.output(event.getType()) // returns 'menu 1'
//  application.output(event.getFormName()) // returns 'frm_contacts'
//  application.output(event.getElementName()) // returns 'contact_name_field' or null when no element is selected
//}

// NOTE: shortcuts will not override existing operating system or browser shortcuts,
// choose your shortcuts careful to make sure they work in all clients.
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=removeToolBar|class=node}{tr:id=name}{td}h6.removeToolBar{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}removeToolBar{span}{span:id=iets|style=float: left;}\(name){span}{td}{tr}{tr:id=des}{td}{sub-section:removeToolBar_des|text=|trigger=button}{sub-section}{sub-section:removeToolBar_des|trigger=none|class=sIndent}Remove the toolbar from the toolbar panel.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:removeToolBar_snc|text=|trigger=button}{sub-section}{sub-section:removeToolBar_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:removeToolBar_prs|text=|trigger=button}{sub-section}{sub-section:removeToolBar_prs|trigger=none|class=sIndent}name
{sub-section}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:removeToolBar_ret|text=|trigger=button}{sub-section}{sub-section:removeToolBar_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:removeToolBar_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeToolBar_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:removeToolBar_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeToolBar_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:removeToolBar_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:removeToolBar_sam|trigger=none}{code:language=javascript}
// Note: method removeToolBar only works in the smart client.

// Remove the toolbar from the toolbar panel.
// removing a toolbar from the toolbar panel is done by name
// the plugin checks the existence of the toolbar
// when the toolbar does not exist it will not throw an error though.
plugins.window.removeToolBar("toolbar_0");
plugins.window.removeToolBar("toolbar_1");
plugins.window.removeToolBar("toolbar_2");
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=setFullScreen|class=node}{tr:id=name}{td}h6.setFullScreen{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setFullScreen{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:setFullScreen_des|text=|trigger=button}{sub-section}{sub-section:setFullScreen_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:setFullScreen_snc|text=|trigger=button}{sub-section}{sub-section:setFullScreen_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:setFullScreen_prs|text=|trigger=button}{sub-section}{sub-section:setFullScreen_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:setFullScreen_ret|text=|trigger=button}{sub-section}{sub-section:setFullScreen_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:setFullScreen_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setFullScreen_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:setFullScreen_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setFullScreen_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:setFullScreen_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setFullScreen_sam|trigger=none}{code:language=javascript}
plugins.window.setFullScreen(true)
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=setStatusBarVisible|class=node}{tr:id=name}{td}h6.setStatusBarVisible{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setStatusBarVisible{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:setStatusBarVisible_des|text=|trigger=button}{sub-section}{sub-section:setStatusBarVisible_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:setStatusBarVisible_snc|text=|trigger=button}{sub-section}{sub-section:setStatusBarVisible_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:setStatusBarVisible_prs|text=|trigger=button}{sub-section}{sub-section:setStatusBarVisible_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:setStatusBarVisible_ret|text=|trigger=button}{sub-section}{sub-section:setStatusBarVisible_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:setStatusBarVisible_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setStatusBarVisible_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:setStatusBarVisible_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setStatusBarVisible_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:setStatusBarVisible_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setStatusBarVisible_sam|trigger=none}{code:language=javascript}
plugins.window.setStatusBarVisible()
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=setToolBarVisiblesetToolBarAreaVisible|class=node}{tr:id=name}{td}h6.setToolBarVisiblesetToolBarAreaVisible{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}void{span}{span:id=iets|style=float: left; font-weight: bold;}setToolBarVisiblesetToolBarAreaVisible{span}{span:id=iets|style=float: left;}\(){span}{td}{tr}{builder-show:permission=edit}{tr:id=des}{td}{sub-section:setToolBarVisiblesetToolBarAreaVisible_des|text=|trigger=button}{sub-section}{sub-section:setToolBarVisiblesetToolBarAreaVisible_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:setToolBarVisiblesetToolBarAreaVisible_snc|text=|trigger=button}{sub-section}{sub-section:setToolBarVisiblesetToolBarAreaVisible_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:setToolBarVisiblesetToolBarAreaVisible_prs|text=|trigger=button}{sub-section}{sub-section:setToolBarVisiblesetToolBarAreaVisible_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:setToolBarVisiblesetToolBarAreaVisible_ret|text=|trigger=button}{sub-section}{sub-section:setToolBarVisiblesetToolBarAreaVisible_ret|trigger=none|class=sIndent}void{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:setToolBarVisiblesetToolBarAreaVisible_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setToolBarVisiblesetToolBarAreaVisible_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:setToolBarVisiblesetToolBarAreaVisible_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setToolBarVisiblesetToolBarAreaVisible_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:setToolBarVisiblesetToolBarAreaVisible_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:setToolBarVisiblesetToolBarAreaVisible_sam|trigger=none}{code:language=javascript}
plugins.window.setToolBarVisiblesetToolBarAreaVisible(false)
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}