|
8.5. Working with Screens
A Screen is the working area available to the user. Any number of required screens can be created in a Bean Builder project. For any project only one main screen is allowed, to which sub-screens are either added or invoked from. But each screen can be unit tested separately.
Setting Build type for Screens
The Build type of a screen can be chosen in the Screen Builder while creating a new screen. To know more about Build types, read the topic elaborating the Build menu.
On creating a new screen by finishing in the first screen in the Screen Builder, the Build type is Application by default. It can be changed to any other Build type using the menu item "Build --> Type".
Viewing the Screen
The Screen tab of Bean Builder IDE, which is chosen by default shows the Screen view. To know more about this, refer the Draw Area topic.
Setting Screen Properties
The properties of an screen can be changed by using Screen Properties dialog. See Setting Screen Properties for more information.
Saving the Screen
The screens created can be saved using this option. This creates the configuration and java files of the corresponding screen and places it under 'Screens' and 'Source' directories respectively.
For example, on creating a new screen of name say 'test' and saving the screen the corresponding config and java files are created under Screens and Source directories respectively. i.e. 'test.config' is created under <Web NMS Home>/projects/My_proj/Screens directory and 'test.java' is created under <Web NMS Home>/Projects/My_proj/Source directory.
Regenerating source for a screen
Regenerate menu item under the Build menu creates the source (.java) file for the corresponding screen. The following are the circumstances under which the source is automatically regenerated:
Saving the screen.
Switching between Screen and Source tabs.
Compiling the screen.
Renaming an existing screen.
Changing the Build Type (For instance applet, application,panel ,dialog etc) of the screen.
|