{column:padding=0px|width=80px}{column}{column}{column}
Property Summary
Object[]
methodArguments
Set the arguments that can be read by the defined method.
{column:padding=0px|width=80px}{column}{column}{column}
Method Summary
void
doClick()
Script the selection (emulate a mouse click) of the item.
getClientProperty(key)
Gets the specified client property for the element based on a key.
void
putClientProperty(key, value)
Sets the value for the specified element client property key.
setAccelerator(key)
Set the accelerator key of the item.
void
setAlign(boolean)
Sets the alignment of the radio button.
void
setBackgroundColor(backgroundColor)
Set the background color of the item.
void
setForegroundColor(foregroundColor)
Set the foreground color of the item.
setMethod(method)
Set the method for the item.
setMnemonic(key)
Set the mnemonic key of the item.
setVisible(visible)
Set the item visible.
{column:padding=0px|width=100%}{column}
Property Details
Replace with description
Since
Replace with version info
Parameters
Returns
[Boolean]
Also see
External links
Sample
Set the arguments that can be read by the defined method.
Since
Replace with version info
Parameters
Returns
[Object][]
Also see
External links
Sample
var menu = plugins.window.getMenu(2).getItem(0); // Set the text of the item. menu.setText("Servoy"); // Set the method for the item. menu.setMethod(callback); // Set the arguments that can be read by the defined method. - array elements will be passed as arguments 5, 6 and so on to the callback method //The first 5 arguments are fixed: // [0] item index // [1] parent item index // [2] isSelected boolean // [3] parent menu text // [4] menu text menu.methodArguments = ["a","b"]; // Set the icon of the item. menu.setIcon("media:///TipOfTheDay16.gif"); // Set the accelerator key of the item. menu.setAccelerator("meta 4"); // Set the mnemonic key of the item. menu.setMnemonic("e"); // Enable/disable the item. menu.setEnabled(false); // Set the item visible. menu.setVisible(true); menu.setBackgroundColor('#ff0000'); menu.setForegroundColor('#0000ff');
Replace with description
Since
Replace with version info
Parameters
Returns
[String]
Also see
External links
Sample
Replace with description
Since
Replace with version info
Parameters
Returns
[Boolean]
Also see
External links
Sample
Replace with description
Since
Replace with version info
Parameters
Returns
[String]
Also see
External links
Sample
{column:padding=0px|width=100%}{column}
Method Details
void
doClick
()
Script the selection (emulate a mouse click) of the item.
Since
Replace with version info
Parameters
Returns
void
Also see
External links
Sample
// Script the selection (emulate a mouse click) of the item. // Clicking a separator will throw an error! plugins.window.getMenu(2).getItem(0).doClick();
getClientProperty
(key)
Gets the specified client property for the element based on a key.
Since
Replace with version info
Parameters
key
Returns
[Object]
Also see
External links
Sample
// Gets the specified client property for the element based on a key. // NOTE: Depending on the operating system, a user interface property name may be available. var property = plugins.window.getClientProperty('ToolTipText');
void
putClientProperty
(key, value)
Sets the value for the specified element client property key.
Since
Replace with version info
Parameters
key
value
Returns
void
Also see
External links
Sample
// Sets the value for the specified element client property key. // NOTE: Depending on the operating system, a user interface property name may be available. plugins.window.putClientProperty('ToolTipText','some text');
setAccelerator
(key)
Set the accelerator key of the item.
Since
Replace with version info
Parameters
key
Returns
[RadioButton]
Also see
External links
Sample
var menu = plugins.window.getMenu(2).getItem(0); // Set the text of the item. menu.setText("Servoy"); // Set the method for the item. menu.setMethod(callback); // Set the arguments that can be read by the defined method. - array elements will be passed as arguments 5, 6 and so on to the callback method //The first 5 arguments are fixed: // [0] item index // [1] parent item index // [2] isSelected boolean // [3] parent menu text // [4] menu text menu.methodArguments = ["a","b"]; // Set the icon of the item. menu.setIcon("media:///TipOfTheDay16.gif"); // Set the accelerator key of the item. menu.setAccelerator("meta 4"); // Set the mnemonic key of the item. menu.setMnemonic("e"); // Enable/disable the item. menu.setEnabled(false); // Set the item visible. menu.setVisible(true); menu.setBackgroundColor('#ff0000'); menu.setForegroundColor('#0000ff');
void
setAlign
(boolean)
Sets the alignment of the radio button.
Since
Replace with version info
Parameters
boolean
Returns
void
Also see
External links
Sample
var align = radioButton.setAlign(true);
void
setBackgroundColor
(backgroundColor)
Set the background color of the item.
Since
Replace with version info
Parameters
backgroundColor
Returns
void
Also see
External links
Sample
var menu = plugins.window.getMenu(2).getItem(0); // Set the text of the item. menu.setText("Servoy"); // Set the method for the item. menu.setMethod(callback); // Set the arguments that can be read by the defined method. - array elements will be passed as arguments 5, 6 and so on to the callback method //The first 5 arguments are fixed: // [0] item index // [1] parent item index // [2] isSelected boolean // [3] parent menu text // [4] menu text menu.methodArguments = ["a","b"]; // Set the icon of the item. menu.setIcon("media:///TipOfTheDay16.gif"); // Set the accelerator key of the item. menu.setAccelerator("meta 4"); // Set the mnemonic key of the item. menu.setMnemonic("e"); // Enable/disable the item. menu.setEnabled(false); // Set the item visible. menu.setVisible(true); menu.setBackgroundColor('#ff0000'); menu.setForegroundColor('#0000ff');
void
setForegroundColor
(foregroundColor)
Set the foreground color of the item.
Since
Replace with version info
Parameters
foregroundColor
Returns
void
Also see
External links
Sample
var menu = plugins.window.getMenu(2).getItem(0); // Set the text of the item. menu.setText("Servoy"); // Set the method for the item. menu.setMethod(callback); // Set the arguments that can be read by the defined method. - array elements will be passed as arguments 5, 6 and so on to the callback method //The first 5 arguments are fixed: // [0] item index // [1] parent item index // [2] isSelected boolean // [3] parent menu text // [4] menu text menu.methodArguments = ["a","b"]; // Set the icon of the item. menu.setIcon("media:///TipOfTheDay16.gif"); // Set the accelerator key of the item. menu.setAccelerator("meta 4"); // Set the mnemonic key of the item. menu.setMnemonic("e"); // Enable/disable the item. menu.setEnabled(false); // Set the item visible. menu.setVisible(true); menu.setBackgroundColor('#ff0000'); menu.setForegroundColor('#0000ff');
setIcon
(icon)
Set the icon of the item.
Since
Replace with version info
Parameters
icon
Returns
[RadioButton]
Also see
External links
Sample
var menu = plugins.window.getMenu(2).getItem(0); // Set the text of the item. menu.setText("Servoy"); // Set the method for the item. menu.setMethod(callback); // Set the arguments that can be read by the defined method. - array elements will be passed as arguments 5, 6 and so on to the callback method //The first 5 arguments are fixed: // [0] item index // [1] parent item index // [2] isSelected boolean // [3] parent menu text // [4] menu text menu.methodArguments = ["a","b"]; // Set the icon of the item. menu.setIcon("media:///TipOfTheDay16.gif"); // Set the accelerator key of the item. menu.setAccelerator("meta 4"); // Set the mnemonic key of the item. menu.setMnemonic("e"); // Enable/disable the item. menu.setEnabled(false); // Set the item visible. menu.setVisible(true); menu.setBackgroundColor('#ff0000'); menu.setForegroundColor('#0000ff');
setMethod
(method)
Set the method for the item.
Since
Replace with version info
Parameters
method
Returns
[RadioButton]
Also see
External links
Sample
var menu = plugins.window.getMenu(2).getItem(0); // Set the text of the item. menu.setText("Servoy"); // Set the method for the item. menu.setMethod(callback); // Set the arguments that can be read by the defined method. - array elements will be passed as arguments 5, 6 and so on to the callback method //The first 5 arguments are fixed: // [0] item index // [1] parent item index // [2] isSelected boolean // [3] parent menu text // [4] menu text menu.methodArguments = ["a","b"]; // Set the icon of the item. menu.setIcon("media:///TipOfTheDay16.gif"); // Set the accelerator key of the item. menu.setAccelerator("meta 4"); // Set the mnemonic key of the item. menu.setMnemonic("e"); // Enable/disable the item. menu.setEnabled(false); // Set the item visible. menu.setVisible(true); menu.setBackgroundColor('#ff0000'); menu.setForegroundColor('#0000ff');
setMnemonic
(key)
Set the mnemonic key of the item.
Since
Replace with version info
Parameters
key
Returns
[RadioButton]
Also see
External links
Sample
var menu = plugins.window.getMenu(2).getItem(0); // Set the text of the item. menu.setText("Servoy"); // Set the method for the item. menu.setMethod(callback); // Set the arguments that can be read by the defined method. - array elements will be passed as arguments 5, 6 and so on to the callback method //The first 5 arguments are fixed: // [0] item index // [1] parent item index // [2] isSelected boolean // [3] parent menu text // [4] menu text menu.methodArguments = ["a","b"]; // Set the icon of the item. menu.setIcon("media:///TipOfTheDay16.gif"); // Set the accelerator key of the item. menu.setAccelerator("meta 4"); // Set the mnemonic key of the item. menu.setMnemonic("e"); // Enable/disable the item. menu.setEnabled(false); // Set the item visible. menu.setVisible(true); menu.setBackgroundColor('#ff0000'); menu.setForegroundColor('#0000ff');
setVisible
(visible)
Set the item visible.
Since
Replace with version info
Parameters
visible
Returns
[RadioButton]
Also see
External links
Sample
var menu = plugins.window.getMenu(2).getItem(0); // Set the text of the item. menu.setText("Servoy"); // Set the method for the item. menu.setMethod(callback); // Set the arguments that can be read by the defined method. - array elements will be passed as arguments 5, 6 and so on to the callback method //The first 5 arguments are fixed: // [0] item index // [1] parent item index // [2] isSelected boolean // [3] parent menu text // [4] menu text menu.methodArguments = ["a","b"]; // Set the icon of the item. menu.setIcon("media:///TipOfTheDay16.gif"); // Set the accelerator key of the item. menu.setAccelerator("meta 4"); // Set the mnemonic key of the item. menu.setMnemonic("e"); // Enable/disable the item. menu.setEnabled(false); // Set the item visible. menu.setVisible(true); menu.setBackgroundColor('#ff0000'); menu.setForegroundColor('#0000ff');