You can define a JADE user-defined method or condition at any time. When you have defined a JADE method or condition, it can be invoked for any instance of the class or primitive type in which it is defined for any instance of a subclass of that class.
Object methods are always defined for a class. Object methods are generally called from other methods, with the exception of a group of methods referred to as event methods. An event method can also be called by the runtime JADE system in response to a window event.
For details about:
The editor pane, see "Tips for Using the Editor Pane" under "Using the Editor Pane", in Chapter 3
JadeScript and Workspace methods, see "Using a Method in a Workspace or the JadeScript Class", later in this chapter
Using the AutoComplete functionality, see "Using JADE AutoComplete Functionality", in Chapter 2
Grouping methods from any class in any schema into a named workspace, see Chapter 13, "Using Method Views to Bookmark Workflows"
Interface methods, see "Adding Interface Methods" and "Compiling an Interface Method", in Chapter 14
Defining external methods, see "Adding External Methods to Classes", in Chapter 8
Web service methods, see "
Splitting the editor pane horizontally, see "Splitting the Editor Pane View", in Chapter 3
Changing or renaming an entity (for example, a property, local constant, variable, or method parameter) selected within the body of a method in the editor pane, see "Renaming or Changing an Entity", later in this chapter
Conditions are declarative restricted methods that return a Boolean result. Constraints are conditions used to maintain automatic inverse references when the specified conditions are satisfied. For details, see "Adding Conditions to Classes or Primitive Types", later in this chapter.
A condition that is used as a constraint cannot have parameters nor can it use array indexing ([<index>]) and dictionary indexing ([<key, key, ...>]). You cannot reimplement a condition inherited from a superschema or superclass. In addition, a condition cannot use array indexing ([index]) or dictionary indexing ([key, key, ...]).
Only automatic references can have a constraint. When the manual side of the inverse reference is set, the condition used as the constraint is evaluated and the automatic inverse is set only if the value of the condition is true. If the automatic reference is a
You cannot add a method to the current version of a class if that method was added to the latest version of any superclass or subclass, including those on superschemas and subschemas.
The JADE development environment enables you to move classes and copy or move methods by dragging them to the required class or primitive type. To do this:
Select the class or method and then press the:
Ctrl or Shift key to move a class
Ctrl key to copy a method
Shift key to move a method
You can drag a key from an external key dictionary only if there are no items in that dictionary.
Drag the class to the class of which it is to be a subclass or the method to the class or primitive type to which you want to copy or move it.
Release the button. If the copy or move action is valid, a message box then prompts you to confirm that you want to move the class to the required class or method to the required class or primitive type.
Click the Yes button to complete the move action.