The Source Editor
Here you have access to the source code for the methods of the currently selected component in the Layout View tree and for the whole screen module. The buttons in the lower left are for saving, deleting and compiling source. The Source Editor pertains to visual or client-side applications.
For information about editing the source of a non-visual, or server-side application, see the Source Window page.
The Set of three buttons on the far lower right of the Source Window are for viewing the source code for the module. They are Component Source, Complete Source and Compile Results. The order of the descriptions below is simply for this manual, there is no particular order in which they need to be used.
When adding and editing source you have the option to use the Source Helper. The Source Helper is an auto-search system to save time by showing matching methods and parametere as you type.
In the Component Source window you will find the methods for the currently selected component in the Layout View. Here you can add new methods for that component. When you add a new method it will automatically appear in the Interaction Manager under Local Methods for that component.
Under Component Source you can modify methods with small amounts of code. We call these "code snippets." This makes working with the Java source much easier than having to work with a complete source document.
Here you will find the complete source for your current screen module. Modifications done to the source here can be saved. However, the next time a component is added this source will be changed by JDesignerPro and your modifications will be removed. If you make modifications to the source here, they should be final modifications prior to a save and compile. The best place to modify the source is at the Component Source level.
Another method to save your changes permanently is to Copy the project in the Application Builder, then modify the new copy.
When a compile fails, the returned errors will appear in the Compile results window. JDesignerPro will switch to this window automatically if there is an error to display. BulletProof Support can help with any Java programming errors caused by the items you select in the Interaction Manager. If an error is caused by your own source, BulletProof Support will most likely be unable to help. However, if you do send a message to support@bulletproof.com, please include the contents of the items in the Compile Results window.
The set of three buttons in the lower left corner are Create New Method, Delete Selected Method, and show methods. The order of the descriptions below is simply for this manual, there is no particular order in which they need to be used.
To use this feature, you must first click the Component Source button, described earlier. The list at the top will show the existing methods for the component that is currently highlighted in the Layout View.
Press the Create New Method button and JDesignerPro will start you off with the basic source:
//
// New Method
//
public void [component]Method() {
}
Build your source code and press the Save Source button when ready. You can then run a Preliminary Compile to test your new code. The new method will be given the name "DetailGrid1Method."
To rename the component, change the [component] part to your own name and this name will appear in the list at the top when saved.
This will delete the method whose name is currently selected in the list at the top of the window. The button must be black to function and will be if you are working with component methods source. Be careful, this is a permanent deletion from this application.
This function will display the appropriate methods for the currently highlighted return type or parameter in the source window. Highlight a return type in the source window, then move the mouse over the window that says: "Click on a method to add to source." Simply by moving the mouse over this window, JDesignerPro will look for matching methods to add based on the element highlighted in the source window. If none are found, a message will appear in the Status Bar.