Toolbar Tabs
By clicking on the appropriate tab below the toolbar, the toolbar changes to include the tools useful for editing the selected type of data indicated by the selected tab. For example, in Figure shows - Example Expression Editor Window with the Language Toolbar Selected, the Character toolbar is selected and so tools appropriate for editing or entering character data are displayed.
The toolbar scripting tools (or aids) include:
-
Variables: A selection box listing all the variables of the toolbar type selected (for example, character) currently contained in the open script.
-
Constructors: A selection list of the public Java constructors available for creating and initializing new objects of the selected data type.
-
Methods: A selection list of public Java methods for all the operations you can perform on the selected data type. A method has four basic parts:
-
The method name
-
The type of object the method returns
-
A list of parameters
-
The body of the method
-
-
Attributes: A selection list of all the public Java attributes available for the selected data type. These are the things that differentiate one object from another in the selected data type. For example, color or size.
-
Constants and Keywords. In some cases, constants and keywords for the selected data type or object are included.
-
Syntax: button. Buttons for quickly entering data of the selected type with the correct syntax. The question marks on the buttons indicate command parameters which you need to supply.
-
Easy access to Prompts, grammars, documents, and scripts stored inside the Cisco Unified CCX repository.
When you click a button or select an item from a list, the Cisco Unified CCX Editor inserts the selected expression text at the cursor position in the text input field.
For example, if you are creating an expression that accesses the current time, on the Time tab, click the now button, and the Cisco Unified CCX Editor will insert the Java code that retrieves the current time when the script runs.
Note | The Java tab contains a selection list of the constructors, methods, attributes, and syntax buttons of the selected Java object within the open script. Therefore, the contents of this tab will vary. The Java tab allows you to enter a class name of your own in order to have its set of constructors, methods or attributes listed in the selection boxes. This enables an easy lookup of what is available so you can paste it into the expression directly. The Java toolbar is populated with the constructors, methods or attributes of the class you enter. A selection box drop-down arrow is disabled if the class entered is invalid or does not have any constructors, methods or attributes. |
